Skip to content

fix(compliance): give the remaining request-signing vectors operation-valid bodies - #8572

Merged
bokelley merged 3 commits into
adcontextprotocol:mainfrom
KonstantinMirin:fix/profile-3-2-vector-bodies
Oct 31, 2026
Merged

bokelley merged 3 commits into
adcontextprotocol:mainfrom
KonstantinMirin:fix/profile-3-2-vector-bodies

Conversation

@KonstantinMirin

@KonstantinMirin KonstantinMirin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

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_buy bodies 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:

  • Original-head brand cross-check: 19 pass, one expected failure; repaired check: all 20 pass.
  • Generator checks verify 43 profile-3.2 and 33 A2A vectors. All 285 transport/signing tests plus 20 brand-authorization cross-checks pass on final head (305 total), using node --test --test-timeout=30000 without forced exit so every suite completes.
  • Normal commit hook: 1,276 root and 13,445 distinct server tests pass, with 31 existing opt-in skips; both typechecks pass. During the final main sync, the unchanged statistical-worker suite had two failures under parallel load; the hook’s existing serial retry passed all 34 cases.
  • Normal pre-push version and changeset checks, Changesets CLI status, and PR title validation pass. The advisory local storyboard matrix is deferred to the complete CI matrix.

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

…-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.
@mintlify

mintlify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 75d5f24.

Approve preview

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 28, 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 — 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.

Copy link
Copy Markdown
Contributor

The remaining CI failure at unchanged head 2ad8f760305f73714ca528473b3c86c6ed13b42a is deterministic, not a checkout timeout. Canonical shard 4, job 123137735546 fails tests/brand-response-authorization-vectors.test.cjs:106: “the negative vector must reuse the valid equivalent-host signature”.

The repaired profile-3.2/negative/002 now has its own operation-valid body/idempotency key and therefore its own Content-Digest and signature. Byte equality with profile-3.2/positive/001 is no longer the right invariant. Please update that cross-check to prove that the negative vector’s own signature is cryptographically valid for the canonical single-host target and its committed body, then retain the rejection of the actual multiple-root-dot request. Do not simply delete the test or replace it with an unconditional/different-signature assertion.

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.

@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.

Re-approval: no reviewable delta since the prior approval; re-submitting after stale-review dismissal.

@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-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.x patch-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.

@bokelley
bokelley merged commit 0c4553c into adcontextprotocol:main Oct 31, 2026
66 of 68 checks passed
KonstantinMirin added a commit to KonstantinMirin/prebid-salesagent that referenced this pull request Oct 31, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Five request-signing vectors still carry the stub body #7567 reported; #7581 reverted part of #7580

2 participants