From aba54411948b45f060d7109c27373fc0ed051f80 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 04:42:25 +0100 Subject: [PATCH] Separate policy review and admission --- ...any-repo-dependency-policy-family-smoke.rs | 5 +-- ...piphany-repo-secret-policy-family-smoke.rs | 5 +-- epiphany-core/src/bin/epiphany-work.rs | 38 ++++++++++++++---- .../closure_contracts/operations.rs | 38 ++++++++++++++---- ...onceptual-substitution-audit-2026-07-12.md | 16 ++++++++ notes/fresh-workspace-handoff.md | 8 ++++ state/ledgers.msgpack | Bin 476640 -> 476903 bytes state/map.yaml | 2 +- 8 files changed, 87 insertions(+), 25 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs index c01174a6..71874dd4 100644 --- a/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs @@ -228,10 +228,7 @@ fn run_smoke(args: Args) -> Result { &request_text, "status = \"awaiting-dependency-policy-review\"", )?; - require_text( - &request_text, - "requested_owner = \"Maintainer/Soul/Bifrost\"", - )?; + require_text(&request_text, "routing_owner = \"Self\"")?; require_text(&request_text, "requires_manifest_inventory = true")?; require_text(&request_text, "requires_lockfile_policy = true")?; require_text( diff --git a/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs index 8a296e66..615c32e0 100644 --- a/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs @@ -214,10 +214,7 @@ fn run_smoke(args: Args) -> Result { "safe_action_family = \"repo.secret_policy_request\"", )?; require_text(&request_text, "status = \"awaiting-security-review\"")?; - require_text( - &request_text, - "requested_owner = \"Maintainer/Soul/Bifrost\"", - )?; + require_text(&request_text, "routing_owner = \"Self\"")?; require_text( &request_text, "requires_secret_inventory_without_values = true", diff --git a/epiphany-core/src/bin/epiphany-work.rs b/epiphany-core/src/bin/epiphany-work.rs index 9a347f01..bbb2d83f 100644 --- a/epiphany-core/src/bin/epiphany-work.rs +++ b/epiphany-core/src/bin/epiphany-work.rs @@ -5265,7 +5265,9 @@ fn derive_repo_secret_policy_request_plan( "[request]".to_string(), format!("id = {}", toml_basic_string(&request_id)), "status = \"awaiting-security-review\"".to_string(), - "requested_owner = \"Maintainer/Soul/Bifrost\"".to_string(), + "routing_owner = \"Self\"".to_string(), + "required_reviewers = [\"Maintainer\", \"Soul\", \"Mind\", \"Bifrost\"]".to_string(), + "policy_admission_owner = \"Mind\"".to_string(), "requested_effect = \"review-repo-secret-and-write-permission-policy\"".to_string(), "security_scope = \"secrets, credentials, write permissions, public/private export, and deployment authority\"".to_string(), "requires_secret_inventory_without_values = true".to_string(), @@ -5306,7 +5308,10 @@ fn derive_repo_secret_policy_request_plan( "service_lifecycle_authority = false".to_string(), "cross_body_mutation_authorized = false".to_string(), "private_verse_rummaging = false".to_string(), - "maintainer_or_soul_security_authority_required = true".to_string(), + "maintainer_security_review_required = true".to_string(), + "soul_security_verification_required = true".to_string(), + "mind_policy_admission_required = true".to_string(), + "bifrost_publication_review_required = true".to_string(), String::new(), "[verification]".to_string(), "asks = [".to_string(), @@ -5395,7 +5400,9 @@ fn derive_repo_dependency_policy_request_plan( "[request]".to_string(), format!("id = {}", toml_basic_string(&request_id)), "status = \"awaiting-dependency-policy-review\"".to_string(), - "requested_owner = \"Maintainer/Soul/Bifrost\"".to_string(), + "routing_owner = \"Self\"".to_string(), + "required_reviewers = [\"Maintainer\", \"Soul\", \"Mind\", \"Bifrost\"]".to_string(), + "policy_admission_owner = \"Mind\"".to_string(), "requested_effect = \"review-repo-dependency-and-supply-chain-policy\"".to_string(), "dependency_scope = \"dependency manifests, lockfiles, package-manager commands, vendored code, update cadence, license posture, vulnerability review, and provenance requirements\"".to_string(), "requires_manifest_inventory = true".to_string(), @@ -5448,7 +5455,11 @@ fn derive_repo_dependency_policy_request_plan( "service_lifecycle_authority = false".to_string(), "cross_body_mutation_authorized = false".to_string(), "private_verse_rummaging = false".to_string(), - "maintainer_or_soul_dependency_authority_required = true".to_string(), + "maintainer_dependency_review_required = true".to_string(), + "soul_dependency_verification_required = true".to_string(), + "mind_policy_admission_required = true".to_string(), + "bifrost_publication_review_required = true".to_string(), + "supply_chain_audit_required = true".to_string(), String::new(), "[verification]".to_string(), "asks = [".to_string(), @@ -13524,7 +13535,9 @@ private_state_exposed = false [request] status = "awaiting-security-review" -requested_owner = "Maintainer/Soul/Bifrost" +routing_owner = "Self" +required_reviewers = ["Maintainer", "Soul", "Mind", "Bifrost"] +policy_admission_owner = "Mind" requested_effect = "review-repo-secret-and-write-permission-policy" requires_secret_inventory_without_values = true requires_write_permission_scope = true @@ -13562,7 +13575,10 @@ merge_authorized = false service_lifecycle_authority = false cross_body_mutation_authorized = false private_verse_rummaging = false -maintainer_or_soul_security_authority_required = true +maintainer_security_review_required = true +soul_security_verification_required = true +mind_policy_admission_required = true +bifrost_publication_review_required = true "# .to_string() } @@ -13601,7 +13617,9 @@ summary = "test summary" private_state_exposed = false [request] status = "awaiting-dependency-policy-review" -requested_owner = "Maintainer/Soul/Bifrost" +routing_owner = "Self" +required_reviewers = ["Maintainer", "Soul", "Mind", "Bifrost"] +policy_admission_owner = "Mind" requested_effect = "review-repo-dependency-and-supply-chain-policy" requires_manifest_inventory = true requires_lockfile_policy = true @@ -13646,7 +13664,11 @@ deployment_authority = false service_lifecycle_authority = false cross_body_mutation_authorized = false private_verse_rummaging = false -maintainer_or_soul_dependency_authority_required = true +maintainer_dependency_review_required = true +soul_dependency_verification_required = true +mind_policy_admission_required = true +bifrost_publication_review_required = true +supply_chain_audit_required = true "# .to_string() } diff --git a/epiphany-core/src/bin/epiphany_work/closure_contracts/operations.rs b/epiphany-core/src/bin/epiphany_work/closure_contracts/operations.rs index 899e8516..47823398 100644 --- a/epiphany-core/src/bin/epiphany_work/closure_contracts/operations.rs +++ b/epiphany-core/src/bin/epiphany_work/closure_contracts/operations.rs @@ -141,7 +141,9 @@ pub(super) struct RepoSecretPolicyRequest { #[derive(Debug, Deserialize)] pub(super) struct RepoSecretPolicyRequestBody { pub(super) status: String, - pub(super) requested_owner: String, + pub(super) routing_owner: String, + pub(super) required_reviewers: Vec, + pub(super) policy_admission_owner: String, pub(super) requested_effect: String, pub(super) requires_secret_inventory_without_values: bool, pub(super) requires_write_permission_scope: bool, @@ -187,7 +189,10 @@ pub(super) struct RepoSecretPolicyAuthority { pub(super) service_lifecycle_authority: bool, pub(super) cross_body_mutation_authorized: bool, pub(super) private_verse_rummaging: bool, - pub(super) maintainer_or_soul_security_authority_required: bool, + pub(super) maintainer_security_review_required: bool, + pub(super) soul_security_verification_required: bool, + pub(super) mind_policy_admission_required: bool, + pub(super) bifrost_publication_review_required: bool, } impl RepoSecretPolicyRequest { @@ -199,7 +204,9 @@ impl RepoSecretPolicyRequest { pub(super) fn awaits_security_review(&self) -> bool { let request = &self.request; request.status == "awaiting-security-review" - && request.requested_owner == "Maintainer/Soul/Bifrost" + && request.routing_owner == "Self" + && request.required_reviewers == ["Maintainer", "Soul", "Mind", "Bifrost"] + && request.policy_admission_owner == "Mind" && request.requested_effect == "review-repo-secret-and-write-permission-policy" && request.requires_secret_inventory_without_values && request.requires_write_permission_scope @@ -246,7 +253,10 @@ impl RepoSecretPolicyRequest { && !authority.service_lifecycle_authority && !authority.cross_body_mutation_authorized && !authority.private_verse_rummaging - && authority.maintainer_or_soul_security_authority_required + && authority.maintainer_security_review_required + && authority.soul_security_verification_required + && authority.mind_policy_admission_required + && authority.bifrost_publication_review_required } } @@ -270,7 +280,9 @@ pub(super) struct RepoDependencyPolicyRequest { #[derive(Debug, Deserialize)] pub(super) struct RepoDependencyPolicyRequestBody { pub(super) status: String, - pub(super) requested_owner: String, + pub(super) routing_owner: String, + pub(super) required_reviewers: Vec, + pub(super) policy_admission_owner: String, pub(super) requested_effect: String, pub(super) requires_manifest_inventory: bool, pub(super) requires_lockfile_policy: bool, @@ -327,7 +339,11 @@ pub(super) struct RepoDependencyPolicyAuthority { pub(super) service_lifecycle_authority: bool, pub(super) cross_body_mutation_authorized: bool, pub(super) private_verse_rummaging: bool, - pub(super) maintainer_or_soul_dependency_authority_required: bool, + pub(super) maintainer_dependency_review_required: bool, + pub(super) soul_dependency_verification_required: bool, + pub(super) mind_policy_admission_required: bool, + pub(super) bifrost_publication_review_required: bool, + pub(super) supply_chain_audit_required: bool, } impl RepoDependencyPolicyRequest { @@ -339,7 +355,9 @@ impl RepoDependencyPolicyRequest { pub(super) fn awaits_review(&self) -> bool { let request = &self.request; request.status == "awaiting-dependency-policy-review" - && request.requested_owner == "Maintainer/Soul/Bifrost" + && request.routing_owner == "Self" + && request.required_reviewers == ["Maintainer", "Soul", "Mind", "Bifrost"] + && request.policy_admission_owner == "Mind" && request.requested_effect == "review-repo-dependency-and-supply-chain-policy" && request.requires_manifest_inventory && request.requires_lockfile_policy @@ -396,7 +414,11 @@ impl RepoDependencyPolicyRequest { && !value.service_lifecycle_authority && !value.cross_body_mutation_authorized && !value.private_verse_rummaging - && value.maintainer_or_soul_dependency_authority_required + && value.maintainer_dependency_review_required + && value.soul_dependency_verification_required + && value.mind_policy_admission_required + && value.bifrost_publication_review_required + && value.supply_chain_audit_required } } diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 945286fc..8d2fd4e5 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -1304,3 +1304,19 @@ on provider constructors/writers and their re-exports. One gate already makes each item test-only; the second owned nothing. The duplicates are removed. Production library/binary compilation proves the provider writers remain absent from production while their tests continue to compile and pass. + +## Policy participation is not policy ownership + +Secret and dependency policy requests encoded `Maintainer/Soul/Bifrost` as a +single requested owner, then accepted a Maintainer-or-Soul authority seal. That +substituted a participant list for an owner and made independent obligations +interchangeable. Self now owns routing, Mind owns policy admission, and the +typed request names Maintainer review, Soul verification, Mind admission, and +Bifrost publication review as conjunctive requirements. Dependency policy also +requires its supply-chain audit independently. None of these request documents +grants secret, write, package, network, CI, deployment, or publication effects. + +The wider scan still finds composite decision fields in external governance +(artifact acceptance, operator/maintainer consequence, PR authority, readiness) +and composite labels in operator projections. These are the next named scars; +they are not evidence that every slash in prose is an owner. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 80fe694d..95d793ab 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -458,3 +458,11 @@ review-load receipts are required observations without authorizing spend or ledger mutation. Contract catalogue and operator rows use the same ownership. The last completed code pass had 259 library tests passing and all binaries compiling. Re-run focused checks for the next touched surface; use the full library/binary baseline before committing a new architectural cut. + +Secret and dependency policy requests no longer use a +`Maintainer/Soul/Bifrost` pseudo-owner or Maintainer-or-Soul seal. Self routes, +Mind admits policy, and Maintainer review, Soul verification, Mind admission, +and Bifrost publication review are separately required. Dependency policy also +requires supply-chain audit evidence. The next conceptual-substitution targets +are the surviving composite decision fields in external governance and the +composite owner labels in operator projections. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index ff9971deee07d06629be4b33bb32feb81eff3549..7dd5229f6552712e2bac4fde502bb5854cdbd66f 100644 GIT binary patch delta 261 zcmaFRE&IGzc7p^Xw~3LJp?TCX26opYo0S<085t{@r!uuqWnu(k5X}t4EI`Z(#BAHA zGO>F*PY+;b=VLdv0&AVVaT$|%{VnJGyyVn^lG4N+-Qv=u;*!jg(vr;lJcWY9;$ns3 zf}G3}h2qrYqSO+F#Jm)Rl+=RMyp+_uzqP?TDhnOd%+P?lPh znUHv$w73+WuEiNr6$f?v#&PdG6Q%EdL$tF*0{~`@5~u(G diff --git a/state/map.yaml b/state/map.yaml index 1d1e4ce6..3a8e0e39 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -660,4 +660,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: Continue the beyond-closure composite-owner purge. Deployment, PR, artifact acceptance, and metrics are split: Self routes; Bifrost gates/accounts; Maintainer accepts artifacts and owns review-load evidence; Hands performs PR action; GitHub supplies provider receipts; Idunn executes deployment. Remaining production findings include Maintainer/Soul/Bifrost security/dependency policy plus composite owner labels in epiphany-verse-query projections. Map and cut secret/dependency policy review next; keep closure's zero-substring invariant intact. + next_action: Continue the beyond-closure composite-owner purge. Secret and dependency policy are split: Self routes, Mind admits, and Maintainer review, Soul verification, Mind admission, Bifrost publication review, plus dependency supply-chain audit are conjunctive. Next map the surviving external-governance OR fields (artifact acceptance, operator/maintainer consequence, PR authority, readiness) and composite owner labels in operator projections; distinguish genuine alternate human authority from collapsed organ ownership before cutting. Keep closure's zero-substring invariant intact.