Open plan step 11, the Claude SDK inference port; record the SDK research
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
e93ed166f1
commit
634e81f365
6 changed files with 53 additions and 16 deletions
|
|
@ -427,13 +427,19 @@ 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. Standing premise, not yet
|
||||
a design: the credential is the Claude subscription through the Agent
|
||||
SDK or the Claude Code CLI, as a stopgap; the connector is a separate
|
||||
small organ; its shape waits on a read-only research pass
|
||||
(`research-agent-sdk.md` in the session scratchpad) establishing whether
|
||||
the SDK can act as a transport that returns tool calls unexecuted, and
|
||||
on the operator saying go. Nothing is edited in either repo. Facts that
|
||||
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
|
||||
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`
|
||||
|
|
|
|||
|
|
@ -486,6 +486,34 @@ region-wide or global witness still discards a grouped cell's in-flight work
|
|||
for every constituent it touches, which is the debt this pass explicitly
|
||||
declined to pay.
|
||||
|
||||
### 11. Claude SDK inference port — in design
|
||||
|
||||
Objective: run Ghostlight's inference lanes on the Claude subscription while
|
||||
no Codex subscription or API budget exists, without moving the harness.
|
||||
|
||||
Current mechanism: one `InferencePort` implementation, the CodexConnector
|
||||
client, behind which every lane derives its exact request and owns its loop;
|
||||
the connector's request types leak into four files.
|
||||
|
||||
Intended change: a second port, `SdkInferencePort`, that spawns a Node
|
||||
sidecar (a small TypeScript package in this repo on the Claude Agent SDK)
|
||||
over stdio with length-prefixed MessagePack frames. One request is one SDK
|
||||
query with the system prompt replaced, built-ins stripped, settings sources
|
||||
empty, the request's tools registered as in-process SDK tools, a turn cap,
|
||||
and the request's model. Execute-through: each tool call the model makes is
|
||||
handed back over the pipe and answered with the result Ghostlight's own
|
||||
evaluator would produce, so the SDK loop runs on real results and one query
|
||||
returns as one round. Persona and Projector are single completions. The
|
||||
credential is Claude Code's own; Ghostlight holds none.
|
||||
|
||||
Cut line: no second identity scheme (checkpoints re-derive the same request
|
||||
identity); no daemon, network port, or CultMesh surface for the sidecar; no
|
||||
credential handling in Ghostlight; the connector port is untouched; the
|
||||
port is chosen per lane by the configured model. Stopgap by design: the
|
||||
receipt is the SDK's message, not wire bytes, and that liability is named
|
||||
where the port is defined. Rejected: a Messages-API backend (no API spend);
|
||||
a backend inside CodexConnector (a deliberately isolated Codex fork).
|
||||
|
||||
## Subtraction budget
|
||||
|
||||
Prefer deletion, collapse, or reuse before adding surfaces. The replacement
|
||||
|
|
|
|||
Loading…
Reference in a new issue