Keep native request authority with consumers

This commit is contained in:
Meta Vens 2026-08-24 14:08:08 +02:00
commit 8e555e358f
5 changed files with 30 additions and 18 deletions

View file

@ -663,9 +663,10 @@ The target boundary is the independent daemon mapped in
Yggdrasil connector already serves Ghostlight over encrypted CultNet, proving
the process seam, but its current single-caller, single-key, fixed-model,
stateless, no-tools contract and Ghostlight-owned deployment are not shared
authority. The v2 daemon independently derives and verifies the exact provider
request, returns a digest-bound transport receipt and typed events, and owns
only Codex credential/transport physiology. Once both consumers pass that
authority. Each consumer internally derives its exact typed provider request;
the v2 daemon verifies those exact bytes and returns a digest-bound transport
receipt plus typed events. It owns only Codex credential/transport physiology.
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.

View file

@ -246,9 +246,10 @@ must expose an existing semantic owner rather than invent a package taxonomy.
The provider decision is now a service extraction, specified by
`notes/standalone-codex-transport-migration.md`. Promote the already-proven
Ghostlight connector seam into an independently source-owned and Idunn-managed
Codex transport daemon. Its v2 contract must admit distinct callers, bind exact
native/provider request digests, return typed tool calls and terminal transport
receipts, and preserve one credential-refresh writer. Only after Epiphany and
Codex transport daemon. Its v2 contract must admit distinct callers, bind the
consumer's native-request digest to the exact daemon-verified provider-request
bytes, return typed tool calls and terminal transport receipts, and preserve
one credential-refresh writer. Only after Epiphany and
Ghostlight pass that contract may the old paths be deleted. The completed cut
removes Epiphany's Codex spine and auth/readiness plumbing, Ghostlight's copied
wire types and connector deployment authority, and the stale bridge branch as

View file

@ -52,8 +52,9 @@ Ghostlight-only `epiphany-model-connector.service`, but that connector is
source-owned by stale branch `codex/epiphany-model-bridge`, deployed in
Ghostlight's Idunn transaction, limited to one caller/key/model, stateless, and
unable to return tool calls. The target is an independent Idunn-managed daemon
with one writable Codex refresh store, distinct authenticated callers, exact
native/provider request-digest receipts, typed tool-call pass-through, bounded
with one writable Codex refresh store, distinct authenticated callers,
consumer-native plus daemon-verified provider-request digest receipts, typed
tool-call pass-through, bounded
replay/concurrency, and redacted CultMesh health. Consumers keep prompts,
projection, tools, retries, interpretation, decisions, and admission. The hard
deletion line removes Epiphany's Codex spine/dependency/auth-readiness plumbing

View file

@ -48,7 +48,8 @@ Owner:
Inputs:
- one authenticated caller identity;
- one exact native request and its deterministically derived provider request;
- one exact typed Codex provider request derived internally by the caller's
consumer-owned adapter, plus the caller-owned native-request digest it cites;
- provider/model admission requested by the caller;
- an expiry bound and request identity.
@ -110,8 +111,8 @@ Every Codex-backed request uses one path:
caller-owned projected state
-> caller-owned exact native request
-> pure deterministic provider lowering
-> authenticated connector invocation
-> daemon validates caller + exact request binding
-> authenticated connector invocation carrying those exact provider bytes
-> daemon validates caller + provider request identity/digest/policy
-> vendored Codex auth/client transport
-> typed provider events + transport receipt
-> caller validates receipt/digests
@ -129,7 +130,8 @@ The v2 hard cut must provide:
- distinct authenticated caller keys and keyed caller admission;
- exact caller/runtime and request identity;
- exact native-request and provider-request SHA-256 binding;
- caller-owned native-request SHA-256 plus daemon-verified exact provider-
request SHA-256 binding;
- model/tool definitions, prior tool calls, and tool results;
- ordered typed text, tool-call, completion, and failure events;
- one terminal transport receipt with provider response and usage identity;
@ -140,10 +142,15 @@ The v2 hard cut must provide:
- provider/model capability discovery without credentials or prompt data;
- explicit refusal documents rather than connection-close ambiguity.
The caller derives the provider request using the shared pure dialect compiler.
The daemon independently derives it from the native request and refuses a
digest mismatch before network access. This retains one canonical native
request while proving which exact provider request was transmitted.
Each consumer derives the provider request through its own pure adapter; the
daemon must not import Epiphany reasoning contracts or Ghostlight stage/world
contracts merely to repeat that derivation. The daemon canonicalizes and hashes
the exact typed provider request it receives, refuses a declared digest or
identity mismatch before network access, and binds the same digest into its
terminal receipt. Epiphany retains its exact native request, internally derived
provider request, and matching daemon receipt in the decision context. This
proves which provider request was transported without giving the daemon a
second opinion about consumer-native cognition.
## Deletion line
@ -243,7 +250,9 @@ GiB/16,483-file footprint is the pre-cut comparison.
- Epiphany and Ghostlight issue concurrent requests under distinct caller keys;
neither can replay, decrypt, exhaust, or impersonate the other.
- One process and one writable Codex auth store own refresh rotation.
- Exact native/provider request substitution refuses before network access.
- Provider-request identity/digest substitution refuses before network access;
Epiphany independently refuses native-to-provider substitution before it
opens the connector invocation.
- A connector receipt reconstructs the exact transport basis without a model
transcript.
- Epiphany tool calls return as typed intents and execute only through

View file

@ -155,7 +155,7 @@ current_status:
yggdrasil_epiphany_service_contract: idunn_source_change_owner_eve_and_local_typed_operator_surfaces_no_discord_control_plane
resident_physiology: historical_c011_exact_465af24d_zero_zombie_proof_accepted_current_containers_exited_255
unresolved_authority: `runtime_spine.rs` remains the largest central liability at 9,300 physical lines, 50 public functions, and 25 public structs; it still mixes immutable identity, sessions/jobs, process claims, model/tool execution binding, family request admission, consequence receipts, retention, and narrow identity/schema reads. Sessions and jobs carry only lifecycle identity/status; terminal result documents own summaries and artifacts. Generic session/job creation is gone; real family launch, model execution, and coordinator owners create runtime physiology. All persisted family launch-binding documents, the standalone verdict-driven Modeling writer, coordinator artifact/status cargo, uninhabited aggregate state-model DTO families, public registered-type catalog, duplicate Eyes acceptance documents, test-only arbitrary runtime writers, and duplicate Persona delivery evidence are gone; immutable worker launches plus typed family requests and atomic admission receipts own launch ancestry and downstream work creation. The release-edge Codex provider still pulls a broad codex-login graph that includes configuration, app-server protocol, telemetry, Starlark, image codecs, and clipboard support; the pure runtime no longer pays that cost. Continue splitting only by deleting callerless or duplicate authority and auditing tests against consequential behavior; do not create family frameworks or adapters. The current gamecult-ops Epiphany unit has retired agent-store and daemon-id argv that its owning lane must fix before deployment. Bifrost's Discord delivery path is a real consumer of Epiphany's short-lived request-bound permit signature, so the distinct permit identity/process remains an earned privilege boundary; current Ygg deployment doctrine still points that crossing at the old Starfire endpoint and installs no issuer unit, which the Idunn lane must repair before Persona consequence readiness. Historical c011 and partial Gate roots stay untouched/read-only.
next_action: Begin the standalone Codex transport migration from notes/standalone-codex-transport-migration.md. Create the independent source owner from the proven connector behavior without merging the stale bridge branch into Epiphany; prove v2 multi-caller identity, exact native/provider request digest binding, tool-call pass-through, refusal/replay, and redacted status before any consumer or live credential cutover. The accepted deletion line removes Epiphany's embedded Codex spine/build graph/auth plumbing and Ghostlight's copied wire/deployment authority. Preserve one refresh writer, exact decision audit, provider capability, consumer-owned prompts/tools/admission, and the complete unrun Model Atlas vertical slice. Do not run a local full-workspace compile, package, live deployment, credential transfer, Ox root, or Model Atlas Gate run.
next_action: Begin the standalone Codex transport migration from notes/standalone-codex-transport-migration.md. Create the independent source owner from the proven connector behavior without merging the stale bridge branch into Epiphany; prove v2 multi-caller identity, consumer-native plus daemon-verified provider-request digest binding, tool-call pass-through, refusal/replay, and redacted status before any consumer or live credential cutover. The accepted deletion line removes Epiphany's embedded Codex spine/build graph/auth plumbing and Ghostlight's copied wire/deployment authority. Preserve one refresh writer, exact decision audit, provider capability, consumer-owned prompts/tools/admission, and the complete unrun Model Atlas vertical slice. Do not run a local full-workspace compile, package, live deployment, credential transfer, Ox root, or Model Atlas Gate run.
runtime_spine_surface_cut: `runtime_spine.rs` owns immutable runtime identity, exact sessions/jobs and process claims, model/tool execution bindings, family admission, consequence receipts, retention, and identity-resurrection fences. Provider requests remain exact durable audit input; provider events/receipts normalize into one native persisted stream/receipt family. Session/job documents carry lifecycle identity and status; terminal job results carry summaries, evidence, artifacts, and decision-context identity. Completed model-session retention writes one private resurrection tombstone; archived worker retention keeps exact request/terminal identity, deletion digest, decision context, structured result, and terminal job records. Mind/runtime writable epochs are v10/v37. Runtime identity and swarm binding retain explicit epoch fields; their child physiology, Hands consequence, and repository-frontier documents rely on CultCache type/schema identity rather than carrying fixed duplicate metadata. Sealed worker contexts keep exact model-input schema and contract. Autonomous proposal promotion commits one proposal/request pair; the request owns its exact origin identities. Research coverage derives from the exact structured result and `Eyes.frontier_research` commit receipt, not a companion packet. Persona delivery consequence identity belongs to the social terminal while Bifrost retains the signed crossing request/receipt. Family launch CAS, model execution, and coordinator opening are the only session/job creation owners. The spine is 9,300 physical lines with 50 public functions and 25 public structs. Continue subtraction by tracing each public surface and verifier to a live consumer and consequential invariant; do not recreate deleted authority through registries, adapters, compatibility readers, or summary DTOs.