Document native model boundary subtraction

This commit is contained in:
Meta Vens 2026-08-25 01:58:09 +02:00
commit b728d6854e
6 changed files with 122 additions and 79 deletions

View file

@ -1,9 +1,10 @@
# Epiphany current algorithmic map
Updated: 2026-08-25
Latest committed implementation cut: `125d77a2` on `codex/epiphany-shakedown-live`
Current pass: reorientation result review consumes one runtime snapshot;
terminal-admission reader audit is next; Ox17 remains paused
Latest committed implementation cut: `a721b763` on `codex/epiphany-shakedown-live`
Current pass: one native model event/receipt family and one model-adapter
package own provider projection; audit the library-only model-runtime package
next. Ox17 remains paused
This document describes the live machine. Historical cuts, rejected paths, and
proof chronology belong in git, `state/ledgers.msgpack`, and bounded smoke
@ -692,6 +693,11 @@ from it. Pending, Completed, and Failed are the complete live vocabulary.
Storage failure is an error, and completed-without-result is a broken invariant;
neither is laundered into a synthetic lifecycle state.
Exact `dfe3757b` carries terminal failure disposition out of that same
projection. The coordinator does not reopen the runtime job to rediscover a
fact the projection already observed; success and failure admission owners
still enforce their own exact strong dependencies.
The target boundary is independent `GameCult/CodexConnector`; exact
`6dc80f6d266db4d82566d2434adcc55a48e8ecad` owns one typed multi-caller
transport package and one public daemon binary without linking a Codex crate.
@ -717,9 +723,10 @@ 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.
readiness and one real Epiphany round trip remain open. Yggdrasil now runs the
independent service and Idunn target for Ghostlight; Ghostlight can consume the
ABI but cannot mutate Connector's source, package, service, credential, or
rollback authority.
Exact `c37cae8b` closes the remaining request-authorship split. The consumer
adapter turns the canonical native request directly into one closed durable
@ -732,6 +739,18 @@ exact direct request variant. Decision contexts and runtime model execution
persist the same provider-request bytes; runtime v47 and decision context v3
refuse the old writable shape.
Exact `b83c0416` deletes the transient provider-specific request-input, tool,
event, payload, and receipt vocabulary. CodexConnector and OpenRouter both emit
the canonical `EpiphanyModelStreamEvent` family directly, whose completed event
carries the canonical `EpiphanyModelReceipt`. No isomorphic normalization pass
or provider-receipt field copy remains.
Exact `a721b763` deletes the `epiphany-openai-adapter` Cargo package. Pure
provider lowering and OpenRouter response projection are modules of
`epiphany-model-adapter`, beside the native contracts they translate. Network
transport remains outside: OpenRouter at the release edge and Codex in the
independent daemon.
## Canonical authority map
| Owner | Inputs | Outputs | Invariant |

View file

@ -222,23 +222,19 @@ Delete or demote:
## Immediate Next Action
Keep the five-day shakedown, Ox17 deployment, and Model Atlas operational Gate
1 paused. Exact `ed7357a2` removes Codex transport from Epiphany's body, and
exact `c37cae8b` closes the residual request-authorship split. Epiphany now
seals the exact final `CodexProviderRequest` as durable Mind input before the
release edge sees it. The edge adds authenticated invocation physiology but no
schema, tool, call-ID, tool-choice, or output-format opinion. 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.
1 paused. Exact `a721b763` leaves Epiphany with one native model event/receipt
family and one package owning native contracts plus pure provider lowering.
Audit the library-only `epiphany-openai-runtime` package next. Its production
model and Persona entrypoints already belong to `epiphany-release-bundle`; if
the separate package protects no independent compile, dependency, or test
invariant, make it the root package's library target and delete its manifest
and dependency edge.
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.
Preserve exact provider-request sealing, the lean Connector client ABI,
OpenRouter's separate temporary release edge, keyed Mind audit/CAS guarantees,
direct Body-to-Modeling flow, Persona state, and the complete unrun Model Atlas
slice. No Epiphany-owned Rider or Unity bridge exists: Brokkr owns Unity through
typed Eve/CultMesh capabilities, and a future Rider daemon owns Rider.
The provider decision is the independent `GameCult/CodexConnector` service;
exact `6dc80f6d266db4d82566d2434adcc55a48e8ecad` owns the v2 multi-caller contract,
@ -248,19 +244,19 @@ keyed replay. No features yields only the typed contract; default `client` adds
authenticated framing and socket transport; `daemon` adds service authority.
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.
ambiguity refuses rather than re-executing. Yggdrasil now runs Connector as an
independent service and Idunn target for Ghostlight. One digest-bound Epiphany
round trip remains unaccepted while Epiphany's selected edge is OpenRouter.
Epiphany pins the contract-only surface in its adapter and enables the client
only at its release edge. Exact `87ea81db` also deletes Epiphany's obsolete
public schema for the extinct generic provider request; the shared Codex
contract belongs to Connector, while Epiphany's wrapper remains private Mind
state. Ghostlight exact `8e7d980` now pins the same Connector source without
changing its live deployment. Exact `7a125d78` removes the excluded 3,592-file
state. Ghostlight exact `8e7d980` pins the same Connector source; its live Ygg
deployment consumes the independent service without owning it. Exact `7a125d78` removes the excluded 3,592-file
Codex implementation tree and its obsolete keeper notes; gamecult-ops exact
`cb63e77` repairs the independent deployment ownership map. No dual daemon or
refresh writer is an acceptable transition state. Resume the semantic-owner
audit of `runtime_spine.rs`.
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
@ -363,7 +359,7 @@ Cut in this order:
projection assembled from exact keyed Mind document versions. The final
model request must render that projection; citing keyed sources while
rendering the old thread snapshot is explicitly forbidden.
2. **Body admission landed at `2eb95df6`; current-work projection landed at `e42788c9`, consumes one exact snapshot at `7374be5e`, typed fulfillment reuses it at `5f1bea39`, coordinator scheduling becomes its sole consumer projection at `2bcbf268`, and reorientation result review becomes a single-cache typed read at `125d77a2`:** one pure typed projection derives Body Modeling, Eyes continuation, proposal Modeling, frontier planning, Hands readiness, and accepted manual-regather obligation from one pulled keyed Mind/runtime cache. Immutable result replay, family admission, PlanMind continuation, worker archival, Resident Self completion, and operator status validate or route against that same projection rather than reopening runtime state or accepting a parallel CRRC action. Reorientation result review likewise reads its job and structured result from one runtime snapshot and exposes no synthetic backend lifecycle.
2. **Body admission landed at `2eb95df6`; current-work projection landed at `e42788c9`, consumes one exact snapshot at `7374be5e`, typed fulfillment reuses it at `5f1bea39`, coordinator scheduling becomes its sole consumer projection at `2bcbf268`, reorientation result review becomes a single-cache typed read at `125d77a2`, and terminal disposition stays in that projection at `dfe3757b`:** one pure typed projection derives Body Modeling, Eyes continuation, proposal Modeling, frontier planning, Hands readiness, accepted manual-regather obligation, and exact Reorientation success/failure disposition from one pulled keyed Mind/runtime cache. Immutable result replay, family admission, PlanMind continuation, worker archival, Resident Self completion, and operator status validate or route against that same projection rather than reopening runtime state or accepting a parallel CRRC action. Reorientation result review likewise reads its job and structured result from one runtime snapshot and exposes no synthetic backend lifecycle.
Modeling must derive from the current Body/RepoModel obligation; Eyes only
from explicit external-evidence obligations. Body-generation Modeling
identity, typed Body-to-Mind admission, sealed reasoning, and atomic decision

View file

@ -2,10 +2,11 @@
Updated: 2026-08-25
Branch: `codex/epiphany-shakedown-live`
Latest committed Epiphany source cut: `125d77a2`
Latest committed Epiphany source cut: `a721b763`
Current connector source: `6dc80f6d266db4d82566d2434adcc55a48e8ecad`
Current pass: reorientation result review uses one typed runtime snapshot;
continue the terminal-admission reader audit; Ox17 and Atlas Gate 1 remain paused
Current pass: one native model event/receipt family serves every provider and
the model adapter owns pure provider lowering; audit the library-only model
runtime package 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 `87ea81db` is the current
production symlink body and is inactive. Exact `a721b763` is the current
build-affecting source on this branch. Historical live proofs remain evidence;
they do not authorize the next capstone or Gate 1.
@ -46,6 +47,24 @@ they do not authorize the next capstone or Gate 1.
## What just landed
Exact `dfe3757b` retains terminal Reorientation failure disposition inside the
one current-work projection. The coordinator no longer reopens the runtime job
to choose success or failure admission; each admission owner still validates
its exact strong dependencies. Core check, Reorientation 1/1, and the
release-owned coordinator compile pass. Verification produced 1.6 GiB across
2,924 files and was removed.
Exact `b83c0416` deletes the provider-specific request-input, tool, stream,
payload, and receipt mirrors. CodexConnector and OpenRouter now produce the one
native model event and receipt family directly. Exact `a721b763` then deletes
the one-file `epiphany-openai-adapter` Cargo package and moves pure provider
lowering beside the native contracts in `epiphany-model-adapter`. Together the
cuts remove 174 maintained lines and one Cargo package without changing any
durable CultCache identity or field order. Model adapter 5/5, decision context
8/8, runtime 21/21, and release model edge 12/12 pass. The two bounded build
roots reached 3.9 GiB/5,598 files and 4.7 GiB/6,524 files; both were removed and
only the exact authenticated state inspector remains.
Independent repository `GameCult/CodexConnector` owns the Codex credential and
transport authority as one Cargo package
with one public daemon binary and no linked Codex crates. Exact
@ -86,10 +105,11 @@ 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.
Yggdrasil now runs the independent Connector service and Idunn target for
Ghostlight. Ghostlight observes its exact receipt but cannot build, select,
restart, or roll it back. Epiphany's source client is present; a live Epiphany
caller admission and round trip remain open while the selected Epiphany
provider edge is OpenRouter.
Exact `07529fb5` deletes `epiphany-state-model` as a Cargo package. Only
`epiphany-core` consumed it; the semantic Serde contracts now live in a plain
@ -1359,9 +1379,9 @@ their existing typed audit cargo. Mind/runtime/RepoModel epochs advance to
v4/v5/v2. Local acceptance is core `494/494`, OpenAI runtime `26/26`,
coordinator `12/12`, swarm `10/10`, and model-runtime `13/13`.
## Immediate next action
## Historical subtraction ledger
The Ox17 deployment lane remains paused. Exact Epiphany `c37cae8b` closes the
The Ox17 deployment lane remained paused through this cut. Exact Epiphany `c37cae8b` closes the
remaining two-stage Codex request seam. The consumer adapter now derives and
seals one closed durable provider-request document: either the exact final
`CodexProviderRequest` or the exact OpenRouter request. The release edge no
@ -1383,9 +1403,9 @@ Exact `87ea81db` pins the current Connector source and deletes Epiphany's stale
106-line public JSON schema for the extinct generic request; the public catalog
now contains only the portable Persona and work-organ contracts.
Ghostlight exact `8e7d980` now pins the same Connector source contract. Only
Cargo metadata and the additive Connector API diff were checked locally; no
Ghostlight compilation or deployment ran on Starfire.
Ghostlight exact `8e7d980` pinned the same Connector source contract. The later
Yggdrasil cut installed Connector as an independent service and Idunn target;
Ghostlight can consume its ABI but cannot deploy or mutate the daemon.
Exact `7a125d78` deletes the entire 3,592-file vendored Codex tree: 851,099 net
lines removed. Cargo metadata and manifest/source guards prove it had no build
@ -1396,12 +1416,10 @@ superseded live migration notes are gone. Gamecult-ops exact `cb63e77` repairs
the inventory to name the independent `yggdrasil-codex-connector` Idunn target;
no service or deployment state changed.
Continue subtraction from exact `7a125d78` in `runtime_spine.rs`. Group its
surface by semantic owner, then delete or internalize single-caller public
wrappers, duplicate load/validate paths, and retention/session cargo that buys
no independent invariant. Preserve keyed Mind, exact audit and CAS guarantees,
direct Body-to-Modeling flow, OpenRouter as a separate temporary provider edge,
and the complete unrun Model Atlas slice.
The subsequent source-subtraction passes grouped `runtime_spine.rs` by semantic
owner and removed single-caller wrappers, duplicate reads, and unowned cargo.
The current next action is owned by the handoff header and `state/map.yaml`, not
this historical ledger.
Yggdrasil previously exposed 96 GiB of dead native Cargo targets after
interrupted full-workspace builds; exact cleanup returned the builder target

View file

@ -14,32 +14,32 @@ and release cadence.
## Current mechanism
The source and live mechanisms are deliberately distinct during the braked cut:
The source and live mechanisms are deliberately distinct while Epiphany remains
braked:
1. Exact Epiphany `c37cae8b` seals the final Codex provider request and uses the
standalone Connector client ABI only for authenticated transport. Its
embedded spine, direct Codex auth/HTTP/SSE path, compiled Codex graph,
`CODEX_HOME`, auth.json readiness, and second release-edge request lowering
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.
1. Exact Epiphany `a721b763` seals the final provider request and retains only
the standalone Connector client ABI for Codex transport. Its embedded Codex
spine, direct Codex auth/HTTP/SSE path, compiled Codex graph, `CODEX_HOME`,
auth readiness, second request lowering, mirrored provider event family,
and one-file OpenAI adapter package are deleted. That source is not deployed;
production Epiphany remains inactive on its historical release and its
selected live-provider design is the separate direct OpenRouter edge.
2. Yggdrasil runs independent `codex-connector.service` on loopback TCP 4103.
`yggdrasil-codex-connector` is its own Idunn target with its own source,
package, signed health, selection, and rollback. Ghostlight may consume its
encrypted MessagePack ABI but cannot configure, build, select, start, stop,
or roll it back. Epiphany participates in neither release graph.
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
is useful; the ownership is not.
Ghostlight owns request derivation, schema projection, retry, interpretation,
and world admission. CodexConnector owns caller admission, replay, credential
custody, provider transport, and exact transport receipts. The service boundary
is live; an Epiphany caller admission and round trip remain unaccepted.
## Current cut status
Independent `GameCult/CodexConnector` exact
`6dc80f6d266db4d82566d2434adcc55a48e8ecad` 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
`6dc80f6d266db4d82566d2434adcc55a48e8ecad` established the independent source
boundary. It owns one Cargo package, one public daemon binary, the v2 multi-caller
MessagePack contract, 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
@ -83,11 +83,18 @@ the obsolete public JSON schema for the extinct generic OpenAI-shaped request.
Provider wire contracts are published by their owning provider boundary;
Epiphany's closed provider-request wrapper remains private Mind state.
Exact Ghostlight `8e7d980` pins the same Connector source contract. Cargo
metadata and the additive Connector API diff validate the dependency seam; no
local Ghostlight compilation, Idunn transaction, or live service mutation was
performed. The current Yggdrasil Ghostlight connector remains historical live
physiology until the standalone deployment cut is admitted separately.
Exact Epiphany `b83c0416` deletes the provider-specific request-input, tool,
event, payload, and receipt mirrors. CodexConnector and OpenRouter now produce
the canonical native model event and receipt family directly. Exact `a721b763`
then deletes the one-file `epiphany-openai-adapter` Cargo package and moves pure
provider lowering beside the native contracts in `epiphany-model-adapter`.
Transport remains outside that package boundary.
Exact Ghostlight `8e7d980` pinned the same Connector source contract. The live
Yggdrasil cut now gives Connector its own service and bounded Idunn target;
Ghostlight consumes the ABI and observes its receipt without owning its daemon
or credential. The current Ghostlight test profile may select another provider
without changing this ownership boundary.
## Authority map