Repository navigation
fix(compliance): bind webhook triggers to discovered products and schemas - #7617
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — storyboard/compliance-asset fix, no blocking findings.
What I checked:
- The PR touches only
static/compliance/source/universal/webhook-emission.yaml, a test file, and a changeset — no wire schema (static/schemas/source/**), no docs/reference, nodist/**released artifacts. Artifact immutability and schema↔docs coherence rules are not triggered. - The fix binds the six webhook triggers to a real discovered product/pricing before
create_media_buyand replaces unresolved$test_kit.schemas.*refs (the fail-open silent-skip, #7610) with literalcreate-media-buy-request/response.jsonpaths. Both new samples validate against their schemas. - Changeset scope and type are correct: a
patchchangeset for a compliance-asset fix, no breaking wire change, no hand-edited version. - No oneOf discriminator regression (no schema source change). No 3.1.x patch-eligibility concern (base is
main). Not a breaking-class protocol change.
Medium findings: 1 (posted inline) — discovery uses buying_mode "brief" which MAY return a Submitted async envelope, risking failed context capture / false-negative webhook grading unless the runner polls to terminal. Non-blocking.
Decision table: no critical/high findings (row 1 n/a); gated_paths false (row 2 n/a); high_risk false (rows 3/5 n/a); the single medium is not data-loss/schema/infra category (row 4 n/a); no prior escalation (row 6 n/a); no no-auto-approve team match (row 7 n/a); only 1 medium finding, fewer than 3 (row 8 n/a). Falls through to row 9 → approve. review_decision: REVIEW_REQUIRED does not block because gated_paths is false and no team gate applies.
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean compliance webhook-emission storyboard fix.
What I checked:
- Diff touches 3 files: a changeset,
static/compliance/source/universal/webhook-emission.yaml, and a test file (+451/-13). - Change adds tool-gated
get_productsdiscovery that binds real product/pricing IDs before the sixcreate_media_buytriggers, waits for async completion viatask_completioncaptures (fail-closed on failed/empty completion), and replaces unresolved$test_kitschema refs with literal paths. - Changeset is a
patchonstatic/compliance/source— no wire schema,dist, oroneOfchange; base ismain, not3.1.x, so 3.1.x patch-eligibility rules do not apply. Changeset scope/type correct. - No released-artifact (
dist/**) modification; immutability rule not implicated. - No
oneOfdiscriminator regression, no schema↔docs drift (nostatic/schemas/source/**edit), no governance-precedent contradiction. Not a Breaking-class change. - The +297-line test file confirms discovery-before-trigger ordering and fail-closed dispatch — new branches are covered.
Decision rules: No critical/high/medium findings (row 1 n/a). gated_paths: false (row 2 n/a). high_risk: false, no deletions/modifications triggers (rows 3–5 n/a). Prior decision was approve, not escalate (row 6 n/a). No no-auto-approve team match (row 7 n/a). Zero medium findings (row 8 n/a). Falls through to row 9 → approve.
Note: review_decision is REVIEW_REQUIRED, but this only forces escalate/blocks approve when gated_paths is true — here it is false, so the deprecated protected-branch behavior does not apply and a clean diff approves.
…main Merge the published v3.1.29 maintenance release (tag v3.1.29, f082c7a, the adcontextprotocol#8247 Version Packages merge on 3.1.x) into main as a record-only merge. v3.1.29 descends from v3.1.28 (f4d53b8, adcontextprotocol#8069), so both releases' records come in. The merge keeps main's tree (ours strategy) and adds only: - dist/schemas/3.1.28/, dist/schemas/3.1.29/, dist/compliance/3.1.28/, dist/compliance/3.1.29/ and the signed dist/protocol/3.1.28.tgz* and 3.1.29.tgz* tuples, byte-identical to the tag. - CHANGELOG.md: the 3.1.29 and 3.1.28 blocks, verbatim from the tag, above main's 3.1.27 block. - dist/schemas/index.json: regenerated by build:schemas; v3.1 and latest_by_minor 3.1 now 3.1.29. latest.json is unchanged (3.2.5). The 3.1.27..3.1.29 source changes (adcontextprotocol#7907, adcontextprotocol#8020, adcontextprotocol#8234, adcontextprotocol#8237, adcontextprotocol#8245) are 3.1-line adaptations of fixes main already carries in its own form (adcontextprotocol#7580, adcontextprotocol#7583, adcontextprotocol#7617, adcontextprotocol#8235; main's root request-signing vectors are already unpadded base64url), so no 3.1.x source, tests or tooling are taken. The second parent records that reconciliation so the next 3.1.x forward merge starts from v3.1.29. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Webhook triggers previously called
create_media_buywithout catalog discovery, causing real sellers to reject the SDK'stest-product/test-pricingplaceholders. Twelve request/response schema references also used an unresolved$test_kit.schemas.*namespace, which silently bypassed request lint validation.The storyboard now discovers a product and pricing option before all six triggers. Its tool-gated
briefdiscovery uses the existingtask_completioncaptures for both inline and asynchronous results, retains product metadata for auction-floor enrichment, and blocks buys when completion fails or IDs are missing. The six samples are complete and reference literal request/response schema paths. Existing receiver, signing, operation-ID, replay, and capability-gating behavior is preserved. The storyboard advances to 1.4.2 with a protocol patch changeset.Fixes #7609. Fixes #7610.
One PR keeps the corrections to the six shared trigger requests together, with independent regression evidence:
test-productandPRODUCT_NOT_FOUND.ea6ea46f938cc08611564e090a94d21c224f3165, including canonical/schema tests, server unit/integration tests, build/static checks, security checks, and the complete current-source and 3.0 compatibility storyboard matrices. Main CI, storyboard matrix.The asynchronous-discovery review comment is addressed and resolved; fresh review approves this head with no findings. Parsed before/after comparison confirms that the follow-up changes only discovery: every trigger request and existing webhook assertion remains unchanged.
Base:
2639ace8ec9fa3c2d6973b3b741bc7c19419afb7. Reviewed head:ea6ea46f938cc08611564e090a94d21c224f3165. Only the source storyboard, its existing test file, and a changeset changed. No released artifacts, tags, dependencies, protocol JSON schemas, or Python/TypeScript repositories were modified. The immutablev3.2.0-rc.4tag remains94976657c8456e5ad6de55d9793a883542a4fc5f.