diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 739912ed..b1343d08 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -2,11 +2,11 @@ Updated: 2026-08-24 Branch: `codex/epiphany-shakedown-live` -Latest committed Epiphany source cut: `ed7357a2` +Latest committed Epiphany source cut: `07529fb5` 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 +Current pass: source subtraction continues after collapsing semantic state into +Core; duplicate family request identities on generic worker launch/result +records are next; Ox17 and Atlas Gate 1 remain paused ## Orientation @@ -17,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 `ed7357a2` is the current +production symlink body and is inactive. Exact `07529fb5` is the current build-affecting source. Historical live proofs remain evidence; they do not authorize the next capstone or Gate 1. @@ -93,6 +93,17 @@ 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 `07529fb5` deletes `epiphany-state-model` as a Cargo package. Only +`epiphany-core` consumed it; the semantic Serde contracts now live in a plain +Core-owned module. Unused JsonSchema/TypeScript derives, `schemars`, `ts-rs`, +duplicate memory-graph re-exports, three stale WebSocket patch pins, and 99 +lockfile lines are gone. The commit removes 201 maintained lines net and one +package without changing serialized contracts or schema epochs. Core checks +without warnings; the deterministic keyed-Mind and repository-path proofs pass. +Whole-Core Clippy exposes 58 pre-existing lints outside this cut. Verification +generated 1.842 GB across 2,718 files; cleanup restored only the exact state +inspector. + Exact `a6cf9383` quarantines concrete Codex/OpenRouter authentication, credential reading, and network transport at the two release entrypoints that perform inference. `epiphany-openai-runtime` now owns only exact native-request @@ -1177,17 +1188,17 @@ coordinator `12/12`, swarm `10/10`, and model-runtime `13/13`. ## Immediate next action -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. +The Ox17 deployment lane remains paused. Continue subtraction from exact +`07529fb5`: remove the optional family request-ID mirrors on the generic worker +launch and their role-result echoes wherever the exact typed launch document or +structured decision already owns identity. Delete their validators, +constructor defaults, and fixture assertions rather than replacing them with a +registry. Then audit whether the generic runtime session aggregate protects any +invariant not already owned by jobs, decision contexts, coordinator receipts, +and retention tombstones. The Connector CultMesh/Idunn/Yggdrasil proof and +Ghostlight adoption remain queued behind source stabilization. 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 diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 5068d1fc..2daa9055 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index cf1980b4..1ea5ad17 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -43,6 +43,19 @@ invariants: - Evidence and git retain history; this map retains only state that changes future decisions. current_status: + semantic_state_package_cut: >- + Exact 07529fb5 deletes the epiphany-state-model package after proving + epiphany-core is its sole consumer. The ordinary Serde semantic contracts + move unchanged into one Core-owned module; unused JsonSchema and TypeScript + derives, schemars and ts-rs, duplicate memory-graph re-exports, three stale + WebSocket patch pins, and 99 lockfile lines disappear. The committed + structural delta is 201 net deletions and one fewer Cargo package. Core + checks without warnings; the deterministic keyed-Mind and repository-path + consequence proofs pass. Whole-Core Clippy remains blocked by 58 + pre-existing lints outside this cut. Verification generated 1.842 GB across + 2,718 files; cleanup restored only the exact 1,776,640-byte state inspector. + No schema epoch changes because serialized contracts did not change. Atlas + and live deployment remain untouched. decision_audit_cut: Exact f8412b69 adds a read-only context-ID audit projection over the sealed basis, decoded reasoning projection, exact terminal native/provider requests, governed tool observations, structured terminal records, and exact Mind commit receipts. Exact 5f66d6c9 adds deterministic read-only discovery of fully auditable terminal context IDs through the existing packaged model runtime; sealed but nonterminal contexts remain physiology and are omitted. Worker archive v1 retains the typed role and generic result family; runtime schema v2 refuses the prior digest-only writable archive shape. Yggdrasil CI then falsified five portable-test assumptions and accepted their source repairs through exact ebc0ffe4. Its sealed Linux package predates the operator-control-plane deletion and is now historical package evidence, not a deployable current release. provider_schema_cut: Exact 553f79d9 makes one OpenAI Responses dialect compiler own every role and Persona output schema. Provider-illegal conditional and parent-relative structure is removed, literal-only schemas receive explicit types, supported standard-model constraints remain generation guidance, and UUID formats lower to exact patterns. Full native decoding and family Mind admission remain final authority. Preserved packaged falsifications at 55fb4cf8, edd664db, and 1e01c339 prove refusal before inference, typed failure without Mind writes, successful concurrent Persona cognition, and transcript-free failure audit. repo_model_body_cut: Exact a8f3c1f0 makes the authenticated runtime Body route own initial keyed RepoModel binding. Bootstrap derives the digest from the admitted RepositoryBodyObservationBasis, initialization reauthenticates runtime, swarm, workspace, and Body binding before any write, and a hostile seed refuses with the whole store byte-identical. The exact 553f79d9 package exposed this root after concurrent Persona and terminal Modeling cognition; its result is not transplanted. Exact 79292fe3 makes one authenticated Repository Body snapshot load own runtime route, Body binding, historical observation, and manifest validation. Basis validation, Mind admission, Modeling projection, and manifest consumers no longer validate, reopen, and reconstruct the same head against a second store read. @@ -154,10 +167,10 @@ current_status: starfire_linux_modeling_peak: 109887488_bytes_resident_body_plus_modeling_circuit 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. The embedded Codex build/auth authority is now absent. Continue splitting runtime authority only by deleting callerless or duplicate 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 remains an earned privilege boundary and its Yggdrasil issuer/crossing route still requires owning-lane repair before Persona consequence readiness. Historical c011 and partial Gate roots stay untouched/read-only. - next_action: Continue the standalone transport migration from exact Epiphany source ed7357a2 and CodexConnector 54d8bc2525b7e7fa1b9dd26b95871247ff4c7566. Add one redacted provider-owned CultMesh/Odin readiness projection without prompt, credential, account, replay, or decision cargo; audit its dependency/build cost before admission. Then give CodexConnector its independent Idunn target, install the frozen daemon on Yggdrasil, and prove an Epiphany connector round trip with transcript-free decision audit and governed tool continuation. Ghostlight must then adopt the same client ABI and delete its copied wire/deployment authority. Preserve one refresh writer, consumer-owned prompts/tools/admission, and the complete unrun Model Atlas vertical slice. Do not run a local full-workspace compile, package, live credential transfer, Ox root, or Model Atlas Gate run. + unresolved_authority: `runtime_spine.rs` remains the largest central liability at 9,301 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. The generic worker launch still mirrors eight optional family request identities beside its exact typed launch document, and structured role results repeat several of the same family identities. Continue deleting those duplicate authorities before considering a split or abstraction. 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 remains an earned privilege boundary and its Yggdrasil issuer/crossing route still requires owning-lane repair before Persona consequence readiness. Historical c011 and partial Gate roots stay untouched/read-only. + next_action: Continue source subtraction from exact 07529fb5. Audit the eight optional family request-ID mirrors on EpiphanyRuntimeWorkerLaunchRequest and their role-result echoes against the exact typed launch document and structured terminal decision. Derive family identity from its existing owner and delete each redundant field, validator branch, constructor default, and fixture assertion without adding a generic launch registry or compatibility reader. Then reassess whether the generic runtime session aggregate protects any invariant not already owned by jobs, decision contexts, coordinator receipts, and retention tombstones. Keep the standalone Connector readiness/Idunn/Yggdrasil/Ghostlight deployment sequence queued until the source body stabilizes. Preserve one refresh writer, consumer-owned prompts/tools/admission, and the complete unrun Model Atlas vertical slice. Do not run a local full-workspace compile, package, live 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/v38. 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. + 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/v38. 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,301 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. runtime_event_cut: Exact 27fe11ae deletes persisted generic runtime events, their registry and CultNet contract, CLI/status surfaces, coordinator and lifecycle shadows, archival dependencies, and the obsolete legacy coordinator repair path. Exact d66baa27, 058751fb, and 573ddc8b first removed provider-event duplication, the arbitrary event writer, and paired lifecycle events. Runtime session/job state plus exact typed results, failures, coordinator run receipts, and coordinator death recoveries solely own terminal facts. Events cannot route work, authenticate terminality, or resurrect authority because no runtime-event document remains. diff --git a/state/scratch.md b/state/scratch.md index b3a51381..ed456925 100644 --- a/state/scratch.md +++ b/state/scratch.md @@ -211,13 +211,19 @@ and janitors may reduce the symptom but cannot substitute for deleting code. sealed document identity; current-work, admission, coordinator actuation, and archival now consume it directly. Runtime epoch is v17; 70 net source lines are gone. -38. Next: apply the same ownership test to Body Modeling, Planning, PlanMind, +38. Done: exact `07529fb5` collapses the single-consumer + `epiphany-state-model` package into a plain Core-owned module. Unused + JsonSchema/TypeScript derives, `schemars`, `ts-rs`, duplicate graph + re-exports, stale WebSocket patch pins, and 99 lockfile lines are gone. The + commit removes 201 maintained lines net and one Cargo package without a + schema-epoch change. +39. Next: apply the same ownership test to Body Modeling, Planning, PlanMind, Imagination consideration, and Reorientation launch bindings. Delete the family when the worker launch and typed request already own its facts; do not create generic launch authority. -39. Continue the public runtime-spine and test-liability audit by live owner +40. Continue the public runtime-spine and test-liability audit by live owner and consequential invariant. Do not subtract the unrun Atlas vertical slice; no inter-swarm collaboration has yet been exercised. Streamline it only around its one end-to-end authority map. -40. Run focused tests after each cut. Only after source subtraction stabilizes +41. Run focused tests after each cut. Only after source subtraction stabilizes should Idunn's build scratch contract be reconsidered.