diff --git a/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs index 4f74d76d..602e834d 100644 --- a/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs @@ -304,6 +304,16 @@ fn run_smoke(args: Args) -> Result { ], true, )?; + require_bool( + &close, + &[ + "closureReview", + "familyAssertions", + "safeFamilyPlanning", + "candidateActionTemplatePresent", + ], + true, + )?; require_bool( &close, &[ @@ -314,6 +324,16 @@ fn run_smoke(args: Args) -> Result { ], true, )?; + require_bool( + &close, + &[ + "closureReview", + "familyAssertions", + "safeFamilyPlanning", + "closureLadderPresent", + ], + true, + )?; require_bool(&close, &["privateStateExposed"], false)?; require_text( &brief_text, @@ -369,6 +389,26 @@ fn run_smoke(args: Args) -> Result { &brief_text, "candidate_items_must_name_closure_proofs = true", )?; + require_text(&brief_text, "[candidate_action_template]")?; + require_text( + &brief_text, + "required_fields = [\"id\", \"safe_action_family\", \"owner\", \"status\", \"requested_paths\", \"verification_asks\", \"evidence_needs\", \"closure_proofs\", \"authority_denials\", \"next_gate\"]", + )?; + require_text(&brief_text, "\"ready-for-mind-review\"")?; + require_text(&brief_text, "\"ready-for-self-queue\"")?; + require_text(&brief_text, "\"blocked-needs-evidence\"")?; + require_text(&brief_text, "status_must_be_explicit = true")?; + require_text(&brief_text, "owner_must_match_safe_family_stage = true")?; + require_text( + &brief_text, + "closure_proofs_must_name_receipt_family = true", + )?; + require_text( + &brief_text, + "authority_denials_must_be_carried_forward = true", + )?; + require_text(&brief_text, "next_gate_must_name_owner = true")?; + require_text(&brief_text, "candidate_items_are_not_queue_entries = true")?; require_text(&brief_text, "[safe_family_matrix]")?; require_text(&brief_text, "preparation = [")?; require_text(&brief_text, "adoption_and_queue = [")?; @@ -398,6 +438,40 @@ fn run_smoke(args: Args) -> Result { "upstream_main_sync_required_after_publication = true", )?; require_text(&brief_text, "private_state_redaction_required = true")?; + require_text(&brief_text, "[closure_ladder]")?; + require_text( + &brief_text, + "draft_closed_by = \"explicit Mind or human selection of one candidate family\"", + )?; + require_text( + &brief_text, + "queued_closed_by = \"Self queue-run receipt for the adopted item\"", + )?; + require_text( + &brief_text, + "execution_closed_by = \"Hands patch, command, and commit receipts\"", + )?; + require_text( + &brief_text, + "verification_closed_by = \"Soul closure review and verdict receipt\"", + )?; + require_text( + &brief_text, + "map_closed_by = \"Modeling map update plus Mind gateway review and state commit\"", + )?; + require_text( + &brief_text, + "publication_closed_by = \"Bifrost public proof publication or explicit non-publication decision\"", + )?; + require_text( + &brief_text, + "deployment_closed_by = \"Idunn deployment config or lifecycle receipt when deployment is in scope\"", + )?; + require_text( + &brief_text, + "private_state_closed_by = \"redaction report proving sealed worker/operator/private Verse payloads stayed sealed\"", + )?; + require_text(&brief_text, "closure_ladder_is_planning_only = true")?; require_text(&brief_text, "[gates]")?; require_text(&brief_text, "mind_interpreter_required = true")?; require_text(&brief_text, "self_queue_selection_required = true")?; @@ -443,7 +517,9 @@ fn run_smoke(args: Args) -> Result { "allExpectedCandidateFamiliesPresent": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["allExpectedCandidateFamiliesPresent"], "allMatrixGroupsComplete": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["allMatrixGroupsComplete"], "matrixControlsPresent": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["matrixControlsPresent"], + "candidateActionTemplatePresent": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["candidateActionTemplatePresent"], "allClosureProofsPresent": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["allClosureProofsPresent"], + "closureLadderPresent": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["closureLadderPresent"], "allRequiredGatesPresent": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["allRequiredGatesPresent"], "authorityDenied": close["closureReview"]["familyAssertions"]["safeFamilyPlanning"]["authorityDenied"], "briefIsDraft": true, diff --git a/epiphany-core/src/bin/epiphany-work.rs b/epiphany-core/src/bin/epiphany-work.rs index af4141aa..57752b13 100644 --- a/epiphany-core/src/bin/epiphany-work.rs +++ b/epiphany-core/src/bin/epiphany-work.rs @@ -3692,6 +3692,17 @@ fn derive_repo_planning_brief_plan( "candidate_items_must_name_closure_proofs = true".to_string(), "shell_commands_must_be_deterministic_lowerings = true".to_string(), String::new(), + "[candidate_action_template]".to_string(), + "required_fields = [\"id\", \"safe_action_family\", \"owner\", \"status\", \"requested_paths\", \"verification_asks\", \"evidence_needs\", \"closure_proofs\", \"authority_denials\", \"next_gate\"]".to_string(), + "allowed_statuses = [\"idea\", \"ready-for-mind-review\", \"ready-for-self-queue\", \"blocked-needs-evidence\", \"closed\"]".to_string(), + "status_must_be_explicit = true".to_string(), + "owner_must_match_safe_family_stage = true".to_string(), + "requested_paths_may_be_empty_only_for_readback_or_policy_requests = true".to_string(), + "closure_proofs_must_name_receipt_family = true".to_string(), + "authority_denials_must_be_carried_forward = true".to_string(), + "next_gate_must_name_owner = true".to_string(), + "candidate_items_are_not_queue_entries = true".to_string(), + String::new(), "[safe_family_matrix]".to_string(), "preparation = [\"repo.consensus_brief\", \"repo.interpreter_brief\", \"repo.objective_draft\", \"repo.task_card\"]".to_string(), "adoption_and_queue = [\"repo.adoption_request\", \"repo.scheduling_request\"]".to_string(), @@ -3711,6 +3722,17 @@ fn derive_repo_planning_brief_plan( "upstream_main_sync_required_after_publication = true".to_string(), "private_state_redaction_required = true".to_string(), String::new(), + "[closure_ladder]".to_string(), + "draft_closed_by = \"explicit Mind or human selection of one candidate family\"".to_string(), + "queued_closed_by = \"Self queue-run receipt for the adopted item\"".to_string(), + "execution_closed_by = \"Hands patch, command, and commit receipts\"".to_string(), + "verification_closed_by = \"Soul closure review and verdict receipt\"".to_string(), + "map_closed_by = \"Modeling map update plus Mind gateway review and state commit\"".to_string(), + "publication_closed_by = \"Bifrost public proof publication or explicit non-publication decision\"".to_string(), + "deployment_closed_by = \"Idunn deployment config or lifecycle receipt when deployment is in scope\"".to_string(), + "private_state_closed_by = \"redaction report proving sealed worker/operator/private Verse payloads stayed sealed\"".to_string(), + "closure_ladder_is_planning_only = true".to_string(), + String::new(), "[gates]".to_string(), "mind_interpreter_required = true".to_string(), "mind_adoption_required = true".to_string(), @@ -7081,6 +7103,28 @@ fn closure_family_assertions( "Committed planning brief names the safe-family decomposition contract." .to_string(), ); + push_assertion( + &mut assertions, + "planning-brief-candidate-action-template", + content.contains("[candidate_action_template]") + && content.contains("\"id\"") + && content.contains("\"safe_action_family\"") + && content.contains("\"owner\"") + && content.contains("\"status\"") + && content.contains("\"requested_paths\"") + && content.contains("\"verification_asks\"") + && content.contains("\"evidence_needs\"") + && content.contains("\"closure_proofs\"") + && content.contains("\"authority_denials\"") + && content.contains("\"next_gate\"") + && content.contains("allowed_statuses = [") + && content.contains("\"ready-for-mind-review\"") + && content.contains("\"ready-for-self-queue\"") + && content.contains("\"blocked-needs-evidence\"") + && content.contains("candidate_items_are_not_queue_entries = true"), + "Committed planning brief gives each candidate action an explicit status, owner, evidence, closure, denial, and next-gate shape without making it a queue entry." + .to_string(), + ); push_assertion( &mut assertions, "planning-brief-family-matrix", @@ -7119,6 +7163,38 @@ fn closure_family_assertions( "Committed planning brief names Soul, Modeling, Mind, Bifrost, upstream-main, and redaction closure proofs." .to_string(), ); + push_assertion( + &mut assertions, + "planning-brief-closure-ladder", + content.contains("[closure_ladder]") + && content.contains( + "draft_closed_by = \"explicit Mind or human selection of one candidate family\"", + ) + && content.contains( + "queued_closed_by = \"Self queue-run receipt for the adopted item\"", + ) + && content.contains( + "execution_closed_by = \"Hands patch, command, and commit receipts\"", + ) + && content.contains( + "verification_closed_by = \"Soul closure review and verdict receipt\"", + ) + && content.contains( + "map_closed_by = \"Modeling map update plus Mind gateway review and state commit\"", + ) + && content.contains( + "publication_closed_by = \"Bifrost public proof publication or explicit non-publication decision\"", + ) + && content.contains( + "deployment_closed_by = \"Idunn deployment config or lifecycle receipt when deployment is in scope\"", + ) + && content.contains( + "private_state_closed_by = \"redaction report proving sealed worker/operator/private Verse payloads stayed sealed\"", + ) + && content.contains("closure_ladder_is_planning_only = true"), + "Committed planning brief carries an explicit closure ladder from draft selection through Self, Hands, Soul, Modeling/Mind, Bifrost, Idunn, and redaction." + .to_string(), + ); push_assertion( &mut assertions, "planning-brief-gates-present", @@ -9246,6 +9322,22 @@ fn planning_brief_safe_family_readback(content: &str) -> Value { "familiesMayNotInheritAuthority": content.contains("families_may_not_inherit_authority = true"), "familyChoiceRequiresMindOrSelfReview": content.contains("family_choice_requires_mind_or_self_review = true"), }); + let candidate_action_template = json!({ + "idRequired": content.contains("\"id\""), + "safeActionFamilyRequired": content.contains("\"safe_action_family\""), + "ownerRequired": content.contains("\"owner\""), + "statusRequired": content.contains("\"status\""), + "requestedPathsRequired": content.contains("\"requested_paths\""), + "verificationAsksRequired": content.contains("\"verification_asks\""), + "evidenceNeedsRequired": content.contains("\"evidence_needs\""), + "closureProofsRequired": content.contains("\"closure_proofs\""), + "authorityDenialsRequired": content.contains("\"authority_denials\""), + "nextGateRequired": content.contains("\"next_gate\""), + "readyForMindReviewStatus": content.contains("\"ready-for-mind-review\""), + "readyForSelfQueueStatus": content.contains("\"ready-for-self-queue\""), + "blockedNeedsEvidenceStatus": content.contains("\"blocked-needs-evidence\""), + "notQueueEntry": content.contains("candidate_items_are_not_queue_entries = true"), + }); let closure_proofs = json!({ "soulFamilyAssertionsRequired": content.contains("soul_family_assertions_required = true"), "modelingMapUpdateRequiredAfterVerifiedConsequence": content.contains("modeling_map_update_required_after_verified_consequence = true"), @@ -9255,6 +9347,17 @@ fn planning_brief_safe_family_readback(content: &str) -> Value { "upstreamMainSyncRequiredAfterPublication": content.contains("upstream_main_sync_required_after_publication = true"), "privateStateRedactionRequired": content.contains("private_state_redaction_required = true"), }); + let closure_ladder = json!({ + "draftClosedBySelection": content.contains("draft_closed_by = \"explicit Mind or human selection of one candidate family\""), + "queuedClosedBySelf": content.contains("queued_closed_by = \"Self queue-run receipt for the adopted item\""), + "executionClosedByHands": content.contains("execution_closed_by = \"Hands patch, command, and commit receipts\""), + "verificationClosedBySoul": content.contains("verification_closed_by = \"Soul closure review and verdict receipt\""), + "mapClosedByModelingMind": content.contains("map_closed_by = \"Modeling map update plus Mind gateway review and state commit\""), + "publicationClosedByBifrost": content.contains("publication_closed_by = \"Bifrost public proof publication or explicit non-publication decision\""), + "deploymentClosedByIdunn": content.contains("deployment_closed_by = \"Idunn deployment config or lifecycle receipt when deployment is in scope\""), + "privateStateClosedByRedaction": content.contains("private_state_closed_by = \"redaction report proving sealed worker/operator/private Verse payloads stayed sealed\""), + "planningOnly": content.contains("closure_ladder_is_planning_only = true"), + }); let authority_denials = json!({ "objectiveAdoptionAuthorized": content.contains("objective_adoption_authorized = true"), "selfSchedulingAuthorized": content.contains("self_scheduling_authorized = true"), @@ -9289,10 +9392,18 @@ fn planning_brief_safe_family_readback(content: &str) -> Value { .as_object() .map(|fields| fields.values().all(|value| value.as_bool() == Some(true))) .unwrap_or(false); + let candidate_action_template_present = candidate_action_template + .as_object() + .map(|fields| fields.values().all(|value| value.as_bool() == Some(true))) + .unwrap_or(false); let all_closure_proofs_present = closure_proofs .as_object() .map(|fields| fields.values().all(|value| value.as_bool() == Some(true))) .unwrap_or(false); + let closure_ladder_present = closure_ladder + .as_object() + .map(|fields| fields.values().all(|value| value.as_bool() == Some(true))) + .unwrap_or(false); let authority_denied = authority_denials .as_object() .map(|fields| fields.values().all(|value| value.as_bool() == Some(false))) @@ -9311,8 +9422,12 @@ fn planning_brief_safe_family_readback(content: &str) -> Value { "allRequiredGatesPresent": all_required_gates_present, "matrixControls": matrix_controls, "matrixControlsPresent": matrix_controls_present, + "candidateActionTemplate": candidate_action_template, + "candidateActionTemplatePresent": candidate_action_template_present, "closureProofs": closure_proofs, "allClosureProofsPresent": all_closure_proofs_present, + "closureLadder": closure_ladder, + "closureLadderPresent": closure_ladder_present, "authorityDenials": authority_denials, "authorityDenied": authority_denied, "allPlanningRequirementsPresent": all_requirements_present, diff --git a/notes/epiphany-repo-swarm-mvp-contract.md b/notes/epiphany-repo-swarm-mvp-contract.md index 44743bdb..308197b5 100644 --- a/notes/epiphany-repo-swarm-mvp-contract.md +++ b/notes/epiphany-repo-swarm-mvp-contract.md @@ -553,7 +553,7 @@ authority, and `privateStateExposed=false`. The richer family-friendly Imagination planning smoke now proves the full safe-family matrix and closure expectations instead of only the original six-family chain: -`.epiphany-smoke\repo-planning-brief-family-20260621-090158` ran init -> +`.epiphany-smoke\repo-planning-brief-family-20260621-114826` ran init -> online -> accept -> `derive-plan --action-family repo-planning-brief --model-ref repo-planning-brief-family-smoke-imagination-v1 --model-authored` -> tick through run/adopt/execute/close on a fresh repo. The plan carried @@ -565,17 +565,25 @@ packet carried `candidateNextSafeFamilyCount=21`, `allExpectedCandidateFamiliesPresent=true`, `allMatrixGroupsComplete=true`, `matrixControlsPresent=true`, -`allClosureProofsPresent=true`, `allPlanningRequirementsPresent=true`, +`candidateActionTemplatePresent=true`, `allClosureProofsPresent=true`, +`closureLadderPresent=true`, `allPlanningRequirementsPresent=true`, `allRequiredGatesPresent=true`, `authorityDenied=true`, and -`privateStateExposed=false`. The committed brief still carries +`privateStateExposed=false`. Wrapper Gjallar readback +`local-20260621-124924-844-17b352e7` aimed at the disposable repo-local Verse +and printed the accepted `repo.planning_brief` closure/acceptance rows with +Soul/Mind receipts, Bifrost gate, and `private=false`. The committed brief still +carries `schema_version = "epiphany.repo_planning_brief.v0"`, draft Imagination decomposition state, safe-family matrix groups for preparation, adoption/queue, execution/review, publication/accounting, and policy/deployment, requested-path / verification-ask / evidence-need / owner / authority-denial / closure-proof -requirements, Mind/Self/Substrate/Hands/Soul/Bifrost/Idunn gate ordering, -denied objective adoption, scheduling, substrate access, Hands action, shell, -commit, publication, deployment execution, cross-body mutation, private -transcript/raw-result access, and `privateStateExposed=false`. +requirements, a candidate action template with explicit status/owner/path/ +evidence/closure/denial/next-gate fields, a closure ladder from Mind/human +selection through Self, Hands, Soul, Modeling/Mind, Bifrost, Idunn, and +redaction, Mind/Self/Substrate/Hands/Soul/Bifrost/Idunn gate ordering, denied +objective adoption, scheduling, substrate access, Hands action, shell, commit, +publication, deployment execution, cross-body mutation, private transcript/ +raw-result access, and `privateStateExposed=false`. The next Mind-owned interpreter smoke proved public-pressure-to-action-semantics cargo between Imagination consensus and any downstream action family: diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index a6a3912f..80d93e01 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -157,7 +157,7 @@ remembers doctrine; the branch remembers the blade. - 2026-06-20: `repo-deployment-request` is now live as Idunn-facing deployment request cargo. `epiphany-work derive-plan --action-family repo-deployment-request` writes `.epiphany/deployment-requests/.toml` with safe family `repo.deployment_request`, status `awaiting-idunn-review`, git-push-observed-by-Idunn trigger, Idunn/Maintainer ownership, target environment, git ref/branch, deployment script ref, script hash or review ref, host access policy, secret policy, rollback plan, aftercare checks, Eyes/Mind/Soul/maintainer/secret-policy/Bifrost/Idunn deployment/aftercare receipt requirements, and denials for direct deployment, SSH, git push, service lifecycle, Hands, publication, merge, cross-body mutation, private Verse rummaging, and private-state exposure. Soul closure assertions inspect schema, family, summary, request state, antecedents, receipt contract, deployment packet, authority gates, and private-state seal. Focused smoke `.epiphany-smoke\repo-deployment-request-family-20260620-195605` ran init -> online -> accept -> repo-deployment-request derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/deployment-requests/repo-deployment-request-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `awaitingIdunnReview=true`, `deploymentTrigger=git-push-observed-by-idunn`, `deploymentAuthority=false`, `sshAuthority=false`, `gitPushAuthority=false`, `serviceLifecycleAuthority=false`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics, further reviewed config/action request families, richer closure depth, and explicit Idunn deployment execution/audit under operator authority. - 2026-06-20: `repo-deployment-config` is now live as repo-owned Idunn deployment configuration cargo. `epiphany-work derive-plan --action-family repo-deployment-config` writes `.epiphany/deployment.toml` with safe family `repo.deployment_config`, `enabled=false`, owner `Idunn`, trigger `git-push-observed-by-idunn`, watched ref `refs/heads/main`, deployment script ref, script hash/review requirement, host policy, secret policy, rollback, aftercare checks, Idunn CultMesh intent/receipt/aftercare contracts, daemon-owned execution, and denials for direct deployment, SSH, git push, service lifecycle, Hands, publication, merge, cross-body mutation, private Verse rummaging, and private-state exposure. Focused smoke `.epiphany-smoke\repo-deployment-config-family-20260620-211809` ran init -> online -> accept -> repo-deployment-config derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/deployment.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `deploymentConfigEnabled=false`, `daemonOwnsExecution=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics, richer closure depth, and explicit Idunn deployment execution/audit under operator authority. - 2026-06-20: `derive-plan` action-item receipts now carry richer model-authored planning facets without widening command authority, and `adopt --from-plan` now preserves the chosen Imagination action item in the Mind adoption receipt. New CLI fields `--assumption`, `--constraint`, `--non-goal`, `--open-question`, `--decision-point`, and `--evidence-need` are recorded under `planningFacets` in `epiphany.repo_work_imagination_action_items_receipt.v0`, mirrored into the plan derivation's `actionItemReceipt`, then copied into `epiphany.repo_work_adoption_receipt.v0` as `adoptedActionItem`; deterministic defaults are emitted when a model does not supply them. Focused smoke `.epiphany-smoke\repo-planning-facets-20260620-164958` ran init -> online -> accept -> model-authored `derive-plan --action-family planning-note` with all facet fields -> tick run/adopt/execute/close; the action-item receipt preserved assumptions, constraints, non-goals, open questions, decision points, and evidence needs while `handsAuthorityGranted=false`, `durableStateAdmitted=false`, `handsCommandAuthority=false`, `durableStateAuthority=false`, and `privateStateExposed=false`; the adoption receipt preserved `adoptedActionItem.safeActionFamily=repo.markdown_planning_note`, planning facets, `adoptedActionItem.handsCommandAuthority=false`, `adoptedActionItem.durableStateAuthority=false`, `adoptedActionItem.publicationAuthorized=false`, `authority.handsAuthorityGranted=true`, `authority.durableStateAdmitted=false`, and `privateStateExposed=false`; Soul closure passed with family assertions and path scope matched. Current remaining repo-swarm MVP organs are deeper interpreter/adoption semantics, more useful repo-owned configuration/action families, and Idunn-owned queue-run service lifecycle under explicit operator authority. -- 2026-06-21: `repo-planning-brief` is live as richer family-friendly Imagination decomposition cargo, and Soul closure now emits a typed safe-family planning readback for its full matrix. `epiphany-work derive-plan --action-family repo-planning-brief` writes `.epiphany/planning-briefs/.toml` with safe family `repo.planning_brief`, status `draft`, twenty-one candidate next safe families grouped as preparation, adoption/queue, execution/review, publication/accounting, and policy/deployment, requested-path / verification-ask / evidence-need / owner / authority-denial / closure-proof requirements, and Mind/Self/Substrate/Hands/Soul/Bifrost/Idunn gate ordering while denying objective adoption, scheduling, substrate access, Hands action, shell, commit, publication, deployment execution, service lifecycle, cross-body mutation, private transcripts, raw-result payloads, and private-state exposure. Closure `familyAssertions.safeFamilyPlanning` now carries `epiphany.repo_work_safe_family_planning_readback.v0` with candidate-family rows/count, grouped matrix rows, matrix control flags, closure proof flags, planning requirement flags, gate flags, authority-denial flags, and the private-state seal. Focused smoke `.epiphany-smoke\repo-planning-brief-family-20260621-090158` ran init -> online -> accept -> repo-planning-brief derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/planning-briefs/repo-planning-brief-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `candidateNextSafeFamilyCount=21`, `allMatrixGroupsComplete=true`, `matrixControlsPresent=true`, `allClosureProofsPresent=true`, `allRequiredGatesPresent=true`, `authorityDenied=true`, and `privateStateExposed=false`. Current remaining repo-swarm MVP organs are deeper interpreter semantics, richer closure/map readback, another useful repo-owned safe family if needed, or Idunn-owned queue-run service lifecycle under explicit operator authority. +- 2026-06-21: `repo-planning-brief` is live as richer family-friendly Imagination decomposition cargo, and Soul closure now emits a typed safe-family planning readback for its full matrix, candidate-action template, and closure ladder. `epiphany-work derive-plan --action-family repo-planning-brief` writes `.epiphany/planning-briefs/.toml` with safe family `repo.planning_brief`, status `draft`, twenty-one candidate next safe families grouped as preparation, adoption/queue, execution/review, publication/accounting, and policy/deployment, requested-path / verification-ask / evidence-need / owner / authority-denial / closure-proof requirements, explicit candidate action fields `id`, `safe_action_family`, `owner`, `status`, `requested_paths`, `verification_asks`, `evidence_needs`, `closure_proofs`, `authority_denials`, and `next_gate`, and a closure ladder through Mind/human selection, Self queue-run, Hands receipts, Soul verdict, Modeling/Mind map admission, Bifrost publication/non-publication, Idunn deployment/config when in scope, and redaction. It still denies objective adoption, scheduling, substrate access, Hands action, shell, commit, publication, deployment execution, service lifecycle, cross-body mutation, private transcripts, raw-result payloads, and private-state exposure. Closure `familyAssertions.safeFamilyPlanning` now carries `epiphany.repo_work_safe_family_planning_readback.v0` with candidate-family rows/count, grouped matrix rows, matrix control flags, candidate-template flags, closure proof flags, closure-ladder flags, planning requirement flags, gate flags, authority-denial flags, and the private-state seal. Focused smoke `.epiphany-smoke\repo-planning-brief-family-20260621-114826` ran init -> online -> accept -> repo-planning-brief derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/planning-briefs/repo-planning-brief-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `candidateNextSafeFamilyCount=21`, `candidateActionTemplatePresent=true`, `allMatrixGroupsComplete=true`, `matrixControlsPresent=true`, `allClosureProofsPresent=true`, `closureLadderPresent=true`, `allRequiredGatesPresent=true`, `authorityDenied=true`, and `privateStateExposed=false`. Wrapper Gjallar proof `local-20260621-124924-844-17b352e7` read accepted closure/acceptance rows from the disposable repo-local Verse with `private=false`. Current remaining repo-swarm MVP organs are receipt-directory/public-proof projection for readiness-review if that index is needed, deeper Bifrost-first accounting, another useful safe action family if needed, or explicit elevated Idunn execution only under operator authority. - 2026-06-21: `repo-readiness-review-request` is live as the family-friendly MVP readiness review gate. `epiphany-work derive-plan --action-family repo-readiness-review-request` writes `.epiphany/readiness-reviews/.toml` with safe family `repo.readiness_review_request`, status `awaiting-mvp-readiness-review`, requested owner `Maintainer/Soul/Mind/Bifrost`, proof-bundle/readiness packet requirements for repo init, online swarm, Persona intake, Imagination planning, Self queue-run, Hands branch work, Soul closure, Modeling map update, Mind admission, Bifrost publication, upstream-main sync, Idunn lifecycle, global tool directory, and private-state redaction, while denying readiness approval, durable state commit, publication, Bifrost publication, PR, merge, upstream sync, deployment, service lifecycle, Hands action, cross-body mutation, private Verse rummaging, and private-state exposure. Focused smoke `.epiphany-smoke\repo-readiness-review-request-family-20260621-090003` ran init -> online -> accept -> repo-readiness-review-request derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/readiness-reviews/repo-readiness-review-request-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `awaitingMvpReadinessReview=true`, `idunnLifecycleRequired=true`, `toolDirectoryRequired=true`, and `privateStateExposed=false`. The planning-brief matrix now counts twenty-one families and includes this readiness review in publication/accounting; smoke `.epiphany-smoke\repo-planning-brief-family-20260621-090158` proved `candidateNextSafeFamilyCount=21`. - 2026-06-21: `epiphany-work readiness` is live as a non-mutating repo-work MVP readiness sight rite, and now mirrors compact readiness into the repo-local Verse. It reuses overview/proof-bundle state, inspects repo init, online swarm, Persona intake, Imagination plan, Self queue-run, Hands execute, Soul closure, Modeling/Mind admission, redacted public proof, Bifrost publication, upstream-main sync, Idunn lifecycle, deployment aftercare, daemon tool directory, and private-state redaction rows, then writes `.epiphany/work/work-readiness-.json` with schema `epiphany.repo_work_readiness_report.v0` plus `epiphany.cultmesh.repo_work_readiness.v0` when the accept receipt names a local Verse store. Gjallar/swarm-overview/swarm-triage now expose `repoWorkReadinessRows`, compact `REPO-WORK-READINESS` TUI rows, `latestRepoWorkReadiness`, and non-mutating `repo-work-readiness` action rows. It can return `ready` only when all rows are satisfied, but it does not approve readiness or grant durable state, publication, PR, merge, sync, deployment, service lifecycle, Hands action, cross-body, or private Verse authority. Focused smoke `.epiphany-smoke\repo-work-readiness-20260621-101053` ran fresh repo init -> online -> accept -> checklist plan/tick close -> queue-run dry-run -> public-proof export -> sealed deployment-aftercare fixture -> readiness -> Gjallar; it reported `not-ready`, `missingRequiredCount=4` for Bifrost publication, upstream-main sync, Idunn lifecycle, and tool directory, with `deployment-aftercare` satisfied, readiness id `repo-work-readiness-repo-work-readiness`, Gjallar `repoWorkReadinessCount=1`, `sightOnly=true`, and `privateStateExposed=false`. - 2026-06-21: `repo-interpreter-brief` is live as Mind-owned interpretation cargo between Imagination consensus and downstream action-family adoption. `epiphany-work derive-plan --action-family repo-interpreter-brief` writes `.epiphany/interpreter-briefs/.toml` with safe family `repo.interpreter_brief`, status `draft`, owner `Mind`, source `Imagination`, consensus/safe-family/path/verification/evidence requirements, semantic checks for intent/scope/paths/verification/evidence/rollback/non-goals/questions/consensus, candidate next safe families, and Mind/Soul/Bifrost/Hands/Substrate/Idunn gates while denying direct state commit, objective adoption, scheduling, substrate access, Hands action, shell, commit, publication, deployment execution, service lifecycle, cross-body mutation, private transcripts, raw-result payloads, and private-state exposure. Focused smoke `.epiphany-smoke\repo-interpreter-brief-family-20260621-010858` ran init -> online -> accept -> repo-interpreter-brief derive-plan -> tick run/adopt/execute/close; Hands committed only `.epiphany/interpreter-briefs/repo-interpreter-brief-family.toml`, Soul passed with `pathScopeMatched=true`, `familyAssertions.status=passed`, `mindOwnsInterpretation=true`, `candidateActionsNonAuthoritative=true`, `directStateCommitAuthorized=false`, `handsActionAuthorized=false`, and `privateStateExposed=false`. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index c7900d30..5355d147 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index 29cb5127..e9a89756 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -90,7 +90,7 @@ active_subgoals: - Use `notes/epiphany-swarm-readiness-plan.md` as the live-fire direction gate. The local run path is a compass, not launch clearance: before unattended swarm operation, Epiphany needs typed pause/brake enforcement, one initiative scheduler, completion-gated cooldown, stale active-turn recovery receipts, parent-side Persona speech eligibility, memory lifecycle operations, and CultNet-first operator snapshots/intents/receipts. The local Verse brake document exists, `epiphany-verse-query swarm-brake` can engage/release it, `tools/epiphany_local_run.ps1` refuses live `plan`/`run`/`mvp` modes when the brake is engaged while leaving `status` readable, `epiphany-mvp-coordinator` checks the local Verse brake before app-server startup, and `epiphany-heartbeat-store` guards tick/pump/heat/queue-mention/routine when given `--local-verse-store`. Daemon liveness is now a typed local Verse authority: `epiphany-verse-query daemon-status` writes one daemon status without repainting the table, local Verse seeding preserves existing daemon statuses and swarm brakes, `invoke-tool` refuses when the host daemon is not ready or lacks `submitTypedToolIntent`, and both daemon tool invocation and lifecycle poke fail closed under an engaged matching brake. `epiphany-daemon-supervisor policy` writes durable per-daemon restart policy with command/args/cwd/cooldown/backoff/attempt state plus reconcile cadence and stale-heartbeat threshold; `epiphany-daemon-supervisor reconcile` loads that policy when no override command is supplied, refuses under a matching lifecycle brake, refuses during cooldown/backoff, writes daemon poke intent/receipt, updates daemon status, and updates policy attempt state; `epiphany-daemon-supervisor tick` is an explicit scheduler pulse that scans durable policies, records ready/noop pulses, skips before the configured reconcile interval, marks stale heartbeat status degraded, routes restarts through the same brake/cooldown/poke receipt path, and writes a latest `epiphany.cultmesh.daemon_scheduler_receipt.v0`; `epiphany-daemon-supervisor serve` runs that same pulse on a configurable cadence with bounded `--max-iterations` proof mode or unbounded service mode. `epiphany-daemon-supervisor service-plan`/`install-service` now writes a planned `epiphany.cultmesh.daemon_service_lifecycle_receipt.v0` for the `serve` command, while `service-launch`/`start-service` spawns that `serve` loop through the current executable or `--service-command`, can `--wait-child` for bounded proof, and records command/args/cwd, scheduler id, daemon selector, pid/exit/status, artifact ref, and private-state guard. `service-runbook`, `windows-service-install`/`service-install-plan`, `windows-service-status`, `windows-service-reconcile`, `windows-service-execution-readiness`, and `windows-service-start`/`stop` now record service lifecycle receipts through the same local Verse; the read-only status path has been proved against the real Windows `EventLog` service with receipt `daemon-service-lifecycle-receipt-windows-eventlog-proof-windows-service-status`, status `running`, exit code `0`, and `privateStateExposed=false`; the read-only service-policy reconciliation path has been proved for missing service, real-service drift against `EventLog`, lifecycle-brake refusal, and wrapper/local-Verse receipt `daemon-service-lifecycle-receipt-windows-eventlog-reconcile-proof-windows-service-reconcile`; execution readiness has been proved as a non-mutating `not-elevated` receipt through direct and wrapper paths; start/stop now produce non-mutating `start-planned`/`stop-planned` receipts unless `--execute-control`/`--execute-service-control` is passed, and wrapper `service-start-plan`/`service-stop-plan` proves those receipts against `EventLog`; explicit install/control execution now refuses as `execution-refused-not-elevated` with `executed=false` when the shell lacks Windows administrator authority, and wrapper `service-install-execute`, `service-start-execute`, and `service-stop-execute` prove those refusal receipts without mutation. Service lifecycle actions check the local Verse swarm brake before process launch, artifact writes, service-manager queries, service-policy reconciliation, execution-readiness checks, control planning, elevation-gated execution, or start/stop execution. The local wrapper builds/checks this binary. - Use `notes/epiphany-repo-swarm-mvp-contract.md` as the repo-swarm autonomy authority map. Autonomous branch-local work inside an Epiphany-owned repo Body is in scope and desired; the safety boundary is typed authority, branch containment, interruption, receipts, private-state sealing, and Bifrost-gated publication/merge/escalation, not asking a human before every local edit. Current safe-family cargo includes repo manifest, tool capability manifest, daemon-hosted tool request cargo, Eve/CultUI surface contract, repo collaboration policy, collaboration topics, consensus/objective/adoption/scheduling/work-order/verification/publication/sync/review/PR/credit/artifact/metrics/doctrine-update/secret-policy/deployment requests, repo deployment config, action-item receipts, Mind adoption interpretation/decision receipts, explicit Mind safe-family refusal proof `.epiphany-smoke\repo-mind-safe-family-guard-20260620-194425`, explicit Mind requested-path/plan changed-path refusal proof `.epiphany-smoke\repo-mind-path-guard-20260620-194239`, overview/public-proof/Gjallar/Eve readbacks, typed swarm-run stop classification, Idunn non-mutating queue-run lifecycle receipts, and fresh-repo upstream-main proof. Latest deployment proof `.epiphany-smoke\repo-deployment-config-family-20260620-221205` shows `repo.deployment_config` closes through Soul, `deployment-config-audit` reports `ready-for-idunn-review`, `deployment-execution-runbook` reports `ready-for-operator-git-push`, and `deployment-aftercare-audit` ingests local Verse/CultMesh Idunn deployment/aftercare receipt refs with source `cultmesh`, status `complete`, `deploymentComplete=true`, `daemonOwnsExecution=true`, no repo-agent execution/deployment/SSH/git-push/service/Hands/publication/merge/cross-body authority, and `privateStateExposed=false`; explicit Idunn receipt files remain only compatibility reliquaries. Latest deployment request proof `.epiphany-smoke\repo-deployment-request-family-20260620-195605` shows `repo.deployment_request` closes through Soul while requesting reviewed git-push-observed-by-Idunn deployment with script/host/secret/rollback/aftercare requirements and no deployment/SSH/git-push/service authority. Latest security cargo proof `.epiphany-smoke\repo-secret-policy-request-family-20260620-193046` shows `repo.secret_policy_request` closes through Soul while requesting reviewed secret/write/export/deployment policy without exposing secrets or granting write/deployment/publication authority. Governance proof `.epiphany-smoke\repo-doctrine-update-request-family-20260620-192140` shows `repo.doctrine_update_request` closes through Soul while requesting reviewed `AGENTS.md` doctrine work without mutating doctrine or granting Hands/service/publication authority. Swarm-run stop proofs now include `.epiphany-smoke\fresh-repo-mvp-20260620-180024` for `iteration-limit` / Self / `self.scheduler-iteration-limit` with upstream-main sync and public-proof export, plus `.epiphany-smoke\swarm-stop-classification-20260620-184717` for `queue-empty` / Gjallar / `repo.work.overview`, `dry-run-preview` / Self / `ready-to-run`, `authority-gated` / Bifrost / `awaiting-publication`, and `authority-gated` / Bifrost/GitHub / `awaiting-upstream-sync`; all stop packets are non-mutating, non-elevated, and `privateStateExposed=false`. Native proof `.epiphany-smoke\repo-work-service-lifecycle-20260620-185853` now proves Idunn-owned non-mutating repo-work queue-run service plan/runbook receipts for exact service id `epiphany-repo-work-queue-runner`, receipt-directory readback, runbook SHA-256 `f2ec67c4f8243a3ebc2f9e915b6b9f5ae2ac2d99d2cdb86905b54667adc456f8`, `hostedBody=repo-work`, no service-manager mutation, no launch, no elevation, and `privateStateExposed=false`. - Repo dependency/supply-chain policy request cargo is live. `repo-dependency-policy-request` lowers to safe family `repo.dependency_policy_request` and writes `.epiphany/dependency-policy-requests/.toml` with manifest inventory, lockfile policy, package-manager command review, network fetch policy, vulnerability/license/vendored-code/update-cadence requirements, Eyes/Soul/Mind/maintainer/Bifrost/dependency-audit receipt refs, and denials for dependency update, package install, lockfile mutation, network fetch, CI mutation, Hands, publication, merge, deployment, service lifecycle, cross-body mutation, private Verse rummaging, and private-state exposure. Proof `.epiphany-smoke\repo-dependency-policy-request-family-20260621-083433` closes through Soul with `familyAssertionsStatus=passed`, `pathScopeMatched=true`, `awaitingDependencyPolicyReview=true`, all direct dependency/package/network/CI authorities false, and `privateStateExposed=false`. - - Repo planning brief cargo now carries the family-friendly safe-family matrix. `repo-planning-brief` still lowers to safe family `repo.planning_brief` and writes `.epiphany/planning-briefs/.toml`, but it now names twenty-one candidate next safe families across preparation, adoption/queue, execution/review, publication/accounting, and policy/deployment groups, including `repo.readiness_review_request` for redacted repo-swarm MVP proof-bundle review before readiness claims. Each candidate must name owner, requested paths, verification asks, evidence needs, authority denials, and closure proofs. Closure `safeFamilyPlanning` readback now reports grouped matrix completeness, matrix controls, and closure proof presence while granting no scheduling, substrate, Hands, shell, commit, publication, deployment, service lifecycle, cross-body, private-transcript, raw-result, or private-state authority. Proof `.epiphany-smoke\repo-planning-brief-family-20260621-090158` closes through Soul with `candidateNextSafeFamilyCount=21`, `allMatrixGroupsComplete=true`, `matrixControlsPresent=true`, `allClosureProofsPresent=true`, `authorityDenied=true`, and `privateStateExposed=false`. + - Repo planning brief cargo now carries the family-friendly safe-family matrix plus explicit candidate action and closure shapes. `repo-planning-brief` still lowers to safe family `repo.planning_brief` and writes `.epiphany/planning-briefs/.toml`, but it now names twenty-one candidate next safe families across preparation, adoption/queue, execution/review, publication/accounting, and policy/deployment groups, including `repo.readiness_review_request` for redacted repo-swarm MVP proof-bundle review before readiness claims. Each candidate must name id, safe family, owner, status, requested paths, verification asks, evidence needs, closure proofs, authority denials, and next gate, with statuses such as `ready-for-mind-review`, `ready-for-self-queue`, `blocked-needs-evidence`, and `closed` while remaining non-queue entries. The closure ladder names draft selection, Self queue-run, Hands receipts, Soul verdict, Modeling/Mind map admission, Bifrost publication or non-publication, Idunn deployment/config when in scope, and redaction closure. Closure `safeFamilyPlanning` readback now reports grouped matrix completeness, matrix controls, candidate-action-template presence, closure proof presence, closure-ladder presence, and authority denials while granting no scheduling, substrate, Hands, shell, commit, publication, deployment, service lifecycle, cross-body, private-transcript, raw-result, or private-state authority. Proof `.epiphany-smoke\repo-planning-brief-family-20260621-114826` closes through Soul with `candidateNextSafeFamilyCount=21`, `candidateActionTemplatePresent=true`, `allMatrixGroupsComplete=true`, `matrixControlsPresent=true`, `allClosureProofsPresent=true`, `closureLadderPresent=true`, `authorityDenied=true`, and `privateStateExposed=false`; wrapper Gjallar proof `local-20260621-124924-844-17b352e7` reads the accepted `repo.planning_brief` closure/acceptance rows from the repo-local Verse without private-state exposure. - Repo-work readiness sight is live and now leaves typed local Verse rows. `epiphany-work readiness` reuses the existing overview/proof-bundle artery, inspects repo init, swarm online, Persona intake, Imagination plan, Self queue-run, Hands execute, Soul closure, Modeling/Mind admission, public proof, Bifrost publication, upstream-main sync, Idunn lifecycle, daemon tool directory, and private-state redaction rows, then writes `.epiphany/work/work-readiness-.json` as `epiphany.repo_work_readiness_report.v0` and mirrors compact `epiphany.cultmesh.repo_work_readiness.v0` into the repo-local Verse when the accept receipt names a local Verse store. Gjallar/swarm-overview/swarm-triage expose `repoWorkReadinessRows`, `REPO-WORK-READINESS` TUI rows, `latestRepoWorkReadiness`, and non-mutating `repo-work-readiness` action rows. It is sight only: no readiness approval, durable state commit, publication, PR, merge, sync, deployment, service lifecycle, Hands action, cross-body mutation, private Verse rummaging, or private-state exposure authority. Proof `.epiphany-smoke\repo-work-readiness-20260621-094043` drove a fresh repo through init/online/intake/checklist execution/closure/queue-run/public-proof export; readiness reported `not-ready`, `missingRequiredCount=4` for Bifrost publication, upstream-main sync, Idunn lifecycle, and tool directory, wrote readiness id `repo-work-readiness-repo-work-readiness`, Gjallar reported `repoWorkReadinessCount=1`, and authority denials held. - Repo-swarm Mind interpretation cargo is live. `repo-interpreter-brief` lowers to safe family `repo.interpreter_brief` and writes `.epiphany/interpreter-briefs/.toml` as draft Mind-owned interpretation from Imagination consensus, with semantic checks, candidate safe families, required Mind/Soul/Bifrost/Hands/Substrate/Idunn gates, and explicit denials for direct state commit, objective adoption, scheduling, substrate access, Hands action, shell, commit, publication, deployment execution, service lifecycle, cross-body mutation, private transcripts/raw results, and private-state exposure. Proof `.epiphany-smoke\repo-interpreter-brief-family-20260621-010858` closes through Soul with `familyAssertions.status=passed`, `mindOwnsInterpretation=true`, `candidateActionsNonAuthoritative=true`, `directStateCommitAuthorized=false`, `handsActionAuthorized=false`, and `privateStateExposed=false`. - Idunn-hosted repo-work queue-run lifecycle now has plan/runbook/launch/audit closure under explicit operator authority. `epiphany-daemon-supervisor repo-work-service-audit` reads all typed service lifecycle receipts for `epiphany-repo-work-queue-runner`, requires planned install-plan, written local runbook artifact, completed launch with exit code `0`, and no private-state exposure, then writes a `repo-work-service-audit` receipt with `status=complete` or `incomplete`. Native proof `.epiphany-smoke\repo-work-service-lifecycle-20260621-004202` proves plan/runbook/launch/audit with `auditStatus=complete`, `auditRunbookArtifactStatus=present`, `auditLaunchExitCode=0`, `mutatesServiceManager=false`, `requiresElevatedAuthority=false`, and `privateStateExposed=false`. Wrapper proofs `local-20260621-014302-362-31bbef47`, `local-20260621-014337-108-cbd99615`, `local-20260621-014413-125-09e183c5`, and `local-20260621-014558-197-f6951806` prove operator plan/runbook/launch/audit ergonomics, with audit reporting no missing or failed checks. Basic queue-run service lifecycle readiness is sealed; remaining Idunn work is optional elevated install/start execution under explicit operator authority, not Self scheduling authority.