Ghostlight/notes/fresh-workspace-handoff.md
Meta Vens 76999ded14 Record pass 6 in the ontology doc and handoff
Current mechanism describes facts, channels, knowledge, speech fan-out
over the declared reach, the two homes of a statement, and the
controller port; the Channel row and Precondition block follow the cut.
Steward folded passes 1 through 6 and the in-flight pass 7.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 23:51:42 +02:00

24 KiB
Raw Blame History

Ghostlight Fresh Workspace Handoff

Updated: 2026-09-04

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 records own durable findings.

Immediate Re-entry Instruction

  1. Work from F:\Projects\Ghostlight.
  2. Run git status --short, git log -1 --oneline, and npm run state:status.
  3. Read state/map.yaml (current_status first), this handoff, and docs/architecture/ghostlight-dungeon-mvp.md.
  4. Read notes/ghostlight-current-system-map.md only when exact pre-rebuild ownership or deletion evidence is needed.
  5. For deployment, SSH, Idunn, Odin, Heimdall, or host work, consult F:\Projects\gamecult-ops before acting.

If the operator asks only to rehydrate, report the current gate and stop. A persisted next action is not permission to begin edits.

Do not continue implementation automatically from a rehydrate-only request. Do not trust this file for the exact live HEAD. Git and live runtime witnesses own volatile identity.

Current authority

The operator stopped Run 115 and ordered a whole-machine authority rebuild. The adopted target is docs/architecture/ghostlight-dungeon-mvp.md.

One per-world WorldKernel owns one revisioned WorldState across Draft and Active phases. It alone derives authority, applies the typed 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.

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 decision opportunities are derived and revalidated by the kernel. The landed foundation.v0 loop binds opportunities to a revision; ontology v2 replaces that with scope-digest binding, so a proposal whose scope digest is unchanged commits at a later revision and one whose digest changed is rejected. Revision binding is current source, not the adopted rule.

Autonomous cognition has two explicit modes under disjoint controller scopes:

  • NarrativePersona receives narrative projection and replies only in prose. The runner records that prose as receipt-bound noncanonical source evidence; a total Interpreter emits every faithful typed proposal it can lower with an exact source capture and records exact translation gaps for the rest.
  • OperationalAgent receives a permissioned typed view and tools when operator-shaped cognition benefits from direct state work.
  • Mode changes representation, never authority. A decision opportunity cannot fall through between modes or act twice.

The Interpreter cannot fail semantically. Missing referents, ambiguous intent, missing affordances, and missing command primitives become translation gaps. Malformed capture spans, raw tool decode failure, and normal step exhaustion fall back to an exact whole-source gap rather than losing meaning. An infrastructure interruption discards partial captures and returns the immutable source pending for a fresh attempt. Source prose is not speech: only actually spoken words may become a typed speech proposal. Only the world kernel may accept or reject a proposed mutation. Translation gaps remain non-fictional inference/evaluation evidence outside WorldState; recording one cannot itself request elaboration or advance a world revision.

World validity and world liveness are two different claims, and both are true. Structural validity is sparse and causal: it never waits on a count, and no count, cover ratio, interestingness, diversity, or prose-quality judgment can admit ontology, reject a structurally valid mutation, or declare a world complete. Liveness is authored: the seed carries a WorldScaleIntent, the elaborators pursue its derived per-jurisdiction scale deficit as a work queue, and the cover budget is the deliberate choke that makes attention scarce.

Operator directive, 2026-09-04, preserve verbatim in intent: the 2,400-subject / 240-cell / 10% cover profile is deliberate design, not a load fixture. A world feels alive only when actors at every level pursue their own goals; that detail is generated first, then multiresolution simulation is choked so attention is scarce and selection is forced. The mvp doc's teardown-era sentence calling it "test data, not a production elaboration target" was wrong and is amended. Do not re-cut the scale target as fixture noise.

Landed and in flight

  • 4aebe17 adopts the target authority map.
  • 64f50de removes seven obsolete pipeline-smoke binaries and two live-fire orchestration scripts.
  • a144c33 establishes the two disjoint cognition modes in ghostlight-persona-projection.
  • d49b907 refines total Persona interpretation: source prose is receipt-bound noncanonical evidence, typed captures cite exact source spans, malformed spans, raw decode failure, and normal exhaustion receive whole-source gap fallback, infrastructure interruption returns the source pending, and only actual spoken words qualify for a speech proposal. This contract is live: the single ControllerRunner in crates/ghostlight-dungeon/src/world/controllers.rs carries it, and no legacy Persona runner survives in crates/.
  • An uncommitted broad world.rs prototype was rejected and deleted. It 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.
  • 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 at that commit (43 in world/*.rs at d87cad8) 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.
  • 6bb6869 makes the replacement mailbox/kernel architecture the crate and executable runtime identity and removes the legacy runtime owner.
  • 13d5136 unifies app sessions, world journal, and controller custody under one vendored CultCache implementation and removes the duplicate legacy dependency. The committed daemon tree contains no old Session Zero, legacy kernel, scheduler, assessor, verifier/reconciliation, or legacy-transition module path.
  • 9256648 exposes managed Ghostlight route presence, and 6a79cb0 republishes signed Warming for as long as the write lease is outstanding. With a0b16b9 these are the whole provider side of the Idunn cut.
  • Source subtraction is complete. Production cutover and runtime legacy purge are not.

Do not start another world acceptance run while Yggdrasil still serves the legacy executable and state layout.

Immutable failure evidence

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. Invocation d9254cd9b77946aebcf7a7fdae821402 is terminal. Preserve the root and receipts unchanged; its status.json is stale derived telemetry.

Runs 108 through 115 are evidence about load and failure properties of the old body. Those runs were load fixtures; the 2,400-subject / 240-cell profile they exercised is the authored design target, not fixture noise (see the operator directive under Current authority). The 1,200-actor fixture remains a load measure only.

Operational boundary

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. CultNet through CultLib 85f7024 owns generation-bound activation, separate lifecycle brakes, process-write leases, observed capabilities, explicit disagreement, and routed RUDP incarnations. Odin through pushed 65cf2b2 owns deterministic recipe and binding admission, exact source freezing, sealed releases, durable deployment transactions, and the narrow native actuator ports. Current uncommitted Odin integration moves Idunn-owned projection and multi-session RUDP transport into those live paths.

Ghostlight pushed 6a79cb0 with the provider side of this cut. Its recipe requests Idunn's runtime bundle, candidate bind, protected activation and provider credentials, process-write-lease path, and admitted state-root binding. The runtime validates Expected and activation, publishes signed Warming, waits for the exact process lease before opening state, keeps that lease current through bind, Active publication, and serving, republishes Warming until the lease arrives, and exposes its managed route presence. CodexConnector pushed ede3c30 with the corresponding stateless provider contract. Neither service has been admitted through rebuilt Idunn yet.

The adopted cut puts a visible recipe with a constrained launch declaration in each target repo; raw unit or container-runtime templates are rejected. The operator binding selects the workload driver, which alone lowers that launch declaration into process-manager configuration. Idunn operator bindings own the admitted ref, runner/container image and affordances, host paths, secrets, routing endpoint, rollout, retention, and desired replica placement. A sealed plan and release publish only Expected. A service owns its signed runtime presence and health claim. Odin alone authenticates that observation into Present and derives Ready from exact Expected/Present agreement; the three states and any disagreement remain distinct. For writable state, Idunn grants the process-bound lease before state opens. Stable route membership moves only after Ready. Deployment and continuity remain separate authorities; a deployment brake cannot suspend restart of the already-admitted body.

The current Nginx driver observes rendered configuration and nginx -T visibility, not live-worker adoption or packet delivery. A route is not acceptance-complete, and the incumbent may not be drained, until an independent data-plane probe binds the exact candidate runtime and membership digest.

Idunn is the GameCult-wide deployment, admission, continuity, and future swarm-scaling control plane. Systemd, container runtimes, and existing proxies remain its replaceable actuators; it does not reimplement generic scheduling, networking, container, service-mesh, cryptographic, or consensus machinery. Odin owns the discoverable semantic topology; services own their actual signed capability, health, capacity, and runtime claims.

Idunn starts and recovers from its own durable admitted state; Odin is its first managed daemon and the semantic graph root, not an Idunn bootstrap dependency. First-Odin admission still publishes Expected and requires signed Present and Ready; only its evidence transport is bootstrapped by querying that exact candidate directly. Idunn publishes desired topology before dependent promotion. During an Odin outage, it may authenticate private physical evidence to replace only the process incarnation inside an existing admitted generation and preserve the current route. It freezes graph-changing deployment, promotion, scaling, and provider selection; historical Ready cannot authorize the replacement process, and Idunn never emits Present or Ready.

Heimdall owns account identity. Eve owns command invocation and lowering. VoidBot owns Vault retrieval and evidence. Idunn owns deployment and daemon continuity. Odin owns discovery. None owns world mutation. External consumers, including Delvehold and Epiphany, own their state; Ghostlight may publish views and proposals but cannot commit on their behalf.

Next gate

Ontology v2 is the adopted vocabulary at docs/architecture/ghostlight-world-ontology.md (twelve components, twenty-nine operations under one WorldPatch, world-authored affordances with preconditions, effect slots, and kernel-entropy outcome bands, four derived CausalBoundary kinds, scope-digest binding, one AdmitPatch for seed and elaboration, eighteen proofs). ghostlight-transition-algebra.md and ghostlight-multiresolution-agency.md are teardown evidence. Plan step 6 is nine implementation passes; pass 1 is landed, passes 2 through 9 are not.

  1. Passes 1 through 6 are integrated; nothing beyond pass 6 is. codex/ghostlight-dungeon-mvp tip is cb6a126 (Soul) over b8ff182 (pass 6: Knowledge, Channel, Fact standing), 43e8042 (pass-5 doc and handoff), and 65ee2be (pass-5 follow-ups: overlap admission, revoke envelope, deploy coverage). Earlier passes: 5e53beb, e99af63, d2805fe, 0f21a49, dbe176d. The push followed a background crate test; git status -sb is the witness for whether origin has the tip.

    Pass 6 facts: schemas are world_state.knowledge.v1 / world_commit.knowledge.v1 and the controller work row is controller_work.v5; earlier stores refused. Precondition gained HasStanding, CanBroadcast, and CanReach beside Present, Reachable, Holds. WorldMailbox::create declares the genesis place commons (GENESIS_PLACE in world/mailbox.rs) and stands genesis subjects there, a product-path change that goes through derive_id. WorldSnapshot.events is deleted; operator_log is the story-feed projection. Rulings adopted in pass 6: audience means declared reach; controller privilege is broadcast-only; a statement has two homes, the fact and the committed AssertClaim as replay witness, and that is the rule rather than a leak; operator_log becomes owner-only by type once the controller port lands. Baseline at cb6a126: 179 test functions in world/*.rs, 218 crate source, plus one integration test (the focused world:: run reports 178 / 213; different counting rules, compare like with like). EvidenceRef::new is still #[cfg(test)]; nothing deserializes a WorldPatch before pass 10.

    In flight, not landed, both branched from cb6a126 with no commits yet at the time of writing:

    • hands/pass6-followups in the worktree F:\Projects\Ghostlight-pass6fu: audience equals declared reach with the controller no longer folded into the audience; a ControllerPort narrowing the mailbox access of ControllerRunner; a length-prefixed derive_id discriminator, so derived IDs change; comment fixes; a v4 controller-work refusal test; a resolver blind-spot comment plus a no-Told-writer test.
    • hands/pass7 in the worktree F:\Projects\Ghostlight-pass7: the clock and pressure flow, from imagination-pass7.md. The main tree also holds an uncommitted coordinator edit to docs/architecture/ghostlight-world-ontology.md (the Channel row and the Precondition block with HasStanding, CanBroadcast, CanReach); it lands with the follow-ups. Witness for any later pass: main-branch git log past cb6a126, and git worktree list for the two trees.

    Pipeline for passes 7 through 9: specs imagination-pass1.md through imagination-pass9.md and maps modeling-pass1.md through modeling-pass9.md are on disk in the session scratchpad C:\Users\Meta\AppData\Local\Temp\claude\F--Projects-Ghostlight\2fd50f5e-f7ba-4e5d-82bc-c7033e6074d2\scratchpad, not in state/; if that directory is gone, regenerate the specs from docs/architecture/ghostlight-world-ontology.md. Each pass: Hands in an isolation worktree whose first line is git reset --hard codex/ghostlight-dungeon-mvp, then Soul in that tree, then the coordinator integrates with git -C <wt> rebase -q codex/ghostlight-dungeon-mvp && git merge --ff-only <wt-branch> && cargo test -q -p ghostlight-dungeon --bin ghostlight-dungeon world:: && git push -q && git worktree remove --force <wt> && git branch -D <wt-branch>, then a steward pass and the doc proposal. Rulings that bind Hands: pass 7 keeps check_ledger single-site; pass 8 adds no HTTP AdmitPatch ingress (that is pass 10, consumer ingress, in the plan); pass 9 must not enable uuid/v5 and derives each CommandId via sha256 into Uuid::from_bytes like derive_id.

    Adopted design from the specs that changes steering: pass 7 gives the world its first clock, WorldState.now, advanced only by CommandBody::AdvanceTime from CallerId::System(SystemCapability::Clock) minted by the mailbox, and cuts the operation set from 30 to 27 (Commitment stake/fulfill/default/release and Pressure.create removed; Routine.period required). Pressure is stored by two writer families, ops and the tick, never derived at read. Ordering is a pure re-order by pressure then debt (last_opportunity_at), never a filter. Only UnelaboratedDestination and MissingStructure boundaries are derivable; PolityInCausalRange, IndividuationRequired, and Verification 13 are deferred. Pass 8 allows Active declarations only inside a patch whose PatchAnswer is derived and proven satisfied, adds SystemCapability::Elaborator { jurisdiction }, the in-process ElaborationRunner, and a derived elaborator tool catalog sharing one property emitter with pass 4.

    Queued doc edits, coordinator-owned: after pass 7, the four ghostlight-dungeon-mvp.md subject-readiness sentences (lines 65, 153, 211, 433) become Commitment.due plus derived debt, and the ontology doc operation count (lines 222, 276, 537) becomes 27; after pass 9, the ontology doc phrase "within about N/B ticks" becomes ceil(N/R) with R the rotation reserve; after every integration, the ontology doc "Current mechanism" section is rewritten from the steward proposal.

  2. First-generation world fixtures are banked and pushed, one per world, each with Ink, training sidecar, visual plan, lore grounding, and BFL manifest, reviewer-accepted except visual replay, which waits on a scene-set blockout:

    • Delvehold cistern-house-nine-breaker-test: codex/world-delvehold tip 9374fd0.
    • Aetheria navigator-berth-hearing-v0: codex/world-aetheria tip fe679f4 (fixture commit 8860c47); lore on AetheriaLore codex/ghostlight-worlds at ba5c2ce.
    • Zyphos eclipse-nursery-handover: codex/world-zyphos tip 055e6ee; lore on Zyphos codex/ghostlight-worlds at 2fef909.
    • Kalsa stormshield-handoff-v0: codex/world-kalsa tip 489c541; lore on Kalsa codex/ghostlight-worlds at c9f4c5c. The elaborator swarm is drained and handed off; this session does not own it. The stop flag C:\Users\Meta\.claude\worlds\logs\elab-stop.flag was set at 2026-09-04 20:10; the drain completed at 21:10 with 98 finished passes in logs\elab-done.csv, ledgers republished to the world branches, and the successor handoff finalized at C:\Users\Meta\.claude\worlds\README.md with final counts and the Charter idea. Resume or restart of the loop waits on operator adjustments and belongs to the successor, not to a Ghostlight kernel session. What remains owed and is deliberately deferred: integration of the slot/<world>/<title>/<stamp> branches into the lore vaults on codex/ghostlight-worlds and into codex/world-<world>. The idea index is the four world-branch ledger directories experiments/elaboration/<world>/ledger/ on codex/world-<world> for aetheria, delvehold, kalsa, zyphos. The substrate lessons (workers never run git; a supervisor outside the Codex sandbox commits and pushes each slot clone; full clones, not linked worktrees) stay in state/evidence.jsonl. Invoke-Worlds.ps1 and the first-generation loop are retired under C:\Users\Meta\.claude\worlds\retired; do not launch them. Clone paths: F:\Projects\Ghostlight-worlds\<world> and F:\Projects\<Lore>-worktrees\ghostlight-worlds (full clones despite the name). Image rendering is deferred: the BFL key drive E: is gone, workers emit imagegen-ready prompts only, and scripts/generate_bfl_images.py has no working default key path.

The deployment gate below is deferred behind both orders, not cancelled:

Review and subtract the uncommitted Idunn-owned Expected/activation/anchor/lease projection and bounded multi-session RUDP document transport. Repoint Odin off its vendored CultNet fork onto CultLib 85f7024 as Ghostlight did, add UDP route actuation plus an independently persisted post-reload data-plane observation through the existing proxy, and verify that focused body on Yggdrasil. Then implement the directly managed Rust Odin that alone authenticates runtime observation into Present and derives Ready, plus exact capability dependency closure frozen inside the existing deployment transaction. Do not add another scheduler, registry, inbox, or shared-file correlation owner.

Install rebuilt Idunn and admit Odin first through the same Expected/Present/Ready contract, using its exact candidate only to bootstrap the evidence transport. Then admit CodexConnector and Ghostlight. Same-generation continuity, route preservation, split-brain fencing, signed health, Odin-outage freeze, and negative legacy-authority checks must all agree before purge.

Deploy the Connector and then Ghostlight through that contract. Runtime restart, route continuity, signed health, exact receipts, exclusive world-v2 state, and negative checks must agree before deleting old services, releases, state, acceptance roots, and local run scaffolding.

Essential references

  • Target authority: docs/architecture/ghostlight-dungeon-mvp.md
  • Frozen teardown map: notes/ghostlight-current-system-map.md
  • Current implementation plan: notes/ghostlight-implementation-plan.md
  • Human-readable state: state/map.yaml
  • Distilled evidence: state/evidence.jsonl
  • Machine-managed state: state/ghostlight-state.cultcache.jsonl
  • Interface authority: docs/architecture/ghostlight-eve-native-interface.md
  • Gestalt authority: docs/architecture/ghostlight-multiresolution-agency.md
  • Operations: F:\Projects\gamecult-ops
  • Faculty-workflow lessons (Epiphany): F:\Projects\Epiphany otes aculty-workflow-lessons-2026-09-04.md

Re-entry warnings

  • A prompt, transcript, model receipt, scheduler item, browser surface, actor count, or derived simulation cover is not canonical world state.
  • Do not preserve an old writer through a compatibility path.
  • Do not let a translation gap become invented state or an Interpreter error.
  • Do not publish mutable world types, an ID issuer, a reducer entry point, or a generic journal handle for the convenience of tests or adapters.
  • Do not append a commit when reduction produces no canonical mutation.
  • Do not resume Run 115.
  • Do not invoke the current bounded Connector or Ghostlight redeploy helpers; they fail at the root/Idunn Git boundary and still embody duplicate target deployment authority.
  • Do not prove world-v2 purity with a short deny list. Archive the complete old state root or validate a complete allowed-path contract.
  • Keep this handoff compact. Move chronology to Git, evidence, or the frozen system map.
  • docs/architecture/ghostlight-world-consumer-api.md is drift: it names CampaignRegistry, WorldSeed, and publish_session_zero, none of which exist in the sealed kernel. Pending rewrite against ghostlight-world-ontology.md; do not design from it.
  • docs/architecture/ghostlight-transition-algebra.md is teardown evidence, not vocabulary authority.