Repository navigation
fix(compliance): scope universal error and schema checks by protocol - #8601
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean capability-gate fix on universal compliance storyboards.
This PR adds root-level requires_capability gates (path: supported_protocols, contains: media_buy/signals) to four universal error/schema storyboards so applicability is evaluated before controller/tool requirements, matching the documented contract in storyboard-schema.yaml. Verified:
- Version bumps consistent with base (error-compliance 1.0.0→1.0.1, error-compliance-signals 1.0.1→1.0.2, schema-validation 1.0.0→1.0.1, schema-validation-signals 1.0.0→1.0.1).
patchchangeset present and correctly scoped to the published compliance surface.- Gate shape and
contains-on-array semantics match prior usage (webhook-emission, wholesale-feed-signals); narratives already protocol-specific, no doc drift. dist/compliance/3.2.7untouched (immutability preserved); new test guards it.- Tests cover nonclaimant skip, single/dual claimant controller gap, real assertion failure, and the immutable dist.
Breaking-class check: this is an additive applicability gate scoping existing storyboards (creative-only agents skip error storyboards they could never pass) — not a wire-shape break, removal, rename, or normative tightening on the published protocol surface. Editorial/normative-non-breaking in nature; the hard breaking-class gate does not apply.
No Critical/High/Medium findings. No gated paths, no high-risk flag, no team gate, no prior decision. Falls through to row 9.
Forward-merges the published 3.2.9 release (v3.2.9 = 39e9353) and every 3.2.x maintenance commit before it. Supersedes the a4af1a1 forward-merge in adcontextprotocol#8820, which is an ancestor of v3.2.9. Release records: - dist/compliance/3.2.9, dist/schemas/3.2.9 and the signed dist/protocol/3.2.9.tgz tuple are taken from v3.2.9 unchanged. - dist/schemas/index.json and latest.json are regenerated (forward-merge-release-records.cjs schema-discovery). - CHANGELOG.md is main's file plus the 3.2.9 block. - package.json, package-lock.json, static/schemas/source/index.json: main's. - static/compliance/published-versions.json: main's. 3.2.x's only extra entry is 3.2.9, which is registered in a separate commit after qualification. Content conflicts, all resolved to main's file: - docs/media-buy/advanced-topics/targeting.mdx: the 3.2.x side is exactly adcontextprotocol#7926, 3.2-only optional gender agreement docs; main carries core gender targeting (adcontextprotocol#7925) instead. - static/compliance/source/universal/error-compliance-signals.yaml: main's is the adcontextprotocol#8581 backport content plus main-only adcontextprotocol#8601 (version 1.0.2 and the signals capability gate). - tests/sdk-runner-capability-gates.test.cjs: the only 3.2.x-only test is the SDK 14 variant of main's "signals discovery error bundle passes" test. - server/tests/unit/storyboards.test.ts: adcontextprotocol#8825's 3.2.x-shaped 3.1.32 integration tests; main already integrated 3.1.32 and 3.1.33 with its own test shape, and the non-conflicting adcontextprotocol#8825 hunk is already on main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Universal media-buy error/schema checks currently count against signals-only agents, and their signals counterparts count against media-buy-only agents. Add explicit root
supported_protocolspredicates to the four storyboards so the runner evaluates applicability before controller and tool requirements.Claimants still need the required tools, fixture setup and successful assertions. Existing released compliance artifacts are unchanged. Each storyboard component advances by a patch and the protocol patch changeset records the correction.
Validation:
Refs #8527 and #8534. This is a bounded applicability repair, not completion of those issues. Capability-selected
comply()also needs the companion SDK ordering fix to reach the authored gates when none of a storyboard's required tools are advertised. SDK release/adoption and a new protocol bundle are required; this PR publishes neither. Broader optional capabilities, account foundation obligations, routed topology applicability and unselected scenario accounting remain separate.Open workspace in Conductor