feat(cli): support x402 payment challenges - #850
Conversation
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68bb4ccaad
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
The redirect hardening here exposed a useful protocol-level invariant, so I turned it into a small protocol-neutral red/green conformance fixture in AgentProof/Astra:
Merged implementation and claim boundary: safal207/safal207-AgentProof-AI#19 The red fixture deliberately contains no settlement event: it proves credential exposure, not historical theft, consumption, or duplicate payment. One contract question: should the challenge origin be the normative credential recipient for every reusable x402 credential, or do you expect authenticated intermediary/delegate origins? If delegates are intended, what exact artifact should establish that authorization so a client or independent verifier does not infer it from redirects or proxy topology? |
Motivation
Supersedes #812 by allowing the CLI to pay x402-only endpoints directly.
Summary
--protocol auto|mpp|x402challenge selection.PAYMENT-SIGNATURErequest handling.Key design considerations