Skip to content

fix(compliance): buyer fixture publishers advertise only the lifecycle tools the contract serves - #7793

Merged
bokelley merged 1 commit into
adcontextprotocol:mainfrom
fgranata:fix/buyer-fixture-lifecycle-tools
Sep 30, 2026
Merged

bokelley merged 1 commit into
adcontextprotocol:mainfrom
fgranata:fix/buyer-fixture-lifecycle-tools

Conversation

@fgranata

Copy link
Copy Markdown
Contributor

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_monitoring and orchestrator_multi_agent declare lifecycle_tools: ["list_products", "buy_products", "control_media_buy"]; buyer_discovery adds request_proposals, accept_proposal and supports_proposals: true. All five grade the get_products / create_media_buy facades, and universal/buyer-fixture-publisher.yaml > tool_handlers defines no buy_products, control_media_buy or proposal handler.

The publisher serves the capabilities block verbatim, so a buyer that gates correctly on media_buy.lifecycle_tools calls buy_products and 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 graded create_media_buy.

Change (per the triage scope)

  • Five storyboards — lifecycle_tools trimmed to ["list_products"], with a comment pointing at the contract rule. buyer_discovery also drops supports_proposals: true (it has no proposal step). Versions 0.1.0 → 0.1.1.
  • universal/buyer-fixture-publisher.yaml (0.2.0) — adds authoring_rules.lifecycle_tools_constraint with a permitted_values list (list_products).
  • scripts/lint-storyboard-buyer-fixture-lifecycle-tools.cjs, wired into build:compliance — every lifecycle_tools array under a storyboard's fixtures.fixture_publisher must be a subset of permitted_values, and every permitted value must have a tool_handlers entry, so the list cannot drift from the handlers either.
  • Changeset — adcontextprotocol: patch.

No dist/ artifact is touched; rc.8 carries the corrected bundle from source. No schema or normative change, and the storyboards are status: preview.

buyer_negotiation is left for a follow-on

It has the same drift, but its steps invoke request_proposals, refine_proposals and accept_proposal, so trimming the fixture would break the storyboard: the contract needs proposal handlers first. The lint lists it in PENDING_STORYBOARDS with that reason. A pending entry that stops drifting (or stops existing) fails the lint as stale_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.cjs already serves more than the contract defines (the proposal tools, control_media_buy, get_media_buys, get_media_buy_delivery), and buyer_monitoring requires the last two. The contract's tool_handlers may 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_permitted reproducing 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, both stale_pending_entry arms), nested per-persona capability blocks, and out-of-scope storyboards.
  • Also green: 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/main and changeset status --since=origin/main pass.
  • scripts/reference-fixture-publisher.cjs booted on the trimmed buyer_activation returns media_buy.lifecycle_tools: ["list_products"] from get_adcp_capabilities.
  • Not run: the full npm test chain and npm run typecheck (no TypeScript touched).

🤖 Generated with Claude Code

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

@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 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.

@bokelley
bokelley merged commit ae223c7 into adcontextprotocol:main Sep 30, 2026
54 checks passed
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.

buyer storyboards: fixture publisher declares compact lifecycle_tools but the fixture-publisher contract serves no buy_products handler

2 participants