Commit e3f1054
fix(memory): decouple shared tree id from legacy RALPH_PROJECT_ID (Addendum 4)
Runtime cross-feed bug: codex hooks export RALPH_PROJECT_ID=p-<hash> (session
id), which compute_project_id honored as an override -> codex wrote/read
memory_tree/projects/p-<hash>/ while claude used <remote>_<repo>/ -> separate
trees, no cross-feed despite identical schema/recall.
Fix: the shared tree id is keyed ONLY by git-remote-hash; the dedicated env var
RALPH_MEMORY_PROJECT_ID is the sole override. The legacy RALPH_PROJECT_ID is no
longer honored for the tree (it stays free for codex's ledger/handoff subsystem).
Verified (with RALPH_PROJECT_ID=p-legacy exported): both agents resolve the same
git-remote id; codex-written node read by claude recall and vice versa, single
physical tree dir. 111 tests; pyright 0/0. Mirror fix applied in
codex-ralph-vault-loop.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent d86a731 commit e3f1054
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | | - | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
0 commit comments