`notes/fresh-workspace-handoff.md:253`; `notes/local-live-smoke.md:56`. The
code is flat under `crates/ghostlight/src/`. Dated cut documents and
postmortems keep their paths: they are history.
## Model page
One row per persistent kind phase 1 touches. No cell may be empty.
| Kind | Named by | Life over time | Who decides |
|---|---|---|---|
| World state and commit journal (`.cc`, redb) | `WorldId`; `revision`; digest chain | created Draft, approved, activated; one commit row per admitted command; earlier schemas refused, never migrated | the kernel, through `WorldMailbox`'s closed operation set; untouched in phase 1 |
| Play turn row (play-turn store `.cc`) | `turn_id` (UUID); per-turn `question_token` | `Running` → `AwaitingPlayer` ↔ `Running` → `Closed` (narration or `fault`); an unreadable row is retired to a sidecar and play starts fresh | `PlayTable` (`play.rs`); the card is a projection of `PlayTurnView`, which phase 1 extends with the fault |
| App session (`app-sessions-v2.cc`) | cookie hash; `heimdall_session_id` + `access_revision` | issued at sign-in; refreshed when access is near expiry; revoked on logout, custody change, invalid receipt, and (phase 1) on a refresh that can no longer succeed | `AppSessionOwner`; Heimdall decides the upstream session and rotates refresh tokens |
| Heimdall private command receipt (Heimdall Postgres) | `(app_slug, idempotency_key)` + request fingerprint | written once per executed command; replayed for an identical request; a different request under the key is refused | Heimdall; its fingerprint rule is a Heimdall follow-up, not a phase-1 cut |
| Idunn generation (transient unit, release dir) | `sha256-<release>` | staged → started → Warming → lease → Active → superseded or failed; the previous Active stays until a new one is Ready | Idunn; retention and failed-unit collection are Idunn's follow-up |
| v1 body (`ghostlight-dungeon.service`, `/srv/ghostlight`, v1 state) | unit name; paths | retired in fact 2026-09-23; unit still enabled | nobody today; phase 1 assigns its removal to a gamecult-ops cut, data by operator ruling |
| Bonsai lifecycle (Raven containers) | container `bonsai`; scripts under `/opt/gamecult/bonsai` | started by hand ("Start AI Chat"); restarted by the RSS watchdog; stopped by the idle reaper | gamecult-ops/Raven; Dungeon only reads the endpoint; availability policy is an operator question |
| Repository docs (README, AGENTS, live architecture pages, handoff) | path on `main` | rewritten to the live machine; pre-rebuild material leaves `main` by operator ruling | the Ghostlight repo; history in git, dated cut documents and postmortems |
### Where phase 2's verb sets plug in
Ruling `verse-verbs-two-render-paths` and invariant `every-event-renderable`
bound what the kernel may admit to two render paths. Today:
- The thirty operations (`ghostlight-world-ontology.md:451-478`) are
state transitions, not verbs. They stay the closed substrate.
- What an actor *does* is an affordance: a world-authored catalog entry whose
kind is `AffordanceKindName` (`patch.rs:247-254`), free canonical text that
"the kernel carries and branches on nowhere", plus the kernel-built `speak`
(`controllers.rs:94`). Admitted acts surface as `DecisionEvents` on the
commit.
So phase 2's two verb sets plug in at the affordance kind: a closed
vocabulary of kinds, each tagged with its one render path, with effects that
still compile to the thirty operations. Today the Play authority can declare
any affordance kind, so nothing on `main` enforces the invariant yet. Phase 1
neither widens nor narrows that, and its docs must not describe open-ended
verbs as the target.
## Rationale
- **"main dies" was a misreading.** The deploy that died carried no code
change, and it died on Odin's route, not on Ghostlight. So phase 1's deploy
work is mostly preflight and proof: redeploy `main` after the play fixes,
with Odin's route and IO pressure checked first. The Odin outage is
recorded against its owner.
- **Subtraction goes first and alone.** The pre-rebuild tree is about 60,000
lines that the live machine never reads. It is cut before the docs are
rewritten, so the rewrite describes only what is left. Parking it at a tag
rather than deleting it outright is the operator's call (question).
- **Faults belong to the card, not the log alone.** PA.f212 is an authority
gap: the turn store knew the fault and the projection dropped it. The fix
extends the projection; it adds no second record.
- **Retrying inference is safe.** A model call is a proposal the kernel
admits or refuses, so a transport fault before any reply is retryable. That
is the Ghostlight half of PA.f211. The Raven half (the watchdog's quiet
window) belongs to gamecult-ops, which also takes the scripts into version
control.
- **The refresh loop is a contract split.** Ghostlight assumes a stable key
makes a retry safe; Heimdall's fingerprint makes every retry new. Ghostlight
stops looping (a refresh that can no longer succeed revokes the local
session). Heimdall's fingerprint rule goes to Heimdall as a follow-up.
- **The bridge tests are the gate's blind spot.** They are the only
Dungeon tests that drive the real client, and nothing runs them. Fixing the
gate means a runner with both Rust and Node, which is Idunn's recipe and
runner surface: a follow-up, with each phase-1 Hands run doing them by hand.