This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/notes/fresh-workspace-handoff.md

17 KiB

Fresh Workspace Handoff

Live boundary — 2026-08-08

The active branch is codex/epiphany-shakedown-live; pushed state is ced86e7e. Exact cognition source ecfff489fe7e46f6ddcc9d58f0723411e8d94c13 is packaged as sha256-6e5cd9827ab6a659c8a29f1147daf8ebec52ea3d148a16905a1401c539059d79 with witness sha256-8d53746348eecf2afd2a5def5539dfb544e260104fb33e3e7d0eec83573ce3dc. Starfire remains the cognition and release forge; Yggdrasil remains the small public runtime body.

Fresh runtime F:\Projects\.epiphany-runtime\shakedown\live-20260808-v44-clean-planning proved the native proposal Modeling -> Imagination -> dedicated Mind planning circuit without overrides. Mind adopted candidate repo-frontier-plan-candidate-700b1404f73888840ea5981be736ad3b2406e72ec4ee7eba7f763d9db03e498c and Self derived Hands route repo-frontier-route-86b9702dd4ad3eedae2693e8af7d0b547fe00885949fa2646b3f3b6a47a6225d. The operator-safe gate summary is .epiphany-dogfood/v44-clean-planning-r5/coordinator-summary.json.

The adopted plan cannot be executed truthfully. Its path ceiling omits epiphany-core/src/bin/epiphany-mvp-status.rs, the composition owner that must project current RepoModel admission into Reorientation and CRRC. The existing coordinator and CRRC inputs do not independently observe that admission. No source was changed outside the gate.

This exposes a route-lifecycle defect: an adopted Hands route has no typed refusal, relinquish, or supersession transition when implementation inspection falsifies its plan. epiphany.hands.action_refusal_receipt is named in the contract catalog but has no persisted type, writer, CLI command, or route terminalization semantics. The only implemented terminal path requires a patch, command, commit, verification request, Soul verdict, and verdict incorporation. Do not fabricate that consequence chain or mutate the v44 store by hand.

Active work

The exact root release bundle has now proved release incremental compilation: its fresh-target build took 1226.69 seconds, then a touched-core rebuild took 31.47 seconds versus the 7m04s baseline (about 13.5x faster). Evidence is in .epiphany-run/build-benchmarks/incremental-root-20260808/result.json.

The independent incremental-plus-rust-lld trial completed at 1097.14 seconds cold and 29.34 seconds after touching core. Its evidence is under .epiphany-run/build-benchmarks/lld-incremental-root-20260808. The linker saved only 2.13 seconds (about 6.8 percent) on the iteration path and required a toolchain-specific Windows linker location, so it is not repository policy. Root [profile.release] incremental = true is the adopted portable change. This build-configuration edit is an explicit operator-requested supervisor intervention, not evidence that the sealed v44 Hands route performed it. Exact commit 388c49bca8ece81b8ad1d41ca075a3bea9654d67 packaged 21 binaries as sha256-1c63d13fd18b24492376c87425f9c68859075e7032a73566823396ae4e31cb06 with witness sha256-01b526d6ef87be91995e3c5ab5d053b4e6a840132d2a0612436096f31268d023. Exact inspection and CultMesh catalog publication passed. The release is not active; resident daemons retain their prior pinned release.

After the build benchmark, first give adopted Hands work a typed refusal/relinquish path that preserves Mind's plan authority, records why Hands cannot proceed, and returns frontier ownership to a lawful replanning state. Then replay v44, reject the incomplete plan through that path, adopt a corrected plan including the status-composition owner, and prove CRRC -> accepted Reorientation -> Continuity recovery -> Soul closure.

Fresh runtime F:\Projects\.epiphany-runtime\shakedown\live-20260808-v45-hands-relinquishment was copied from the pre-planning v42 boundary; v44 remains sealed. Typed proposal operator-hands-route-relinquishment-v1 was selected as Modeling request repo-frontier-proposal-modeling-5c0ce91b6d30d16c31087088ac613f893a4b65f430cc6fb7fe20faa1bfccde6a with payload digest 01e6bdc556e7cad6dbfcae93ad5f82fd57794af11b3dafb39ecb3747a19f6dfb. One bounded active-release coordinator step launched the proposal-bound Modeling worker. Its typed result completed reviewable and proposal-bound, but Mind correctly refused acceptance with Evolution cannot bypass a current route or own verdict-driven frontier lifecycle. Copying v42 was therefore not a route-free planning boundary: it retained a current-model route even though its operator action was awaitFrontierProposal. Preserve v45 and artifacts in .epiphany-dogfood/v45-hands-relinquishment-r2/r3 as negative evidence; do not weaken the guard or replay the consumed result. Reconstruct the genuinely clean boundary used before v44, then resubmit the same typed proposal.

Persona consequence, bounded retention, crash/restart closure, endurance and resource plateau, and Linux/Yggdrasil cognition remain open. v22 and earlier shakedown scars remain in git and the typed evidence ledger; they are not active rehydration state.

Route-free recovery and planning failure — v46/v47

Fresh v46 at F:\Projects\.epiphany-runtime\shakedown\live-20260808-v46-route-free-relinquishment was bootstrapped natively from the repository Body rather than copied from an old coordinator store. It accepted the explicit objective, selected proposal operator-hands-route-relinquishment-v1, and accepted a source-grounded, proposal-bound Modeling result. Modeling included epiphany-core/src/bin/epiphany-mvp-status.rs in the frontier scope, proving the route-free recovery boundary that v45 lacked.

Canonical Imagination then returned a candidate that failed current request validation with frontier planning candidate substituted request identity or required cargo. The generic runtime job was correctly marked Failed, but no epiphany.runtime.role_worker_result failure projection was persisted. Self's planning lifecycle consumes that typed role result, not the generic job, so it remained falsely at imaginationRunning after the worker exited. Native interrupt could mark the thread binding blocked but could not create the missing typed failure or lawful retry. Preserve v46 as negative evidence; do not edit its store or read its raw worker output.

Fresh retry v47 is F:\Projects\.epiphany-runtime\shakedown\live-20260808-v47-route-free-relinquishment-retry on thread shakedown-v47-hands-relinquishment-r1. Its proposal payload is sha256-06f21aa478a3f6374b9c42bcd0d75320dfd0c354204be69169b67a9ddb13506a and selected Modeling request is repo-frontier-proposal-modeling-ff89a288603b4b26ba86a728240d03710b45516c7bb5d3e6d02e7a63bb41cf70. The scope hints use the actual source owners: hands_gateway.rs, mind_gateway.rs, repo_model_gateway.rs, runtime_spine.rs, the Hands CLI, epiphany-mvp-status.rs, and the app server. Active-release proposal Modeling completed and was accepted under the operator-safe artifact directories .epiphany-dogfood/v47-hands-relinquishment-modeling-r0 and .epiphany-dogfood/v47-hands-relinquishment-modeling-accept-r1.

v47 canonical Imagination then failed identically to v46. Generic runtime job 43a3855c-8445-4c0d-8fa2-85576ef6d631 is Failed with the same candidate identity/cargo validator error, while frontier lifecycle remains imaginationRunning with no typed result. This independent reproduction rules out a one-off detached-process race. Do not create v48: planning cannot adopt the repair because the failure is before the typed result Self needs to review or retry planning.

The operator explicitly authorized proactive intervention in corrupted Epiphany runtime state, with receipts. The labeled supervisor intervention is now implemented in source. The OpenAI runtime canonicalizes set-shaped safe paths before identity validation and persists a non-executable typed role failure beside the generic failed runtime job. Self owns explicit reviewed supersession and creates monotonic immutable retry bindings for both Imagination planning and dedicated Mind judgment; failure alone cannot retry, old attempts remain evidence, and candidate/decision cargo is forbidden on the failure projection. Focused core, coordinator, and runtime tests pass, including symmetric Imagination and Mind failure/review/retry proofs. The next move is commit/push, one exact incremental authenticated package, and a fresh route-free live proof. v46 and v47 remain sealed and must not be repaired in place.

Exact repair commit a6c238721363462712a2f6a1b0df0b3d9cfc072c is packaged as sha256-5605ff00ffea1fce8f679868ae1081215707ef881cc5795172385aae27f96f0c with witness sha256-d9ed1d70a3e1db42b23761991a961f8e9c60531bd480ba01db7e8669a8bfd0e2. Fresh v48 at F:\Projects\.epiphany-runtime\shakedown\live-20260808-v48-planning-recovery proved authenticated cold bootstrap from the repository Body and canonical state/agents.msgpack, proposal-bound Modeling job 7fe64b71-7cfc-4738-bbf0-5247605f4afa, and Mind RepoModel admission. The reconstructed operator proposal used implementation wording, so Modeling lawfully admitted a direct Hands frontier. Operator proposals intentionally permit Hands, Eyes, or Imagination; only autonomous Imagination proposals are forced back through Imagination. Preserve v48 as a valid direct-Hands proof, not as planning-retry evidence. The next run must explicitly request an unadopted Imagination-planning frontier so canonical Imagination and dedicated Mind exercise the repaired seam.

Fresh v49 at F:\Projects\.epiphany-runtime\shakedown\live-20260808-v49-imagination-planning-recovery then proved that exact circuit. Proposal Modeling job f5569a90-6a74-4e54-888d-dee5a8d6ebd7 was accepted; Self committed planning request repo-frontier-planning-d6a08a211c0aa7fa5e86662a8dc19615ce8a400c291364ab172979bc0b9df680; canonical Imagination job f3c85838-7fa8-4863-8f6b-baa47cfad8db produced a valid candidate; dedicated Mind job c2931b60-f981-4f28-a6f6-af2e77156a53 returned its judgment; and Mind committed terminal decision repo-frontier-plan-decision-42a250a3af0dc17fea3074ec0321b4eadf674b197ee04c67515ffcb5783a9b1f. Self derived exact Hands route repo-frontier-route-d4d595821804c3f5bbe24d06084762ed19c3185a945827dfa6b10c53df798e2e. The operator-safe gate is .epiphany-dogfood/v49-hands-gate-r7/coordinator-summary.json. Its six paths are the complete implementation owner set at that revision. The earlier claim that vendor/codex/codex-rs/app-server/src/epiphany.rs was an omitted owner was stale archaeology: that source does not exist and the vendored app-server has no Epiphany projection. Do not mutate source under the historical v49 route, because the newly discovered relinquishment transaction was never part of its adopted plan. Preserve v49 and implement the missing typed relinquishment path as a labeled supervisor intervention across the state model and real six-file owner set, then exercise it against a fresh incomplete route.

The labeled supervisor implementation is now local. Hands persists HandsActionRefusalReceipt; Mind atomically retires the exact frontier and writes review, admission, projection-obligation, and RepoFrontierRelinquishmentReceipt companions through relinquish_repo_frontier_hands_route. The transaction requires one current route authority, at least one missing safe path outside route scope, and zero patch/command/commit/PR consequences. Exact replay is idempotent; collision, already-authorized paths, existing consequences, and reuse of the stale route fail closed. epiphany-hands-action record-refusal is the operator mouth and native status projects frontierRelinquishment.

Focused proof is green: two relinquishment tests, all five existing Hands CLI tests, both native status tests, and the state-model test pass. A broad 645-test library run passed 642 with one ignored and found two failures in unchanged test bodies: autonomous direction ingestion expected one pressure but observed zero, and the route eligibility test attempted to admit a non-active proposal frontier that current admission already forbids. Both failures reproduce unchanged in an isolated worktree at pushed HEAD d1d9cd10; they are pre-existing suite corrosion, not regressions from the new patch-purpose enum. The temporary baseline worktree was removed after the comparison. Commit and push this pass, then package its exact source once. The baseline worktree used temporary junctions for gitlink dependencies; its forced removal cleared the live cultcache-rs and cultnet-rs submodule worktrees. The evidence write caught the damage immediately. Both were restored with git submodule update --init --checkout to pinned SHAs 7676a4c2 and fab5b31d, and git submodule status is clean. Do not reuse junctioned live submodule targets for future baseline archives.

Exact relinquishment commit 182a591369131d621461947723e7fb71637fa386 is pushed and packaged as sha256-b194a1850071739d62f1dd820529a511d2e7d07286d451506f1021e05e796143 with witness sha256-455e715919444c98528986ee3a88aeb6daffd187d57d5202a15d7e9e688c1979. Sealed v50 at F:\Projects\.epiphany-runtime\shakedown\live-20260808-v50-hands-relinquishment proved record-refusal, atomic frontier retirement, native frontierRelinquishment, and structural invalidation of the historical v49 route. Corrected proposal Modeling eventually admitted RepoModel revision 4 after two invalid patches were rejected and a transient provider HTTP 503 was recorded as typed failure role-failure-review-497e06aa-663d-4b1d-b55f-1e46629f6227.

The resulting planning request repo-frontier-planning-d3f0f49859819409fcc7453c33039feee0a3c29f636c4b216ef241a98d5bdce4 correctly targeted eight source owners. Both canonical Imagination attempts failed closed with frontier planning candidate exceeds exact frontier authority; receipts are frontier-planning-failure-review-1fff4758-7f85-4800-9dda-4f0bcc35ccf6 and worker result result-worker-030c6e8e-50b9-482c-9c28-613a0360bbe9. Source diagnosis found the validator correct but the model context incomplete: neither epiphany_frontier_planning_output_schema nor the OpenAI runtime output contract said that safe_paths must equal or descend from immutable source_scope. A local focused repair states that invariant and tells Imagination to put useful adjacent paths in stop conditions instead of silently expanding authority. Focused core and OpenAI-runtime tests pass. Commit and push, package once, clone v50 into a fresh runtime, and replay a fresh proposal through Modeling, canonical Imagination, and dedicated Mind. Do not retry the consumed v50 request again.

Commit 88778762d6fde2c640ba6cd98d3a426226ce3da7 is pushed and packaged as sha256-4e0700d3e2305a343742608b06054faa4ab1ce4fb5a0fcef6ef1c8ee0efea914 with witness sha256-f434d5a480e5a1d54fef4cb18f93e391bc3cbd9669fd9ed6f7111f35a2d8a536. The stable release cache completed the changed core/runtime bundle in 1m34s. Fresh v51 at F:\Projects\.epiphany-runtime\shakedown\live-20260808-v51-imagination-scope-context is cloned from sealed v50 and has this exact release published. Proposal v6 launched source-grounded Modeling result result-worker-51add51b-d949-4500-b49d-77e9ebd198c6, which remains pending behind the older current planning lifecycle.

After reviewing v50's preserved second Imagination failure, v51 replayed the same planning request under the corrected context. The candidate passed the safe-path ceiling and then failed with frontier planning result does not exactly bind request, launch, runtime, thread, and candidate. Source inspection found a deterministic retry bug: Self persists retry binding IDs with -attempt-N, but runtime result validation demanded the attempt-zero ID for all attempts. The local repair derives the expected ID from binding.attempt_ordinal. The focused test now persists a valid retry result and proves lifecycle ImaginationResultReady. Commit/push/package this repair, clone sealed v51 into v52, review its typed failure, and replay the same authority. Do not mutate v51 further.

Exact retry repair 5b922a049fc139bfcf2882ffb5e5cec8f17b65fb is pushed and packaged as sha256-a019000d541fea02f7fda93dbbdc4f0bdcf8d6e2bc33a9ec4f38270dca2f26b1 with witness sha256-97937ae68206b26a09ba3479cf8865acf36b30f9686d15abf1663561afd1abab. Fresh v52 at F:\Projects\.epiphany-runtime\shakedown\live-20260808-v52-imagination-retry-identity reviewed v51 failure with receipt frontier-planning-failure-review-3987cb31-2d67-4fbe-98d7-7c512c27c31a. Canonical Imagination retry result result-worker-ff2aa229-11d2-4ace-b12e-4eb48ab3e617 persisted successfully. Dedicated Mind result result-worker-6940aad8-a458-4d7a-847f-c412f0d9bc7c adopted candidate repo-frontier-plan-candidate-e8374ddfccd0f4e9c8bf16931e582c6e42a7d90de7587aaf3e9826e149752bb4 through decision repo-frontier-plan-decision-0f762c79a9b0a19a24f77e34865a9edc0034f1601c52c9401bd255f7ed67432d. RepoModel advanced to revision 5 and native runtime status reports actionable frontiers: Hands=true Eyes=false.

The pending v6 Modeling result was then correctly rejected as stale against revision 5. Its reviewed proposal failure caused coordinator Self to return awaitFrontierProposal before consulting the current Hands signal. This is a decision-order fault: stale worker history cannot preempt newer Mind authority. The local repair excludes that exact state from completed-result recovery; without Hands authority the old fail-closed behavior remains. The focused coordinator test proves both branches. Commit/push/package, clone v52 into v53, and prove native coordinator ContinueImplementation plus the exact Hands gate. Also audit why the adopted decision serialized model-supplied 2025-02-14T00:00:00Z instead of a coordinator-owned commit timestamp.