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

@ -32,9 +32,9 @@ ontology reducer, and commits an atomic CultCache revision. Session Zero,
autonomous turns, player commands, imports, and administrative changes must
enter through the same `CommandEnvelope` path.
That owner must be sealed before the ontology widens. The public boundary is
create/open, immutable snapshot, submit, and typed receipts. Mutable aggregate
state, canonical ID issuance, the reducer, and the CultCache journal writer are
The replacement owner is sealed. Its runtime boundary remains create/open,
immutable snapshot, submit, and typed receipts. Mutable aggregate state,
canonical ID issuance, the reducer, and the CultCache journal writer stay
private to the kernel. Controller assignment and affordance grants are
canonical; current executability and exact revision-bound decision
opportunities are derived and revalidated by the kernel.
@ -83,25 +83,27 @@ load or evaluation evidence; none admits ontology or declares a world complete.
exposed mutable state and ID issuance, admitted translation-gap evidence into
canonical types, allowed no-op commits, and left affordance and opportunity
authority undefined. None of it is current authority.
- `b53251f` lands the sealed private `foundation.v0` replacement owner. Exact
create/open, immutable snapshot, command submit, and typed receipts remain
crate-private with mutable aggregate state, ID issuance, authentication
construction, reduction, and the CultCache journal. Nine focused tests prove
exact idempotent create, immutable genesis, one live owner, sealed auth
evidence, replay and digests, persisted rejection and no-op non-commit,
store-path identity revocation, and post-durable lost-ack poison followed by
explicit reopen and exact retry.
- The legacy exported `kernel::WorldKernel` remains the live runtime path. The
next implementation adds the minimal Draft-to-Active/player/autonomous
reducer plus mailbox, controller, affordance, and opportunity authority
behind the private replacement owner.
- Legacy `WorldKernel`, `SessionZeroKernel`, aggregate Campaign/component state,
alternate ingresses, semantic verifier/reconciliation stages, model-owned
scheduling, and checkpoint recovery remain deletion targets.
- `12ee9f4` deletes the dead legacy Elaboration and Mutation kernel ingresses
and their component-write helpers: 686 lines removed without a replacement
compatibility path.
- `66ed2ec` completes the sealed private `foundation.v0` authority loop. Draft
creation, approval, activation, canonical controller assignments, affordance
grants, revision-bound opportunities, and one shared human/autonomous action
reducer all commit through one aggregate and journal. One mailbox serializes
submission and snapshot access. Eighteen focused tests prove lifecycle,
controller and opportunity fail-closed behavior, restart, idempotency,
one-owner, authentication, non-commit, mailbox cancellation, lost replies,
immutable genesis, and journal forgery rejection.
- The replacement remains crate-private. The legacy exported
`kernel::WorldKernel`, executable startup, Session Zero, player turn,
autonomous scheduling, Campaign/component, verifier/reconciliation, and
checkpoint paths remain live deletion targets. The next move exposes and
wires only the replacement runtime facade and mailbox, then cuts those owners
without dual-write.
Do not deploy the rebuild branch or start another acceptance run while the
replacement owner lacks its lifecycle, controller-scope, affordance,
opportunity, privacy, restart, and negative proofs.
legacy executable still owns startup, Draft, player, autonomous, or recovery
mutation paths.
## Immutable failure evidence
@ -131,20 +133,18 @@ and proposals but cannot commit on their behalf.
## Next gate
Add a minimal private reducer behind the sealed `foundation.v0` owner for Draft
creation, approval, activation, one player action, and one autonomous action.
Give it one mailbox, canonical controller assignments and affordance grants,
and kernel-derived revision-bound decision opportunities. A proposal must fail
closed when its revision, controller, authority scope, affordance, or current
opportunity differs. Translation gaps and scheduler output retain no
world-write path.
Expose the sealed replacement as the crate and executable runtime identity,
with `WorldMailbox` as the only live world command boundary. Bind authenticated
runtime identity to its sealed caller evidence, make startup create or open one
owner and spawn one mailbox, then route Draft creation, approval, activation,
player decisions, and autonomous controller proposals through the existing
command path.
The vertical-slice suite must preserve the landed one-writer, authentication,
idempotency, immutable-genesis, replay/digest, non-commit, path-revocation, and
lost-ack invariants while proving lifecycle, controller-scope, affordance,
opportunity, privacy, and restart behavior. Cut obsolete writers as Session
Zero, resolution, elaboration, persistence, and projection move onto that
owner. No live acceptance run precedes this suite.
Cut each old startup, Session Zero, player, autonomous, Campaign/component, and
recovery writer before enabling its replacement path. Do not dual-write, mirror
canonical state, or add a compatibility router. Runtime restart and negative
checks must prove the old paths cannot mutate or repair the replacement owner
before any live acceptance run.
## Essential references

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