Repository navigation
fix(compliance): buyer fixture publishers advertise only the lifecycle tools the contract serves - #7793
Merged
bokelley merged 1 commit intoSep 30, 2026
Conversation
…e tools the contract serves Five buyer storyboards (buyer_discovery, buyer_activation, buyer_recovery, buyer_monitoring, orchestrator_multi_agent) advertised buy_products and control_media_buy on their fixture publisher while grading the get_products / create_media_buy facades, and the fixture-publisher contract defines no handler for those tools. A buyer that gated correctly on lifecycle_tools was sent to a tool the publisher cannot answer. - Trim each fixture to lifecycle_tools: ["list_products"]; buyer_discovery also drops supports_proposals (it has no proposal step). Storyboards 0.1.1. - buyer-fixture-publisher contract 0.2.0: authoring_rules. lifecycle_tools_constraint with permitted_values. - New lint, wired into build:compliance: fixture lifecycle_tools must be a subset of permitted_values, and every permitted value must have a tool_handlers entry. buyer_negotiation is listed as pending (its steps invoke the proposal tools, so it needs contract handlers first); a pending entry that stops drifting fails the lint. Closes adcontextprotocol#7749. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean compliance fix with no blocking findings.
Checked:
- Compliance storyboard scope: five preview buyer storyboards were advertising compact lifecycle tools (buy_products, control_media_buy, and buyer_discovery proposal tools) not served by the fixture-publisher contract, routing correctly-gating buyers to handler-less tools. The PR trims them to list_products and adds an authoring-rule constraint to the contract.
- Build-time lint (scripts/lint-storyboard-buyer-fixture-lifecycle-tools.cjs) with a self-enforcing pending exemption for buyer_negotiation; verified the >200-line lint script and its test.
- Handler coverage and preview status confirmed.
- Changeset present, patch type, scope appropriate (compliance-asset fix, non-breaking wire change) — consistent with published-surface changeset requirements.
- Docs coherence verified.
No Critical/High/Medium findings. high_risk is false, gated_paths is false, no author-team gate, no prior decision. Rows 1–8 do not fire (review_decision is REVIEW_REQUIRED but gated_paths is false, so row 2 does not apply). Falls through to row 9 → approve.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #7749 (triaged: bug, compliance-suite, P1, ready-to-implement, Fix 1).
Problem
Five buyer storyboards advertise compact lifecycle tools on their fixture publisher that the fixture-publisher contract does not serve.
buyer_activation,buyer_recovery,buyer_monitoringandorchestrator_multi_agentdeclarelifecycle_tools: ["list_products", "buy_products", "control_media_buy"];buyer_discoveryaddsrequest_proposals,accept_proposalandsupports_proposals: true. All five grade theget_products/create_media_buyfacades, anduniversal/buyer-fixture-publisher.yaml > tool_handlersdefines nobuy_products,control_media_buyor proposal handler.The publisher serves the capabilities block verbatim, so a buyer that gates correctly on
media_buy.lifecycle_toolscallsbuy_productsand hits a tool with no handler, while a buyer that ignores the advertisement passes. The triage confirmed the declaration was a copy-paste artifact and that the basic level has always gradedcreate_media_buy.Change (per the triage scope)
lifecycle_toolstrimmed to["list_products"], with a comment pointing at the contract rule.buyer_discoveryalso dropssupports_proposals: true(it has no proposal step). Versions0.1.0→0.1.1.universal/buyer-fixture-publisher.yaml(0.2.0) — addsauthoring_rules.lifecycle_tools_constraintwith apermitted_valueslist (list_products).scripts/lint-storyboard-buyer-fixture-lifecycle-tools.cjs, wired intobuild:compliance— everylifecycle_toolsarray under a storyboard'sfixtures.fixture_publishermust be a subset ofpermitted_values, and every permitted value must have atool_handlersentry, so the list cannot drift from the handlers either.adcontextprotocol: patch.No
dist/artifact is touched; rc.8 carries the corrected bundle from source. No schema or normative change, and the storyboards arestatus: preview.buyer_negotiationis left for a follow-onIt has the same drift, but its steps invoke
request_proposals,refine_proposalsandaccept_proposal, so trimming the fixture would break the storyboard: the contract needs proposal handlers first. The lint lists it inPENDING_STORYBOARDSwith that reason. A pending entry that stops drifting (or stops existing) fails the lint asstale_pending_entry, so the exemption cannot outlive the fix. Happy to file the follow-on issue, or to extend this PR if you would rather define the proposal handlers here.One observation while reading the contract, not changed here:
scripts/reference-fixture-publisher.cjsalready serves more than the contract defines (the proposal tools,control_media_buy,get_media_buys,get_media_buy_delivery), andbuyer_monitoringrequires the last two. The contract'stool_handlersmay want to catch up with the reference script in the same follow-on.Verification
npm run build:compliance -- --check— green, including the new lint line.npm run test:storyboard-buyer-fixture-lifecycle-tools— 14 pass: the source tree, each rule (lifecycle_tool_not_permittedreproducing the buyer storyboards: fixture publisher declares compact lifecycle_tools but the fixture-publisher contract serves no buy_products handler #7749 shape,permitted_value_without_handler,contract_rule_missing, bothstale_pending_entryarms), nested per-persona capability blocks, and out-of-scope storyboards.test:test-coverage,test:storyboard-fixture-resolution,test:storyboard-doc-parity,test:compliance-source-authority,test:compliance-packaged-refs,test:storyboard-test-kits,test:storyboard-scoping,test:storyboard-contradictions,test:doc-compliance-drift,test:compliance-snippets,test:immutable-release-artifacts.node scripts/check-changeset-protocol-scope.cjs origin/mainandchangeset status --since=origin/mainpass.scripts/reference-fixture-publisher.cjsbooted on the trimmedbuyer_activationreturnsmedia_buy.lifecycle_tools: ["list_products"]fromget_adcp_capabilities.npm testchain andnpm run typecheck(no TypeScript touched).🤖 Generated with Claude Code