Record standalone Codex consumer cut

This commit is contained in:
Meta Vens 2026-08-24 18:03:00 +02:00
commit 3421af57a4
6 changed files with 124 additions and 88 deletions

View file

@ -646,7 +646,7 @@ Codex-derived code remains only where an OpenAI provider needs its earned
authentication or transport. Neither owns Epiphany Mind, scheduler, route, or
interface authority.
Exact `a6cf9383` makes that boundary physical in the package graph. The pure
Exact `a6cf9383` first made that boundary physical in the package graph. The pure
`epiphany-openai-runtime` library opens the exact model execution, derives the
provider request, normalizes typed provider events, emits governed tool
intents, and records terminal physiology/audit without depending on a Codex
@ -654,15 +654,16 @@ crate. One shared source module at the release-bundle edge owns concrete
Codex/OpenRouter authentication, credential reading, and network calls for the
model and Persona entrypoints. Persona keeps its three-stage family executor;
the service owns its concrete runner. Workers have one governed tool-capable
route, not a tool route plus a parallel no-tools opinion. The remaining broad
`codex-login` graph is therefore isolated supply-chain liability, not hidden
runtime-library anatomy.
route, not a tool route plus a parallel no-tools opinion.
The target boundary is the independent daemon mapped in
`notes/standalone-codex-transport-migration.md`. Independent
`GameCult/CodexConnector` exact
`9da6070faa1c4a29455b2383abfaae44d9a7b229` now owns one typed multi-caller
`54d8bc2525b7e7fa1b9dd26b95871247ff4c7566` now owns one typed multi-caller
transport package and one public daemon binary without linking a Codex crate.
Its default library is only the encrypted contract/client ABI; daemon-only
auth, raw Responses transport, CultCache replay, and Ureq/Rustls dependencies
sit behind the `daemon` feature.
Each consumer internally derives its exact typed provider request. The daemon
verifies those exact bytes, returns a digest-bound transport receipt plus typed
events, and uses a private digest-pinned official `codex app-server` child only
@ -673,10 +674,17 @@ Redb store. `Active` is durable before provider I/O; the exact encrypted
`Completed` response is durable before socket reply. After restart, completed
work replays byte-identically and ambiguous active work refuses without
consuming unrelated live capacity. RAM retains only the current process's live
execution set. Redacted CultMesh/Odin readiness remains open before the shared
consumer cuts. Once both consumers pass that contract, Epiphany deletes its
Codex spine, Codex-home/readiness plumbing, and every compiled Codex dependency;
Ghostlight deletes its copied wire law and connector deployment path.
execution set.
Exact Epiphany `ed7357a2` completes its source-side consumer cut. The model and
Persona entrypoints cross the shared client ABI; the complete embedded Codex
spine, compiled Codex graph, direct auth/HTTP/SSE path, and Codex-home/readiness
plumbing are gone. OpenRouter remains a separate direct provider edge. Durable
model receipts retain Connector caller identity, exact native/provider digests,
and cached-token usage without requiring a transcript. Redacted CultMesh/Odin
readiness, the independent Idunn target, Yggdrasil installation, one real
Epiphany round trip, and Ghostlight's copied wire/deployment deletion remain
open.
## Canonical authority map
@ -689,7 +697,7 @@ Ghostlight deletes its copied wire law and connector deployment path.
| `current_work.rs` | keyed Mind view and exact runtime request/job/result/decision families | pure family scheduling and continuation projections | Events, timestamps, role lanes, and thread provenance cannot create or suppress work. |
| coordinator policy/status | keyed Mind presence, exact current work, and the accepted continuity decision | one action/reason pair plus operator-readable role lanes | Coordinator presence is derived; no mutable coordinator head, pressure tableau, or duplicate policy wrapper exists. |
| runtime worker attempt owner | immutable launch, exact process claim, typed result, job result, archival evidence | one terminal attempt authority | Scheduling, process liveness, and semantic admission remain distinct authorities. |
| model-provider boundary | sealed native model request plus explicit provider configuration | exact internally derived provider request and transport result | OpenRouter remains a release-owned direct boundary. Codex transport is moving to independent CodexConnector, which owns only caller admission, credential refresh, exact transport, and durable replay. Provider selection cannot author a second request truth or admit Mind state. |
| model-provider boundary | sealed native model request plus explicit provider configuration | exact internally derived provider request and transport result | OpenRouter remains a release-owned direct boundary. Codex crosses the lean CodexConnector client ABI; the daemon owns only caller admission, credential refresh, exact transport, and durable replay. Provider selection cannot author a second request truth or admit Mind state. |
| OpenAI Responses schema projector | full native typed output schema | one provider-legal strict generation schema | Provider formatting preserves useful supported constraints but never replaces native decoding or Mind admission. |
| model-pass terminal owner | sealed reasoning basis/context and typed failure class | exact transport closure plus `EpiphanyModelPassFailure` and terminal session/job result in one batch CAS | The caller cannot nominate a job/session; the context-derived binding closes role, reorient, and Persona failures without granting generic transport results decision authority. |
| Substrate Gate | exact worker/job authority and requested operation | scoped grant or refusal | Access permission does not admit Mind state. |

View file

@ -223,42 +223,39 @@ Delete or demote:
## Immediate Next Action
Keep the five-day shakedown, Ox17 deployment, and Model Atlas operational Gate
1 paused. Continue the source-subtraction and test-authority audit from exact
`a6cf9383`. The current sequence has deleted the semantic-memory/workspace-coverage
projection system, its local daemon supervisor, and the surviving generic
RepoModel profile, impossible lifecycle, producerless receipt/summary, and
decorative scoring axes. Modeling consumes typed Body and keyed RepoModel state
directly. Domains are seed-owned; model passes mutate only live keyed operations.
Persona consumes keyed memory and social state directly. No
Epiphany-owned Rider or Unity bridge exists: Brokkr owns Unity through typed
Eve/CultMesh capabilities, and a future Rider daemon will own Rider. Do not
admit a fresh package until the remaining production surfaces and tests have
earned their authority under the same audit.
1 paused. Exact `ed7357a2` completes Epiphany's source-side Codex transport cut:
the embedded spine, compiled Codex graph, direct auth/HTTP/SSE path, and
Codex-home readiness are absent. Modeling still consumes typed Body and keyed
RepoModel state directly; Persona still consumes keyed memory and social state
directly. No Epiphany-owned Rider or Unity bridge exists: Brokkr owns Unity
through typed Eve/CultMesh capabilities, and a future Rider daemon owns Rider.
Do not admit a fresh package until the standalone Connector has redacted signed
readiness, an independent Idunn target, and a real digest-bound Epiphany round
trip.
The immediate comparison is now explicit. The release-edge `codex-login`
dependency still imports configuration, app-server protocol, telemetry,
Starlark, image, and clipboard anatomy; a pure runtime consequence test still
costs 1.869 GiB because `epiphany-core` remains broad. Audit those as owned
behavior, not as cleanup chores. A narrower OpenAI auth/refresh boundary must
preserve exact provider capability and refresh-token authority; a core split
must expose an existing semantic owner rather than invent a package taxonomy.
The immediate comparison is now explicit. The former release-edge
`codex-login` graph is gone from Epiphany. `epiphany-core` remains broad and
`runtime_spine.rs` remains its largest mixed owner; audit those as owned
behavior, not as cleanup chores. A future core split must expose an existing
semantic owner rather than invent a package taxonomy.
The provider decision is a service extraction specified by
`notes/standalone-codex-transport-migration.md`. Independent
`GameCult/CodexConnector` exact
`9da6070faa1c4a29455b2383abfaae44d9a7b229` owns the v2 multi-caller contract,
`54d8bc2525b7e7fa1b9dd26b95871247ff4c7566` owns the v2 multi-caller contract,
exact native/provider digest binding, typed tool and terminal receipts, the
pinned official Codex credential child, raw Responses transport, and durable
keyed replay. It links no Codex crate. Active replay identity is written before
network access; the exact encrypted completion is durable before reply;
restart ambiguity refuses rather than re-executing. Redacted CultMesh/Odin
readiness is the remaining daemon source cut before consumer work.
keyed replay. Its default feature set is the lean encrypted client/contract ABI;
daemon-only anatomy is feature-gated. It links no Codex crate. Active replay
identity is written before network access; the exact encrypted completion is
durable before reply; restart ambiguity refuses rather than re-executing.
Redacted CultMesh/Odin readiness is the remaining daemon source cut before its
independent Idunn deployment.
Then Epiphany and Ghostlight must pass their shared-client contracts before the
old paths are deleted. The completed migration removes Epiphany's Codex spine
and auth/readiness plumbing, Ghostlight's copied wire types and connector
deployment authority, and the stale bridge branch as a production source. No
dual daemon or refresh writer is an acceptable transition state.
Epiphany now passes the shared client contract and its old path is deleted.
Ghostlight must adopt the same ABI and remove its copied wire types plus
connector deployment authority after the standalone service is proven on
Yggdrasil. No dual daemon or refresh writer is an acceptable transition state.
Model Atlas has component proofs but no live inter-swarm collaboration run.
Preserve its publication, trust, transport, projection, Soul verification, Self

View file

@ -2,10 +2,11 @@
Updated: 2026-08-24
Branch: `codex/epiphany-shakedown-live`
Latest committed Epiphany boundary document: `1ff87ab3`
Current connector source: `9da6070faa1c4a29455b2383abfaae44d9a7b229`
Current pass: durable standalone Codex transport core landed; redacted
CultMesh/Odin readiness is next; Ox17 and Atlas Gate 1 remain paused
Latest committed Epiphany source cut: `ed7357a2`
Current connector source: `54d8bc2525b7e7fa1b9dd26b95871247ff4c7566`
Current pass: Codex transport is absent from Epiphany's compiled body; redacted
Connector readiness and its independent Idunn target are next; Ox17 and Atlas
Gate 1 remain paused
## Orientation
@ -16,7 +17,7 @@ Idunn's Yggdrasil CI/CD task with local compiler work, or wake resident
cognition without an explicit operator resumption.
Epiphany is a supervised engineering alpha. Exact source `d2ca6630` remains the
production symlink body and is inactive. Exact `a6cf9383` is the current
production symlink body and is inactive. Exact `ed7357a2` is the current
build-affecting source. Historical live proofs remain evidence; they do not
authorize the next capstone or Gate 1.
@ -50,7 +51,7 @@ authorize the next capstone or Gate 1.
map for removing Codex transport entirely from Epiphany's process/build body.
Independent repository `GameCult/CodexConnector` now owns one Cargo package
with one public daemon binary and no linked Codex crates. Exact
`9da6070faa1c4a29455b2383abfaae44d9a7b229` admits distinct authenticated
`54d8bc2525b7e7fa1b9dd26b95871247ff4c7566` admits distinct authenticated
callers, preserves caller-native and exact provider-request digests, passes
typed text/tool/usage/failure results, and uses a digest-pinned official
`codex app-server` child only as the private credential writer. The connector
@ -63,15 +64,34 @@ I/O and replaces it with the exact encrypted `Completed` response before
socket reply. Completed retries survive restart byte-for-byte; a restart-era
active identity returns explicit `Indeterminate` and never re-executes. A
non-secret connection-key epoch detects rotation without persisting a
secret-derived verifier. Focused native acceptance passes 22/22 plus exact
library/binary checks and Clippy. The disposable target peaked at 625 MiB and
was removed completely.
secret-derived verifier. Its default feature set is now only the lean encrypted
client/contract ABI; the daemon, CultCache, Ureq/Rustls, auth child, and replay
owner are behind the `daemon` feature. Default acceptance passes 10/10 and the
daemon feature passes 23/23 plus exact library/binary checks and Clippy. Every
disposable connector target was removed completely.
Redacted CultMesh/Odin publication, Epiphany and Ghostlight shared-client cuts,
the independent Idunn target, and deletion of the old embedded/copied paths
remain open. Consumers keep prompts, projections, tools, retries,
interpretation, decisions, and admission. No live service, credential, or
deployment authority has moved.
Exact Epiphany `ed7357a2` consumes that lean client ABI and deletes the entire
`epiphany-openai-codex-spine` package, every compiled `codex-login` and
`codex-client` dependency, direct Codex HTTP/SSE, `CODEX_HOME`, auth.json
readiness, and Codex credential creation/argv. Model and Persona workers now
pass an explicit loopback connector endpoint, caller runtime identity, and
caller-key credential file. Connector receipts retain caller identity, native
and provider request digests, transport identity, and cached-token usage in the
durable model receipt; runtime/model-receipt epochs advance to v38/v1.
OpenRouter remains direct through one Ureq/Rustls terminal-tool path and its
separate credential.
The maintained non-lock source shrinks by 857 lines and `Cargo.lock` shrinks by
4,830 lines. Core passes 150/150, runtime 21/21, pure adapter 5/5, model edge
12/12, Persona 1/1, both launch targets compile, and focused adapter/root-edge
Clippy passes. The test runs generated 6.2 GiB and 4.6 GiB in the bounded target;
both roots were removed. Only the exact 1,776,640-byte state inspector remains,
SHA-256 `DD38855C6F092C2C53D2212A938E737643F41130F4681708840BA6075320A04E`.
Redacted CultMesh/Odin publication, the independent Connector Idunn target,
Yggdrasil installation, a real Epiphany connector round trip, and Ghostlight's
shared-client/deployment cut remain open. No live service, credential, or
deployment authority moved in this source pass.
Exact `a6cf9383` quarantines concrete Codex/OpenRouter authentication,
credential reading, and network transport at the two release entrypoints that
@ -85,11 +105,10 @@ coordinator switch are gone. Provider strict-shape proofs now live with the
release-owned lowering edge. The cut removes 176 net source lines without a
new crate, executable, process, schema, or epoch. Focused runtime, model,
Persona, and coordinator checks pass. The pure runtime consequence-test root
falls from 12.713 GiB/19,134 files to 1.869 GiB/2,942 files. The release-edge
test still reaches 10.473 GiB/16,483 files because `codex-login` imports config,
app-server protocol, telemetry, Starlark, image, and clipboard anatomy; that is
the next named provider-edge liability. Cleanup removed 10.5 GiB and restored
the exact 1,776,640-byte state inspector. Atlas is untouched; no live
fell from 12.713 GiB/19,134 files to 1.869 GiB/2,942 files. At that intermediate
boundary the release edge still reached 10.473 GiB/16,483 files through
`codex-login`; exact `ed7357a2` subsequently deletes that graph. Cleanup
restored the exact 1,776,640-byte state inspector. Atlas is untouched; no live
inter-swarm collaboration has run.
Exact `ce6bff12` makes execution bindings identity edges instead of miniature
@ -1158,13 +1177,17 @@ coordinator `12/12`, swarm `10/10`, and model-runtime `13/13`.
## Immediate next action
The Ox17 deployment lane is paused. Continue the registered-document and test-
liability audit from exact `fdefb889`; do not compile or deploy through Idunn
yet. Delete an abstraction with tests that merely animate it when it has no
decision-bearing consumer. Preserve keyed Mind, sealed reasoning, direct Body-
to-Modeling flow, family admission owners, Persona social state, provider
boundaries, consequence-verifying receipts, and the complete Model Atlas
vertical slice until its first live inter-swarm collaboration trial.
The Ox17 deployment lane remains paused. Continue the standalone transport cut
from Epiphany `ed7357a2` and Connector
`54d8bc2525b7e7fa1b9dd26b95871247ff4c7566`: add one redacted provider-owned
CultMesh/Odin readiness projection, audit its dependency cost, then give the
Connector an independent Idunn target and install the frozen daemon on
Yggdrasil. Prove one Epiphany round trip with exact digest-bound receipt,
transcript-free decision audit, and governed tool continuation before asking
Ghostlight to adopt the same client ABI and delete its copied wire/deployment
authority. Preserve keyed Mind, direct Body-to-Modeling flow, consequence
receipts, and the complete Model Atlas vertical slice; no live inter-swarm
collaboration has run.
Yggdrasil previously exposed 96 GiB of dead native Cargo targets after
interrupted full-workspace builds; exact cleanup returned the builder target

View file

@ -14,19 +14,19 @@ and release cadence.
## Current mechanism
Two mechanisms currently overlap:
The source and live mechanisms are deliberately distinct during the braked cut:
1. Epiphany compiles `epiphany-openai-codex-spine` into its model and Persona
entrypoints. That crate imports vendored `codex-login` and `codex-client`.
Epiphany therefore carries Codex credential paths, readiness checks, CLI
arguments, HTTP transport, and the complete transitive Codex build graph.
2. Yggdrasil already runs `epiphany-model-connector.service` for Ghostlight.
1. Exact Epiphany `ed7357a2` uses the standalone Connector client ABI for Codex
requests. Its embedded spine, direct Codex auth/HTTP/SSE path, compiled Codex
graph, `CODEX_HOME`, and auth.json readiness are deleted. That source is not
deployed; production Epiphany remains inactive on its historical release.
2. Yggdrasil still runs `epiphany-model-connector.service` for Ghostlight.
It uses encrypted CultNet/MessagePack on loopback TCP 4103, owns a private
writable Codex home, serializes refresh through one `AuthManager`, bounds
payloads and parallelism, rejects replay/substitution, and advertises a
redacted `model.generate.structured` capability through Odin.
The second path is source-owned by the stale
The live Ghostlight path is source-owned by the stale
`codex/epiphany-model-bridge` branch, admits only
`ghostlight-dungeon-yggdrasil`, and is built/deployed inside Ghostlight's Idunn
transaction. Ghostlight duplicates its wire documents locally. The live proof
@ -35,9 +35,10 @@ is useful; the ownership is not.
## Current cut status
Independent `GameCult/CodexConnector` exact
`9da6070faa1c4a29455b2383abfaae44d9a7b229` completes migration steps 1-3
except redacted CultMesh/Odin publication. It owns one Cargo package, one
public daemon binary, the v2 multi-caller encrypted MessagePack contract,
`54d8bc2525b7e7fa1b9dd26b95871247ff4c7566` completes migration steps 1-4 on
the source side except redacted CultMesh/Odin publication and the Ghostlight
cut. It owns one Cargo package, one public daemon binary, the v2 multi-caller
encrypted MessagePack contract and lean default client ABI,
caller-native and exact provider-request digest binding, typed tool/result
transport, a private digest-pinned official `codex app-server` credential
child, raw Responses HTTP/SSE, and durable keyed replay. It links no Codex
@ -52,9 +53,16 @@ capacity for unrelated identities. Replay records do not disappear merely
because request admission expiry elapsed. A non-secret connection-key epoch
detects rotation without persisting a secret-derived verifier.
Focused native acceptance passes 22/22 plus exact library/binary checks and
Clippy. The disposable target peaked at 625 MiB and was removed. No live
service, credential, consumer, or deployment authority has moved.
Default acceptance passes 10/10 and daemon acceptance passes 23/23 plus exact
library/binary checks and Clippy. All disposable Connector targets were removed.
Exact Epiphany `ed7357a2` consumes the lean client, keeps OpenRouter as a direct
separate provider edge, and preserves Connector caller/native/provider digest
evidence in its typed model receipt. Core 150/150, runtime 21/21, adapter 5/5,
model edge 12/12, Persona 1/1, launch checks, and focused Clippy pass. Its
maintained non-lock source shrinks by 857 lines and Cargo.lock by 4,830 lines.
The bounded verification roots were removed; only the exact state inspector
remains. No live service, credential, or deployment authority moved.
## Authority map
@ -198,9 +206,9 @@ second opinion about consumer-native cognition.
## Deletion line
After both consumers pass v2 acceptance:
The deletion line is tracked per consumer; no dual-read fallback is allowed.
### Epiphany
### Epiphany — complete at `ed7357a2`
- delete the `epiphany-openai-codex-spine` package;
- delete all non-vendor compiled dependencies on `codex-login`, `codex-client`,