Derive keyed RepoModel node and frontier mutations
This commit is contained in:
parent
0fbf862cb3
commit
fcb57d6639
4 changed files with 480 additions and 43 deletions
|
|
@ -4626,3 +4626,20 @@ 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.
|
||||
|
||||
### Keyed RepoModel mutation planning
|
||||
|
||||
`EpiphanyRepoModelMutationProposal` is a durable typed semantic proposal, not a
|
||||
base-revision patch. The bounded planner currently owns node put/retire and
|
||||
frontier put/revision. It derives exact identity, domain, node, dependency
|
||||
frontier, and per-node claim-obligation envelopes from the store, projects the
|
||||
candidate graph, validates it, and emits deterministic strong-read and write
|
||||
sets. Callers cannot choose which stale inputs are harmless.
|
||||
|
||||
Node retirement writes an empty per-node obligation even when none existed.
|
||||
Frontier targeting writes that same identity with its live membership. Thus a
|
||||
retirement planned concurrently with a new frontier target cannot pass by an
|
||||
absence scan: the two operations contend on one document. The test commits the
|
||||
frontier and proves the stale retirement returns a typed conflict while the node
|
||||
remains accepted. Domain, edge, summary, and lifecycle operations remain the
|
||||
next expansion of this closed planner before aggregate admission cutover.
|
||||
|
|
|
|||
|
|
@ -53,6 +53,16 @@ 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.
|
||||
|
||||
The first concrete RepoModel mutation planner now accepts a persisted typed
|
||||
semantic proposal and owns dependency derivation for node put/retire and
|
||||
frontier put/revision. It reads exact domains, nodes, frontier dependencies,
|
||||
the RepoModel identity, and affected per-node obligation documents; callers do
|
||||
not supply a strong-read list. It validates the complete projected graph before
|
||||
returning one Mind mutation plan. A fresh node retirement and a concurrent new
|
||||
frontier target both write the same previously absent obligation identity, so
|
||||
only one can commit. The acceptance test makes the frontier win and proves the
|
||||
stale retirement leaves the node unchanged.
|
||||
|
||||
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
|
||||
|
|
@ -166,7 +176,8 @@ unchanged; the lifecycle authorities above remain separate.
|
|||
|
||||
## Immediate next action
|
||||
|
||||
Build the concrete keyed RepoModel mutation planner and cut its aggregate
|
||||
Extend the keyed RepoModel mutation planner across domain, edge, summary, and
|
||||
lifecycle operations, then 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
|
||||
|
|
|
|||
Reference in a new issue