Repository navigation
Version Packages - #8247
Version Packages#8247
Conversation
|
Ladon does not review bot-authored PRs. |
bokelley
left a comment
There was a problem hiding this comment.
Exact-head maintainer review of release candidate e44d6b0 (3.1.29), performed with delegated coding-agent assistance under the maintainer-authorized delivery task.
Independently downloaded the committed signed candidate tuple and verified SHA-256 d289fdefa1bc540e47b8282f3ca8ffa7e8755aaaa2fbef0a6e7c664776e58343 (12,469,429 bytes), plus Cosign against the official release.yml identity, GitHub OIDC issuer, refs/heads/3.1.x and exact producer/source parent 484d2e3. All four reviewed storyboards match immutable reviewed source, both dist aliases and the signed tarball. Both corrected signing vectors match source/dist/signed bytes.
BEFORE this approval, consumed positive 002 and negative 018 directly from that actual signed tarball through the public @adcp/sdk/signing/server export, both in the current built SDK and in the independently downloaded registry-integrity-verified public SDK 16.0.0-beta.5. Positive 002 verifies with omitted and explicit 3.1.29 pins; negative 018 rejects with request_signature_components_unexpected at intended step 6 with both pins. Canonical unpadded Base64URL, 64-byte signature equality against published 3.1.28, unchanged bodies/digests/bases/non-comment fields, independent Ed25519 verification and mutated-base rejection all pass. No SDK parser relaxation.
Reviewed the complete paginated file inventory: 1,062 files, with the five non-dist changes limited to consumed patch changeset, changelog, package/lock 3.1.29 and generated source schema-index version metadata. Producer workflow 38940583633 succeeded.
Approval is bound to this exact candidate HEAD. All normal required PR checks must pass before merge; any regenerated head requires fresh review. This approves the committed signed candidate, not a claim of public tag/GitHub/CDN availability or SDK adoption.
…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]>
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to 3.1.x, this PR will be updated.
Releases
[email protected]
Patch Changes
484d2e3: Re-encode two request-signing Signature tokens as unpadded base64url so they satisfy the maintained 3.1 emission profile.
positive/002-post-with-content-digest.jsonandnegative/018-digest-covered-when-forbidden.jsonwere re-signed with padded standard base64 when operation-valid bodies were backported.docs/building/by-layer/L1/security.mdx("Binary value encoding") overrides RFC 8941 for this profile:SignatureMUST be emitted as base64url without padding, and a signer emitting+,/or=is non-conformant. Verifiers only SHOULD lenient-decode pure standard base64, so a conforming strict verifier may reject these withrequest_signature_header_malformed— which is what the maintained SDK does on an explicit 3.1 pin. They were the only 2 of the 37 signed vectors in the standard alphabet. Across the corpus's 38Signaturetokens, 17 are demonstrably base64url (they carry-or_) and 21 are alphabet-neutral dummy signatures that render identically under either alphabet.The effect on an explicitly 3.1-pinned verifier:
positive/002failed at step 1 instead of verifying, andnegative/018failed at step 1 for the wrong reason instead of reaching its intendedrequest_signature_components_unexpectedat step 6. Unpinned verifiers accept both alphabets, which is why existing coverage missed it.Only the two
Signaturetokens change. Each decodes to the same 64 signature bytes and is re-encoded, so nothing is re-signed: request bodies,Content-Digest,Signature-Input,expected_signature_baseand the Ed25519 key material are untouched.Content-Digestkeeps its historical standard-base64 form. The samesecurity.mdxrule namesContent-DigestalongsideSignature, so that form is a known discrepancy tracked separately — this change neither resolves it nor claims to. It is deferred to keep this change a pure re-encode:content-digestis a covered component, so its literal field value is part ofexpected_signature_base, and changing it would mean a genuine re-sign rather than a re-encode.tests/request-signing-vector-bodies.test.cjsasserted the RFC 8941 default rather than the AdCP override. It now checks the unpadded-base64url grammar with a canonical round-trip and compares the deterministic Ed25519 re-sign in the same encoding. A new corpus guard applies that grammar to everySignaturetoken in all 37 signed vectors (38 tokens), with the 3 deliberately unsigned vectors allowlisted and both counts pinned so a new vector cannot silently skip it. On the 21 alphabet-neutral tokens the guard necessarily enforces only the no-padding and canonical-trailing-bits half of the grammar, which is stated inline. The truthfulContent-Digestcheck is unchanged, with its scope stated inline.The two encoding profiles are separated by directory, not by branch. These root
positive/andnegative/directories are the legacy 3.0/3.1 corpus on both lines — on main the same root vectors are already unpadded base64url, so this change brings 3.1.x's two outliers into line with them rather than diverging from main. The standard-alphabet 3.2 corpus lives in the siblingprofile-3.2/directory. This base64url grammar must NOT be applied toprofile-3.2/, where the standard alphabet is correct. No blanket take-ours/take-theirs claim about these paths is intended.