Repository navigation
fix(compliance): exercise the seller execution check in governance_denied (#7758) - #7788
Conversation
…nied (#7758) media_buy_seller/governance_denied and governance_denied_recovery sent create_media_buy without governance_context after registering a governance agent and asserted GOVERNANCE_DENIED. A correct seller rejects a missing token with PERMISSION_DENIED before consulting governance, so both scenarios failed conformant sellers. governance_denied also bought on the sandbox:true account while governance was registered on the non-sandbox account, which is the only reason the training agent passed. Both scenarios now obtain an approved intent for a $25K buy under a $100K plan, amend the plan to $10K, and send create_media_buy with the approved token. The seller's purchase execution check is denied against the amended plan and the seller returns GOVERNANCE_DENIED. Recovery then gets a fresh intent for an $8K buy and expects the seller to accept it. Recovery is gated on adcp.governance_enforcement online_execution_check, like governance_denied. The sandbox governance agent now evaluates the intent's authorized commitment when a purchase check omits the optional planned_delivery.total_budget, so the amended plan binds every conformant seller. Exact-count storyboard floors updated. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path requires human/CODEOWNERS approval.
This PR modifies .github/workflows/training-agent-storyboards.yml, which matches the hard approval gate glob .github/workflows/** (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the gate is not yet satisfied and the outcome cannot be approve.
The reviewer found no blocking or Medium findings — the fix looks clean: it rediagnoses the governance_denied / governance_denied_recovery scenarios (a tokenless request must return PERMISSION_DENIED, not GOVERNANCE_DENIED), closes a fail-open hole in intentCeilingFallback when planned_delivery.total_budget is omitted (now fail-closed, happy path preserved, unit-tested across all three branches), and ships a correctly scoped patch changeset with no schema/wire change. Absent the gated path, this would be an approve.
Escalation reasons
.github/workflows/training-agent-storyboards.yml(modified) is under the.github/workflows/**hard approval gate andreview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required before merge.
Why human review
- Modifies .github/workflows/training-agent-storyboards.yml — matches the .github/workflows/** hard approval gate; review_decision is REVIEW_REQUIRED (not APPROVED), so human/CODEOWNERS review is required.
- This PR touches a path under a hard, non-overridable approval gate (.github/workflows/training-agent-storyboards.yml (modified) matches
.github/workflows/**) and the current GitHub review decision is 'REVIEW_REQUIRED', 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.
|
Merging with admin privileges under the maintainer's explicit authorization (2026-09-30) to run the 3.2.1 GA cycle end-to-end. The only workflow change raises the exact-step floors for the corrected governance storyboards. All checks pass and there are no review threads. The fixture flow was agreed with the protocol-expert review (seller execution check denied → GOVERNANCE_DENIED; a missing token stays PERMISSION_DENIED). |
…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 #7758. Compliance source fix that must land before the v3.2.1 tag. No schema or normative change.
Defect
media_buy_seller/governance_deniedregisters a governance agent on the seller, then sendscreate_media_buywith nogovernance_contextand expectsGOVERNANCE_DENIED. That is wrong for a correct seller:PERMISSION_DENIED(specification.mdx §Seller enforcement, error-handling.mdx §Authorization). The seller never consults governance.{brand, operator, sandbox: true}, but governance was registered on the non-sandbox account. The test kit treats those as two accounts.GOVERNANCE_DENIED.media_buy_seller/governance_denied_recoveryhas the same defect, and it is also a required scenario ofgovernance-aware-seller. It denies a $50K buy sent without a token, then expects an $8K retry with no token to succeed, which a correct seller rejects.The single-agent
governance_deniedscenarios in brand-rights, signal-marketplace and creative-transformers don't have this defect. They send a missing token and expectPERMISSION_DENIEDor the rejection arm, which is correct. The protocol reviewer flagged one separate tension in brand-rights, not changed here: the rejection arm vsPERMISSION_DENIED.Fix
Reviewed with the ad-tech-protocol-expert. The denial now comes from the seller's own execution check. The trigger is state the governance fixture holds, not an optional field the seller might leave out:
sync_planscreates a $100K plan.sync_accountsandsync_governancerun on the non-sandbox account.get_productsruns against seeded fixed-price fixtures.check_governanceintent for the exact $25K request is approved.sync_plansamends the same plan to $10K. Amendments apply immediately (specification.mdx §Plan amendments).create_media_buywith the approved token. The seller's purchase execution check is denied against the amended plan, because the budget-authority category fails. Execution checks are binary, and any failed category producesdenied. The seller returnsGOVERNANCE_DENIED(Case-2 wire placement) and doesn't commit.For recovery, steps 1–6 are followed by a fresh intent for a corrected $8K buy.
create_media_buywith that token is expected to succeed. Recovery is now gated onadcp.governance_enforcementwithsigned_contextandonline_execution_checkforcreate_media_buy, the same asgovernance_denied, instead of the legacygovernance_awareboolean. It is also listed with the online-execution proofs inuniversal/governance.yaml.The amendment steps use the authored
plan_id, not$context.plan_id. That way a runner that suffixes plan ids per run (the hosted routing from #7779) rewrites both steps the same way.Governance fixture fix.
planned_delivery.total_budgetis optional. Before this PR, the sandbox governance agent skipped budget authority entirely when a purchase check left it out, so a conformant seller that omitted it would have been approved. Such a check now evaluates the intent's authorized commitment. Per specification.mdx §Plan binding and audit, ledger authority comes from governance's own intent record.Testing
governance_denied: 11P / 0F (4 seeding steps + 7 scenario steps)governance_denied_recovery: 9P / 0Fgovernance_approved: 13P / 0F (unchanged)run-storyboards-matrix.shandtraining-agent-storyboards.yml:governance_denied:11:0, and newgovernance_denied_recovery:9:0.governance_denied: 11/11governance_denied_recovery: 9/9governance_approved: 13/13governance_conditions: 12/12server/tests/unit/training-agent-governance-plan-amendment.test.tscovers three cases:total_budgetis omitted (this case fails without the fixture fix);total_budgetis still approved when the plan has headroom.🤖 Generated with Claude Code