diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 39ec47b..20cfcb1 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -216,10 +216,11 @@ consumers enter through `POST /cultnet/world-patch` under `PatchGround::Consumer`; the live contract is `docs/architecture/ghostlight-world-consumer-api.md`. The seed lane admits a Draft-only owner patch from a local Vault and pursues the derived scale -deficit. Inference runs through one `InferencePort::prepare` with two -transports: the CodexConnector and, per `claude`-prefixed lane model, the -Node sidecar on the Claude Agent SDK. The Rust decoder is the one validator -on both; the sidecar hands arguments through unvalidated. The sidecar and +deficit. Inference runs through one `InferencePort::prepare`, routed by model name +to three transports: the CodexConnector (not an option for Dungeon, operator +2026-09-23), the Node sidecar on the Claude Agent SDK for `claude`-prefixed +models, and the local OpenAI-compatible port (see Constraints). The Rust +decoder is the one validator on each; the sidecar hands arguments through unvalidated. The sidecar and its receipt shape are a named stopgap, deleted whole when a Messages-API port has budget. The SDK transport was proven on the road before the play agent's Cut 1 (`d69e9d4`) deleted the tick driver those runs exercised: seeded runs on @@ -257,17 +258,30 @@ unplaced; retire it or place its subjects. `POST /v1/chat/completions` to a loopback endpoint, no credential, inert tool calls. It opens only when `GHOSTLIGHT_LOCAL_ENDPOINT` is set (`runtime.rs`), and claims models by the `GHOSTLIGHT_LOCAL_MODEL_PREFIX` - prefix, default `local/`. No model has been run behind it yet; the - playtest's local lane (Bonsai 2 on Raven's machine) is unexercised. + prefix, default `local/`. No model has been run behind it yet. +- Topology (operator ruling 2026-09-23, "put each of the organs on the right + machine"): the playtest's Dungeon runs on Yggdrasil beside Heimdall, + deployed by Idunn through the `ghostlight` binding (Dungeon unit only) at + ref `codex/ghostlight-dungeon-mvp`. Bonsai 2 stays on Raven's GPU and is + reached at Yggdrasil loopback `127.0.0.1:18080` through a restricted-key + reverse SSH tunnel over the WireGuard mesh, kept up by a Raven scheduled + task. Local inference and Heimdall's private plane stay loopback-only. + The Raven-hosted Dungeon (task `GhostlightDungeon`, `C:\Meta\ghostlight`, + `deployment/raven/start-ghostlight-raven.ps1`) is a detour being retired. + `gamecult-ops` owns the actuator, runbook and link; its + `scripts/deploy-ghostlight-yggdrasil.sh` and + `runbooks/ghostlight-dungeon-yggdrasil.md` are still bound to + CodexConnector, and cutting that binding for the local link is the next + action. +- CodexConnector is not an option for Dungeon inference (operator, + 2026-09-23). It is a deliberately isolated Codex fork so that Epiphany + stops compiling Codex; nothing goes into it, and its `main` stays at + `6519289`. Codex remains lapsed: no subscription, no API budget; the + smoke substrate at `F:\Projects\Ghostlight-smoke` stays. - The operator's Claude subscription, inherited by the SDK sidecar from the - ambient Claude Code login, is the only provider proven live, and stays as - the cloud fallback until the local lane has carried the playtest. - Deleting the sidecar is decided after the gate. Codex remains lapsed: - no Codex subscription and no API budget; the Codex connector is stopped; - the smoke substrate at `F:\Projects\Ghostlight-smoke` stays. -- CodexConnector is a deliberately isolated Codex fork so that Epiphany - stops compiling Codex; nothing goes into it. Its `main` at `6519289` is - the line Ghostlight runs. + ambient Claude Code login on the workstation, is the only provider proven + live. Its role on Yggdrasil is undecided; deleting it is decided after the + gate. - Ghostlight never reads, copies, forwards, or logs a credential. The connector's Codex home is the operator's real `~/.codex`; the SDK sidecar inherits the operator's Claude Code login from the ambient environment. @@ -404,11 +418,11 @@ 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 +evidence transport. Then admit Ghostlight Dungeon; CodexConnector is not its dependency. 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, +Deploy Ghostlight Dungeon through that contract. Runtime restart, route continuity, signed health, exact receipts, exclusive world-v3 state, and negative checks must agree before deleting old services, releases, state, acceptance roots, and local run scaffolding. @@ -441,6 +455,10 @@ acceptance roots, and local run scaffolding. 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. +- A consumer never restates a foreign owner's document shape as its own + strict struct or fixture. Read the owner's published contract (pinned + schema, owner-emitted samples) and prove each direction against the real + counterpart. PA.f196 and PA.f197 in the play-agent cut map are the cost. - 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. diff --git a/state/map.yaml b/state/map.yaml index a432029..bb1806d 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -226,7 +226,7 @@ pre_rebuild_architecture: - Institution, faction, and consumer decision models active_subgoals: - - Finish and verify the smallest Idunn-owned Expected/activation/anchor/lease projection and shared bounded RUDP document transport, then land a directly managed Rust Odin that owns signed runtime observation and Expected/Present/Ready correlation. Resolve exact capability dependency closure inside the existing deployment transaction, add UDP stable-route actuation plus independently persisted post-reload data-plane observation through the existing proxy, and preserve same-generation physical continuity without granting Idunn semantic Present/Ready authority. Verify on Yggdrasil, admit Odin first, then CodexConnector and Ghostlight, prove outage/fencing/routing/legacy-negative invariants, and purge every old executable authority. + - Finish and verify the smallest Idunn-owned Expected/activation/anchor/lease projection and shared bounded RUDP document transport, then land a directly managed Rust Odin that owns signed runtime observation and Expected/Present/Ready correlation. Resolve exact capability dependency closure inside the existing deployment transaction, add UDP stable-route actuation plus independently persisted post-reload data-plane observation through the existing proxy, and preserve same-generation physical continuity without granting Idunn semantic Present/Ready authority. Verify on Yggdrasil, admit Odin first, then Ghostlight Dungeon (CodexConnector is not a Dungeon dependency, operator 2026-09-23), prove outage/fencing/routing/legacy-negative invariants, and purge every old executable authority. - Build the outbound half of the consumer contract (the consumer's read of its own projection and attributed intents toward its subject as a typed response document) and a non-loopback CultMesh authority lease, then connect a Delvehold-owned adapter to the landed inbound ingress (POST /cultnet/world-patch, ConsumerPort, PatchGround::Consumer) without consumer-specific IDs or schemas in Ghostlight. - Extend strategic/offscreen named-person individuation beyond the proven emerge-then-act path so people plot across sustained political waves, acquire relationships, fold, and return without granting a cell, arena, or model commit authority. - Keep the selectable Kalsa Vault's Public player-safe and Spoilers GM-only evidence lanes intact through Git/Obsidian sync, retrieval, exact receipts, and player projection. Do not import it into the read-only Aetheria recovery index or create a rival Ghostlight semantic index. @@ -381,9 +381,27 @@ current_status: on Cut 17 judged the bar met: nothing left that would stop or mislead a player. The close-out is done — the postmortem is `docs/architecture/ghostlight-play-agent-postmortem.md`, and the target - and `notes/ghostlight-dungeon.md` now name their own gaps. Next action: - the operator plays on their own machine. Check `/health` for `playStatus` - first; the unverified leg is seeding, which needs + and `notes/ghostlight-dungeon.md` now name their own gaps. Topology + (operator ruling 2026-09-23, "put each of the organs on the right + machine"): the playtest runs on Yggdrasil. Ghostlight Dungeon runs there + beside Heimdall, deployed by Idunn through the binding named `ghostlight` + (the Dungeon unit only; Ghostlight is the library provider, Dungeon its + consumer) at admitted ref `codex/ghostlight-dungeon-mvp`. Bonsai 2 stays + on Raven's GPU; a Raven scheduled task holds a restricted-key reverse SSH + tunnel over the WireGuard mesh (Raven 10.77.0.4, Yggdrasil 10.77.0.1) so + the local lane's endpoint is Yggdrasil loopback `127.0.0.1:18080`. + Dungeon's local inference and Heimdall's private plane both stay + loopback-only. The Raven-hosted Dungeon (scheduled task + `GhostlightDungeon`, `C:\Meta\ghostlight`, + `deployment/raven/start-ghostlight-raven.ps1`) is a detour being retired, + not the playtest path. Next action: cut the CodexConnector binding out of + the Yggdrasil deploy actuator (`gamecult-ops` + `scripts/deploy-ghostlight-yggdrasil.sh`: connector readiness gate, key, + and acceptance test + `controllers::tests::real_codex_connector_cognition_modes_commit_speech`) + and its runbook, and bind the local-model link in its place; gamecult-ops + owns the actuator, runbook and link. Then, on Yggdrasil, check `/health` + for `playStatus` first; the unverified leg is seeding, which needs `GHOSTLIGHT_SEED_VAULT_ROOT`, appears in no runbook, and has never run past its configuration check, so attempt it alone before the play legs. Two capabilities the Dungeon brief promises are not built, and the @@ -400,25 +418,29 @@ current_status: shaped as Njordr's signal surface (custody, pressure and dependency, route, event deltas; spec owned by GameCult/Njordr `docs/architecture/njordr.md`, Ghostlight's obligations in the pointer - docs/architecture/gamecult-economy-daemon.md); (c) the deployment gate - (world-v3, Idunn/Odin as recorded in the handoff); (d) the decision on an + docs/architecture/gamecult-economy-daemon.md); (c) the rebuilt-Idunn + deployment gate (world-v3, Odin-first admission, as recorded in the + handoff); (d) the decision on an Eve `world.run_tick` authority and the Eve owner's fourth command-result state for an overtaken turn. Inference constraints: lanes route by model name (`RoutedInferencePort`, crates/ghostlight/src/sdk_inference.rs), and an unclaimed model is refused at open, never fallen back. Three transports exist in source. The CodexConnector lane, consumed through the - `codex-connector` crate pinned in Cargo.toml; the Claude SDK sidecar, a + `codex-connector` crate pinned in Cargo.toml, is not an option for + Dungeon inference (operator, 2026-09-23); the Claude SDK sidecar, a private length-prefixed msgpack pipe to a Node child, claiming `claude`-prefixed models; and, since the play agent's Cut 2, a local OpenAI-compatible loopback port (crates/ghostlight/src/local_inference.rs, one POST /v1/chat/completions, no credential, inert tool calls), opened only when GHOSTLIGHT_LOCAL_ENDPOINT is set and claiming the - GHOSTLIGHT_LOCAL_MODEL_PREFIX prefix, default `local/`. Only the sidecar - has been proven live; it inherits the operator's ambient Claude login and - stays as the cloud fallback until the local lane (Bonsai 2 on Raven's - machine) has carried the playtest. Deleting it is decided after the gate. - There is no Codex subscription and no API budget; CodexConnector stays - isolated at main `6519289` and is not a live provider here. Operator + GHOSTLIGHT_LOCAL_MODEL_PREFIX prefix, default `local/`. The local lane + (Bonsai 2 on Raven, reached at Yggdrasil `127.0.0.1:18080`) is the + playtest's inference and has never carried a turn. Only the sidecar has + been proven live, on the workstation, where it inherits the operator's + ambient Claude login; whether it has any role on Yggdrasil is undecided, + and deleting it is decided after the gate. There is no Codex subscription + and no API budget; CodexConnector stays isolated at main `6519289` and is + not a provider for Dungeon. Operator direction: model backends share one standardized CultNet connector API, the same one Epiphany uses, and a generic OpenAI-compatible connector on it is still required before third parties use the deployment; the local