Repository navigation
fix(compliance): backport valid signing vectors and webhook discovery to 3.1 - #8020
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, heavily-tested 3.1 backport.
What I checked:
- No
critical/highfindings (row 1 N/A). gated_paths: false(row 2 N/A).high_risk: false— no deleted/modified high-risk triggers (rows 3, 5 N/A).- The single medium finding is category
spec/encoding, not data-loss/schema/infra (row 4 N/A). - No prior decision (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.
The load-bearing fix (webhook-emission.yaml swapping unresolvable $test_kit.schemas.* refs for explicit create-media-buy schemas, binding packages from a fail-closed get_products discovery step) is verified in webhook-emission-storyboard.test.cjs. The 35 body-only signing swaps validate against maintained and retained 3.1.1 schemas; 002/018 content-digest vectors had digest+signature recomputed. Two patch changesets present, no dist/** mutation, no schema-source drift.
Medium findings (non-blocking):
- static/compliance/source/test-vectors/request-signing/positive/002-post-with-content-digest.json:12 — Regenerated vectors 002/018 use standard Base64 while the rest of the corpus is base64url. Worth a follow-up for encoding consistency but does not block.
Note: PR states fresh service CI is pending on this head — worth confirming green before merge.
Medium findings
- static/compliance/source/test-vectors/request-signing/positive/002-post-with-content-digest.json:12 — Regenerated signing vectors 002/018 use standard Base64 while the rest of the corpus is base64url
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Checked top-down against the decision table:
- No critical/high findings (row 1 n/a).
- gated_paths is false; review_decision is APPROVED (row 2 n/a).
- high_risk is false, no deletions (rows 3, 5 n/a).
- Only finding is [low]; no medium findings (rows 4, 8 n/a).
- No no-auto-approve team match (row 7 n/a).
- Prior decision was
approve, so sticky-escalation row 6 n/a. - Falls through to row 9 → approve.
Delta is clean and correctly scoped: two patch changesets, conformance-harness + fixture work with no wire/signing-profile change and no dist/** mutation. The 37 routed request-signing vectors now carry operation-valid bodies so payload parsing reaches the verifier; new tests validate every body against both source and dist 3.1.1 schemas, re-sign/verify key vectors, and enforce standard base64. The prior medium (002/018 base64 vs corpus) is resolved — standard base64 is RFC 8941/9421 canon and is now test-enforced. webhook-emission.yaml adds a tool-gated get_products_discovery step binding real IDs before create_media_buy and replaces fail-open schema refs with explicit paths, with test coverage for async discovery and fail-closed behavior.
The single remaining [low] finding (unchanged positive vectors 001/003-006/009-012 still use base64url) is a non-blocking follow-up for a later sweep.
…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]>
The published 3.1.26 signing corpus still sends stub payloads to request-signing operations, and its webhook storyboard triggers media buys without first binding a real catalog product. This backports the relevant fixes from #7580, #7583 and #7617 for #7959 through the normal 3.1 patch flow.
All 37 routed signing bodies validate against both the maintained request schemas and the retained 3.1.1 schemas. Thirty-five changes alter only body bytes. The two digest-bound fixtures also get truthful digests and valid test signatures using the existing published fixture key and RFC9421/8941 standard Base64 encoding; the negative fixture still fails for forbidden digest coverage. Verifier capabilities, expected outcomes, signature parameters, URLs and keys are preserved.
The webhook storyboard discovers product and pricing IDs before all six buy triggers, waits for asynchronous discovery, resolves explicit schema paths and supplies complete 3.1 requests. Main-only operator_unit fields are omitted because the maintained account schema does not support them. Focused tests exercise real SDK 9.6.2 dispatch, async completion, failed/empty discovery, capability skips and the old missing-discovery behavior.
Validation: the normal build, all 17 focused regressions and full npm test passed. The normal commit hook passed with 1,012 root tests, 4,392 server tests (3 existing skips), dynamic-import guards and types. Installed official Changesets status passes against the direct parent, maintained branch and main using real Git ancestry. The actual normal push passed all six tenant floors for both the current source matrix and the stock 3.0.28 compatibility matrix. The normal generated SDK schema overlay was restored by the stock runner. The original source head passed all10required/service checks with one disclosed skip. Those results do not qualify the follow-up head below.
An initial full test was killed by resource pressure (exit 137); its receipt is retained. The completed full run qualifies the final corpus. The first main Changesets comparison failed because the shallow checkout lacked the real common ancestor; a normal fetch restored ancestry and the comparison then passed. No test assertions, keys, dependency versions or budgets were weakened.
The package version, dependency graph, schemas, normative reference docs and all 77,707 existing published mode/blob entries remain unchanged. Two protocol patch changesets cover the corpus corrections. Maintained 3.0 verification, live seller confirmation and future maintenance policy remain separate; this PR does not authorize release publication.
Original source head: e12618a (single parent 21f694a).
Refs #7959, #7567.
Signing review follow-up
Refreshed onto current3.1.x (003d238) and corrected the stale positive002 generator attribution. The committed regression now reproduces its deterministic Ed25519 signature using the existing public test-only private key. Both regenerated fixtures must have canonical padded standard Base64 signatures; tests explicitly reject URL-safe alphabets, missing padding and noncanonical trailing bits before cryptographic verification. No signature bytes, keys, bodies or expected outcomes were changed in this follow-up.
The automated review requests legacy Base64URL encoding. RFC9421 section4.2 defines the Signature member as a StructuredFields ByteSequence; RFC8941 sections3.3.5,4.1.7 and4.2.7 define standard Base64. Converting these two valid signatures to Base64URL would introduce an invalid wire encoding. Other legacy source fixtures retain their inherited encoding; this narrow backport does not migrate the historical corpus or rewrite any released bundle.
Follow-up head: e0e5821. All18focused regressions pass through actualSDK9.6.2. Normal commit hook passes1012root tests,285server files/4392tests with3existing skips, both guards and maintained server types. The first full hook exceeded the existing240-second serial-suite budget while concurrent runtime restoration was active; its failed receipt is retained. The isolated warmed run passed in232.33seconds without changing budgets, selection, assertions or hooks. Published dist trees, schemas, docs and dependency lock are byte-identical to current3.1.x. The actual normal push passed all six tenants and every required-clean board for both current source and stock3.0.28compatibility. No hook or matrix skip was used. Official installedChangesets status passes against current3.1.x. Post-push source/runtime fences remain clean. Fresh exact-head qualification completed:10SUCCESS,1NEUTRAL and1disclosedSKIP, with a new approval on e0e5821 from full review run37904335673 and no unresolved threads. The prior encoding finding is resolved; unchanged legacyURL-safe positivefixtures remain a nonblocking later sweep. Normally merged into3.1.x as733df5ef7e40f41d3d5cce6fff88ec301a64a403 at2026-10-09T08:30:17Z. No release publication was performed.