Require named Maintainer review

This commit is contained in:
Meta Vens 2026-07-13 05:07:05 +01:00
commit 6c400def70
10 changed files with 29 additions and 10 deletions

View file

@ -235,7 +235,7 @@ fn run_smoke(args: Args) -> Result<Value> {
)?;
require_text(&request_text, "doctrine_target = \"AGENTS.md\"")?;
require_text(&request_text, "requires_source_grounding = true")?;
require_text(&request_text, "requires_human_or_maintainer_review = true")?;
require_text(&request_text, "maintainer_review_required = true")?;
require_text(&request_text, "[antecedents]")?;
require_text(&request_text, "persona_or_human_feedback_required = true")?;
require_text(&request_text, "imagination_plan_required = true")?;

View file

@ -271,6 +271,7 @@ fn run_smoke(args: Args) -> Result<Value> {
"requires_private_state_redaction_check = true",
)?;
require_text(&request_text, "maintainer_approval_authorized = false")?;
require_text(&request_text, "maintainer_response_required = true")?;
require_text(&request_text, "merge_authorized = false")?;
require_text(&request_text, "push_authorized = false")?;
require_text(&request_text, "publication_authorized = false")?;

View file

@ -4289,7 +4289,7 @@ fn derive_repo_maintainer_review_request_plan(
"service_lifecycle_authority = false".to_string(),
"cross_body_mutation_authorized = false".to_string(),
"private_verse_rummaging = false".to_string(),
"human_or_maintainer_response_required = true".to_string(),
"maintainer_response_required = true".to_string(),
String::new(),
"[verification]".to_string(),
"asks = [".to_string(),
@ -5153,7 +5153,7 @@ fn derive_repo_doctrine_update_request_plan(
format!("doctrine_target = {}", toml_basic_string(doctrine_target)),
"change_surface = \"repo-local agent instructions and operating doctrine\"".to_string(),
"requires_source_grounding = true".to_string(),
"requires_human_or_maintainer_review = true".to_string(),
"maintainer_review_required = true".to_string(),
String::new(),
"[antecedents]".to_string(),
"persona_or_human_feedback_required = true".to_string(),
@ -13993,7 +13993,7 @@ mutation_owner = "Hands"
requested_effect = "review-repo-agent-doctrine-update"
doctrine_target = "AGENTS.md"
requires_source_grounding = true
requires_human_or_maintainer_review = true
maintainer_review_required = true
[antecedents]
[required_receipts]
[doctrine_packet]

View file

@ -994,7 +994,7 @@ impl RepoMaintainerReviewRequest {
&& !a.service_lifecycle_authority
&& !a.cross_body_mutation_authorized
&& !a.private_verse_rummaging
&& a.human_or_maintainer_response_required
&& a.maintainer_response_required
}
}
#[derive(Debug, Deserialize)]
@ -1043,7 +1043,7 @@ struct RepoMaintainerReviewAuthority {
service_lifecycle_authority: bool,
cross_body_mutation_authorized: bool,
private_verse_rummaging: bool,
human_or_maintainer_response_required: bool,
maintainer_response_required: bool,
}
pub(super) fn parse_repo_maintainer_review_request(
text: &str,

View file

@ -475,7 +475,7 @@ hands_action_authorized = false
service_lifecycle_authority = false
cross_body_mutation_authorized = false
private_verse_rummaging = false
human_or_maintainer_response_required = true
maintainer_response_required = true
"#;
let request = parse_repo_maintainer_review_request(text).expect("fixture is typed TOML");
assert!(!request.has_authority_seals());

View file

@ -601,7 +601,7 @@ impl RepoDoctrineUpdateRequest {
&& r.requested_effect == "review-repo-agent-doctrine-update"
&& r.doctrine_target == "AGENTS.md"
&& r.requires_source_grounding
&& r.requires_human_or_maintainer_review
&& r.maintainer_review_required
}
pub(super) fn has_antecedent_contract(&self) -> bool {
[
@ -675,7 +675,7 @@ struct RepoDoctrineRequestBody {
requested_effect: String,
doctrine_target: String,
requires_source_grounding: bool,
requires_human_or_maintainer_review: bool,
maintainer_review_required: bool,
}
pub(super) fn parse_repo_doctrine_update_request(text: &str) -> Result<RepoDoctrineUpdateRequest> {
toml::from_str(text).context("doctrine update request is not valid typed TOML")

View file

@ -1402,3 +1402,15 @@ The request now carries a concrete requester body, `routing_owner=Self`, and
`pressure_source=Persona`. CultMesh separately states that the target host
daemon owns execution and the requester does not. The typed closure validates
all of these fields. Persona supplies pressure; Self routes; the provider acts.
## Human context is not Maintainer authority
Two review contracts weakened named Maintainer gates into OR conditions. The
Maintainer review request accepted `human_or_maintainer_response_required`, even
though its required receipt is specifically Maintainer-authored. The doctrine
request named Maintainer in `required_reviewers`, then accepted
`requires_human_or_maintainer_review`.
Both now require Maintainer review explicitly. Humans and Personas may still
supply context or pressure through their own fields, but generic human input
cannot satisfy a Maintainer receipt or doctrine-review obligation.

View file

@ -517,3 +517,9 @@ provenance, target-host execution ownership, and requester execution denial.
The typed closure now validates the identity and authority split. Continue
looking for fields where observation, request, admission, and effect ownership
are collapsed under innocent-sounding status or cache names.
Maintainer review is no longer substitutable by generic human response. Both
the Maintainer review request and doctrine update request now require explicit
Maintainer review, matching their receipt contracts and reviewer topology.
Continue auditing remaining OR-shaped fields, but distinguish legitimate input
alternatives (for example token count or cost summary) from authority gates.

Binary file not shown.

View file

@ -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 conceptual-substitution audit beyond owner strings. Tool requests now separate requester body, Self routing, Persona pressure provenance, and target-host execution; the typed closure validates the split. Next inspect status, receipt, scheduler, and cache projections for fields that collapse observation/request/admission/effect authority. Keep closure's zero-substring invariant.
next_action: Continue the conceptual-substitution audit beyond owner strings. Maintainer review and doctrine review now require explicit Maintainer authority; generic human context cannot substitute for the named receipt. Next classify remaining OR-shaped fields as legitimate data alternatives or authority substitutions, then inspect status/receipt/scheduler/cache projections for observation-to-consequence leakage. Keep closure's zero-substring invariant.