diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 610294a..a9c62b5 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -427,19 +427,37 @@ are teardown evidence. Plan step 6 is ten implementation passes, all landed. CodexConnector repo, because CodexConnector is a deliberate fork of Codex cut so that Epiphany stops compiling Codex, and nothing goes into it. The Modeling map `modeling-claude-connector.md` was stopped mid-map - and is void even if partial text is on disk. The operator then gave the go: "Wait for the research, then build the - SDK port." Adopted shape: a Ghostlight `InferencePort` implementation - over the Claude Agent SDK, with the subscription credential held by - Claude Code and never by Ghostlight, as a stopgap transport and not a - harness inversion; a separate small organ, not a CodexConnector - backend. Persona and Projector are single plain completions and need - nothing special. The tool lanes (Interpreter, operational, elaborator, - seed, grouped) need the SDK to return tool calls unexecuted; the - read-only research pass `research-agent-sdk.md` is establishing whether - it can. If capture fails, those lanes stay on Codex and the split costs - no code, because models are already configured per lane. The - "harnessed Persona" idea is withdrawn: the Persona turn is non-agentic. - Nothing is cut yet; Hands waits on the research result. Nothing is edited in either repo. Facts that + and is void even if partial text is on disk. The operator gave the go ("Wait for the research, then build the SDK + port"), the research landed as an evidence record (2026-09-05T22:25Z, + `research-agent-sdk.md`: system prompt replaceable, built-ins + strippable, `CLAUDE.md` loading stoppable, tool calls returnable + unexecuted), and the design is decided: plan step 11 opened at + `634e81f`, map `modeling-sdk-port.md`, spec `imagination-sdk-port.md` + with eleven forks, all in the session scratchpad. Hands is cutting in + the worktree `F:\Projects\Ghostlight-sdkport` on `hands/sdk-port` from + `634e81f`, no commits yet at the time of writing. Load-bearing facts of + the design: the organ is a Ghostlight `InferencePort` implementation + over the Claude Agent SDK, a stopgap transport and not a harness + inversion, with the subscription credential held by Claude Code and + never read, copied, or logged by Ghostlight. Checkpoint integrity is + transport-agnostic, so the port prepares the same `PreparedInference` + and no second identity scheme exists. The sidecar (`sidecar/claude-sdk`, + TypeScript, Node 24 pinned, msgpack frames over stdio, one persistent + child per runner) never computes a tool result: Rust answers every call + through a per-lane `ToolResultOracle` that is the evaluator's own fold, + so divergence is impossible by construction, and the oracle carries the + lane's remaining round budget (seed and elaboration share a purpose). + Rust owns transcript lowering and fault disposition. Routing is per lane + by `GHOSTLIGHT_SDK_MODEL_PREFIX` (default `claude`) in `open_inference`; + `ControllerRunner::open` becomes injection-only and `with_test_ports` + collapses into it. The receipt is the SDK's message, a named liability. + Persona and Projector are plain completions; the tool lanes + (Interpreter, operational, elaborator, seed, grouped) ride the oracle; + if a lane cannot, it stays on Codex at no code cost because models are + per lane. The harnessed-Persona idea is withdrawn (the Persona turn is + non-agentic). Credential steps for the operator (install the Claude Code + CLI, log in or `setup-token`) belong in the smoke runbook; nothing is + installed locally yet. Main is untouched; the cut lives in the worktree. Facts that survive the overturn: Ghostlight binds Codex-named types in four files (`controllers.rs:25`, `elaboration.rs:31`, `patch.rs:20`, `tool_schema.rs:9`) behind one `InferencePort::prepare` diff --git a/state/map.yaml b/state/map.yaml index 1faf4e3..a404d5e 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -361,5 +361,5 @@ current_status: scale_checkpoint: Runs 108 through 115 prove load and failure properties of the pre-rebuild body, not world completeness. Operator directive 2026-09-04: 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, so that detail is generated first and multiresolution simulation is then choked so attention is scarce. The seed carries a `WorldScaleIntent`, the elaborators pursue its derived scale deficit, and cover budget is the choke. The 1,200-actor fixture is a load measure only. Structural admission still cannot require interest, diversity, name uniqueness, or an actor count; validity never waits on a count, liveness is authored. The committed replacement authority suite passes, but no further scale run is admitted until Yggdrasil serves the exact world-v3 release through the rebuilt Idunn recipe/binding/router seam, the live state root satisfies the complete world-v3 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: Plan step 6, the ontology widening, is complete: ten passes integrated on `codex/ghostlight-dungeon-mvp`, tip `a1fd645` (pass tips `5e53beb`, `e99af63`, `d2805fe`, `0f21a49`, `dbe176d`, `cb6a126`, `1852ddd`, `3ed3868`, `8aebfb6`, `a1fd645`); `git status -sb` is the push witness; the series evidence record is dated 2026-09-05. The kernel holds 12 component kinds over 27 operations under one `WorldPatch`, one reducer, one CAS commit, one decode bound (`patch::decode_patch`, `MAX_PATCH_*`), three confined `SystemCapability` arms (`Clock`, `Elaborator`, `Consumer`); pass 10 added `world/consumer.rs`, `PatchGround`, `confine_to_ground`, `ControllerAssignment::ExternallyControlled`, `ConsumerPort`/`submit_consumer`, `POST /cultnet/world-patch` (loopback, msgpack, `CONSUMER_BODY_LIMIT`), `ConsumerRegistry` from `GHOSTLIGHT_CONSUMER_CREDENTIALS`; schemas `world_state.consumer.v1`/`world_commit.consumer.v1`, `STATE_SCHEMA_GENERATION` world-v3 (Idunn expectation changes; every world-v2 phrase below now means world-v3). Baseline 313 tests in `world/`, 357 crate source (focused run 312/352). Pass-10 follow-ups landed in `8173c9c` and the docs in `842b5af`; nothing is in flight and no worktree exists. First local live smoke 2026-09-05 (`5e52943`, runbook `notes/local-live-smoke.md`, harness the ignored test `live_smoke_ticks_a_genesis_world_against_the_connector` in `runtime.rs`, substrate `F:\Projects\Ghostlight-smoke`, connector from the CodexConnector repo head with the `daemon` feature): three ticks against a real connector on a genesis world, revision 2->11, two singleton cells per tick, Persona spoke and the operational lane committed each tick, elaboration clean, 40-70 s per tick; evidence record 2026-09-05T13:42Z. Findings: the road works end to end; prose is thin because genesis is three subjects in one room, so the seed producer is the evidenced gap (no steering surface named it before). Stale: ignored test `real_codex_connector_cognition_modes_commit_speech` (`controllers.rs:6549`) fails at `NoAudience`, retire or place it. Seed producer landed and proven on the road: tip `b7042f1` over `491b06e` (six seed-lane follow-ups) and `697ed07`, pushed, no worktree. Seeded live smoke passed on the twelfth run 2026-09-05 from the Kalsa Public vault (`GHOSTLIGHT_SEED_VAULT_ROOT` `F:\Projects\Kalsa\Kalsa`, root label \"Low Sere\"): one seed session, 39 s, six qualified persons, deficit 6->0; nine subjects, six boundaries; three ticks of eight singleton cells (95-123 s), seeded people speaking to each other by name; table and run block in `notes/local-live-smoke.md`, evidence record 2026-09-05T17:36Z, ontology \"Rules the road imposed\" paragraph. Uncommitted road fixes on main pending a green unit suite: strict-schema `anyOf`/const tags with an offline test over both lanes, connector `REQUEST_EXPIRY` 300 s / `RESPONSE_TIMEOUT` 900 s, content-addressed `provider_request_id`, `SEED_ROUND_BUDGET` 24 with budget-end draft submission, `SEED_INSTRUCTIONS` pacing and obligation rule, brief ids and placement rule, info-level fault and cell-outcome logs, live harness asserting a landed seed and speech. Baseline 342 tests in `world/`, 394 crate source. Connector stopped; smoke substrate stays. Plan step 9, the interruption pass, is integrated: tip `711f6ec` (docs) over `d20dc51` (Soul), `ad124ea`/`1a19fb2` (Hands), `1ef973a` (machine), on `a62708f`; push follows a background crate test, `git status -sb` is the witness. Landed: the kernel is the sole `ScopeChanged` detector and the narrative lane interrupts on it (`controllers.rs:3537`; operational keeps `ensure_scope_unchanged` at :2689); `SubjectSnapshot.components: ScopeComponents` replacing holdings/dependencies/incident_routes/authority/controls; `PersonaTurnBinding::interrupted_from`; `Overheard`, `Interruption`, `interpreter_round`, `select_fresh`, `select_scope`, `NarrativeRun::Interrupted`; `controller_work.v11`, `persona_turn_receipt.v3`; `ControllerHttpResult::Interrupted` renders as Eve `denied` with detail in the receipt. Baseline 354 tests in `world/`, 406 crate source, 13 persona-projection. Soul: leak invariant holds structurally; fork A corrected (a turn whose scope moved before binding is `NoOpportunity` at zero cost; the cut costs at most one extra Interpreter round on a bound turn); fork D dead (grants insert-only). Recipe lesson: never chain `merge --ff-only` with `branch -D`; the first fast-forward refused and the chain deleted the pointer, recovered by SHA. Plan step 10, the witness operation, is integrated: tip `1244595` (docs) over `70ea6b1` (Soul), `ecdeb92` (operation), `307d8a5` (refactors), on `f6cd3b5`; push follows a background crate test, `git status -sb` is the witness; integration gated (rebase, merge, confirm tip, remove). Landed: `under_place` the one reach owner and `unheld` the one already-holder filter, used by `audience`, `fan_out`, and the `Witness` apply arm; `ComponentOp::Witness {fact, place, confidence}` with resolve/apply/lowering arms and `operation_ground` returning the place (consumer cannot witness by construction); `ComponentOpKind::Witness {confidence}` so an affordance can cause a speakerless witnessed event; tool `witness`; catalog pinned at 7/29/38 and the ontology doc aligned to twenty-nine; schemas `world_state.consumer.v2`/`world_commit.consumer.v2`; empty subtree `NoOperationEffect` at both layers; no-`Told` pin exhaustive over 19 op kinds. Baseline 372 tests in `world/`, 424 crate source, 13 persona-projection. Step-9 follow-ups integrated at `651bfb2` over `5cd8853`, gated (rebase, merge, confirm, remove); push follows a background crate test, `git status -sb` is the witness. Landed: unreachable `SPEAK_KIND` guard and branch deleted from `interrupted` (constant still used elsewhere); `InferencePurpose`/`PreparedInference::purpose`/`InferenceEvent` to `pub(crate)` with test seams `fixture_inference_events` and `fixture_recovery_required` re-exported from `world/mod.rs`; driver end-to-end `a_second_mid_turn_change_reaches_the_drivers_interrupted_arm` through `run_cover_tick` (two Interpreter calls, overtaken turn commits nothing); `a_witness_between_the_turn_and_submit_carries_no_overheard_row` closing the step-10 seam. Baseline 373 tests in `world/`, 426 crate source, 13 persona-projection. Steps 9 and 10 complete with follow-ups; nothing in flight, no worktree. Eve question for the Eve owner: a fourth command-result state for overtaken. Next action, operator-ordered 2026-09-06: build the Claude connector; both opening assumptions overturned by the operator before anything landed. Void: an Anthropic API key against the Messages API (no API spend is possible now); a second backend inside CodexConnector (it is a deliberate fork of Codex cut so Epiphany stops compiling Codex; nothing goes into it); the Modeling map `modeling-claude-connector.md` is void. Operator go: wait for the research, then build the SDK port. Adopted shape: a Ghostlight `InferencePort` implementation over the Claude Agent SDK, subscription credential held by Claude Code and never by Ghostlight, a stopgap transport not a harness inversion, a separate small organ. Persona and Projector are single plain completions; the tool lanes (Interpreter, operational, elaborator, seed, grouped) need the SDK to return tool calls unexecuted, which `research-agent-sdk.md` is establishing; if capture fails those lanes stay on Codex at no code cost since models are per lane. The harnessed-Persona idea is withdrawn (the Persona turn is non-agentic). Nothing cut yet. Nothing edited in either repo. Surviving facts: Codex-named types bound in `controllers.rs:25`, `elaboration.rs:31`, `patch.rs:20`, `tool_schema.rs:9` behind `InferencePort::prepare`; default models `gpt-5.6-luna/sol/terra` in `runtime.rs:427-434`; pin `68fe94b`; CodexConnector `main` fast-forwarded to `6519289` (harmless, stays); CodexConnector has no state/notes/handoff/evidence surface and its `AGENTS.md` is untouched. Constraint this pass may lift: no road run until a provider is available (Codex subscription lapsed mid-build; twelve seeded runs used half the monthly free quota). Next seams: the outbound consumer response batch with the non-loopback CultMesh lease, then the deployment gate. Operator decision still open: authority for owner-only Eve `world.run_tick`. (2) First-generation world fixtures banked and pushed, reviewer-accepted except visual replay pending a scene-set blockout: Delvehold `cistern-house-nine-breaker-test` `codex/world-delvehold` @ `9374fd0`; Aetheria `navigator-berth-hearing-v0` `codex/world-aetheria` @ `fe679f4` (fixture `8860c47`, lore `ba5c2ce`); Zyphos `eclipse-nursery-handover` `codex/world-zyphos` @ `055e6ee` (lore `2fef909`); Kalsa `stormshield-handoff-v0` `codex/world-kalsa` @ `489c541` (lore `c9f4c5c`). The elaborator swarm is drained and handed off; this session does not own it: stop flag set 2026-09-04 20:10, drained 21:10 with 98 finished passes in `logs\elab-done.csv`, ledgers republished, successor handoff finalized at `C:\Users\Meta\.claude\worlds\README.md`. Resume waits on operator adjustments and belongs to the successor. Owed and deliberately deferred: integration of `slot///<stamp>` branches into the vaults (`codex/ghostlight-worlds`) and `codex/world-<world>`. Idea index: the four `experiments/elaboration/<world>/ledger/` directories on `codex/world-<world>`. Substrate lessons stay in `state/evidence.jsonl`; `Invoke-Worlds.ps1` is retired under `worlds\retired`. Clones at `F:\Projects\Ghostlight-worlds\<world>` and `F:\Projects\<Lore>-worktrees\ghostlight-worlds`; image rendering deferred, prompts only. Deployment gate, deferred behind the operator decisions, not cancelled: review and subtract the uncommitted Idunn projection and bounded RUDP transport, add UDP route actuation plus an independently persisted post-reload data-plane observation, and verify that focused pass on Yggdrasil. Then implement the directly managed Rust Odin observation/correlation daemon and exact transaction-frozen capability dependency closure. Install rebuilt Idunn, admit Odin first, then CodexConnector and Ghostlight; prove same-generation continuity, fencing, signed health, route cutover, Odin-outage freeze, and negative legacy authority before purging old units, releases, state roots, and the remote acceptance debris. `GameCult/cultcache-rs` and `GameCult/cultnet-rs` now have no readers anywhere: Epiphany `68939b2c` and CodexConnector `6519289` consume CultLib and carry no submodules at all, and Odin `27cc815` does the same. Both repos are retirable now: that work landed on CultLib main by fast-forward at `8cb3b72`, so every pinned revision -- Ghostlight `85f7024`, Epiphany and CodexConnector `e171eca`, Odin `cbde940` -- is an ancestor of main and resolves from a fresh clone. Still vendored are `VoidBot/vendor/cultcache-ts`, `Ghostlight/vendor/cultcache-py` and `Odin/vendor/cultmesh-rs`. The first two vendored because npm and pip cannot take a package from a subdirectory of a git repo the way cargo can, so there was nothing to depend on. CultLib `8cb3b72` adds a publish workflow: tagging `cultcache-ts-v*` or `cultcache-py-v*` ships `@gamecult/cultcache-ts` to npm and `cultcache-py` to PyPI, refusing any tag whose version disagrees with the manifest. Both repoints wait on the first publish, which needs an `NPM_TOKEN` secret and a PyPI trusted publisher. Ghostlight's is not a bare dependency swap: `tools/ghostlight_state_store.py` puts `vendor/cultcache-py/src` on `sys.path` so the state tooling works from a clone with no install step, and session bootstrap depends on that. Detail on the Odin repoint: Odin's vendored CultNet submodule and CultCache copy are gone from its worktree and both come from CultLib, with only `vendor/cultmesh-rs` still vendored and itself consuming CultLib. Odin's commit had to carry the in-flight CultMesh RUDP document server with it: the previously committed CultMesh calls `assume_connected()`, a CultNet method the fork had and CultLib does not, so the old code cannot build against CultLib at all. It depends on CultLib branch `claude/cultnet-reliable-expiry` at `cbde940`, which must reach main by merge rather than squash or the pinned rev is orphaned. Live citations name CultLib `85f7024`, a permanent ancestor of main; evidence records keep their pre-consolidation SHAs as dated history. Local run scaffolding, downloaded acceptance copies, and redundant Git bundles are already purged, and `.gitignore` now refuses them. + next_action: Plan step 6, the ontology widening, is complete: ten passes integrated on `codex/ghostlight-dungeon-mvp`, tip `a1fd645` (pass tips `5e53beb`, `e99af63`, `d2805fe`, `0f21a49`, `dbe176d`, `cb6a126`, `1852ddd`, `3ed3868`, `8aebfb6`, `a1fd645`); `git status -sb` is the push witness; the series evidence record is dated 2026-09-05. The kernel holds 12 component kinds over 27 operations under one `WorldPatch`, one reducer, one CAS commit, one decode bound (`patch::decode_patch`, `MAX_PATCH_*`), three confined `SystemCapability` arms (`Clock`, `Elaborator`, `Consumer`); pass 10 added `world/consumer.rs`, `PatchGround`, `confine_to_ground`, `ControllerAssignment::ExternallyControlled`, `ConsumerPort`/`submit_consumer`, `POST /cultnet/world-patch` (loopback, msgpack, `CONSUMER_BODY_LIMIT`), `ConsumerRegistry` from `GHOSTLIGHT_CONSUMER_CREDENTIALS`; schemas `world_state.consumer.v1`/`world_commit.consumer.v1`, `STATE_SCHEMA_GENERATION` world-v3 (Idunn expectation changes; every world-v2 phrase below now means world-v3). Baseline 313 tests in `world/`, 357 crate source (focused run 312/352). Pass-10 follow-ups landed in `8173c9c` and the docs in `842b5af`; nothing is in flight and no worktree exists. First local live smoke 2026-09-05 (`5e52943`, runbook `notes/local-live-smoke.md`, harness the ignored test `live_smoke_ticks_a_genesis_world_against_the_connector` in `runtime.rs`, substrate `F:\Projects\Ghostlight-smoke`, connector from the CodexConnector repo head with the `daemon` feature): three ticks against a real connector on a genesis world, revision 2->11, two singleton cells per tick, Persona spoke and the operational lane committed each tick, elaboration clean, 40-70 s per tick; evidence record 2026-09-05T13:42Z. Findings: the road works end to end; prose is thin because genesis is three subjects in one room, so the seed producer is the evidenced gap (no steering surface named it before). Stale: ignored test `real_codex_connector_cognition_modes_commit_speech` (`controllers.rs:6549`) fails at `NoAudience`, retire or place it. Seed producer landed and proven on the road: tip `b7042f1` over `491b06e` (six seed-lane follow-ups) and `697ed07`, pushed, no worktree. Seeded live smoke passed on the twelfth run 2026-09-05 from the Kalsa Public vault (`GHOSTLIGHT_SEED_VAULT_ROOT` `F:\Projects\Kalsa\Kalsa`, root label \"Low Sere\"): one seed session, 39 s, six qualified persons, deficit 6->0; nine subjects, six boundaries; three ticks of eight singleton cells (95-123 s), seeded people speaking to each other by name; table and run block in `notes/local-live-smoke.md`, evidence record 2026-09-05T17:36Z, ontology \"Rules the road imposed\" paragraph. Uncommitted road fixes on main pending a green unit suite: strict-schema `anyOf`/const tags with an offline test over both lanes, connector `REQUEST_EXPIRY` 300 s / `RESPONSE_TIMEOUT` 900 s, content-addressed `provider_request_id`, `SEED_ROUND_BUDGET` 24 with budget-end draft submission, `SEED_INSTRUCTIONS` pacing and obligation rule, brief ids and placement rule, info-level fault and cell-outcome logs, live harness asserting a landed seed and speech. Baseline 342 tests in `world/`, 394 crate source. Connector stopped; smoke substrate stays. Plan step 9, the interruption pass, is integrated: tip `711f6ec` (docs) over `d20dc51` (Soul), `ad124ea`/`1a19fb2` (Hands), `1ef973a` (machine), on `a62708f`; push follows a background crate test, `git status -sb` is the witness. Landed: the kernel is the sole `ScopeChanged` detector and the narrative lane interrupts on it (`controllers.rs:3537`; operational keeps `ensure_scope_unchanged` at :2689); `SubjectSnapshot.components: ScopeComponents` replacing holdings/dependencies/incident_routes/authority/controls; `PersonaTurnBinding::interrupted_from`; `Overheard`, `Interruption`, `interpreter_round`, `select_fresh`, `select_scope`, `NarrativeRun::Interrupted`; `controller_work.v11`, `persona_turn_receipt.v3`; `ControllerHttpResult::Interrupted` renders as Eve `denied` with detail in the receipt. Baseline 354 tests in `world/`, 406 crate source, 13 persona-projection. Soul: leak invariant holds structurally; fork A corrected (a turn whose scope moved before binding is `NoOpportunity` at zero cost; the cut costs at most one extra Interpreter round on a bound turn); fork D dead (grants insert-only). Recipe lesson: never chain `merge --ff-only` with `branch -D`; the first fast-forward refused and the chain deleted the pointer, recovered by SHA. Plan step 10, the witness operation, is integrated: tip `1244595` (docs) over `70ea6b1` (Soul), `ecdeb92` (operation), `307d8a5` (refactors), on `f6cd3b5`; push follows a background crate test, `git status -sb` is the witness; integration gated (rebase, merge, confirm tip, remove). Landed: `under_place` the one reach owner and `unheld` the one already-holder filter, used by `audience`, `fan_out`, and the `Witness` apply arm; `ComponentOp::Witness {fact, place, confidence}` with resolve/apply/lowering arms and `operation_ground` returning the place (consumer cannot witness by construction); `ComponentOpKind::Witness {confidence}` so an affordance can cause a speakerless witnessed event; tool `witness`; catalog pinned at 7/29/38 and the ontology doc aligned to twenty-nine; schemas `world_state.consumer.v2`/`world_commit.consumer.v2`; empty subtree `NoOperationEffect` at both layers; no-`Told` pin exhaustive over 19 op kinds. Baseline 372 tests in `world/`, 424 crate source, 13 persona-projection. Step-9 follow-ups integrated at `651bfb2` over `5cd8853`, gated (rebase, merge, confirm, remove); push follows a background crate test, `git status -sb` is the witness. Landed: unreachable `SPEAK_KIND` guard and branch deleted from `interrupted` (constant still used elsewhere); `InferencePurpose`/`PreparedInference::purpose`/`InferenceEvent` to `pub(crate)` with test seams `fixture_inference_events` and `fixture_recovery_required` re-exported from `world/mod.rs`; driver end-to-end `a_second_mid_turn_change_reaches_the_drivers_interrupted_arm` through `run_cover_tick` (two Interpreter calls, overtaken turn commits nothing); `a_witness_between_the_turn_and_submit_carries_no_overheard_row` closing the step-10 seam. Baseline 373 tests in `world/`, 426 crate source, 13 persona-projection. Steps 9 and 10 complete with follow-ups; nothing in flight, no worktree. Eve question for the Eve owner: a fourth command-result state for overtaken. Next action, operator-ordered 2026-09-06: build the Claude connector; both opening assumptions overturned by the operator before anything landed. Void: an Anthropic API key against the Messages API (no API spend is possible now); a second backend inside CodexConnector (it is a deliberate fork of Codex cut so Epiphany stops compiling Codex; nothing goes into it); the Modeling map `modeling-claude-connector.md` is void. SDK port designed and cutting: research evidence record 2026-09-05T22:25Z (`research-agent-sdk.md`); plan step 11 opened at `634e81f`; map `modeling-sdk-port.md`, spec `imagination-sdk-port.md` (eleven forks); Hands in `F:\Projects\Ghostlight-sdkport` on `hands/sdk-port` from `634e81f`, no commits yet. Design: a Ghostlight `InferencePort` over the Claude Agent SDK, stopgap transport not harness inversion, credential held by Claude Code and never read, copied, or logged; checkpoint integrity transport-agnostic, same `PreparedInference`, no second identity scheme; sidecar `sidecar/claude-sdk` (TypeScript, Node 24 pinned, msgpack over stdio, one persistent child per runner) never computes a tool result, Rust answers every call via a per-lane `ToolResultOracle` that is the evaluator's own fold carrying the remaining round budget (seed and elaboration share a purpose); Rust owns transcript lowering and fault disposition; routing per lane by `GHOSTLIGHT_SDK_MODEL_PREFIX` (default `claude`) in `open_inference`; `ControllerRunner::open` injection-only, `with_test_ports` collapses into it; the receipt is the SDK message, a named liability. Persona and Projector plain completions; tool lanes on the oracle, else they stay on Codex at no code cost. Harnessed Persona withdrawn. Operator credential steps (install Claude Code CLI, log in or setup-token) go in the smoke runbook; nothing installed locally yet. Main is untouched; the cut lives in the worktree. Surviving facts: Codex-named types bound in `controllers.rs:25`, `elaboration.rs:31`, `patch.rs:20`, `tool_schema.rs:9` behind `InferencePort::prepare`; default models `gpt-5.6-luna/sol/terra` in `runtime.rs:427-434`; pin `68fe94b`; CodexConnector `main` fast-forwarded to `6519289` (harmless, stays); CodexConnector has no state/notes/handoff/evidence surface and its `AGENTS.md` is untouched. Constraint this pass may lift: no road run until a provider is available (Codex subscription lapsed mid-build; twelve seeded runs used half the monthly free quota). Next seams: the outbound consumer response batch with the non-loopback CultMesh lease, then the deployment gate. Operator decision still open: authority for owner-only Eve `world.run_tick`. (2) First-generation world fixtures banked and pushed, reviewer-accepted except visual replay pending a scene-set blockout: Delvehold `cistern-house-nine-breaker-test` `codex/world-delvehold` @ `9374fd0`; Aetheria `navigator-berth-hearing-v0` `codex/world-aetheria` @ `fe679f4` (fixture `8860c47`, lore `ba5c2ce`); Zyphos `eclipse-nursery-handover` `codex/world-zyphos` @ `055e6ee` (lore `2fef909`); Kalsa `stormshield-handoff-v0` `codex/world-kalsa` @ `489c541` (lore `c9f4c5c`). The elaborator swarm is drained and handed off; this session does not own it: stop flag set 2026-09-04 20:10, drained 21:10 with 98 finished passes in `logs\elab-done.csv`, ledgers republished, successor handoff finalized at `C:\Users\Meta\.claude\worlds\README.md`. Resume waits on operator adjustments and belongs to the successor. Owed and deliberately deferred: integration of `slot/<world>/<title>/<stamp>` branches into the vaults (`codex/ghostlight-worlds`) and `codex/world-<world>`. Idea index: the four `experiments/elaboration/<world>/ledger/` directories on `codex/world-<world>`. Substrate lessons stay in `state/evidence.jsonl`; `Invoke-Worlds.ps1` is retired under `worlds\retired`. Clones at `F:\Projects\Ghostlight-worlds\<world>` and `F:\Projects\<Lore>-worktrees\ghostlight-worlds`; image rendering deferred, prompts only. Deployment gate, deferred behind the operator decisions, not cancelled: review and subtract the uncommitted Idunn projection and bounded RUDP transport, add UDP route actuation plus an independently persisted post-reload data-plane observation, and verify that focused pass on Yggdrasil. Then implement the directly managed Rust Odin observation/correlation daemon and exact transaction-frozen capability dependency closure. Install rebuilt Idunn, admit Odin first, then CodexConnector and Ghostlight; prove same-generation continuity, fencing, signed health, route cutover, Odin-outage freeze, and negative legacy authority before purging old units, releases, state roots, and the remote acceptance debris. `GameCult/cultcache-rs` and `GameCult/cultnet-rs` now have no readers anywhere: Epiphany `68939b2c` and CodexConnector `6519289` consume CultLib and carry no submodules at all, and Odin `27cc815` does the same. Both repos are retirable now: that work landed on CultLib main by fast-forward at `8cb3b72`, so every pinned revision -- Ghostlight `85f7024`, Epiphany and CodexConnector `e171eca`, Odin `cbde940` -- is an ancestor of main and resolves from a fresh clone. Still vendored are `VoidBot/vendor/cultcache-ts`, `Ghostlight/vendor/cultcache-py` and `Odin/vendor/cultmesh-rs`. The first two vendored because npm and pip cannot take a package from a subdirectory of a git repo the way cargo can, so there was nothing to depend on. CultLib `8cb3b72` adds a publish workflow: tagging `cultcache-ts-v*` or `cultcache-py-v*` ships `@gamecult/cultcache-ts` to npm and `cultcache-py` to PyPI, refusing any tag whose version disagrees with the manifest. Both repoints wait on the first publish, which needs an `NPM_TOKEN` secret and a PyPI trusted publisher. Ghostlight's is not a bare dependency swap: `tools/ghostlight_state_store.py` puts `vendor/cultcache-py/src` on `sys.path` so the state tooling works from a clone with no install step, and session bootstrap depends on that. Detail on the Odin repoint: Odin's vendored CultNet submodule and CultCache copy are gone from its worktree and both come from CultLib, with only `vendor/cultmesh-rs` still vendored and itself consuming CultLib. Odin's commit had to carry the in-flight CultMesh RUDP document server with it: the previously committed CultMesh calls `assume_connected()`, a CultNet method the fork had and CultLib does not, so the old code cannot build against CultLib at all. It depends on CultLib branch `claude/cultnet-reliable-expiry` at `cbde940`, which must reach main by merge rather than squash or the pinned rev is orphaned. Live citations name CultLib `85f7024`, a permanent ancestor of main; evidence records keep their pre-consolidation SHAs as dated history. Local run scaffolding, downloaded acceptance copies, and redundant Git bundles are already purged, and `.gitignore` now refuses them. gestalt_population: Gestalt Personas own shared population baselines; persistent member deltas own named individuality; WorldKernel materialization and approval-gated fission preserve lineage and identity. Materialisation/folding changes only representation and the exact member delta, advances resolution epoch, and retires the old cover; it has no Gestalt-wide effect authority. Selected actionable member exceptions are mandatory Projector perspective owners, so aggregation cannot silently erase their decision. Presence projection is limited to nearby active leaves and exact-location dormant members, includes reciprocal player relationship evidence, and may propose an earned cast without committing it. Simulation cells are derived covers only. diff --git a/state/scratch.md b/state/scratch.md index a8fe952..1e25363 100644 --- a/state/scratch.md +++ b/state/scratch.md @@ -2,14 +2,14 @@ ## Current Subgoal -Claude SDK port (operator go, 2026-09-06: wait for the research, then build). -Shape: a Ghostlight `InferencePort` implementation over the Claude Agent SDK, -credential held by Claude Code, stopgap transport, separate small organ, not a -CodexConnector backend. Persona and Projector are plain completions; the tool -lanes need unexecuted tool-call return, which `research-agent-sdk.md` is -establishing; on failure those lanes stay on Codex (models are per lane). -Harnessed Persona withdrawn. Nothing cut at `06236a4`; Hands waits on the -research result. +Plan step 11, the Claude SDK inference port: Hands in +`F:\Projects\Ghostlight-sdkport` on `hands/sdk-port` from `634e81f`, spec +`imagination-sdk-port.md` (eleven forks), map `modeling-sdk-port.md`; then Soul +in that tree, then gated integration (rebase, merge, confirm tip, remove). +Shape: `InferencePort` over the Agent SDK; sidecar `sidecar/claude-sdk` never +computes a tool result, Rust answers via per-lane `ToolResultOracle`; same +`PreparedInference`; routing by `GHOSTLIGHT_SDK_MODEL_PREFIX`. Operator +credential steps go in the smoke runbook; nothing installed locally yet. ## Working Notes