Skip to content

docs(checkout-rest): cover ucp-agent in the example signed request - #795

Open
vishkaty wants to merge 1 commit into
Universal-Commerce-Protocol:mainfrom
vishkaty:docs/rest-signed-example-covers-ucp-agent
Open

docs(checkout-rest): cover ucp-agent in the example signed request#795
vishkaty wants to merge 1 commit into
Universal-Commerce-Protocol:mainfrom
vishkaty:docs/rest-signed-example-covers-ucp-agent

Conversation

@vishkaty

@vishkaty vishkaty commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #794

What this changes

Adds "ucp-agent" to the covered components of the Example Signed Request in the checkout REST binding, docs/specification/shopping/checkout/rest.md line 1440.

Before:

("@method" "@authority" "@path" "idempotency-key" "content-digest" "content-type")

After:

("@method" "@authority" "@path" "ucp-agent" "idempotency-key" "content-digest" "content-type")

The example already prints a UCP-Agent header. The Identity Resolution Algorithm at overview/index.md line 2435 requires a signature to cover ucp-agent when that header is present and requires a verifier to skip a signature that does not, so the example as shipped models a request a conformant verifier will not authenticate.

The resulting covered set is identical to the canonical REST request example at signatures.md line 515, which is the document this section links to for the complete signing algorithm. The two examples still differ elsewhere, for instance in their keyid.

Scope

One line. No normative text changes, no schema changes, no new prose.

The linked issue carries the sweep: of 13 fenced blocks under docs/specification containing a Signature-Input, 2 are excluded because their component list is elided with ... and 3 because they are not requests, leaving 8 judged. Six of those cover every gate header they carry and 2 do not. The other violation is shopping/order/index.md line 751, already addressed by open PR #659, so that pair closes the class.

Test plan

  • scripts/validate_examples.py --schema-base source/schemas/: 343 passed, 0 failed, 50 skipped.
  • scripts/test_validate_examples.py: 52 passed.
  • cspell on the changed file: 0 issues.

All three measured on a test merge into main 1d39948 on 2026-09-01, and all three are unchanged by this commit. That is expected rather than reassuring: the example is an unannotated ```http fence, so validate_examples.py never inspects it and no CI job here checks a covered set. The mechanical check that does catch it compares, per fenced block, the headers the block carries against the components its own Signature-Input names, and it flags this block before the change and not after. Reverting the one line makes it flag again.

The Example Signed Request in the checkout REST binding carries a
UCP-Agent header, but its Signature-Input covers only "@method"
"@authority" "@path" "idempotency-key" "content-digest" "content-type".

The identity resolution gate in overview/index.md states that a
signature MUST cover ucp-agent, signature-agent and idempotency-key
when those headers are present, and that a verifier MUST skip a
signature whose covered set omits any of them, since a header the
signature does not cover is treated as unsigned. The example therefore
shows a request whose signature a conformant verifier is required to
skip, in the one place an implementer copies from.

Adds "ucp-agent" to the covered set, which makes its covered set
identical to the canonical REST request example in signatures.md
line 515, the document this section links to for the complete signing
algorithm. The two examples still differ elsewhere, for instance in
their keyid.

No normative text changes. validate_examples.py 343 passed, 0 failed,
50 skipped and test_validate_examples.py 52 passed on a test merge into
main 1d39948 on 2026-09-01, both unchanged by this commit, because the
example is an unannotated http fence that no CI job inspects. cspell
clean on the changed file.
@damaz91 damaz91 added the status:needs-triage Signal that the PR is ready for human triage label Sep 2, 2026
@carolinerg1 carolinerg1 added status:under-review and removed status:needs-triage Signal that the PR is ready for human triage labels Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example Signed Request in the checkout REST binding omits ucp-agent from its covered components

4 participants