Record landed Idunn authority foundation

This commit is contained in:
Meta Vens 2026-09-02 21:15:38 +02:00
commit 8d42a959ec
4 changed files with 67 additions and 71 deletions

View file

@ -1,6 +1,6 @@
# Ghostlight Fresh Workspace Handoff
Updated: 2026-09-01
Updated: 2026-09-02
This is the compact re-entry packet. It carries current authority and the next
gate. Git owns chronology, the system map owns teardown detail, and evidence
@ -129,22 +129,23 @@ body. The 1,200 and 2,400 actor profiles are synthetic fixtures only.
Yggdrasil still serves legacy Ghostlight release `a4080d4` from an enabled
`Restart=always` unit with health v1, campaign/Session Zero state, and no
`world.cc` or `app-sessions-v2.cc` witness. The Connector is also still on its
legacy enabled body. Idunn r21 is live, but its current deploy seam is not safe
to invoke: target policy is repeated across compiled Rust, raw shell command
records, a privileged dispatcher, and large gamecult-ops target programs. Its
root-side source-floor validator cannot inspect correctly Idunn-owned Git
mirrors, and the current fixed-port scripts stop the incumbent before a fresh
candidate is green.
legacy enabled body. CultNet `87d0b0f` now owns the shared runtime-activation,
signed presence-health, and process-write-lease contracts. Odin `cebe425` owns
deterministic recipe and operator-binding parsing, compiled plans, sealed
releases, and sanitized Expected projections. Idunn's Git, runner, workload,
lease/fencing, route, CultCache/CultMesh, and main-loop actuation remain absent;
the legacy deployment seam is still unsafe to invoke.
The adopted cut puts a visible recipe and unit template in each target repo.
Idunn operator bindings own the admitted ref, runner/container image and
affordances, host paths, secrets, routing endpoint, rollout, retention, and
desired replica placement. Idunn freezes and materializes source as its own UID,
executes the configured build/test recipe, seals the candidate, waits for signed
staged readiness on a private endpoint, then alone revokes the incumbent
process/write grant, admits the candidate, moves the stable route, and drains
the old generation. Deployment and continuity remain separate authorities; a
deployment brake cannot suspend restart of the already-admitted body.
desired replica placement. A sealed plan and release publish only Expected.
Idunn observes the exact runtime activation; the service signs Present health.
For writable state, Idunn grants the process-bound lease before state opens.
Odin correlates Expected, activation, and Present into Ready, and stable route
membership moves only after Ready. Deployment and continuity remain separate
authorities; a deployment brake cannot suspend restart of the already-admitted
body.
Heimdall owns account identity. Eve owns command invocation and lowering.
VoidBot owns Vault retrieval and evidence. Idunn owns deployment and daemon
@ -154,14 +155,13 @@ and proposals but cannot commit on their behalf.
## Next gate
Rebuild the Idunn deployment seam before releasing another target brake. Define
one typed target recipe plus operator binding, remove raw executable command
authority and root Git inspection, and move Ghostlight and Connector build,
test, package, unit, health, and state semantics into visible target-owned
recipes. Keep fleet affordances and exact branch admission in Idunn-owned
configuration. Introduce a stable router data plane whose membership only
Idunn can change; candidate health must be green before the process/write lease
and route move.
Integrate the landed recipe, binding, plan, release, Expected, activation,
presence, and write-lease contracts into Idunn's main control plane and narrow
Git, runner, workload, lease/fencing, route, CultCache, and CultMesh drivers.
Keep target semantics in visible Ghostlight and Connector recipes and fleet
affordances in Idunn-owned bindings. Require Expected plus Idunn-observed
activation plus service-signed Present; grant the process lease before writable
state opens; require Odin-correlated Ready before stable route membership moves.
Deploy the Connector and then Ghostlight through that contract. Runtime restart,
route continuity, signed health, exact receipts, exclusive world-v2 state, and

View file

@ -13,16 +13,15 @@ Yggdrasil systemd body, Idunn continuity target, and Odin discovery crossing
are the live machine; the older validated artifact seams remain regression
evidence only.
## Implemented sealed replacement boundary (Phase 2)
## Landed replacement source owner
`crates/ghostlight-dungeon/src/world/` now contains the private
`ghostlight.world_state.foundation.v0` owner. It is an implemented and tested
foundation, not yet the hosted runtime: `lib.rs` still keeps `world` private and
exports the legacy `kernel::WorldKernel`, while `main.rs` still opens
`CampaignStore` and runs the legacy Session Zero and campaign paths. Source
inspection finds no production caller of the replacement types outside the
private module. The two bodies currently coexist without a state bridge; the
hosted process still belongs to the legacy body.
`crates/ghostlight-dungeon/src/world/` contains the sealed
`ghostlight.world_state.foundation.v0` owner. Commits `6bb6869` and `13d5136`
make that mailbox/kernel path the crate and executable runtime identity, remove
the legacy Session Zero/kernel/scheduler/verifier source body, and place app
sessions, world journal, and controller custody behind one CultCache
implementation. Production remains on the separately recorded legacy release;
source cutover is not deployment evidence.
### Replacement authority map
@ -63,10 +62,9 @@ hosted process still belongs to the legacy body.
controller implementations, model output, snapshots, derived opportunities,
replay, and consumers cannot mutate canonical state. The legacy
`SessionZeroKernel`, public `kernel::WorldKernel`, `CampaignStore` callers,
assessor/reconciliation chains, schedulers, and reload repair paths have no
admission path into the replacement journal. They remain live authorities in
the hosted legacy body and therefore remain on the deletion line rather than
becoming compatibility writers.
assessor/reconciliation chains, schedulers, and reload repair paths are
absent from the committed replacement source and have no admission path into
its journal.
- **Shared paths:** after create or open constructs the owner, `WorldMailbox`
consumes it and offers only `Submit` and `Snapshot`. Human controllers,
Narrative Personas, and operational agents all exercise the same
@ -74,16 +72,12 @@ hosted process still belongs to the legacy body.
controller-specific mutation API. Draft commands use that same submit
primitive. Command ID replay is checked before revision so an exact retry can
recover a known durable result, while reuse with different content fails.
Runtime identity construction and controller execution are not wired yet.
- **Cut line:** make app-session identity the only production constructor of
`AuthenticatedCaller`, expose the mailbox as the runtime's world handle, and
route creation, Draft activation, player action, Narrative Persona action,
and operational-agent action through it. As each complete ingress moves, cut
its legacy handler and store writer. Completion requires removal of the
public legacy kernel, Session Zero publication split, direct `CampaignStore`
mutation surfaces, scheduler/reconciliation writers, reload repairs, and
their obsolete modules and binaries; no dual-write or compatibility mode is
admitted.
Runtime identity and human, Narrative Persona, and OperationalAgent execution
are wired to that mailbox boundary in the committed source.
- **Cut line:** source subtraction is complete. Production cutover now belongs
to Idunn's typed deployment path: admit the replacement release and exclusive
world-v2 state without a dual-write or compatibility bridge, prove restart
and negative legacy authority, then remove the old hosted body and state.
- **Verification layer:** the reducer checks exact authentication, world,
revision, lifecycle, approver, controller, opportunity, scope, affordance,
and action bindings before proposing an effect. `apply_effect` rechecks the

View file

@ -19,12 +19,13 @@ assessor, verifier/reconciliation, or legacy-transition module path.
Production has not crossed that source boundary. Yggdrasil still runs legacy
release `a4080d4` under an enabled `Restart=always` unit and a legacy state
root. The current Idunn path repeats deployment authority across compiled
target policy, persisted raw shell commands, a privileged dispatcher, and large
target-specific gamecult-ops programs; it also validates Idunn-owned Git as
root and stops the incumbent before the candidate is ready. The active move is
therefore the Idunn recipe/binding/router rebuild and one-way live cutover, not
more Ghostlight runtime wiring.
root. CultNet `87d0b0f` lands shared runtime activation, signed presence-health,
and process-write-lease contracts; Odin `cebe425` lands deterministic recipe and
operator-binding parsing, compiled plans, sealed releases, and sanitized
Expected projections. Git materialization, runners, workload and route drivers,
lease/fencing, CultCache/CultMesh control-plane state, and Idunn main integration
remain absent. The active move is that actuation integration and one-way live
cutover, not more Ghostlight runtime wiring.
## Authority map
@ -179,23 +180,23 @@ remain future typed consumers at their causal boundaries. Model transport,
Vault retrieval, Heimdall identity, Eve/CultMesh projection, Idunn health, and
external adapters survive only where their ownership remains clean.
### 5. Rebuild deployment authority and cut production — active
### 5. Integrate deployment actuation and cut production — active
Each target repository publishes one strict visible recipe and unit template
covering build, test, package, artifact, health, and state semantics. Idunn
operator bindings own exact source admission, runner/container selection and
affordances, host paths, identities, secrets, capabilities, resources, private
candidate endpoints, stable routing, rollout, retention, and desired replica
placement. Typed target/action/source/recipe/deployment records replace raw
executable command state; source work runs as the Idunn identity and the narrow
privileged boundary consumes only sealed material.
The deterministic foundation is landed: target recipes and Idunn operator
bindings compile into private plans and sealed releases, and only a sanitized
Expected incarnation may leave that control plane. Shared CultNet contracts own
runtime activation, service-signed Present health, and process-bound write
leases. Idunn main integration and the Git, runner, workload, lease/fencing,
route, CultCache, and CultMesh drivers are not implemented yet.
Start each candidate on a private endpoint while the incumbent retains the
stable route. Signed staged readiness must pass before Idunn revokes the old
process and write lease, grants the candidate, atomically moves router
membership, and drains the incumbent. The deployment brake gates body changes;
same-release continuity remains separately owned and may be stopped only by an
explicit lifecycle brake.
The integrated path must publish Expected from the sealed plan and release,
record Idunn's observation of the exact runtime activation, and require the
service's signed Present health. A stateful candidate receives its process-bound
write lease before it opens writable state. Odin alone correlates Expected,
activation, and Present into Ready. Only after Ready may Idunn change stable
route membership and drain the incumbent. The deployment brake gates body
changes; same-release continuity remains separately owned and may be stopped
only by an explicit lifecycle brake.
Deploy CodexConnector first, then Ghostlight. Ghostlight's live cut archives the
entire legacy state root, creates a clean world-v2 root, and validates a complete