Skip to content

Proof Flow Composer: use live x402 paid-action endpoint and verifier#310

Merged
GsCommand merged 1 commit into
mainfrom
codex/upgrade-proof-flow-composer-to-live-x402-endpoint
May 23, 2026
Merged

Proof Flow Composer: use live x402 paid-action endpoint and verifier#310
GsCommand merged 1 commit into
mainfrom
codex/upgrade-proof-flow-composer-to-live-x402-endpoint

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • Replace the simulated x402 step with the real server-side signed paid-action endpoint so the demo shows a live signed receipt and live verification while keeping Coinbase webhook simulated.

Description

  • The composer now POSTs the x402 payload to /api/examples/x402-paid-action with request_id, action, input.text, and payment (including payment_id, protocol: x402, status: accepted, asset: USDC, amount: "0.01", network: base).
  • The page generates a trace_id, simulates the Coinbase webhook event, captures the returned signed x402 receipt, displays the receipt JSON, and then POSTs the receipt to /api/verify to display verification JSON and summary fields (hash_matches, signature_valid, signer, key_id, trace_id, receipt_id).
  • UI copy and badges were updated to label steps as requested: Coinbase = simulated adapter event, x402 = live signed endpoint, Action = executed by signed x402 endpoint, Verify = live verifier, and the trust-boundary copy was adjusted.
  • Explicit failure handling and user-visible error outputs were added for network errors, x402_endpoint_unavailable, signing_unavailable, and verifier invalid/error responses, and existing copy buttons were preserved.
  • Files modified: public/proof-flow-composer.html and public/integrations.html.

Testing

  • Ran npm test which completed successfully (all tests passed).
  • Searched for forbidden string with grep -RIn "erc8211.merkle.v1" public README.md tests api scripts docs examples and found no matches.
  • Manual QA instructions included in commit notes: open /proof-flow-composer.html, click Run, confirm trace_id, receipt JSON, verification JSON and summary fields, and exercise copy buttons and negative error paths.

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
commandlayer-commandlayer-org Ready Ready Preview, Comment May 23, 2026 9:32pm
commandlayer-org Ready Ready Preview, Comment May 23, 2026 9:32pm
commandlayer-org111 Ready Ready Preview, Comment May 23, 2026 9:32pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant