Repository navigation
test(compliance): add content-digest-covered request-signing vectors for 3.2 - #7747
Merged
Merged
Conversation
…for 3.2 Add 27 AdCP 3.2 request-signing vectors under profile-3.2/: 10 positives and 17 checklist step 2-12 negatives. They mirror the root corpus under the same number and slug, with content-digest covered, RFC 8941 Base64 sf-binary, and covers_content_digest 'required'. Before this, 36 of the 40 root vectors signed without content-digest, so a 3.2 verifier could grade almost none of the checklist. The vectors come from the committed generator scripts/generate-request-signing-profile-3.2-vectors.mjs (--check runs in test:transport-errors and flags stale or unregistered files). tests/request-signing-profile-3.2-vectors.test.cjs verifies them independently: it recomputes the signature base and digest, checks Ed25519/ES256 with node:crypto, runs @adcp/sdk verifyRequestSignature pinned to 3.2, and asserts mirror coverage and step-ordering canaries. Existing vectors are unchanged. Refs #7733 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — test-data-only PR adding AdCP 3.2 request-signing profile vectors.
What I checked:
- 27 content-digest-covered request-signing vectors (positive + negative) plus a committed generator (
scripts/generate-request-signing-profile-3.2-vectors.mjs) with a CI--checkmode, an independent SDK-based verifier test that shares no code with the generator, and docs/README/test-kit updates. - Changeset (
request-signing-profile-3-2-content-digest-vectors.md) is in-scope and correctly typed aspatch— no schema, wire, ordist/**change, so it is not a breaking/normative surface change. - Docs↔vector mappings cohere; mirror coverage is enforced by test.
- No
static/schemas/source/**change → no schema↔docs coherence or oneOf-discriminator concern. No released-artifact mutation. No hand-editedpackage.jsonversion.
No Critical/High/Medium findings reported by the reviewer.
Decision-table trace: No critical/high (row 1 no). gated_paths false (row 2 no). high_risk false (rows 3/5 no). No medium findings (rows 4/8 no). No prior escalation (row 6 no). No no-auto-approve team match (row 7 no). Falls through to row 9 → approve. Note: review_decision is REVIEW_REQUIRED but with gated_paths: false this does not block auto-approve.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #7733
Summary
36 of the 40 root request-signing vectors sign without
content-digest. A verifier that advertisescovers_content_digest: "required"cannot grade them, and in 3.2 that is the only posture a signing peer may advertise. This PR adds the 3.2 counterparts understatic/compliance/source/test-vectors/request-signing/profile-3.2/. It adds test data only: no schema or normative wire changes, and existing vectors are unchanged.003–012) and 17 negatives for checklist steps 2–12 (002–010,012–017,020,025). Each keeps the same number and slug as the root vector it mirrors, and root vectors that are not mirrored leave gaps. Rootpositive/001and/002both map to the existingprofile-3.2/positive/001-post-with-content-digest, because in 3.2 a basic POST is a POST with content-digest. One number is shared: the newnegative/002-wrong-tagand the pre-existing hand-authorednegative/002-multiple-trailing-dots. File names stay unique. I did not rename the existing file because@adcp/sdkrc.49 refers to it by id.content-digestis covered, except innegative/007-missing-content-digest. That vector still sends a correctContent-Digestheader, so verifiers must check the covered-components list rather than header presence.sf-binary(standard padded Base64).covers_content_digest: "required".idempotency_keyis re-keyed.010,016) carry real Ed25519/ES256 signatures made with the public test keys inkeys.json.scripts/generate-request-signing-profile-3.2-vectors.mjsproduces the new vectors; no signature bytes are hand-edited. Its self-check reproduces the hand-committedprofile-3.2/positive/001signature byte-for-byte.--checkruns intest:transport-errorsand fails on stale files and on any profile-3.2 file that is neither generated nor a known hand-authored vector. ES256 signatures are random, so an existing ES256 signature is kept as long as it still verifies; this keeps--checkstable.tests/request-signing-profile-3.2-vectors.test.cjsshares no code with the generator. It:@adcp/sdk's URL canonicalizer;node:crypto;@adcp/sdkverifyRequestSignaturepinned toadcpVersion: '3.2', with harness state preloaded, and expects the stated outcome for every vector;9a⇒ zero signature).request-signing.mdxtesting bullet is updated.signed-requests-runnertest-kit now say the016/017/020contracts cover the profile-3.2 counterparts.vector_idkeys are unchanged.Dependency: SDK grader (Track 1)
The corpus alone does not add graded checks.
@adcp/sdk's grader (rc.49) iterates only rootpositive/andnegative/, so the loadedprofiles["3.2"]vectors are never graded. Three things blockrequireddeclarers:MUTATIONS/listSupportedNegativeVectorshave no builders forprofile-3.2/negative/*ids.MCP_FLATTENED_VECTORSlists root ids only.contentDigestStructuralMismatchstill skipsnegative/007.Until those land,
requireddeclarers gain no graded checks. Tracked in adcontextprotocol/adcp-client#3049, targeted for 14.0.0 stable.Testing
npm run test:transport-errors: generator--checkplus 193 tests, all passing.node --test tests/lint-doc-compliance-drift.test.cjs tests/lint-compliance-packaged-refs.test.cjs tests/functional-request-signing-contract.test.cjs tests/brand-response-authorization-vectors.test.cjs: 46 passing.tests/lint-compliance-source-authority,tests/lint-storyboard-test-kitsandtests/lint-storyboard-contradictions: 53 passing.node scripts/lint-doc-compliance-drift.cjspasses, and so doesnpm run test:docs-nav.npm run build:compliancepackagesprofile-3.2/.loadRequestSigningVectorsparses all 11 positive and 19 negative profile-3.2 vectors.--checkreports the file as stale.Notes
--no-verifyand pushed withHUSKY=0. The local pre-commit server-unit run fails inserver/tests/unit/addie/fixed-trace-*on anode_modules-vs-worktree realpath assertion. That comes from the shared-disk worktree's symlinkednode_modulesand is unrelated to this change, which touches no server code. CI runs the full suite.021,022,024and026are not mirrored. They reject before covered components are checked, so the better fix is for the SDK gate to exemptfailed_step0/1 (noted in the SDK issue).🤖 Generated with Claude Code