Advance rebuild cutover state

This commit is contained in:
Meta Vens 2026-09-01 19:50:52 +02:00
commit f9f019b970
5 changed files with 101 additions and 83 deletions

View file

@ -10,21 +10,22 @@ mode additional authority.
## Current mechanism
The repository still contains the pre-rebuild runtime: separate Session Zero
and campaign kernels, aggregate Campaign and component representations,
multiple mutation ingresses, semantic verifier and reconciliation stages,
model-owned scheduling decisions, and persisted recovery/checkpoint paths.
These mechanisms are teardown evidence, not foundations that must survive.
The executable still starts the pre-rebuild runtime: separate Session Zero and
campaign owners, aggregate Campaign and component representations, semantic
verifier and reconciliation stages, model-owned scheduling decisions, and
persisted recovery/checkpoint paths. Commit `12ee9f4` has removed the dead
Elaboration and Mutation ingresses and their component-write helpers; remaining
legacy paths are live deletion targets, not foundations that must survive.
The target map is adopted. The first subtraction removed seven pipeline-smoke
binaries and two live-fire scripts. The projection crate now exposes explicit
`NarrativePersona` and `OperationalAgent` modes plus a total Interpreter report.
An uncommitted broad `world.rs` prototype was rejected and deleted before it
became authority. It exposed mutable aggregate state and ID issuance, placed
translation-gap evidence inside canonical world types, permitted empty commits,
and defined controllers without owning executable affordances or exact decision
opportunities. The sealed aggregate boundary is landed. The active bounded move
is now the minimal private reducer, not a public ontology inventory.
The projection crate exposes explicit `NarrativePersona` and `OperationalAgent`
modes plus a total Interpreter report. Commit `66ed2ec` completes the sealed
private `foundation.v0` authority loop: Draft creation, approval, activation,
canonical controller assignments and affordance grants, revision-bound
opportunities, one shared human/autonomous decision reducer, one mailbox, and
atomic replay. Eighteen focused world tests pass. That module is not yet the
crate or executable runtime identity. The active move is to expose and wire its
mailbox boundary, then cut each old startup, Draft, player, autonomous, and
recovery owner without dual-write.
## Authority map
@ -123,27 +124,30 @@ and CultCache writes unreachable from outside the owning module. Prove the
visibility boundary and the one-writer transaction seam before widening the
state vocabulary.
### 2. Add the minimal private reducer
### 2. Add the minimal private reducer — landed
Behind that boundary, implement only the state and command vocabulary required
for Draft creation, approval, activation, one actor action, and one autonomous
action. The aggregate owns controller assignments and affordance grants; it
derives exact current executability and revision-bound opportunities. Allocate
IDs only after a complete candidate validates, reject empty reductions without
a commit, and persist accepted state plus commit atomically with expected
revision and idempotency. Add places, relations, resources, external ownership,
and other ontology components only when the vertical slice reaches their typed
causal boundary.
`66ed2ec` implements the state and command vocabulary required for Draft
creation, approval, activation, one human action, and one autonomous action.
The aggregate owns controller assignments and affordance grants and derives
exact revision-bound opportunities. IDs issue only after complete seed
validation; rejected and empty reductions do not commit. Places, relations,
resources, external ownership, and other ontology components wait for a live
typed causal boundary.
### 3. Exercise one vertical slice
### 3. Prove the private authority slice — landed
Route Draft creation and activation, one player action, and one autonomous
action through the aggregate. Derive a subject-private projection and one
decision opportunity. Exercise both cognition modes without allowing either
to write directly.
Eighteen focused tests exercise Draft creation, approval, activation, one human
decision, one NarrativePersona-controlled decision, and one
OperationalAgent-controlled decision through the same aggregate action command.
They cover exact controller scope and affordance matching, revision-bound
opportunity rejection, restart, immutable genesis, idempotency, serialized
mailbox ownership, cancellation, lost reply semantics, and forged-history
rejection. Controller mode changes representation only; it does not create a
second reducer path.
For `NarrativePersona`, the Projector emits prose context, the Persona returns
prose only, and the runner first persists an immutable receipt-bound Persona
Live `NarrativePersona` integration still requires the Projector to emit prose
context, the Persona to return prose only, and the runner first to persist an
immutable receipt-bound Persona
turn. The Interpreter returns a completed report containing that exact
noncanonical source prose, zero or more typed proposals, and zero or more
translation gaps. Spoken words require a typed speech proposal. Invalid capture
@ -152,18 +156,30 @@ transport or dispatch fault before explicit finalization discards partial
captures and leaves the immutable source pending for a fresh attempt; it does
not become semantic interpretation failure.
For `OperationalAgent`, the controller receives only its permissioned typed
Live `OperationalAgent` integration receives only its permissioned typed
view and tools. Its proposals enter the same command path as narrative
proposals. It does not bypass projection privacy, authority derivation, or the
reducer.
### 4. Migrate and cut
### 4. Expose, wire, and cut — active
Move Session Zero, turn handling, resolution, elaboration, scheduling,
persistence, transcript/news projection, and external publication onto the
vertical slice. At each move, delete or neuter the old writer first. Retain
model transport, Vault retrieval, Heimdall identity, Eve/CultMesh projection,
Idunn health, and external adapters only where their ownership remains clean.
Expose the replacement facade as the crate's runtime identity while keeping
mutable state, ID issuance, reduction, journal access, and authenticated-caller
construction sealed. Startup creates or opens one replacement owner and spawns
one mailbox; runtime consumers receive only the mailbox-facing command and
snapshot surface.
Route Draft creation, approval, activation, player decisions, and autonomous
controller proposals through that boundary. Delete or neuter each old
Session Zero, legacy kernel, Campaign/component, scheduler, verifier,
reconciliation, and recovery writer before enabling its replacement route. Do
not dual-write, mirror canonical state, or add a compatibility router.
Then move resolution, elaboration, transcript/news projection, and external
publication onto typed commands and derived views as their causal boundaries
are reached. Retain model transport, Vault retrieval, Heimdall identity,
Eve/CultMesh projection, Idunn health, and external adapters only where their
ownership remains clean.
### 5. Contract verification