This repository was archived by the owner on Jul 13, 2026. It is now read-only.
Repository navigation
Commit cb53011
fix(pi/workspaces): CAS workspace-fingerprint parity + ctx_search source attribution
Two Pi-only parity gaps from a workspaces council audit:
- cachedPiRowMatchesSnapshot compared the session's own projectMemoryEpoch but
NOT the workspace fingerprint, unlike OpenCode's cachedRowMatchesState. A
FOREIGN workspace member's epoch bump changes the fingerprint without touching
this session's epoch, so a sibling-materialized row under different membership
could pass the CAS and be adopted with the wrong union baseline. Added the
fingerprint compare (both sides already carry it in markers).
- Pi ctx_search memory line omitted the source= attribution OpenCode emits, so a
foreign member's memory wasn't labeled with its origin project.
Verified mustMaterializePi already checks the fingerprint symmetrically (so a
membership change is a correct HARD fold, not a soft-refresh race — the council's
HIGH cortexkit#2 is not exploitable). Documented the two post-ship edge cases (v22 rekey
fan-out, epoch-0 fingerprint collision) as A45/A46. Pi 441/0.
Co-authored-by: Alfonso [Magic Context] <[email protected]>1 parent e44c059 commit cb53011
3 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
681 | 681 | | |
682 | 682 | | |
683 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
684 | 703 | | |
685 | 704 | | |
686 | 705 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1839 | 1839 | | |
1840 | 1840 | | |
1841 | 1841 | | |
1842 | | - | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
1843 | 1851 | | |
1844 | 1852 | | |
1845 | 1853 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
84 | 87 | | |
85 | | - | |
| 88 | + | |
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| |||
0 commit comments