From de3414c8c07726a4c8d230ff77f13f5b4269072b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 15 Jul 2026 00:48:31 +0100 Subject: [PATCH] Cut counterfeit planning writers --- epiphany-core/src/lib.rs | 2 - epiphany-core/src/runtime_spine.rs | 11 ++- notes/fresh-workspace-handoff.md | 21 +++++ notes/repo-frontier-planning-authority-map.md | 73 ++++++++++++++++++ state/ledgers.msgpack | Bin 491892 -> 492332 bytes state/map.yaml | 2 +- 6 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 notes/repo-frontier-planning-authority-map.md diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 737bfa14..cde37925 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -805,8 +805,6 @@ pub use runtime_spine::put_hands_pr_receipt; pub use runtime_spine::put_mind_gateway_review; pub use runtime_spine::put_mind_state_commit_receipt; pub use runtime_spine::put_repo_frontier_hands_authority; -pub use runtime_spine::put_repo_frontier_plan_adoption; -pub use runtime_spine::put_repo_frontier_plan_candidate; pub use runtime_spine::put_repo_frontier_verification_request; pub use runtime_spine::put_repo_frontier_work_proposal; pub use runtime_spine::put_runtime_reorient_worker_result; diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index 7e59403c..375d3541 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -3334,7 +3334,7 @@ pub(crate) fn validate_current_repo_model_claim_repair_request( Ok(()) } -pub fn put_repo_frontier_plan_candidate( +pub(crate) fn put_repo_frontier_plan_candidate( store_path: impl AsRef, candidate: &RepoFrontierPlanCandidate, ) -> Result<()> { @@ -3425,7 +3425,7 @@ impl RepoFrontierPlanCandidate { } } -pub fn put_repo_frontier_plan_adoption( +pub(crate) fn put_repo_frontier_plan_adoption( store_path: impl AsRef, adoption: &RepoFrontierPlanAdoption, ) -> Result<()> { @@ -7205,6 +7205,13 @@ pub(crate) mod tests { Ok(()) } + #[test] + fn frontier_candidate_and_mind_decision_have_no_public_counterfeit_writers() { + let public_surface = include_str!("lib.rs"); + assert!(!public_surface.contains("put_repo_frontier_plan_candidate")); + assert!(!public_surface.contains("put_repo_frontier_plan_adoption")); + } + fn proposal_selection_fixture(root: &Path, suffix: &str) -> Result<(PathBuf, String)> { let store = root.join(format!("proposal-selection-{suffix}.cc")); let runtime_id = format!("selection-runtime-{suffix}"); diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 6f983e73..201b7ea9 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -1,5 +1,26 @@ # Fresh Workspace Handoff +## Counterfeit planning writers cut - 2026-07-15 + +Modeling and Eyes traced the repo-frontier planning family and found a typed but +disconnected island. Self's deterministic planning request is real. The +Imagination candidate and Mind Adopt/Refuse/Hold documents were only authored +by tests or arbitrary callers through public persistence functions. Generic +Imagination `statePatch.planning` is a separate thread-state vocabulary, not a +repo-frontier candidate. Adopt suppressed future request selection but changed +no RepoModel bytes and affected no Hands route. + +The public candidate/adoption writers are removed; their internal functions are +temporary test scaffolding, not production authority. The full source-grounded +replacement map is `notes/repo-frontier-planning-authority-map.md`. Build the +real nerve using the claim-repair shape: Self request, coordinator-owned typed +Imagination projection and request-keyed launch binding, exclusive immutable +result echo containing the candidate, then Mind-only correlated +Adopt/Refuse/Hold. Adopt must produce a narrow admitted model transition and +downstream Hands truth; Refuse/Hold remain inert receipts. Delete the remaining +fixture writers when that lands. Core verification is green at 319 passed, one +ignored. + ## Eyes-to-Modeling claim correction nerve complete - 2026-07-15 The Aetheria-shaped corrective nerve is now closed from immutable Eyes diff --git a/notes/repo-frontier-planning-authority-map.md b/notes/repo-frontier-planning-authority-map.md new file mode 100644 index 00000000..0665a1a2 --- /dev/null +++ b/notes/repo-frontier-planning-authority-map.md @@ -0,0 +1,73 @@ +# Repo Frontier Planning Authority Map + +## Current wound + +The planning family has typed documents but not a live organ chain. Self can +persist an exact `RepoFrontierPlanningRequest`. Nothing launches Imagination +from it. `RepoFrontierPlanCandidate` and `RepoFrontierPlanAdoption` were exposed +through public persistence functions, allowing callers to author documents in +Imagination and Mind namespaces without either organ participating. Adopt then +blocked duplicate planning requests but changed no model bytes and affected no +Hands route. The type names were substituting for cognition. + +The public candidate/adoption writers are removed. The existing internal +functions remain temporarily as test scaffolding while the real nerve replaces +them; they are not production authority. + +## Target authority + +- Owner — Self selects one dependency-ready, unchallenged, active Imagination + frontier from the uniquely admitted current RepoModel and emits one immutable + planning request. +- Inputs — current RepoModel envelope and hash, its unique Mind admission + receipt, exact frontier item and serialized hash, source scope, current claim + challenges, runtime identity, and authoritative thread. +- Coordinator output — one typed Imagination context projection and one + request-keyed immutable launch binding inside the atomic coordinator launch + transaction. +- Imagination output — one immutable worker result that exclusively echoes the + planning request and contains one typed candidate. It proposes; it does not + route Hands or mutate RepoModel. +- Mind output — one fully correlated Adopt, Refuse, or Hold receipt. Mind alone + constructs and persists the decision after replaying request, launch binding, + worker launch document, immutable result, candidate, current model, and exact + frontier bytes. +- Adopt effect — a narrow RepoModel transition must make the selected frontier + executable without allowing the adoption receipt to become a shadow model. + The downstream Hands route remains derived from admitted model bytes and may + reference the exact adopted plan for bounded action/check/rollback cargo. +- Refuse/Hold effect — immutable decision receipts only. They do not mutate the + model, claim the deterministic Adopt identity, or grant Hands authority. + +## Derived state + +- Planning readiness is derived from current admitted model plus absence of a + current terminal Mind decision. +- Candidate visibility is a projection of the immutable Imagination result. +- Hands readiness is derived from the post-Adopt admitted model and its exact + plan provenance, never from a candidate or adoption document alone. + +## Forbidden writers and substitutions + +- No external or generic caller may persist an Imagination candidate or Mind + decision directly. +- Generic Imagination `statePatch.planning.objective_drafts` is not repo + frontier planning authority. +- Schema namespace, prompt prose, result metadata, evidence coincidence, or + "the only current request" cannot substitute for an exact request echo and + launch binding. +- Adopt cannot merely suppress future planning while leaving the frontier and + Hands route unchanged. +- Candidate persistence must share a CAS with the current model expectation; + validation followed by an unrelated absent-only insert is stale-authority + leakage. +- No generic work-order registry or mode router. This is one explicit organ + nerve with one owner at each transition. + +## Deletion line before build + +1. Public candidate/adoption persistence exports are gone. +2. Direct internal fixture writers die when result correlation and Mind + admission land. +3. Any Adopt path that does not change the model or downstream executable + truth is removed rather than retained as compatibility behavior. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 93ca008c45e717d7fade2ca036144a9199b3177d..035b64a3c6c0c73a2d172f37b750575b71a87e64 100644 GIT binary patch delta 452 zcmZutu}T9$5cQ(wRIpMDn=oK|Ng%P%bQXdZX|xdRHn(%h!rty?Z#N-@1|w)^7q0aK z1O*FQZTt;?!VhpZjTRP@;V6p;*v0yFzhLEXTsI6pIAAs%0?RT?sRl|z9<~K-;e>cfIndr=1I{pC>}`Bc()d(+<=#yGcr#qaxeIUcyZvXQolUU&TAoVaaadtsjm&qLlyu delta 60 zcmZ3}CikUDZi6HvmywmJanvye_J+XC%8Z4KjPskPGPO@-VgzCk%?!jWK+FonY}=