Add keyed RepoModel document foundation
This commit is contained in:
parent
a786273d77
commit
0fbf862cb3
7 changed files with 596 additions and 38 deletions
|
|
@ -4600,3 +4600,29 @@ than translated. It existed to repair receipt-shaped routing authority;
|
|||
unresolved typed state must own routing instead. Its commands and exported
|
||||
writer are gone. The remaining frontier execution inspector/amendment tool is
|
||||
named `epiphany-frontier-execution`, matching its actual authority.
|
||||
|
||||
### Keyed RepoModel foundation
|
||||
|
||||
RepoModel identity, domains, nodes, edges, summaries, frontier items, lifecycle
|
||||
receipts, and per-node unresolved-claim obligations are distinct Mind document
|
||||
identities. `EpiphanyRepoModelView` deterministically sorts and validates those
|
||||
documents and is included in `EpiphanyMindView`; it has a projection digest but
|
||||
no global revision or model hash. It never reads or translates the aggregate.
|
||||
|
||||
Each semantic document owns canonical named MessagePack behind a typed
|
||||
constructor and decoder. Directly nesting the existing optional-rich graph
|
||||
structs exposed compact MessagePack field shifting when a skipped middle field
|
||||
was absent; canonical named payloads make that corruption structurally
|
||||
unavailable while keeping the `.cc` contract typed.
|
||||
|
||||
Per-node claim obligations are the narrow concurrency index for the phantom
|
||||
invariant: unresolved frontier targeting and node retirement must contend on
|
||||
the same semantic node identity. The view validates both directions so neither
|
||||
a missing membership nor a dead frontier can masquerade as a live obligation.
|
||||
|
||||
Strong reads in `commit_mind_mutation` are logical fences, not compulsory
|
||||
writes. CultCache's physical CAS requires expected envelopes in its replacement
|
||||
batch, so read-only dependencies are re-emitted byte-identically; the Mind
|
||||
receipt still lists only actual writes. Tests prove a disjoint insert can depend
|
||||
on an unchanged document and that a stale dependency refuses the insert with no
|
||||
partial state.
|
||||
|
|
|
|||
|
|
@ -41,6 +41,18 @@ so operator decisions do not counterfeit model reasoning. The aggregate-only
|
|||
Modeling acceptance repair writer and commands are deleted; frontier execution
|
||||
inspection/amendment remains under a truthfully named binary.
|
||||
|
||||
The keyed RepoModel foundation now gives identity, domain, node, edge, summary,
|
||||
frontier, lifecycle receipt, and per-node unresolved-claim obligations separate
|
||||
CultCache identities. Its deterministic validated view is part of
|
||||
`EpiphanyMindView` and has no revision/hash head. Documents store canonical
|
||||
named MessagePack behind typed constructors because direct compact nesting let
|
||||
skipped middle fields shift into the wrong schema positions. Mind CAS strong
|
||||
reads are now genuine read fences: CultCache receives byte-identical expected
|
||||
envelopes as required by its physical primitive, while the commit receipt lists
|
||||
only semantic writes. A stale read-only dependency blocks the whole mutation
|
||||
without partial insertion. Full core remains 690 passing with one ignored
|
||||
cross-process helper.
|
||||
|
||||
Operational correction: the original c011 resident and Heartbeat containers
|
||||
are not alive; both exited 255 on 2026-08-11. Their named volumes are quiescent
|
||||
and remain untouched. Historical c011 zero-zombie and organ-circuit evidence is
|
||||
|
|
@ -154,7 +166,8 @@ unchanged; the lifecycle authorities above remain separate.
|
|||
|
||||
## Immediate next action
|
||||
|
||||
Migrate concrete focus/mode, subgoal/invariant, evidence/observation,
|
||||
Build the concrete keyed RepoModel mutation planner and cut its aggregate
|
||||
admission writers. In parallel sequence, migrate focus/mode, subgoal/invariant, evidence/observation,
|
||||
checkpoint, and planning admission owners from `EpiphanyThreadStateEntry` to
|
||||
their keyed documents. Delete the aggregate transaction, reader, and schema
|
||||
before enabling old writable-store refusal; do not translate or dual-read it.
|
||||
|
|
|
|||
Reference in a new issue