From d95905752738981c612aea1278d3bace1d48aaf2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 2 Sep 2026 16:23:40 +0200 Subject: [PATCH] Retire stale source-cut steering --- notes/ghostlight-implementation-plan.md | 109 +++++++++++++++--------- state/map.yaml | 2 +- 2 files changed, 69 insertions(+), 42 deletions(-) diff --git a/notes/ghostlight-implementation-plan.md b/notes/ghostlight-implementation-plan.md index 49758be..a974a11 100644 --- a/notes/ghostlight-implementation-plan.md +++ b/notes/ghostlight-implementation-plan.md @@ -10,22 +10,21 @@ mode additional authority. ## Current mechanism -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. +Pushed commit `6bb6869` makes the sealed mailbox/kernel architecture the crate +and executable runtime identity. Pushed commit `13d5136` places app sessions, +the world journal, and controller custody behind the one vendored CultCache +implementation and removes the duplicate persistence dependency. The committed +daemon tree contains no pre-rebuild Session Zero, legacy kernel, scheduler, +assessor, verifier/reconciliation, or legacy-transition module path. -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. +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. ## Authority map @@ -161,27 +160,51 @@ 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. Expose, wire, and cut — active +### 4. Expose, wire, and cut — landed in source -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. +Commits `6bb6869` and `13d5136` expose the replacement facade as the crate and +executable 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. +Draft creation, approval, activation, player decisions, and autonomous +controller proposals now enter that boundary. The committed daemon tree no +longer contains the old Session Zero, legacy kernel, scheduler, verifier, +reconciliation, or recovery-writer routes. There is no dual-write or live +compatibility router in source. -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. +Resolution, elaboration, transcript/news projection, and external publication +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. Contract verification +### 5. Rebuild deployment authority 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. + +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. + +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 +allowed live layout. After route, health, process, write lease, restart, and +negative legacy checks agree, delete the old units, releases, state roots, +acceptance debris, gamecult-ops target deploy programs, and local run +scaffolding. + +### 6. Contract verification Required black-box proofs: @@ -223,15 +246,19 @@ processes, and tests added or removed. ## Build budget -- Package: `ghostlight-dungeon`, plus the pinned - `ghostlight-persona-projection` crate when its contract changes. -- Profile/target: Windows MSVC debug test/check, default features only. -- Focused checks: library checks, named module tests, the rebuild contract test, - and the daemon binary check after cutover. -- No workspace-wide, all-target, release, cross-platform, or clean build during - surgery. -- Existing `target` footprint is roughly 30 GiB; stop before 33 GiB and inspect - artifact fan-out before continuing. +- Build host: Yggdrasil through Idunn-configured pinned Linux containers. Do + not build the deployment body on Windows. +- Control plane: `odin-core` library tests plus `idunn-daemon` library/binary + checks; Linux x86_64 release artifacts are `idunn` and `idunn-provision` only. +- Targets: `codex-connector` library tests with and without `daemon`, then the + `codex-connector` release binary with `daemon`; `ghostlight-dungeon` focused + tests, then the `ghostlight-dungeon` release binary. Default target features + remain unchanged unless the target-owned recipe names an existing required + feature. +- Output roots, container digests, cache mounts, current footprints, retention, + and expected deltas are operator-binding inputs and must be measured on + Yggdrasil before the first build. No workspace-wide, all-target, clean, or + cross-platform build is admitted. ## Deferred research lanes diff --git a/state/map.yaml b/state/map.yaml index d71be3c..292c016 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -351,7 +351,7 @@ current_status: provider_acceptance_checkpoint: Exact pushed commit `139b8a6` completed Run 60 under `character-newsroom.v10` without world or per-wave replay. Its acceptance witness and terminal status bind the completed page and exact resume lineage. The independently dispatched blind reviewer, shown only the reader-facing fantasy newspaper, read it as a real left-populist civic broadsheet and did not immediately identify procedural generation, so the narrative reverse-Turing criterion passes. The review's substantive criticism is that the three stories feel like three rewrites of one briefing; accepted Run 60 remains immutable. The run used 96,902 prompt tokens and reported zero cache hits. Its delivered typeset artifact is `output/pdf/canopy-ledger-run-60-front-page.pdf`; frozen-source and visual verification remain accepted. Exact pushed `bc2ca39` then produced frozen-fact newsroom-only Run 61 Issues 13, 15, 16, 17, and 18 without world or wave model replay. Provider output proves `special_issue` convergence in Issues 13 and 15, independent `general_issue` beats in Issues 16 through 18, and assignment-selector cache hits. Blind review of Issues 13, 15, 16, and 17 passes both distinct recurring voices and issue-shape diversity, recognizing Ossan, Mera, Corin, and Lysa's biases plus modest cross-issue evolution. Run 62 exercised v12 without world or wave replay and failed only because two lead articles proposed invalid datelines; recurring reporter calls still recorded zero cache hits. Run 63 used exact pushed v13 `a52d57b`; Issues 17 and 18 completed before root stopped the final weekly recomposition, both repeated bylines again recorded zero cache hits, and live services remained unchanged. Preserve Runs 61 through 63 as stopped or completed immutable evidence. Copy defects remain later deadline-correction work rather than a reason to reopen accepted issue artifacts. implementation_checkpoint: Pushed commit `6bb6869` makes the replacement mailbox/kernel architecture the crate and executable runtime identity and removes the legacy runtime owner. Pushed commit `13d5136` unifies app sessions, world journal, and controller custody under the vendored CultCache implementation and deletes the duplicate legacy CultCache dependency. The committed daemon tree has no old Session Zero, legacy kernel, scheduler, assessor, verifier/reconciliation, or legacy-transition module path. This proves source subtraction, not deployment: the running Yggdrasil process and state remain legacy until the Idunn recipe/binding/routing rebuild performs the one-way cut. full_world_acceptance_checkpoint: Run 115 is terminal failed at `/var/lib/gamecult/ghostlight-dungeon/acceptance/full-world-delvehold-0a83034-115`, semantic revision 2, regions 2/8, waves 0/1. Resume2 ended on provider SSE timeout. Resume3 exhausted four reconciliation steps after `inst:kharad-road-keepers` referenced unknown `loc:kharad-rhythm-road`. Preserve the root, receipts, service invocation `d9254cd9b77946aebcf7a7fdae821402`, and failed patch sequence through 8964a92 as immutable evidence. Do not resume it. - scale_checkpoint: Runs 108 through 115 prove load and failure properties of the pre-rebuild body, not world completeness. The 1,200 and 2,400 actor figures are synthetic evaluation profiles only. Production expansion is sparse and causal; structural admission cannot require interest, diversity, name uniqueness, or an actor count. The private replacement authority suite now passes, but no further scale run is admitted until the executable starts and serves that owner through its mailbox, the old startup, Draft, player, autonomous, and recovery writers are structurally unable to mutate world state, and runtime restart and negative checks pass. + scale_checkpoint: Runs 108 through 115 prove load and failure properties of the pre-rebuild body, not world completeness. The 1,200 and 2,400 actor figures are synthetic evaluation profiles only. Production expansion is sparse and causal; structural admission cannot require interest, diversity, name uniqueness, or an actor count. The committed replacement authority suite passes, but no further scale run is admitted until Yggdrasil serves the exact world-v2 release through the rebuilt Idunn recipe/binding/router seam, the live state root satisfies the complete world-v2 allowed-path contract, restart preserves exact journal and digest identity, and no old service, state path, process grant, or route can regain write authority. presentation_checkpoint: The historical press-layout and seed-ownership split are complete. `notes/historical-newspaper-layout-grammar.md` remains the durable grammar. Manifest v2 at `output/tex/canopy-ledger-run-61-style-1847-flow-723.manifest.toml` independently binds `style_seed=1847`, `flow_seed=723`, frozen source SHA-256 `8f195140f52a40ba705d6a66987146a1500ae89668e5d82b01d1792eb3afb882`, and the final artifact `output/pdf/canopy-ledger-run-61-style-1847-flow-723.pdf`, SHA-256 `a457f4b1702a7a52480e42fce0039f0dbe677ff32958e98f1c412b346237190c`. An identical seed pair produces byte-identical TeX and PDF; changing only flow preserves the exact style section while materially changing a plausible layout, and changing only style preserves flow topology. Cut-first and cut-midstory templates pass visual inspection; the failed split-card template is deleted. Frozen copy/assets, actual PDF `/BM /Multiply`, and economic-layer advertising authority remain invariant. public_reference_checkpoint: The published public architecture is immutable pre-rebuild history, not current rebuild authority. Canonical Ghostlight commit `15ea0f0` owns five archived pages covering the former overview, authority, pipelines, 43 named production stages, and eight titled elaborators. Site commit `2035e799c2cf7470b2bfc70d5a878d5d3be5e90f` publishes a shared mobile Home/Blog/Docs masthead, visibly marks every Docs page as a teardown archive, and publishes the postmortem `The World Counter Lied` at `https://ghostlight.gamecult.org/Blog/the-world-counter-lied`; live HTTP inspection returned 200 for the postmortem and Docs index and found the masthead and archive banner. Do not use the archived pages to steer the whole-machine rebuild. `docs/architecture/ghostlight-dungeon-mvp.md` owns the adopted target; publish replacement architecture only after the replacement body is implemented and verified. The site repository owns public composition and deployment. next_action: Rebuild Idunn's deployment seam before releasing another brake. Replace hard-coded target policy, raw executable command records, root Git inspection, and gamecult-ops target programs with one typed target recipe and operator-binding contract. Put visible recipes and unit templates in Ghostlight and CodexConnector; configure exact refs, runner containers and affordances, host paths, secrets, routing, rollout, retention, and singleton placement in Idunn-owned bindings. Start each candidate on a private endpoint, require signed staged readiness, then let Idunn perform the process/write-admission handoff and stable-route swap. Deploy Connector and Ghostlight through that path, prove continuity and negative legacy authority, and only then purge old units, releases, state roots, acceptance debris, and local run scaffolding.