Skip to content

fix(compliance): bind webhook triggers to discovered products and schemas - #7617

Merged
bokelley merged 2 commits into
mainfrom
fix/webhook-emission-discovery-schema-refs
Sep 20, 2026
Merged

bokelley merged 2 commits into
mainfrom
fix/webhook-emission-discovery-schema-refs

Conversation

@bokelley

@bokelley bokelley commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Webhook triggers previously called create_media_buy without catalog discovery, causing real sellers to reject the SDK's test-product/test-pricing placeholders. 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 brief discovery uses the existing task_completion captures 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:

  • Original source fails separately on missing discovery and unresolved schema references. Removing discovery reproduces test-product and PRODUCT_NOT_FOUND.
  • All 13 webhook regressions pass, including synchronous and Submitted/Working discovery, fixed/auction pricing, failed/empty completion blocking dispatch, non-sales tool gating, replay consistency, schema compilation, and malformed payload rejection. Restoring unprefixed captures reproduces the reviewed asynchronous-discovery defect.
  • 47 related runner tests, compliance generation/check, context/request/response schema lints, typecheck, changeset checks, and immutable-release tests pass locally.
  • Full CI passes on 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 immutable v3.2.0-rc.4 tag remains 94976657c8456e5ad6de55d9793a883542a4fc5f.

@bokelley
bokelley marked this pull request as ready for review September 20, 2026 16:40
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Sep 20, 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 — 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, no dist/** 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_buy and replaces unresolved $test_kit.schemas.* refs (the fail-open silent-skip, #7610) with literal create-media-buy-request/response.json paths. Both new samples validate against their schemas.
  • Changeset scope and type are correct: a patch changeset 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.

@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 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_products discovery that binds real product/pricing IDs before the six create_media_buy triggers, waits for async completion via task_completion captures (fail-closed on failed/empty completion), and replaces unresolved $test_kit schema refs with literal paths.
  • Changeset is a patch on static/compliance/source — no wire schema, dist, or oneOf change; base is main, not 3.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 oneOf discriminator regression, no schema↔docs drift (no static/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.

@bokelley
bokelley merged commit 0f83623 into main Sep 20, 2026
52 checks passed
@bokelley
bokelley deleted the fix/webhook-emission-discovery-schema-refs branch September 20, 2026 18:41
sujanchalla0510 pushed a commit to sujanchalla0510/adcp that referenced this pull request Oct 18, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant