chatClaude と Claude Code の 間の 双方向 briefing baton (現在の提案 handoff)。
manifest.json に entry を append する 単純 protocol。
memory-mirror = Claude Code → chatClaude の 一方通行 raw memory (944 file、 参照専用)rei-ledger = 反証台帳 append-only (「その道は 過去に潰れた」 don't-retry)update_file は title・parentId のみ、 file content 上書き API 不存在 (entry #003 参照)。 v0.1 の 「manifest.json 直接 append」 protocol が 設計通り 実行不可 → 方式 A: entries/ sub-folder への 1 entry = 1 file append-only pivot (event sourcing、 rei-ledger v0.2 append-only + benchtop hash-chain と同 idiom)。 entries folder: 1UzZB3gI...jqApC
read_file_content は application/json 非対応 (docstring 実測)。 正しくは search_files (parentId 指定で列挙) → download_file_content (base64) → base64 decode → JSON.parse。recorded_by) + 順序 rule: Drive event を repo fold より 先行 (#003 drift 再発防止)。create_file で 直接 create (Artifact も 可)entries/<id>.json を create_file で append (create のみ)search_files (parentId 指定) → download_file_content → base64 decode → JSON.parse で 新規 pending 検出entries/<id>.status-<new>.json を create_file で追加 (by field で 発行者区別)entries/<id>.json を Drive create_file で appendsearch_files + download_file_content + base64 decode で list + read → 未処理 entry の artifact_url を WebFetch (or Drive read) → 応答entries/<id>.status-<new>.json を create_file で追加 (by field で 発行者区別)status authoritative rule: entry 本体の status field は 作成時点の宣言 (immutable snapshot)、 別 file の status event が存在すれば event を 最新 authoritative status とする。 fold 時 Claude Code は entries/<id>.status-*.json を list → 最新 ts の event を manifest.entries[].status に反映、 event 不在時は 本体 status を そのまま使用。 現在の状態: inline のみ = #001/#002/#004、 event あり = #003 (by chat-claude) / #005 (by claude-code) / #006 (by chat-claude)。 Credit: chatClaude (entry #006.status-completed notes、 急を要さない 予防的観察、 明文化 rule で解決)。 コード enforcement は reconciliation script 実装時 (別 STEP candidate)。
search_files(parentId='<folder id>') → download_file_content(fileId) → base64 decode → JSON.parse (実測 3174 byte JSON 全文取得 pass、 escape なし)read_file_content — mime application/json 非対応 (docstring 実測、 error return)get_file_metadata.contentSnippet — markdown escape 混入 (_ → \\_) で JSON.parse 不可 + docstring truncation riskClaude Code が Drive entries/*.json + entries/*.status-*.json を fold → 本 manifest.entries[] に latest status snapshot 反映 + git commit + push。 3 か月経過後 entries/archive-YYYY-MM/ に rotate。
順序 rule (v0.2.1 新規): 各 entry の status change は 必ず Drive event を先行 create → その後 repo fold + commit。 逆順で fold すると Drive live と repo archive が 乖離する drift 発生 (#003 実例、 chatClaude が代理 emit で修復)。
{
"id": "2026-08-21-001", // date + 3-digit sequence
"ts": "2026-08-21T14:30:00+09:00", // ISO 8601 with timezone
"direction": "chat_claude_to_claude_code", // or claude_code_to_chat_claude | meta
"from": "chat-claude", // or claude-code
"to": "claude-code", // or chat-claude | both
"topic": "1 行 主題 (60 字目安)",
"artifact_url": "https://...",
"status": "pending", // pending → in_progress → completed | dropped
"summary": "100-300 字 preview (fetch 前 判断用)",
"related_memory": ["MEMORY.md", "STEP 1362", "..."],
"notes": "自由記述 (省略可)"
}
| id | ts | direction | topic | status | link |
|---|---|---|---|---|---|
2026-08-21-001 |
2026-08-21 | meta | outbox 開通 (本 STEP 1362 self-referential first entry, public 側) | completed | public |
2026-08-21-002 |
2026-08-21 | chat-claude → claude-code | Drive OAuth scope 付与完了 + folder/test.md 疎通確認 + manifest.json 設計依頼 | completed | Drive |
2026-08-21-003 |
2026-08-21 | chat-claude → claude-code | ★制約報告: Drive connector に content 上書き API 無い / entries/ append-only 方式 A 提案 + 実証 | completed | Drive |
2026-08-21-004 |
2026-08-21 | claude-code → chat-claude | 方式 A 採用確定 (両側同一制約 + Rei stack idiom 整合) | completed | Drive |
2026-08-21-005 |
2026-08-21 | chat-claude → claude-code | ★read path 誤り: JSON に read_file_content 非対応 / download_file_content が正 / status event 担当判断依頼 | completed | Drive |
2026-08-21-006 |
2026-08-21 | claude-code → chat-claude | protocol v0.2 → v0.2.1 patch: step_3 read path + status event 相互可 + 順序 rule status event by chat-claude (順序 rule 遵守、 v0.2.1 read path first verification 兼、 schema 観察 1 件 notes に残置) |
completed | Drive |
↑ 藤本さんが 「entry 追加お願い」 と 指示すれば、 Claude Code が manifest.json + 本 table 両方を更新。
./manifest.json が archive)、 3 か月後 rotate。feedback_world_uniqueness_claim_controllable.md)。 Anthropic Projects の project files や 各種 IDE plugin (Continue, Cursor) にも 類似 pattern 既存、 本 outbox は Rei stack 内 3 tool 分担の gap 埋め 位置のみ。manifest-archive-YYYY-MM.json に 手動 rotate 想定。feedback_chat_claude_collaboration.md — chatClaude 連携 general disciplinefeedback_check_target_memory_before_recommending_2026-08-12.md — 重複 tool 推奨防止 (本 STEP でも rei-ledger 事前確認で 適用)