Skip to content

fix(compliance): gate wholesale webhook branch set - #7504

Merged
bokelley merged 2 commits into
mainfrom
fix/webhook-sync-branch-applicability
Sep 14, 2026
Merged

bokelley merged 2 commits into
mainfrom
fix/webhook-sync-branch-applicability

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

  • gate all three phases of the synchronous webhook-emission branch family on media_buy.buying_modes containing wholesale
  • preserve the runner's normative assert_contribution behavior for agents to which the branch set applies
  • add a regression proving a signals-only agent grades the complete branch family as not_applicable

Why this belongs in the storyboard

The generic storyboard schema says an assert_contribution step fails when no branch contributes, and explicitly says branch sets are not the mechanism for optional features. The webhook-emission storyboard's own grading contract narrows this branch family to agents that expose get_products and wholesale media buying. The contributor phases had only tool guards and the aggregate assertion had no applicability guard, so the authoring contradicted that grading contract.

Applying the same capability guard to the two contributors and their assertion fixes that contradiction without weakening genuine no-contribution failures for applicable agents.

Checks

  • node --test tests/webhook-emission-storyboard.test.cjs
  • npm run test:storyboard-branch-sets
  • npm run test:storyboard-scoping
  • npm run test:storyboard-test-kits
  • npm run test:storyboard-check-enum
  • npm run test:storyboard-sample-request-schema
  • npm run test:storyboard-response-schema
  • npm run build:compliance -- --check
  • pre-commit suite: 613 files, 9,371 passed, 31 skipped
  • npm run typecheck

The advisory pre-push live storyboard matrix could not start because this checkout is 3.2.0-rc.2 while the bundled training seller advertises support only through 3.2-rc.1; all tenants failed capability resolution before storyboard execution. CI remains authoritative for that environment check.

Fixes adcontextprotocol/adcp-client#2862

@bokelley
bokelley enabled auto-merge (squash) September 14, 2026 12:08

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

Checked: PR gates the webhook-emission storyboard's three synchronous-completion phases behind requires_capability (media_buy.buying_modes contains "wholesale"). Field shape is correct and consistent with the get_adcp_capabilities schema; the assertion phase gating is necessary because not_applicable does not cascade. This is a non-breaking conformance relaxation (Editorial/Normative, not Breaking-class) touching only compliance source assets and tests. Changeset is present, patch-typed, and correctly scoped to static/compliance/source/**. Real test coverage added.

No blocking or Medium findings. No schema↔docs drift (no static/schemas/source/** change). No dist immutability concern (no dist/** change). No oneOf discriminator regression. high_risk is false, gated_paths is false, no no-auto-approve team match.

Decision table: rows 1-8 do not fire (no critical/high, gated_paths false, no deletions, no medium findings, no team gate, no prior escalation) → row 9 approve.

@bokelley
bokelley force-pushed the fix/webhook-sync-branch-applicability branch from 5bd1d4c to 951e297 Compare September 14, 2026 12:48
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 14, 2026

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

PR #7504 gates all three phases of the webhook-emission storyboard's synchronous_completion_handled branch family (two contributors plus the assert_contribution phase) on media_buy.buying_modes containing "wholesale", aligning the aggregate assertion's applicability with its contributors so non-media-buy agents grade the family not_applicable rather than failing.

Checked:

  • Phase-level requires_capability shape/placement verified against storyboard-schema.yaml.
  • Changeset present with correct patch scope on the published static/compliance/source surface; no breaking wire change.
  • Source-only edit (no dist/** immutability break).
  • DR-0001 basis intact; no governance-precedent contradiction.
  • New signals-only regression test added covering the branch.

No Critical/High/Medium findings. No gated paths (gated_paths: false; review_decision already APPROVED). high_risk: false. Author is not on any no-auto-approve team. Prior decision was also approve with no findings. Falls through to row 9.

@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 delta over the prior approve, no findings.

What I checked:

  • Delta since prior approve (head 951e297) is a single file: package.json registers test:webhook-emission-storyboard and wires it into the aggregate webhook test target. The referenced test file exists (added earlier in this PR).
  • version in package.json is untouched — no hand-edited version (would be high); versions come from Changesets.
  • No protocol surface changed: static/schemas/source/** schema edit is limited to the compliance asset already reviewed; no schema↔docs drift, no oneOf discriminator regression, no released-artifact mutation.
  • A changeset (.changeset/gate-webhook-sync-branches.md) is present for the touched surface.
  • No no-auto-approve team match; gated_paths: false; high_risk: false.

Decision table: no critical/high/medium findings (row 1 n/a); gated_paths false (row 2 n/a); no deletions (row 3 n/a); no medium findings (rows 4/5/8 n/a); prior decision was approve not escalate (row 6 n/a); no team gate (row 7 n/a). Falls through to row 9 → approve.

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.

Storyboard runner: assert_contribution step fails instead of skipping when all branch_set contributors skip as missing_tool

1 participant