Skip to content

Make credential_result_uri an Agent-supplied reference - #53

Open
frostevent wants to merge 6 commits into
mainfrom
jeremie/result-reference
Open

frostevent wants to merge 6 commits into
mainfrom
jeremie/result-reference

Conversation

@frostevent

Copy link
Copy Markdown
Collaborator

Problem

The spec says the Verifier issues every credential_result_uri and should only dereference URLs it recognizes as its own. But the parties that hold a result are the Agent, the relaying intermediary that received it at return_uri, and the remote fulfillment surface that generated it. The Relayed Delivery section already has the intermediary package the result "as a Credential Reference", which it cannot do with a Verifier-issued URL, and the Agent sets expires_at on a URL the Verifier supposedly owns.

Change

The Agent supplies credential_result_uri. The result is hosted by whichever party holds it.

  • Credential Reference definition, Result Artifact members, Result by Reference rules, and Remote fulfillment step 4 updated.
  • Security "Result by Reference": the Verifier fetches an Agent-chosen location, so it MUST fetch only https, SHOULD NOT follow redirects, SHOULD refuse loopback, private, and link-local hosts, and SHOULD bound size and time. Validation still rests on the nonce and the request binding, so a substituted result fails.
  • expires_at is the time after which the host stops serving the URL.
  • Example URL is https://agent.example/x401/results/abc123. The former .well-known/x401/... path needs an RFC 8615 registration the IANA section does not request.

🤖 Generated with Claude Code

The spec said the Verifier issues the reference, yet the relaying
intermediary and the remote fulfillment surface are the ones holding the
result. The Agent now supplies the URL, and the Verifier fetches it with
redirect, address, size, and time bounds. The example path no longer
uses .well-known, which RFC 8615 reserves for registered names.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@frostevent
frostevent requested a review from a team as a code owner November 19, 2026 14:42
@frostevent
frostevent enabled auto-merge (squash) November 19, 2026 14:50
@frostevent
frostevent disabled auto-merge November 20, 2026 09:35
@frostevent
frostevent enabled auto-merge (squash) November 20, 2026 09:35
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Deploying x401 with  Cloudflare Pages  Cloudflare Pages

Latest commit: d7226b9
Status: ✅  Deploy successful!
Preview URL: https://8f5eb95d.x401.pages.dev
Branch Preview URL: https://jeremie-result-reference.x401.pages.dev

View logs

dan-proof
dan-proof previously approved these changes Nov 23, 2026
dan-proof
dan-proof previously approved these changes Nov 30, 2026
@frostevent frostevent closed this Dec 1, 2026
auto-merge was automatically disabled December 1, 2026 10:47

Pull request was closed

@frostevent frostevent reopened this Dec 1, 2026
@frostevent

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

…result-reference

# Conflicts:
#	CHANGELOG.md

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Dec 1, 2026

Copy link
Copy Markdown

@copilot resolve the merge conflicts in this pull request

Resolved in merge commit 519f022. The site build passed locally.

@frostevent
frostevent enabled auto-merge (squash) December 1, 2026 11:24
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.

3 participants