diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a9c62b5..f7e7fe4 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -427,37 +427,73 @@ 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 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 + and is void even if partial text is on disk. Plan step 11, the Claude SDK inference port, is integrated. Tip is + `0cbbf77` (step-11 docs: plan, system map, smoke runbook Claude SDK + route with operator prerequisites, mvp paragraph) over `4f424a5` and + `0fa411b` (Soul), `2ff1d43` (sidecar), `b150b5e` (Rust port), `708d621` + (collapse of the two prepared-identity bodies and two constructors), on + `feb603b`. The push follows a background crate test and the branch read + `ahead 6` at the time of writing; `git status -sb` is the witness. The + research is the evidence record at 2026-09-05T22:25Z. What landed: + `world/sdk_inference.rs` (`SdkInferencePort`, `RoutedInferencePort`, + `SidecarLink` with `ChildProcessLink`, the `SidecarFrame` kinds, + `lower_query`, `assemble_output`, `SdkInferenceReceipt`); + `ToolResultOracle` (`controllers.rs:247`) with `InterpreterOracle`, + `GroupedOracle`, `OperationalOracle`, and `ElaborationOracle` + (`elaboration.rs:976`) over three extracted folds; `prepare_invocation` + (`controllers.rs:287`) shared by both ports; `open_inference` routing by + `GHOSTLIGHT_SDK_MODEL_PREFIX` (default `claude`), `GHOSTLIGHT_SDK_SIDECAR` + with no default (opt-in; the plan sentence claiming a default was + corrected on main), `GHOSTLIGHT_CONTROLLER_CREDENTIAL` required only + with a connector binding; `ControllerRunner::open` injection-only, + `with_test_ports` gone; `sidecar/claude-sdk` pinned to + `@anthropic-ai/claude-agent-sdk` 0.3.261, `@msgpack/msgpack` 3.1.3, + `zod` 4.5.4, Node `>=24 <25`; no credential anywhere in the tree. + Baseline at `0cbbf77`: 408 test functions in `world/*.rs`, 461 crate + source, 13 in `ghostlight-persona-projection`, 24 sidecar, plus one + integration test (Soul ran 407 / 455 / 13 / 24). + + Soul verdict: integrate with follow-ups. The port is a retirable + stopgap: deleting `world/sdk_inference.rs`, the sidecar package, + `SdkBinding`, and the two `GHOSTLIGHT_SDK_*` variables removes it + whole, while `prepare_invocation`, `ToolResultOracle` with its folds, + and `RoutedInferencePort` survive as improvements. Decisive finding: + the SDK Zod layer strips unknown keys and refuses missing required + fields before the handler runs, so a `claude` lane would silently admit + what the connector refuses and quarantine what the connector records as + a gap. Ruling: one validator on both transports, the Rust decoder; the + sidecar hands raw arguments through. + + The step-11 follow-ups are integrated at `d72c246` over `a791d55` and + `3514d76`; the merge was confirmed by SHA equality before the worktree + was removed, and the push followed the test result line. `a791d55` + (sidecar): loose schema conversion, every property optional and unknown + keys kept, so Rust is the one validator on the SDK transport too; + `protocol_violation` kept with its remaining causes stated; + `resultFault` exported and tested. `d72c246` (Rust): `take_oracle` + above the gates; the four `pub(crate)` widenings reverted (two + `private_interfaces` warnings return, matching the three siblings that + already warn); `fixture_prepared` collapsed; `DEFAULT_SDK_MODEL_PREFIX` + used in `runtime.rs`. `3514d76` made the source-scanning test + line-ending neutral. Residual liability, stated in plan step 11: a + property whose value has the wrong type reaches Rust as absent, not as + the wrong value, because the SDK derives the advertised schema from the + same object and refuses a dynamic pass-through. Baseline at `d72c246`: + 408 test functions in `world/*.rs`, 461 crate source, 13 in + `ghostlight-persona-projection`, 29 sidecar, plus one integration test + (Hands ran 407 / 455 / 13 / 29). Step 11 is complete with its + follow-ups. Nothing is in flight and no worktree exists. + + Gating lesson, the second lapse of this session: `3514d76` was pushed + red for ten minutes because the coordinator acted on a test run before + reading its result line. Rule: the push follows the result line, never + the launch; the first lapse was the chained `merge --ff-only` and + `branch -D` that deleted a branch pointer. Both are recorded here and + nowhere else durable. + + Next: the operator installs the Claude Code CLI and logs in (or + `setup-token`) per `notes/local-live-smoke.md`, then the first SDK road + run, which is the belief-changing record still owed. 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/notes/ghostlight-implementation-plan.md b/notes/ghostlight-implementation-plan.md index f0da086..6fd4f53 100644 --- a/notes/ghostlight-implementation-plan.md +++ b/notes/ghostlight-implementation-plan.md @@ -599,6 +599,17 @@ extended, keeping `RoutedInferencePort` and swapping what it routes to. Rejected: a backend inside CodexConnector (a deliberately isolated Codex fork). +One validator on both transports: the sidecar's schema conversion is loose +(every property optional, unknown keys kept), so the arguments the model +emitted reach Rust's decoder unstripped and a refused argument is the gap +the evaluator already records, on the SDK path exactly as on the connector +path. Residual: a property whose value has the wrong type reaches Rust as +absent rather than as the wrong value, because the SDK derives the +advertised tool schema from the same object and refuses a dynamic +pass-through; the decoder reports it as missing. The result-subtype mapping +(`error_max_turns` is an output; every error subtype a named fault) is +tested in the sidecar without a credential. + ## Subtraction budget Prefer deletion, collapse, or reuse before adding surfaces. The replacement diff --git a/state/evidence.jsonl b/state/evidence.jsonl index a211d4f..77982ab 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -40,4 +40,5 @@ {"note": "Plan step 6, the ontology widening, is complete: ten passes landed on codex/ghostlight-dungeon-mvp between 2026-09-04 and 2026-09-05, each as a Hands cut in an isolation worktree, a Soul falsification in the same tree, and a fast-forward integration. Pass tips: 1 typed ID namespaces and closed patch resolution 5e53beb; 2 Position/Route/containment and scope-digest binding e99af63; 3 Custody/Dependency/conservation d2805fe; 4 world-authored affordance catalog with kernel-entropy bands 0f21a49; 5 Authority/Selection/Redress dbe176d; 6 Knowledge/Channel/Fact standing cb6a126; 7 clock, Commitment, Pressure, derived CausalBoundary and the structural answer rule 1852ddd; 8 confined elaborator lane and derived tool catalog 3ed3868; 9 budgeted connected cover with tick-driven fairness ceil(N/R), R = cells minus urgency slots, verified 22 ticks at the 2,400/240 profile 8aebfb6; 10 confined external consumer ingress over POST /cultnet/world-patch a1fd645. The kernel now holds 12 decision-constraining component kinds over 27 named operations under one WorldPatch, one reducer, one CAS commit, one decode bound for both authoring lanes, and three confined SystemCapability arms (Clock, Elaborator, Consumer); the action vocabulary is data in the seed and the kernel never learns a genre. The eleven plan invariants hold structurally at the end of the series per Soul: one deterministic reducer and atomic commit; kernel-derived authority; one controller per scope with no fallback or double action; total interpretation with exact gaps; deterministic structural rejection without a model verifier; scoped knowledge until explicit communication; external-consumer sovereignty; sparse causal sufficiency with counts as evidence only; restart reconstructs the exact world; IDs allocated only inside an admitted reduction; opportunities bound to a scope digest rather than a revision. The pairing invariant is re-decided at three gates by doctrine, not by a repair loop. Test surface grew from 43 world / 83 crate at the series start to 313 world / 357 crate source functions at a1fd645 (focused world:: run 312 / 352). Two design decisions remain with the operator and are recorded nowhere else durable: whether a refused coupled constituent may re-submit once inside the same tick, to be decided with the submitted-versus-committed number in hand; and the authority for an owner-only Eve world.run_tick command. The next seam after the series is the outbound consumer response batch and a non-loopback CultMesh lease.", "status": "ok", "ts": "2026-09-05T02:13:22+00:00", "type": "implementation"} {"note": "First local live smoke of the rebuilt kernel (2026-09-05): production tick driver, cover, Persona membrane, operational lane, clock, and elaboration sweep ran three ticks against a real CodexConnector (head daemon, ChatGPT auth) on a genesis world; revision 2->11, two singleton cells per tick, Persona spoke each tick, elaboration clean (nothing derived to answer). Wall time 40-70 s per tick. The road works; prose is thin because genesis is three subjects in one room with one affordance, which is the seed-producer gap. Runbook: notes/local-live-smoke.md. Stale: the pre-pass-6 ignored acceptance test in controllers.rs fails at NoAudience.", "status": "ok", "ts": "2026-09-05T13:42:18+00:00", "type": "verification"} {"note": "Seeded live smoke passed (2026-09-05): from the Kalsa Public vault, one seed session authored six qualified persons into Low Sere in one round (39 s), deficit 6->0; the world activated with nine subjects and six boundaries; three ticks of eight singleton cells each (95-123 s) with the seeded people speaking to each other by name. Twelve runs; every failure was on the road and each became a rule: one credential family (real codex home), strict schemas (anyOf, typed tags, offline totality test), a supported Persona model, expiry skew vs response timeout, ids beside labels in the brief, seed budget 24 with parallel calls and budget-end submit, content-addressed provider request ids, the commitment shape rule in the tool description, and the placement rule. The harness fails on an empty seed or a silent world.", "status": "ok", "ts": "2026-09-05T17:36:41+00:00", "type": "verification"} -{"ts": "2026-09-05T22:25:31+00:00", "type": "research", "status": "ok", "note": "Claude Agent SDK as a transport (2026-09-06, research-agent-sdk.md): the system prompt is fully replaceable, built-ins strippable (tools: []), CLAUDE.md loading stoppable (settingSources: []), and assistant tool_use blocks are returned verbatim with usage and stop reason; but no silent capture exists (every denied tool call becomes a tool result the model reads), a Responses-style input list cannot be replayed (the harness owns the assistant side), there is no request id or replay, and each query is one subprocess. Chosen shape: execute-through, Ghostlight tools registered as in-process SDK tools whose handler hands each call back to Ghostlight for the result its own evaluator computes. Rejected: a Messages-API backend (no API spend), a backend inside CodexConnector (deliberately isolated Codex fork). Nothing installed locally: no claude CLI, no SDK, no subscription credential; the operator must install and log in before a road run."} +{"note": "Claude Agent SDK as a transport (2026-09-06, research-agent-sdk.md): the system prompt is fully replaceable, built-ins strippable (tools: []), CLAUDE.md loading stoppable (settingSources: []), and assistant tool_use blocks are returned verbatim with usage and stop reason; but no silent capture exists (every denied tool call becomes a tool result the model reads), a Responses-style input list cannot be replayed (the harness owns the assistant side), there is no request id or replay, and each query is one subprocess. Chosen shape: execute-through, Ghostlight tools registered as in-process SDK tools whose handler hands each call back to Ghostlight for the result its own evaluator computes. Rejected: a Messages-API backend (no API spend), a backend inside CodexConnector (deliberately isolated Codex fork). Nothing installed locally: no claude CLI, no SDK, no subscription credential; the operator must install and log in before a road run.", "status": "ok", "ts": "2026-09-05T22:25:31+00:00", "type": "research"} +{"ts": "2026-09-06T00:35:37+00:00", "type": "implementation", "status": "ok", "note": "Claude SDK inference port landed (plan step 11, 2026-09-06): a second InferencePort over a Node sidecar on the Claude Agent SDK, routed per lane by model prefix; checkpoint integrity proved transport-agnostic so both ports share one prepare_invocation; the sidecar computes no tool result, Rust answers every call through a per-lane ToolResultOracle that is the evaluator own fold (divergence impossible by construction). Lesson that changes how any future transport is judged: a transport-side validator is a second semantics. The SDK Zod layer stripped unknown keys and refused missing fields before the handler, so a claude lane silently admitted what the connector refused and quarantined what the connector recorded as a gap; the fix is one validator on both transports (Rust decoder), the sidecar handing arguments through unvalidated. Not yet run on the road: no Claude Code CLI or subscription credential on this machine. Receipt is the SDK message, a named stopgap liability; exit is a Messages-API port when API budget exists, deleting the sidecar whole."} diff --git a/state/ghostlight-state.cultcache.jsonl b/state/ghostlight-state.cultcache.jsonl index 32eab4e..a8b19b5 100644 --- a/state/ghostlight-state.cultcache.jsonl +++ b/state/ghostlight-state.cultcache.jsonl @@ -42,3 +42,4 @@ {"key": "2026-09-05T134218Z0000-0040-c341057d3d7c", "payload": "eyJub3RlIjogIkZpcnN0IGxvY2FsIGxpdmUgc21va2Ugb2YgdGhlIHJlYnVpbHQga2VybmVsICgyMDI2LTA5LTA1KTogcHJvZHVjdGlvbiB0aWNrIGRyaXZlciwgY292ZXIsIFBlcnNvbmEgbWVtYnJhbmUsIG9wZXJhdGlvbmFsIGxhbmUsIGNsb2NrLCBhbmQgZWxhYm9yYXRpb24gc3dlZXAgcmFuIHRocmVlIHRpY2tzIGFnYWluc3QgYSByZWFsIENvZGV4Q29ubmVjdG9yIChoZWFkIGRhZW1vbiwgQ2hhdEdQVCBhdXRoKSBvbiBhIGdlbmVzaXMgd29ybGQ7IHJldmlzaW9uIDItPjExLCB0d28gc2luZ2xldG9uIGNlbGxzIHBlciB0aWNrLCBQZXJzb25hIHNwb2tlIGVhY2ggdGljaywgZWxhYm9yYXRpb24gY2xlYW4gKG5vdGhpbmcgZGVyaXZlZCB0byBhbnN3ZXIpLiBXYWxsIHRpbWUgNDAtNzAgcyBwZXIgdGljay4gVGhlIHJvYWQgd29ya3M7IHByb3NlIGlzIHRoaW4gYmVjYXVzZSBnZW5lc2lzIGlzIHRocmVlIHN1YmplY3RzIGluIG9uZSByb29tIHdpdGggb25lIGFmZm9yZGFuY2UsIHdoaWNoIGlzIHRoZSBzZWVkLXByb2R1Y2VyIGdhcC4gUnVuYm9vazogbm90ZXMvbG9jYWwtbGl2ZS1zbW9rZS5tZC4gU3RhbGU6IHRoZSBwcmUtcGFzcy02IGlnbm9yZWQgYWNjZXB0YW5jZSB0ZXN0IGluIGNvbnRyb2xsZXJzLnJzIGZhaWxzIGF0IE5vQXVkaWVuY2UuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA5LTA1VDEzOjQyOjE4KzAwOjAwIiwgInR5cGUiOiAidmVyaWZpY2F0aW9uIn0=", "stored_at": "2026-09-05T13:42:18.383052+00:00", "type": "ghostlight.evidence_record.v0"} {"key": "2026-09-05T173641Z0000-0041-d6b53753f89a", "payload": "eyJub3RlIjogIlNlZWRlZCBsaXZlIHNtb2tlIHBhc3NlZCAoMjAyNi0wOS0wNSk6IGZyb20gdGhlIEthbHNhIFB1YmxpYyB2YXVsdCwgb25lIHNlZWQgc2Vzc2lvbiBhdXRob3JlZCBzaXggcXVhbGlmaWVkIHBlcnNvbnMgaW50byBMb3cgU2VyZSBpbiBvbmUgcm91bmQgKDM5IHMpLCBkZWZpY2l0IDYtPjA7IHRoZSB3b3JsZCBhY3RpdmF0ZWQgd2l0aCBuaW5lIHN1YmplY3RzIGFuZCBzaXggYm91bmRhcmllczsgdGhyZWUgdGlja3Mgb2YgZWlnaHQgc2luZ2xldG9uIGNlbGxzIGVhY2ggKDk1LTEyMyBzKSB3aXRoIHRoZSBzZWVkZWQgcGVvcGxlIHNwZWFraW5nIHRvIGVhY2ggb3RoZXIgYnkgbmFtZS4gVHdlbHZlIHJ1bnM7IGV2ZXJ5IGZhaWx1cmUgd2FzIG9uIHRoZSByb2FkIGFuZCBlYWNoIGJlY2FtZSBhIHJ1bGU6IG9uZSBjcmVkZW50aWFsIGZhbWlseSAocmVhbCBjb2RleCBob21lKSwgc3RyaWN0IHNjaGVtYXMgKGFueU9mLCB0eXBlZCB0YWdzLCBvZmZsaW5lIHRvdGFsaXR5IHRlc3QpLCBhIHN1cHBvcnRlZCBQZXJzb25hIG1vZGVsLCBleHBpcnkgc2tldyB2cyByZXNwb25zZSB0aW1lb3V0LCBpZHMgYmVzaWRlIGxhYmVscyBpbiB0aGUgYnJpZWYsIHNlZWQgYnVkZ2V0IDI0IHdpdGggcGFyYWxsZWwgY2FsbHMgYW5kIGJ1ZGdldC1lbmQgc3VibWl0LCBjb250ZW50LWFkZHJlc3NlZCBwcm92aWRlciByZXF1ZXN0IGlkcywgdGhlIGNvbW1pdG1lbnQgc2hhcGUgcnVsZSBpbiB0aGUgdG9vbCBkZXNjcmlwdGlvbiwgYW5kIHRoZSBwbGFjZW1lbnQgcnVsZS4gVGhlIGhhcm5lc3MgZmFpbHMgb24gYW4gZW1wdHkgc2VlZCBvciBhIHNpbGVudCB3b3JsZC4iLCAic3RhdHVzIjogIm9rIiwgInRzIjogIjIwMjYtMDktMDVUMTc6MzY6NDErMDA6MDAiLCAidHlwZSI6ICJ2ZXJpZmljYXRpb24ifQ==", "stored_at": "2026-09-05T17:36:41.585793+00:00", "type": "ghostlight.evidence_record.v0"} {"key": "2026-09-05T222531Z0000-0042-844ee50e2d63", "payload": "eyJub3RlIjogIkNsYXVkZSBBZ2VudCBTREsgYXMgYSB0cmFuc3BvcnQgKDIwMjYtMDktMDYsIHJlc2VhcmNoLWFnZW50LXNkay5tZCk6IHRoZSBzeXN0ZW0gcHJvbXB0IGlzIGZ1bGx5IHJlcGxhY2VhYmxlLCBidWlsdC1pbnMgc3RyaXBwYWJsZSAodG9vbHM6IFtdKSwgQ0xBVURFLm1kIGxvYWRpbmcgc3RvcHBhYmxlIChzZXR0aW5nU291cmNlczogW10pLCBhbmQgYXNzaXN0YW50IHRvb2xfdXNlIGJsb2NrcyBhcmUgcmV0dXJuZWQgdmVyYmF0aW0gd2l0aCB1c2FnZSBhbmQgc3RvcCByZWFzb247IGJ1dCBubyBzaWxlbnQgY2FwdHVyZSBleGlzdHMgKGV2ZXJ5IGRlbmllZCB0b29sIGNhbGwgYmVjb21lcyBhIHRvb2wgcmVzdWx0IHRoZSBtb2RlbCByZWFkcyksIGEgUmVzcG9uc2VzLXN0eWxlIGlucHV0IGxpc3QgY2Fubm90IGJlIHJlcGxheWVkICh0aGUgaGFybmVzcyBvd25zIHRoZSBhc3Npc3RhbnQgc2lkZSksIHRoZXJlIGlzIG5vIHJlcXVlc3QgaWQgb3IgcmVwbGF5LCBhbmQgZWFjaCBxdWVyeSBpcyBvbmUgc3VicHJvY2Vzcy4gQ2hvc2VuIHNoYXBlOiBleGVjdXRlLXRocm91Z2gsIEdob3N0bGlnaHQgdG9vbHMgcmVnaXN0ZXJlZCBhcyBpbi1wcm9jZXNzIFNESyB0b29scyB3aG9zZSBoYW5kbGVyIGhhbmRzIGVhY2ggY2FsbCBiYWNrIHRvIEdob3N0bGlnaHQgZm9yIHRoZSByZXN1bHQgaXRzIG93biBldmFsdWF0b3IgY29tcHV0ZXMuIFJlamVjdGVkOiBhIE1lc3NhZ2VzLUFQSSBiYWNrZW5kIChubyBBUEkgc3BlbmQpLCBhIGJhY2tlbmQgaW5zaWRlIENvZGV4Q29ubmVjdG9yIChkZWxpYmVyYXRlbHkgaXNvbGF0ZWQgQ29kZXggZm9yaykuIE5vdGhpbmcgaW5zdGFsbGVkIGxvY2FsbHk6IG5vIGNsYXVkZSBDTEksIG5vIFNESywgbm8gc3Vic2NyaXB0aW9uIGNyZWRlbnRpYWw7IHRoZSBvcGVyYXRvciBtdXN0IGluc3RhbGwgYW5kIGxvZyBpbiBiZWZvcmUgYSByb2FkIHJ1bi4iLCAic3RhdHVzIjogIm9rIiwgInRzIjogIjIwMjYtMDktMDVUMjI6MjU6MzErMDA6MDAiLCAidHlwZSI6ICJyZXNlYXJjaCJ9", "stored_at": "2026-09-05T22:25:31.610150+00:00", "type": "ghostlight.evidence_record.v0"} +{"key": "2026-09-06T003537Z0000-0043-781a784d5f65", "payload": "eyJub3RlIjogIkNsYXVkZSBTREsgaW5mZXJlbmNlIHBvcnQgbGFuZGVkIChwbGFuIHN0ZXAgMTEsIDIwMjYtMDktMDYpOiBhIHNlY29uZCBJbmZlcmVuY2VQb3J0IG92ZXIgYSBOb2RlIHNpZGVjYXIgb24gdGhlIENsYXVkZSBBZ2VudCBTREssIHJvdXRlZCBwZXIgbGFuZSBieSBtb2RlbCBwcmVmaXg7IGNoZWNrcG9pbnQgaW50ZWdyaXR5IHByb3ZlZCB0cmFuc3BvcnQtYWdub3N0aWMgc28gYm90aCBwb3J0cyBzaGFyZSBvbmUgcHJlcGFyZV9pbnZvY2F0aW9uOyB0aGUgc2lkZWNhciBjb21wdXRlcyBubyB0b29sIHJlc3VsdCwgUnVzdCBhbnN3ZXJzIGV2ZXJ5IGNhbGwgdGhyb3VnaCBhIHBlci1sYW5lIFRvb2xSZXN1bHRPcmFjbGUgdGhhdCBpcyB0aGUgZXZhbHVhdG9yIG93biBmb2xkIChkaXZlcmdlbmNlIGltcG9zc2libGUgYnkgY29uc3RydWN0aW9uKS4gTGVzc29uIHRoYXQgY2hhbmdlcyBob3cgYW55IGZ1dHVyZSB0cmFuc3BvcnQgaXMganVkZ2VkOiBhIHRyYW5zcG9ydC1zaWRlIHZhbGlkYXRvciBpcyBhIHNlY29uZCBzZW1hbnRpY3MuIFRoZSBTREsgWm9kIGxheWVyIHN0cmlwcGVkIHVua25vd24ga2V5cyBhbmQgcmVmdXNlZCBtaXNzaW5nIGZpZWxkcyBiZWZvcmUgdGhlIGhhbmRsZXIsIHNvIGEgY2xhdWRlIGxhbmUgc2lsZW50bHkgYWRtaXR0ZWQgd2hhdCB0aGUgY29ubmVjdG9yIHJlZnVzZWQgYW5kIHF1YXJhbnRpbmVkIHdoYXQgdGhlIGNvbm5lY3RvciByZWNvcmRlZCBhcyBhIGdhcDsgdGhlIGZpeCBpcyBvbmUgdmFsaWRhdG9yIG9uIGJvdGggdHJhbnNwb3J0cyAoUnVzdCBkZWNvZGVyKSwgdGhlIHNpZGVjYXIgaGFuZGluZyBhcmd1bWVudHMgdGhyb3VnaCB1bnZhbGlkYXRlZC4gTm90IHlldCBydW4gb24gdGhlIHJvYWQ6IG5vIENsYXVkZSBDb2RlIENMSSBvciBzdWJzY3JpcHRpb24gY3JlZGVudGlhbCBvbiB0aGlzIG1hY2hpbmUuIFJlY2VpcHQgaXMgdGhlIFNESyBtZXNzYWdlLCBhIG5hbWVkIHN0b3BnYXAgbGlhYmlsaXR5OyBleGl0IGlzIGEgTWVzc2FnZXMtQVBJIHBvcnQgd2hlbiBBUEkgYnVkZ2V0IGV4aXN0cywgZGVsZXRpbmcgdGhlIHNpZGVjYXIgd2hvbGUuIiwgInN0YXR1cyI6ICJvayIsICJ0cyI6ICIyMDI2LTA5LTA2VDAwOjM1OjM3KzAwOjAwIiwgInR5cGUiOiAiaW1wbGVtZW50YXRpb24ifQ==", "stored_at": "2026-09-06T00:35:37.534424+00:00", "type": "ghostlight.evidence_record.v0"} diff --git a/state/map.yaml b/state/map.yaml index a404d5e..d699d7b 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. 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///<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. Plan step 11, the Claude SDK inference port, is integrated: tip `0cbbf77` (docs) over `4f424a5`/`0fa411b` (Soul), `2ff1d43` (sidecar), `b150b5e` (Rust port), `708d621`, on `feb603b`; push follows a background crate test, `git status -sb` is the witness. Landed: `world/sdk_inference.rs` (`SdkInferencePort`, `RoutedInferencePort`, `SidecarLink`/`ChildProcessLink`, `SidecarFrame` kinds, `lower_query`, `assemble_output`, `SdkInferenceReceipt`); `ToolResultOracle` with Interpreter/Grouped/Operational/Elaboration oracles over three extracted folds; `prepare_invocation` shared by both ports; `open_inference` routing by `GHOSTLIGHT_SDK_MODEL_PREFIX` (default `claude`), `GHOSTLIGHT_SDK_SIDECAR` opt-in with no default, `GHOSTLIGHT_CONTROLLER_CREDENTIAL` only with a connector binding; `ControllerRunner::open` injection-only, `with_test_ports` gone; `sidecar/claude-sdk` pinned (agent-sdk 0.3.261, msgpack 3.1.3, zod 4.5.4, Node >=24 <25); no credential in the tree. Baseline 408 tests in `world/`, 461 crate source, 13 persona-projection, 24 sidecar. Soul: integrate with follow-ups; the port is a retirable stopgap (delete `sdk_inference.rs`, the sidecar, `SdkBinding`, two env vars; `prepare_invocation`, the oracle and folds, `RoutedInferencePort` survive). Decisive finding: the SDK Zod layer strips unknown keys and refuses missing required fields before the handler, so a claude lane would admit what the connector refuses and quarantine what it records as a gap; ruling: one validator on both transports, the Rust decoder, sidecar passes raw arguments. Step-11 follow-ups integrated at `d72c246` over `a791d55` (sidecar: loose schema conversion so Rust is the one validator; `protocol_violation` kept with causes stated; `resultFault` exported and tested) and `3514d76` (line-ending-neutral source scan), merge confirmed by SHA before worktree removal, push after the result line. `d72c246`: `take_oracle` above the gates, four `pub(crate)` widenings reverted, `fixture_prepared` collapsed, `DEFAULT_SDK_MODEL_PREFIX` used in runtime. Residual liability in plan step 11: a wrong-typed property value reaches Rust as absent, not wrong. Baseline 408 tests in `world/`, 461 crate source, 13 persona-projection, 29 sidecar. Step 11 complete with follow-ups; nothing in flight, no worktree. Gating lessons of the session: never chain `merge --ff-only` with `branch -D`; the push follows the test result line, never the launch (`3514d76` was pushed red for ten minutes). Next: the operator installs the Claude Code CLI and logs in per `notes/local-live-smoke.md`, then the first SDK road run. 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 1e25363..de278c2 100644 --- a/state/scratch.md +++ b/state/scratch.md @@ -2,14 +2,11 @@ ## Current Subgoal -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. +None. Step 11 is complete with its follow-ups at `d72c246`; no worktree +exists. The next slice opens when the operator installs the Claude Code CLI +and logs in (first SDK road run), or on the outbound consumer response batch, +the deployment gate, or decision (b) `world.run_tick` (see +`notes/fresh-workspace-handoff.md`). ## Working Notes