Repository navigation
fix(compliance): accept PERMISSION_DENIED in brand_rights/governance_denied (#7790) - #7792
Conversation
…denied (#7790) The scenario only accepted the AcquireRightsRejected arm for an acquire_rights request without governance_context, while specification.mdx (Seller enforcement) requires PERMISSION_DENIED for a request without a governance token. A seller following the spec sentence failed. Until the working group picks one placement (#7790), the missing-token step is an any_of branch set: the structured rejection arm or PERMISSION_DENIED. Both branch steps are non-stateful, so the unchosen branch cannot cascade, and the update_rights probe still proves no grant was created. Also reword the media-buy governance_denied note that cited this scenario as the Case-1 GOVERNANCE_DENIED example. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean interim conformance fix.
This PR adds an any_of branch set to brand-rights/governance_denied so a seller may reject an ungoverned acquire_rights with either the AcquireRightsRejected arm or PERMISSION_DENIED, matching specification.mdx (Seller enforcement). Structure mirrors the ratified refine_finalize_exclusivity precedent and satisfies the branch-set lint rules. Fail-closed behavior is preserved via the assert_contribution gate plus the independent update_rights → REFERENCE_NOT_FOUND no-grant probe. A patch changeset is present and protocol-scoped.
Decision trace:
- Rows 1 (critical/high): no critical/high findings.
- Row 2 (gated paths):
gated_paths: false— does not fire despitereview_decision: REVIEW_REQUIRED. - Row 3/5 (high_risk):
high_risk: false. - Row 4 (medium data-loss/schema/infra): no medium findings.
- Row 6 (sticky escalate): no prior decision.
- Row 7 (no-auto-approve team): no team match.
- Row 8 (≥3 medium): zero medium findings.
- Row 9: approve.
No schema source (static/schemas/source/**) touched — only compliance scenario YAML and a test; no schema↔docs coherence concern. No breaking-class change. Changeset present and scoped.
…ing fixes Replace the two "being finalized" placeholders with what shipped: the corrected governance_denied storyboards (#7788), the interim brand-rights acquire_rights_denied fix (#7792, #7790), hosted governance grading as a 3.2.x follow-up (#7758), and strict sf-binary enforcement in a 3.2-pinned TypeScript verifier (@adcp/sdk rc.53, adcp-client#3073). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
GA wording for release notes, what's new, migration guide, versions, versioning, roadmap, intro, FAQ and long-tail pages; 3-2-beta becomes "AdCP 3.2 prerelease history"; docs.json banner; RELEASING.md and playbook release topology; GA homepage strip (new dismissal cookie); Addie knowledge snapshot and GA curriculum wording migration (613); CODE_VERSION bump; patch changeset. The docs.json default-version flip is left to release-docs.yml at the v3.2.1 tag. Release notes also cover the GA-day fixes: governance storyboards (#7788, #7803), brand-rights interim fix (#7792), strict sf-binary under the 3.2 signing profile (adcp-client#3073), execution requirements (#7774), cost targets (#7778, #7799). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
GA wording for release notes, what's new, migration guide, versions, versioning, roadmap, intro, FAQ and long-tail pages; 3-2-beta becomes "AdCP 3.2 prerelease history"; docs.json banner; RELEASING.md and playbook release topology; GA homepage strip (new dismissal cookie); Addie knowledge snapshot and GA curriculum wording migration (613); CODE_VERSION bump; patch changeset. The docs.json default-version flip is left to release-docs.yml at the v3.2.1 tag. Release notes also cover the GA-day fixes: governance storyboards (#7788, #7803), brand-rights interim fix (#7792), strict sf-binary under the 3.2 signing profile (adcp-client#3073), execution requirements (#7774), cost targets (#7778, #7799). Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Part of #7790. This is the pre-tag interim fix; the issue stays open for the working-group decision. No schema or normative change.
Problem
brand_rights/governance_deniedsendsacquire_rightswithoutgovernance_contextto an account that has a registered governance agent, and it accepted only theAcquireRightsRejectedarm. Butdocs/governance/campaign/specification.mdx(Seller enforcement) says a request without a token "MUST be rejected withPERMISSION_DENIED". So a brand agent that follows that sentence failed the scenario. Details are in #7790.Change
any_ofbranch set,brand_rights_missing_governance_context_rejected, with two optional peers:acquire_rights_denied_rejected_arm:AcquireRightsRejected, withrights_status: rejectedandreason. This is unchanged from the old step.acquire_rights_denied_permission_error:PERMISSION_DENIED.assert_missing_governance_context_rejectedrequires that one of the two branches contributed.stateful: false, so the branch not taken can't cascade.rejected_grant_not_persistedis unchanged:update_rightsmust still returnREFERENCE_NOT_FOUND, which proves no grant was created in either case.media_buy_seller/governance_deniedno longer cites this scenario as the Case-1GOVERNANCE_DENIEDexample, since this case is a missing token, not a governance verdict. It now cites the rule itself:acquire_rights→AcquireRightsRejected.tests/governance-task-slices.test.cjsnow pins both branches, the branch-set declaration,stateful: false, the no-token requests, and the no-grant probe.Testing
brand_rights/governance_deniedpasses 6P / 1S. The rejection-arm branch is taken and thePERMISSION_DENIEDpeer is skipped aspeer_branch_taken.PERMISSION_DENIEDbranch: I temporarily patched the brand handler to returnPERMISSION_DENIED, then reverted it; nothing is committed. The run still passed 6P / 1S. The rejection-arm peer failed and was recorded aspeer_branch_taken, and the no-grant probe passed.🤖 Generated with Claude Code