Skip to content

fix(compliance): accept PERMISSION_DENIED in brand_rights/governance_denied (#7790) - #7792

Merged
bokelley merged 1 commit into
mainfrom
fix/7790-brand-rights-denied-either
Sep 30, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/7790-brand-rights-denied-either

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

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_denied sends acquire_rights without governance_context to an account that has a registered governance agent, and it accepted only the AcquireRightsRejected arm. But docs/governance/campaign/specification.mdx (Seller enforcement) says a request without a token "MUST be rejected with PERMISSION_DENIED". So a brand agent that follows that sentence failed the scenario. Details are in #7790.

Change

  • The missing-token step is now an any_of branch set, brand_rights_missing_governance_context_rejected, with two optional peers:
    • acquire_rights_denied_rejected_arm: AcquireRightsRejected, with rights_status: rejected and reason. This is unchanged from the old step.
    • acquire_rights_denied_permission_error: PERMISSION_DENIED.
  • assert_missing_governance_context_rejected requires that one of the two branches contributed.
  • Both branch steps are stateful: false, so the branch not taken can't cascade.
  • rejected_grant_not_persisted is unchanged: update_rights must still return REFERENCE_NOT_FOUND, which proves no grant was created in either case.
  • The note in media_buy_seller/governance_denied no longer cites this scenario as the Case-1 GOVERNANCE_DENIED example, 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.cjs now pins both branches, the branch-set declaration, stateful: false, the no-token requests, and the no-grant probe.
  • Patch changeset included.

Testing

  • Training agent, brand tenant, current source: brand_rights/governance_denied passes 6P / 1S. The rejection-arm branch is taken and the PERMISSION_DENIED peer is skipped as peer_branch_taken.
  • PERMISSION_DENIED branch: I temporarily patched the brand handler to return PERMISSION_DENIED, then reverted it; nothing is committed. The run still passed 6P / 1S. The rejection-arm peer failed and was recorded as peer_branch_taken, and the no-grant probe passed.
  • The storyboard lint suites pass: governance-task-slices, branch-sets, scoping, provides-state-for, fixture-resolution, contradictions, context-entity, auth-shape, sample-request/response schema, context-output and validation paths, check-enum, generate-phase-scope, sdk-runner-capability-gates, doc-parity, raw-mode-required and advisory-expiry.
  • There is no exact-count floor for this storyboard. CI's training-agent storyboard matrix is authoritative.

🤖 Generated with Claude Code

…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]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 despite review_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.

@bokelley
bokelley merged commit 469cda7 into main Sep 30, 2026
53 checks passed
@bokelley
bokelley deleted the fix/7790-brand-rights-denied-either branch September 30, 2026 11:18
bokelley added a commit that referenced this pull request Sep 30, 2026
…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]>
bokelley added a commit that referenced this pull request Sep 30, 2026
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]>
bokelley added a commit that referenced this pull request Sep 30, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant