Close plan step 11: the SDK port with its follow-ups and lessons

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-06 02:38:50 +02:00
commit 1665620690
6 changed files with 87 additions and 41 deletions

View file

@ -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`

View file

@ -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

View file

@ -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."}

View file

@ -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": "eyJub3RlIjogIlNlZWRlZCBsaXZlIHNtb2tlIHBhc3NlZC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C4iLCAic3RhdHVzIjogIm9rIiwgInRzIjogIjIwMjYtMDktMDVUMTc6MzY6NDErMDA6MDAiLCAidHlwZSI6ICJ2ZXJpZmljYXRpb24ifQ==", "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": "eyJub3RlIjogIkNsYXVkZSBTREsgaW5mZXJlbmNlIHBvcnQgbGFuZGVkIChwbGFuIHN0ZXAgMTEsIDIwMjYtMDktMDYpOiBhIHNlY29uZCBJbmZlcmVuY2VQb3J0IG92ZXIgYSBOb2RlIHNpZGVjYXIgb24gdGhlIENsYXVkZSBBZ2VudCBTREssIHJvdXRlZCBwZXIgbGFuZSBieSBtb2RlbCBwcmVmaXg7IGNoZWNrcG9pbnQgaW50ZWdyaXR5IHByb3ZlZCB0cmFuc3BvcnQtYWdub3N0aWMgc28gYm90aCBwb3J0cyBzaGFyZSBvbmUgcHJlcGFyZV9pbnZvY2F0aW9uOyB0aGUgc2lkZWNhciBjb21wdXRlcyBubyB0b29sIHJlc3VsdCwgUnVzdCBhbnN3ZXJzIGV2ZXJ5IGNhbGwgdGhyb3VnaCBhIHBlci1sYW5lIFRvb2xSZXN1bHRPcm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Q==", "stored_at": "2026-09-06T00:35:37.534424+00:00", "type": "ghostlight.evidence_record.v0"}

File diff suppressed because one or more lines are too long

View file

@ -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