Repository navigation
feat(governance): define cross-role enforcement - #6214
Conversation
There was a problem hiding this comment.
Ladon verdict: Request changes
Request changes — 1 blocking finding.
Blocking findings
- static/schemas/source/core/planned-delivery.json:10 — A new required-currency constraint added to the shared core
planned-delivery.jsontightens the stablecreate_media_buyresponse contract. This is an optional→required flip on a published, load-bearing wire shape that leaks outside the experimental campaign-governance surface covered by the changeset/notice window (PR #6213). Per the changeset-scope and schema↔docs coherence rules, tightening a stable published contract this way is a breaking wire change and ishigh. Fix by scoping the constraint to the experimental governance schema rather than the shared coreplanned-delivery, or ship it as an explicitly ratified breaking change.
Note: The bulk of this PR (training-agent issuer/verifier, experimental governance schema changes) is well-tested with strong schema↔docs coherence and a correctly-scoped minor changeset. The single core-schema leak is the blocker.
Row 1 of the decision table fires on the high severity finding, taking precedence over the gated-paths escalation (which also applies here — these schema changes require CODEOWNERS/human review, and review_decision is REVIEW_REQUIRED).
Blocking findings
- static/schemas/source/core/planned-delivery.json:10 — Required-currency constraint tightens the stable create_media_buy response contract (optional→required flip on a published wire shape) outside changeset/notice scope
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval, and this PR carries breaking-class protocol changes.
Why escalate (multiple triggers):
- Gated paths + review not APPROVED (row 2): This PR modifies 17 files under
static/schemas/source/**, a hard, deterministic approval gate.review_decisionisREVIEW_REQUIRED, notAPPROVED, so the gate is not satisfied — a human/CODEOWNERS approval is required before this can merge. - Breaking-class governance (repo hard gate): The reviewer notes breaking wire changes on the experimental
governance.campaignsurface (new oneOf arm, retyped/added audit-log outcome fields, new error code). Per the constitution's "Breaking-class changes are never auto-approved" rule, ratification is a human act and must escalate unlessreview_decisionisAPPROVED.
No blocking (critical/high) findings: The reviewer traced JWS verify / payload-hash / commitment-ceiling / replay / one-terminal-settlement / update-delta logic end-to-end with no fail-open, off-by-one, currency-confusion, or TOCTOU. Schemas are internally coherent and self-tested; the only new oneOf is const-discriminated on task; referenced error codes exist in the enum (ACCOUNT_REQUIRED added and dispositioned). Changeset is minor with breaking changes confined to the experimental surface and self-noticed.
Medium findings (do not block, surfaced for the human reviewer):
- docs/governance/overview.mdx:180 — report_plan_outcome example has duplicate check_id + missing required idempotency_key.
- static/schemas/source/governance/get-plan-audit-logs-response.json:336 — outcome fields added/retyped not reflected in the reference doc (schema↔docs drift).
Escalation reasons:
- Modifies gated
static/schemas/source/**files (e.g. protocol-envelope.json, error-code.json, governance schemas) — human/CODEOWNERS approval required; review_decision is REVIEW_REQUIRED. - Breaking-class protocol change on governance.campaign surface — ratification is a human act per the constitution.
The changes look mechanically sound; this is a governance/approval gate, not a code-quality block.
Medium findings
- docs/governance/overview.mdx:180 — overview.mdx report_plan_outcome example: duplicate check_id + missing required idempotency_key
- static/schemas/source/governance/get-plan-audit-logs-response.json:336 — get-plan-audit-logs-response.json adds/retypes outcome fields not reflected in the reference doc
Why human review
- Modifies 17 gated
static/schemas/source/**files (protocol-envelope.json, error-code.json, governance/* schemas, etc.) — hard approval gate, and review_decision is REVIEW_REQUIRED (not APPROVED). Human/CODEOWNERS approval required. - Breaking-class protocol change on the experimental governance.campaign surface (new oneOf arm, retyped/added audit-log outcome fields, new error code) — per the constitution, breaking-class ratification is a human act and is never auto-approved unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-governance-request.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/update-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/planned-delivery.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/protocol-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/governance-decision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-request.json (modifie
…(truncated)…
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard gated-paths approval gate is unsatisfied.
This PR modifies 17 gated static/schemas/source/** files (protocol-envelope.json, error-code.json, governance/* schemas, media-buy/* schemas, etc.), which are under a hard, non-overridable approval gate. review_decision is CHANGES_REQUESTED, not APPROVED, so decision-table row 2 fires: outcome MUST be escalate. A human/CODEOWNERS approval is required before this can merge.
This pass surfaced no blocking or Medium findings — the two prior Medium findings (overview.mdx report_plan_outcome example, get-plan-audit-logs-response.json outcome fields) appear resolved, and the current delta is additive on the experimental governance surface (Ed25519 JWS-vector generator, regenerated fixture, reference verifier test, docs coherence updates, changeset present). Only one Low finding (fixture canonicalization tooling note) remains, which does not block. But the gated-paths gate stands regardless of a clean diff until a human approval is recorded.
Escalation reasons
- Modifies 17 gated
static/schemas/source/**files;review_decisionisCHANGES_REQUESTED(notAPPROVED) — hard approval gate requires human/CODEOWNERS review.
Why human review
- Modifies 17 gated static/schemas/source/** files (protocol-envelope.json, error-code.json, governance/, media-buy/, etc.) and review_decision is CHANGES_REQUESTED, not APPROVED — hard, non-overridable approval gate requires human/CODEOWNERS approval before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-governance-request.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/update-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/planned-delivery.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/protocol-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/governance-decision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/get-plan-audit-logs-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/report-plan-outcome-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/build-creative-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/signals/activate-signal-request.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'CHANGES_REQUESTED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on protocol schema files not yet satisfied.
This PR modifies 17 gated static/schemas/source/** files (protocol-envelope.json, error-code.json, governance/* schemas, media-buy/* schemas, etc.). Under the deterministic hard approval gate, gated_paths is true and review_decision is CHANGES_REQUESTED — not APPROVED. Per decision rule row 2, the outcome must be escalate: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
Separately, this is a breaking-class protocol change on the governance.campaign surface (new error code, retyped/added audit-log outcome fields, new oneOf arm). Per the constitution's hard gate, breaking-class ratification is a human act and is never auto-approved unless review_decision is APPROVED.
Iteration credit: The two prior medium findings (overview.mdx duplicate check_id / missing idempotency_key; get-plan-audit-logs-response.json outcome fields not reflected in docs) sit in files absent from the current delta and are resolved this pass. The current run surfaces only two low findings (docs hard-coding case count "27" vs test asserting >= 20; generator round-tripping the fixture through JSON.parse/stringify). Neither is blocking. The escalation is driven solely by the unsatisfied approval gate, not by new actionable defects.
Blocking findings: none (no critical/high).
Medium findings: none in the current delta.
Once a human/CODEOWNERS approval flips review_decision to APPROVED, this PR would fall through to a clean approve on the reviewer findings alone.
Why human review
- Modifies 17 gated
static/schemas/source/**files (protocol-envelope.json, error-code.json, governance/* schemas, media-buy/* schemas, etc.) under a hard, non-overridable approval gate; review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required. - Breaking-class protocol change on the experimental governance.campaign surface (new error code, retyped/added audit-log outcome fields, new oneOf arm) — per the constitution, breaking-class ratification is a human act and is never auto-approved unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-governance-request.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/update-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/planned-delivery.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/protocol-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/governance-decision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/get-plan-audit-logs-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/report-plan-outcome-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/build-creative-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matches `static/schema
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval (review_decision is CHANGES_REQUESTED, not APPROVED).
This PR modifies 17 gated static/schemas/source/** files, which sit under a hard, non-overridable approval gate (gated_paths: true). Per decision-table row 2, a PR touching gated paths cannot auto-approve unless review_decision is exactly APPROVED. The current review decision is CHANGES_REQUESTED, so the gate is not satisfied.
The reviewer surfaced no Critical/High/Medium findings this run — the delta (deterministic governance signed-JWS conformance fixtures, generator script, drift ratchet, coherent doc updates, GitGuardian ignore for a public test-only key) is mechanically clean, and the two prior medium findings (overview.mdx duplicate check_id/missing idempotency_key; get-plan-audit-logs-response.json outcome fields) are absent from the delta and were not re-raised. Credit to the developer for resolving those.
However, a clean diff does not lift the gate. Additionally, this remains a breaking-class protocol change on the experimental governance.campaign surface, which per repo constitution is never auto-approved without human ratification. Human/CODEOWNERS approval must be recorded before merge.
Escalation reasons
- Modifies 17 gated
static/schemas/source/**files (protocol-envelope.json, error-code.json, governance/* schemas, media-buy/* schemas, etc.) under a hard approval gate; review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required. - Breaking-class protocol change on the governance.campaign surface: ratification is a human act and cannot auto-approve unless review_decision is APPROVED.
Why human review
- Modifies 17 gated static/schemas/source/** files under a hard, non-overridable approval gate (row 2); review_decision is CHANGES_REQUESTED, not APPROVED — human/CODEOWNERS approval required before merge.
- Breaking-class protocol change on the experimental governance.campaign surface — per constitution, breaking-class ratification is a human act and is never auto-approved unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-governance-request.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/update-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/planned-delivery.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/protocol-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/governance-decision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/get-plan-audit-logs-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/report-plan-outcome-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/build-creative-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/signals/activate-signal-request.json (modified)
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate not satisfied
This PR modifies 17 gated static/schemas/source/** files (gated_paths: true) while review_decision is CHANGES_REQUESTED — not APPROVED. Per decision-table row 2, the outcome must be escalate: Ladon cannot auto-approve a gated-path change until a human/CODEOWNERS approval is recorded, regardless of how clean the delta looks.
Reviewer findings this run: none. The prior two medium findings (overview.mdx example idempotency_key, get-plan-audit-logs-response.json outcome-field docs coherence) are absent from the current delta and were skipped per subsequent-pass scope rules — this is a net improvement. The delta itself (Ed25519 JWS conformance fixture + deterministic generator + byte-exact verifier + coherent doc updates) is clean: no wire/schema drift, no dist/** mutation, no oneOf regression.
Escalation reasons
- Modifies 17 gated
static/schemas/source/**files (protocol-envelope.json, error-code.json, governance/* schemas, etc.) under a hard, non-overridable approval gate;review_decisionisCHANGES_REQUESTED, notAPPROVED. Human/CODEOWNERS approval required. - Breaking-class protocol change on the governance.campaign surface — ratification is a human act and is never auto-approved unless
review_decisionisAPPROVED.
Once a human/CODEOWNERS approval flips review_decision to APPROVED, the gate lifts and this clean, finding-free delta can proceed normally.
Why human review
- Modifies 17 gated static/schemas/source/** files (protocol-envelope.json, error-code.json, governance/* schemas, etc.) — hard approval gate; review_decision is CHANGES_REQUESTED, not APPROVED. Human/CODEOWNERS approval required.
- Breaking-class protocol change on the experimental governance.campaign surface — per the constitution, breaking-class ratification is a human act and is never auto-approved unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-governance-request.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/update-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/planned-delivery.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/protocol-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/governance-decision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/get-plan-audit-logs-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/report-plan-outcome-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/build-creative-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/create-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/update-media-buy-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/protocol/get-adcp-capabilities-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/signals/activate-signal-request.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'CHANGES_REQUESTED', not APPROVED. This is a hard gate enforced in code — Ladon cannot a
…(truncated)…
Implement cross-role governance authorization, training-agent support, audit semantics, and deterministic signed-JWS conformance vectors for AdCP 3.2.
86c0e5e to
25bf073
Compare
Dismissed as obsolete: the blocking stable-core currency constraint was removed and scoped to the experimental governance request; the regression test preserves the stable core shape. All three review threads are addressed and resolved.
|
Human landing decision recorded for 3.2 development: merge the implementation now; do not cut the first 3.2 beta until next week.\n\nReview disposition on the cleaned head:\n- stable |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on protocol schema source is not yet satisfied.
Escalation reasons
- This PR modifies 17 gated
static/schemas/source/**files (protocol-envelope.json, error-code.json, task-type.json, governance/* request+response schemas, media-buy/* requests, signals/activate-signal-request.json, etc.). These paths sit under a hard, non-overridable approval gate.review_decisionisREVIEW_REQUIRED, notAPPROVED— decision-table row 2 forcesescalate. - Breaking-class protocol change on the experimental
governance.campaignsurface (plan_id dropped from required,governance_contextnow the authoritative opaque binding,conditionsdemoted to a non-authorizing counterproposal,check_typeadded,status→verdictrename). Per the constitution, breaking-class ratification is a human act and is never auto-approved unlessreview_decisionisAPPROVED.
Findings
None. The reviewer confirmed schema↔docs coherence holds across check_governance / report_plan_outcome / get_plan_audit_logs; every newly-cited error code exists in enums/error-code.json (ACCOUNT_REQUIRED added with description+suggestion); the get-adcp-capabilities-response governance_enforcement.tasks oneOf is discriminated by the task const (no audit-oneof regression); and the settlement/ledger path in governance-handlers.ts is safe (delivery is audit-only, applyLedgerAddition reserves the authorized amount without restoring headroom). A changeset is present. No critical/high/medium findings.
The diff is mechanically clean, but the gate cannot lift without a recorded human/CODEOWNERS approval. Sticky escalation (row 6) does not independently apply — no fresh findings — but row 2 fires on its own as long as review_decision remains non-APPROVED.
Why human review
- Modifies 17 gated static/schemas/source/** files under a hard approval gate (protocol-envelope.json, error-code.json, task-type.json, governance/* schemas, media-buy/* requests, signals/activate-signal-request.json, etc.); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge (decision rule row 2).
- Breaking-class protocol change on the experimental governance.campaign surface (plan_id removed from required, governance_context now the authoritative opaque binding, conditions demoted to non-authorizing counterproposal, check_type added, status→verdict rename). Per the constitution, breaking-class ratification is a human act and is never auto-approved unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-governance-request.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/acquire-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/brand/update-rights-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/planned-delivery.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/protocol-envelope.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/error-code.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/governance-decision.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/task-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/check-governance-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/get-plan-audit-logs-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/governance/report-plan-outcome-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/build-creative-request.json (modified) matches `static/schemas/so
…(truncated)…
…radictory or undefined (#9006) * feat(governance): settle the campaign-governance rules that were contradictory or undefined PR 2 of 3 for #8733: the normative decisions of the Governance working group, confirmed by the maintainer on the issue. - A1: a sync that reduces budget.total below committed spend is rejected with VALIDATION_ERROR; the training agent gets the sync-time check - A4: an authenticated caller that fails approved_sellers or delegations gets a denied verdict with a finding and a check_id; PERMISSION_DENIED stays for a missing or mismatched identity - B1: plans with human_review_required: true escalate in every mode - C1: a plan_id names at most one plan within a governance agent - C2: execute_only acts only on a pre-approved action binding - C3: no or country-level geography is outside a regions-restricted plan - C4.3: an unresolvable registry policy ID is REFERENCE_NOT_FOUND - C4.4: "the same action" means the same consultation_context No wire field, enum member or plan_hash rule changes. Refs #8733 Co-Authored-By: Claude Fable 5.2 <[email protected]> * fix(governance): keep plan_id per owner principal and deny unauthorized callers in every mode Follow-up within PR 2 of #8733, where the accepted wording sat against rules already in the specification. - C1: plan_id is unique per owner principal, as the reference agent has implemented since #6214. A sync never reads, changes or reveals another principal's plan, which keeps the plan-ID enumeration rule. - A4: governance mode does not relax who may call. A buyer-side caller that is neither owner nor current delegate, and an execution caller that is not the preserved audience, are denied in every mode. Refs #8733 Co-Authored-By: Claude Fable 5.2 <[email protected]> * docs(governance): keep the three mode examples as intent checks on the target seller Follow-up within PR 2 of #8733. The audit-trail mode examples showed an unapproved seller's execution check approved in advisory and audit mode, which contradicts the rule that a caller without authority is denied in every mode. They are the buyer's intent checks naming an unapproved target seller: a finding about the target follows mode. The finding text now reads "Target seller", as the reference agent emits. Refs #8733 Co-Authored-By: Claude Fable 5.2 <[email protected]> * fix(governance): align A4, C1 and C2 with the reviewed decisions Applies the review on adcp#9006 and the decision record update on adcp#8733 of 2026-11-15. - A4: a failed approved_sellers or delegations evaluation is denied in every governance mode. The mode section, the mode summaries and the governance-mode enum descriptions name it as a second case that mode does not change, next to human_review_required. - A4, uniform response: a caller with no access to the plan receives PLAN_NOT_FOUND, the same response as for an unknown plan_id, and the attempt writes no audit entry. The denied verdict for a failed delegations evaluation is for a caller that can access the plan. - C1: plan_id stays scoped per owner principal. No PERMISSION_DENIED on reuse, which would reveal that an ID is in use. - C2: an execute_only delegate acts only on an action that already has an approved intent check, which includes accept_proposal. The rule is worded as an obligation on the governance agent. - sync_plans error table: an explicit human_review_required: false on a plan that requires human review is rejected with VALIDATION_ERROR. - audit-trail: the three mode examples use a budget finding, because an unapproved seller is now denied in every mode. Training agent: check_governance no longer approves a failed approved_sellers or delegations evaluation in advisory or audit mode. For a plan that does not exist or that the caller cannot access it returns the PLAN_NOT_FOUND error and stores nothing; it returned a denied verdict with a plan_lookup finding. Refs #8733. Co-Authored-By: Claude Fable 5.2 <[email protected]> * fix(governance): define plan access and correct the mode summaries Second revision of adcp#9006 after review. - specification.mdx: define which callers can access a plan. A plan is accessible to its owner principal, to a caller named in a delegations entry that has not expired, and to a caller that presents a governance_context or consultation_context issued for that plan. Any other caller gets PLAN_NOT_FOUND. This is what the reference agent does. - specification.mdx: the PERMISSION_DENIED sentence no longer says "only". It says a failed delegations or approved_sellers evaluation is never PERMISSION_DENIED and names the authentication cases as examples, so an expired governance_context is not excluded. - specification.mdx: the list of outcomes that are denied in every mode adds a delegate that acts outside the authority, budget_limit or markets of its delegation. - check_governance.mdx: the PLAN_NOT_FOUND row states the access rule. - index.mdx, overview.mdx, safety-model.mdx, governance-mode.json: the audit mode summaries no longer say that the mode approves everything or never blocks. - Rename one test to match its fixture, a delegate over its budget_limit. - Changeset: state the access rule. No behaviour change in the training agent. Co-Authored-By: Claude Fable 5.2 <[email protected]> * docs(governance): make the check_governance PERMISSION_DENIED row match the specification The row listed two cases as if exhaustive; the specification now gives them as examples of authentication and credential failures. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(governance): apply review suggestions on context verification and mode wording - Verify a presented governance_context before resolving plan access; a context that fails verification or names another plan is PERMISSION_DENIED, matching error-code.json. - The every-mode denied list is non-exhaustive and includes an execution check whose original buyer lost its delegation. - A conditions re-check returns the same consultation_context. - Mode wording in the campaign index and overview no longer contradicts the specification. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(governance): reject a plan_id that matches more than one accessible plan Per-owner plan_id scoping lets a delegate of two owners see two plans with the same ID, and an intent check carries only plan_id. The governance agent now rejects that check with VALIDATION_ERROR and evaluates it against neither plan, and buyers SHOULD use globally unique plan IDs. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs(governance): link VALIDATION_ERROR to the compliance catalog in sync_plans Generated by build:compliance; the PR bundle check requires it committed. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Fable 5.2 <[email protected]> Co-authored-by: Brian O'Kelley <[email protected]>
Outcome
This implementation defines cross-role campaign governance as a task-scoped authorization protocol rather than a seller-visible copy of a buyer's plan. A buyer gets a signed, audience-bound authorization for an exact downstream request; the service verifies that authorization before acting and reports the authoritative outcome afterward.
This is the implementation companion to notice-only PR #6213. Both may merge during 3.2 development; the beta-to-GA period provides the six-week notice window before production availability.
Why it matters
Normative model
sync_governanceestablishes an opaque, owner-bound plan and task applicability.check_governancewith a typedtarget_agentand the JCS-equivalent downstream request inpayload.plan_id.report_plan_outcomerecords the executing service's authoritative terminal result. Exact replays are idempotent; conflicting replays fail.Bundle
check_governancetaskreport_plan_outcometaskCompatibility and shared budgets
check_idonly for the authenticated plan owner and remains audit-only. Terminalcompleted/failedsettlement requires the exact authorized tuple.media_buy.governance_awarecapability remains compatible; the new signed-context claim is an explicitgovernance.campaignexperimental feature.Related work
Closes #5944
Closes #5827
Closes #6215
Related: #3086, #5716, #5055, #5375, #3925, #2306, #2316, #2403, #2419, #3010, #3015, #5051, #4100, #3923, #4902, #4634, #2486.
Prior approaches and follow-ups: #5676, #5719, #5933, #5985.
The conformance storyboard work in #3086 and #5716 remains open. This PR defines and implements the protocol contract; it does not claim those workflow suites are complete.
SDK work
Landing sequence
WG decisions requested
governance.campaignas the experimental feature identifier.Validation