Repository navigation
fix(compliance): give the remaining request-signing vectors operation-valid bodies - #8572
Conversation
…-valid bodies
Five routed vectors still carried the {"plan_id":"plan_001"} body adcontextprotocol#7567
reported, so grading them depended on whether a verifier validates the request
before the signature.
- profile-3.2/positive/001, profile-3.2/negative/001 and
profile-3.2/negative/002 are hand-authored and skipped by the profile-3.2
generator, so they never received adcontextprotocol#7580's bodies. Each now carries the
create_media_buy body its generated siblings use, under its own
idempotency_key, with Content-Digest and signature re-derived from the test
key. negative/001 keeps a cryptographically valid signature spelled in
Base64URL, and negative/002 a signature valid for the canonical host, so
each still has exactly one fault.
- positive/002 and negative/018 are restored to the bodies and signatures
adcontextprotocol#7580 gave them; adcontextprotocol#7581 merged after adcontextprotocol#7580 from an older base and put the
stub versions back.
- The check that every routed vector carries an operation-valid body, which
adcontextprotocol#7581 also removed, is restored and now covers profile-3.2/ as well.
Fixes adcontextprotocol#8571.
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean compliance-fixture fix.
Checked:
- Gives the three hand-authored profile-3.2 signing vectors (positive/001, negative/001, negative/002) operation-valid create_media_buy bodies and restores positive/002 + negative/018, each keeping its single intended fault (negative/001 unpadded base64url sf-binary; negative/002 trailing-dot host).
- Every modified vector's expected_signature_base embeds its new Content-Digest consistently; the restored regression check routes all three fixed vectors to create_media_buy and validates against the current schema.
- Changeset is patch and in scope (compliance source; no wire shape/field/enum change; dist untouched). PR is main-based so 3.1.x patch-eligibility does not apply. No oneOf/schema-docs surface touched — no schema↔docs coherence concern.
No critical/high/medium findings. One Low follow-up noted (the unrouted skip predicates in tests/request-signing-body-integrity.test.cjs key on filename number and reuse a comment accurate only for the legacy dir — works by coincidence), omitted as non-blocking.
Gate check: gated_paths is false and no no-auto-approve team match, so review_decision=REVIEW_REQUIRED does not force escalate. high_risk false. No rows 1–8 fire → row 9 approve.
|
The remaining CI failure at unchanged head The repaired The fixture repair can preserve its single intended host fault; this dependent test also needs to follow the new valid signing base. Rerunning unchanged source will reproduce the same failure. The aggregate TypeScript Build is red because that shard failed. |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean compliance-fixture patch, no blocking or medium findings.
This PR applies operation-valid create_media_buy bodies to five routed request-signing test vectors with re-derived digests/signatures, restores a body-validity ratchet test, and rewrites a brand-authorization cross-check to verify the multiple-root-dot vector's signature against its canonical target. Negatives retain their single intended fault.
Verified against repo gates:
- No
static/schemas/source/**edits → no schema↔docs coherence risk, no oneOf discriminator regression. - No released-artifact mutation under
dist/*/<semver>/→ immutability preserved. - Changeset present, in-scope, and correctly typed (
patch), carrying no breaking wire change. - No
3.1.xpatch-eligibility concern (fixture/test-only, no normative surface change). - Re-derived crypto is exercised by CI-covered tests.
Gate checks: high_risk=false; gated_paths=false with review_decision=APPROVED; no no-auto-approve team match. No critical/high/medium findings. Prior clean approve holds. Falls through to decision-table row 9.
…dies too
The corrected compliance tree replaced stub bodies in the root buckets only,
but a 3.2 seller is driven with the profile-3.2 documents, so
negative-profile-3.2/001-base64url-sf-binary still sent {"plan_id":"plan_001"}
and was refused on the body before its signature was read. Upstream fixed the
vectors in adcontextprotocol/adcp#8572 (issue #8571), after the 3.2.7 pin. Each
profile document is now corrected under the id the profile selection drives it
as, through one selection shared with load_signing_vectors; the pinned tree is
still never edited.
Five routed request-signing vectors still carried the
{"plan_id":"plan_001"}body reported in #7567. Sellers that validate request bodies first reject those fixtures before reaching the signing fault they are meant to test. Fixes #8571.Give the three hand-authored profile-3.2 vectors operation-valid
create_media_buybodies with distinct idempotency keys, and re-derive their digests and signatures. Restore the legacy positive/002 and negative/018 bodies from #7580. Each negative retains its single intended fault.Restore request-schema validation across both signing profiles. The three excluded fixture names now pin their expected non-operation paths, so renumbered or rerouted fixtures cannot silently lose coverage.
Update the brand-authorization cross-check to verify the multiple-root-dot vector's own signature, headers and body against its canonical target using the public SDK verifier and fresh replay/revocation stores. Its actual malformed target must still fail with exactly
request_target_uri_malformed. This replaces the obsolete signature-equality assertion between requests with different bodies.Validation in Docker:
node --test --test-timeout=30000without forced exit so every suite completes.Code/protocol and security reviews are clear. Source vectors carry a patch changeset; existing released snapshots are unchanged. Main’s dependency security fix is included via a normal merge; final head is
75d5f249ed5f836639961df6730b760f49bf72a1.Open workspace in Conductor