Skip to content

Harden x402 paid-action example responses#293

Open
TateLyman wants to merge 1 commit into
commandlayer:mainfrom
TateLyman:codex/x402-paid-action-no-store
Open

Harden x402 paid-action example responses#293
TateLyman wants to merge 1 commit into
commandlayer:mainfrom
TateLyman:codex/x402-paid-action-no-store

Conversation

@TateLyman
Copy link
Copy Markdown

Summary

  • mark x402 paid-action example JSON responses as Cache-Control: no-store
  • assert non-cacheable headers on successful/idempotent receipts and payment-error responses
  • sync package-lock.json with package.json so clean npm ci installs include @neondatabase/serverless

Why

The example links payment acceptance, agent execution, and emitted receipts. Those responses can include payment/action correlation metadata, so they should not be cached by browsers, proxies, or local tooling.

Verification

  • npm ci
  • node --test tests/x402-paid-action-receipt.test.js
  • git diff --check

Note: I also tried the full npm test suite after npm ci; it progressed past the SIWE dependency path, then hung on the ENS/provider-owned-name test path, so I stopped it and kept verification scoped to the files changed.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

@TateLyman is attempting to deploy a commit to the CommandLayer's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant