Cut counterfeit planning writers
This commit is contained in:
parent
38c41a3bc6
commit
de3414c8c0
6 changed files with 104 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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<Path>,
|
||||
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<Path>,
|
||||
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}");
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
73
notes/repo-frontier-planning-authority-map.md
Normal file
73
notes/repo-frontier-planning-authority-map.md
Normal file
|
|
@ -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.
|
||||
Binary file not shown.
|
|
@ -714,4 +714,4 @@ current_status:
|
|||
- Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass.
|
||||
- `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure.
|
||||
last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. swarm overview readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync.
|
||||
next_action: The Aetheria-shaped Eyes-to-Modeling corrective nerve is complete. Immutable challenge pressure selects one exact repair request and coordinator launch; a v1 immutable Modeling result may carry only the exclusive claim repair echo and RepairClaim purpose; Mind replays the full Eyes/request/launch/model chain and admits exactly one claim-text-changing, lifecycle-preserving ReviseNode through the model CAS. Challenge release is derived from changed target bytes, never a cleanup writer. Next bind the existing Self frontier planning request to a real immutable Imagination worker result and Mind Adopt/Refuse/Hold path, preserving the same exact request-launch-result-admission discipline. Then add the production semantic index over typed graph claims so Modeling maintains a live searchable body map instead of forcing Hands to rediscover anatomy. Do not revive Proprioception, epiphany-work, metadata adapters, challenge ids inside RepoModel, generic work-order routers, or inference from prompt prose/evidence coincidence. Keep closure's zero-substring invariant.
|
||||
next_action: Build the repo-frontier planning nerve from the authority map in notes/repo-frontier-planning-authority-map.md. Self's exact current-model planning request is the only sound existing owner. Public put_repo_frontier_plan_candidate and put_repo_frontier_plan_adoption exports are cut because they let callers impersonate Imagination and Mind; the remaining internal functions are fixture scaffolding and must die when replaced. Next add one coordinator-owned typed Imagination context projection and request-keyed atomic launch binding, one exclusive planning-request echo on an immutable v1 worker result containing the candidate, and one Mind-only correlated Adopt/Refuse/Hold admission. Adopt must cause a narrow RepoModel transition that makes downstream Hands truth real; it cannot merely suppress later planning while routes ignore it. Refuse/Hold remain inert immutable receipts. Generic Imagination statePatch.planning is not this authority. After the nerve lands, add the production semantic index over typed graph claims so Modeling maintains a live searchable body map instead of forcing Hands to rediscover anatomy. Do not revive Proprioception, epiphany-work, metadata adapters, generic work-order routers, or inference from namespaces/prompt prose/evidence coincidence. Keep closure's zero-substring invariant.
|
||||
|
|
|
|||
Reference in a new issue