Skip to content

docs(security): designated-task payload-envelope response signing carve-out (#4703) - #4721

Merged
bokelley merged 1 commit into
mainfrom
bokelley/issues-4703-4704
May 18, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/issues-4703-4704

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Resolves the internal spec inconsistency between security.mdx's blanket "Sellers MUST NOT sign synchronous response bodies under any existing adcp_use value" (introduced in #3742) and the Brand Protocol's normative use of adcp_use: "response-signing" for verify_brand_claim / verify_brand_claims (introduced in #4540, built out in #4602).

The Brand Protocol's response signing is a JWS payload envelope carried inside the response body — a distinct primitive from RFC 9421 §2.2.9 transport response signing. #3742's MUST NOT was about transport-level signing; the brand-protocol's payload-envelope JWS is a different signing surface entirely. The spec text didn't draw that distinction, which read as forbidding the brand-protocol's existing pattern and gave SDKs reading the rule no help in seeing that RFC 9421 transport response signing remains undefined.

What changes

  • docs/building/by-layer/L1/security.mdx — splits the line-827 callout into "No general-purpose RFC 9421 response-signing profile" (transport-level MUST NOT, with <a id="designated-task-response-signing" /> anchor) and "Designated-task payload-envelope response signing" (closed list — currently verify_brand_claim + verify_brand_claims — with admission criterion). Reserves adcp_use: "response-signing" at the JWK layer for the payload-envelope primitive; keys with this purpose MUST NOT be used to produce RFC 9421 §2.2.9 transport signatures. Future major versions scoping transport response signing MUST use a distinct adcp_use value. Updates the TMP cross-reference at line 1511 from four signing systems to five.
  • docs/building/concepts/security-model.mdx — updates the "What gets signed" enum from four to five signing systems; tightens "synchronous responses NOT signed at the body level" → "NOT signed at the transport layer" with the designated-task carve-out; fixes an internal contradiction in the "Cases that look like response signing but aren't" subsection.
  • docs/reference/known-limitations.mdx — reframes the limitation entry to name RFC 9421 §2.2.9 as the specifically-undefined surface and acknowledge the payload-envelope exception in the title line.
  • docs/brand-protocol/tasks/verify_brand_claim.mdx and docs/brand-protocol/building-a-brand-agent.mdx — back-link to the new designated-task framing; add a non-repudiation disclaimer on the trust-model section; add a response-body-middleware caveat on the signing-setup section warning that JSON re-serialization breaks payload-envelope verification.

Issue dispositions

  • Closes security.mdx: reserve adcp/response-signing/v1 tag for RFC 9421 §2.2.9 response signing #4703 with a different shape than asked. The original ask was to "reserve" adcp/response-signing/v1 and add response-signing to the adcp_use enum defensively. The actual situation is more complex — adcp_use: "response-signing" is already in normative use by the brand-protocol for a different primitive than the SDK shipped. This PR surfaces that primitive, closes the list, and declares SDK general-purpose RFC 9421 §2.2.9 helpers non-conformant.
  • Recommends closing test-vectors: cross-SDK interop fixtures for response signing (content-type casing, %7E target-uri) #4704 as out-of-scope. The asked-for fixtures encode the SDK's RFC 9421 transport response-signing primitive, which the spec doesn't authorize. Brand-protocol payload-envelope conformance vectors are a separate, narrower scope and can be filed as their own issue once the 3.2 hardenings (replay protection, JWK uniqueness, tenant binding) are decided.

3.2 follow-ups

Three operational hardenings on the brand-protocol payload-envelope primitive are out of scope for this consistency PR and filed separately, all on the 3.2.0 milestone:

The verify_brand_claim trust-model section carries an interim disclaimer pointing at these issues; until they land, verifiers SHOULD treat captured signed responses as freshness-unbound.

Review trail

  • Protocol expert review pass — confirmed the JWS-payload-envelope vs. RFC 9421 §2.2.9 distinction is load-bearing, flagged the SDK-method-name coupling (softened), the closed-list accretion risk (addressed with admission criterion), and the cross-primitive adcp_use ambiguity (addressed with the reservation clause).
  • Docs expert review pass — confirmed both anchor targets exist, flagged retrieval-truncation risk on inline parentheticals (promoted to bullets), known-limitations title-line clarity (tightened), changeset density (trimmed).
  • Security expert review pass (second pass on committed text) — revised prior "keep MUST NOT" recommendation given the brand-protocol discovery; flagged three operational hardenings filed as 3.2 follow-ups; in-scope items (adcp_use scope clause, non-repudiation disclaimer, CDN middleware caveat) addressed in this PR.

Test plan

  • Pre-commit hooks passed (vitest + typecheck).
  • Pre-push broken-link check passed.
  • CI: Check for Broken Links confirms the new #designated-task-response-signing anchor resolves from both the security-model in-page reference and the two brand-protocol back-links.
  • CI: changeset-check finds .changeset/4703-response-signing-internal-consistency.md.
  • Build-check passes (no MDX syntax regression in the five touched files).

🤖 Generated with Claude Code

…ve-out (#4703)

Resolves the internal inconsistency between security.mdx's "MUST NOT sign synchronous response bodies under any existing adcp_use value" (#3742) and the Brand Protocol's normative use of adcp_use: "response-signing" for verify_brand_claim (#4540, #4602).

The brand-protocol primitive is JWS payload envelope inside the response body, distinct from RFC 9421 §2.2.9 transport response signing. The two are different primitives — #3742's MUST NOT was about transport-level signing; the brand-protocol's payload-envelope JWS is a different signing surface entirely.

Splits security.mdx callout into "No general-purpose RFC 9421 response-signing profile" (transport MUST NOT) and "Designated-task payload-envelope response signing" (closed list of tasks — currently verify_brand_claim + verify_brand_claims — that sign their response payload as JWS envelope). Reserves adcp_use: "response-signing" at the JWK layer for the payload-envelope primitive; future major versions scoping RFC 9421 transport response signing MUST use a distinct adcp_use value.

Updates security-model.mdx "What gets signed" enum from four signing systems to five. Adds back-links from brand-protocol pages, a non-repudiation disclaimer on the trust-model section, and a response-body-middleware caveat on the signing-setup section.

Closes #4703 with a different shape than asked (the names aren't unclaimed — verify_brand_claim already uses them legitimately for a different primitive than the SDK shipped). Recommends closing #4704 as out-of-scope (transport-layer fixtures encode a primitive the spec doesn't authorize; payload-envelope vectors are a separate narrower scope).

Three operational hardenings on the brand-protocol payload-envelope primitive are filed as 3.2 follow-ups: replay protection (#4716), per-brand JWK uniqueness (#4717), and tenant binding (#4718).

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.

security.mdx: reserve adcp/response-signing/v1 tag for RFC 9421 §2.2.9 response signing

1 participant