rei-memory-mcp Phase 1 — 読み取り専用 SEED_KERNEL MCP

NEW 2026-08-19 · github.com/fc0web/rei-memory-mcp · commit dbcb4b9fca7d05 · AGPL-3.0

1 日で Phase 1 が GitHub public 到達。 read-only 原則遵守 (「書き込みから作ると誤った記憶が定着する経路が最初からできる」)、 53/53 pytest PASS、 実 SEED_KERNEL 1,677 rows ingested、 「七値論理」 35 hits + 「平和公理」 9 hits で日本語検索完了条件 PASS。 藤本さん × Claude Code single-session arc。

1. 契機と Phase 1 scope

藤本さん Downloads asset rei-memory-mcp_実装指示書_Phase1.md (chat-Claude 事前設計) 起点。 Phase 1 は読み取り専用 = 書き込みは Phase 2 以降の seed_propose 承認 flow に閉じる (誤った記憶に fast path を作らない設計)。

2. spec vs SEED_KERNEL 現実の gap 5 点 → 藤本さん judgment

「勝手に仕様を補完しない」 discipline 遵守で AskUserQuestion 3 決定:

Gap指示書要求現実2026-08-19 判断
tier 必須 fieldproven/hypothesis/speculative不在 (近接 judgmentStatus は 2 件のみ set)全件 hypothesis default → Phase 2 昇降格
title 分離title 別 fieldaxiom のみaxiom 先頭 80 文字
step 番号INTEGERaxiom 本文 embed で 3.1% coverage/STEP\s+(\d+)/ regex 抽出、 null 可
id 形式T-\d+T-\d+=89 / invented-*=120 / slug=1,4683 pattern 全許容
DB sourceJSON/JSONL/SQLite/MDTypeScript sourceTS→JSONL 一方向 boundary adapter

3. Live smoke (実 SEED_KERNEL 1,677 rows)

querytotal hitcomment
七値論理35D-FUMT₈ 中核
平和公理9peace-axiom-eternal-stability 等
コラッツ6
D-FUMT409大クラスタ
BOTH380D-FUMT₈ 値語
NEITHER338D-FUMT₈ 値語
龍樹の31rei-aios substring 検索と一致

4. Finding 1: SEED_KERNEL lone UTF-16 surrogate 混入 発見

藤本さん洞察: 「これが今日一番の収穫かもしれません。 SEED_KERNEL に UTF-16 破損データが混入していたことは、 コネクタを作らなければ発見できなかった。 『1,677 件全部を機械が一度舐める』 という行為自体に検査効果があったわけです」

5. Finding 2: trigram tokenizer 2 文字日本語 blind spot 数値化

藤本さん指摘の Rei 中核領域 (空/禅/圏/双対/龍樹/中観) は 2 char 未満で trigram では 0 hit。

querylenrei-memory-mcp
(trigram)
rei-aios
(substring)
龍樹2039
龍樹の33131
双対20n/a
公理20n/a
ZCSG419n/a

差 8 件見えない (龍樹思想 / 龍樹曼荼羅 等の後続助詞なし複合語)。 rei-aios search_theoriesString.prototype.includes() 生 substring で 対応 → Phase 2 で LIKE fallback 実装、 MeCab は不要 (1,677 rows は O(N) scan で数 ms)。

6. Finding 3: remote rei-aios MCP deploy lag 13 日 stale (2 件差)

藤本さん claude.ai 経由の 「SEED_KERNEL 全 1,675 理論」 vs 私 dump 1,677 の 2 件差を diff:

#idcommit内容
1invented-20260815-zero-ext-thermodynamics-izutsu-landauer56b5a0dd1 (08-17)井筒 (1985) × Landauer (1961) D-approve
2invented-20260816-zero-ext-evolutionary-biology-wumen-selfish-gene6eafd8db4 (08-17)無門関 × Dawkins Selfish Gene D-approve

判定: bug ではなく remote deployment lag。 claude.ai の rei-aios は remote-devices ホスト deployment で 2026-08-06 前後 (fb86bc5dd STEP 1276) で deploy 停止 = 藤本さんが claude.ai から見ている rei-aios は 常に約 13 日前の Rei。 rei-memory-mcp は ローカル HEAD 直結で 「fresh index」 として補完的位置付け可能。

7. Claude Desktop 登録 (Windows Store UWP sandbox pitfall)

初期 config は -m rei_memory_mcp.server + PYTHONPATH env pattern → Claude Desktop v1.32885.1 (WindowsApps sandbox) が PYTHONPATH を propagate せず ModuleNotFoundError → 「not connected」。 stripped-env spawn simulate で再現確認済。

Fix: run_server.py launcher で sys.path を script 自身の filesystem location から bootstrap、 config は benchtop pattern (直接 file path + env: {}) に統一。 clean-env spawn (PATH + SYSTEMROOT のみ) で MCP initialize 成功 exit 0 verify 済。 mcp-lens A 柱起動 (2026-08-15) の 「Windows Store dual path pitfall」 学習が直接活用された事例。

8. Rei stack impact

9. Honest scope

関連

memory: project-rei-memory-mcp-phase1-arc-2026-08-19 feedback-windows-store-uwp-env-strip-2026-08-19 feedback-remote-mcp-deploy-lag-2026-08-19 feedback-ai-usable-tool-design-5-conditions-2026-08-18 feedback-one-reproduction-over-ten-unverified feedback-projection-self-audit-pattern feedback-no-rush-publication feedback-all-research-site-reflection-default

repo: fc0web/rei-memory-mcp (Phase 1 GitHub public、 PyPI publish は別 arc)

related project: rei-verify 0.1.0a1 (同日別 arc)

急がず、 ゆっくりと。 種は育ちます。