Repository navigation
fix(compliance): gate wholesale webhook branch set - #7504
Conversation
There was a problem hiding this comment.
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.
5bd1d4c to
951e297
Compare
There was a problem hiding this comment.
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_capabilityshape/placement verified against storyboard-schema.yaml. - Changeset present with correct
patchscope on the publishedstatic/compliance/sourcesurface; 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.
There was a problem hiding this comment.
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.jsonregisterstest:webhook-emission-storyboardand wires it into the aggregate webhook test target. The referenced test file exists (added earlier in this PR). versioninpackage.jsonis untouched — no hand-edited version (would behigh); 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.
Summary
media_buy.buying_modescontainingwholesaleassert_contributionbehavior for agents to which the branch set appliesnot_applicableWhy this belongs in the storyboard
The generic storyboard schema says an
assert_contributionstep 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 exposeget_productsand 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.cjsnpm run test:storyboard-branch-setsnpm run test:storyboard-scopingnpm run test:storyboard-test-kitsnpm run test:storyboard-check-enumnpm run test:storyboard-sample-request-schemanpm run test:storyboard-response-schemanpm run build:compliance -- --checknpm run typecheckThe advisory pre-push live storyboard matrix could not start because this checkout is
3.2.0-rc.2while the bundled training seller advertises support only through3.2-rc.1; all tenants failed capability resolution before storyboard execution. CI remains authoritative for that environment check.Fixes adcontextprotocol/adcp-client#2862