Skip to content

billing: guarded Base funding and x402 settlement - #8

Merged
halfaipg merged 2 commits into
mainfrom
codex/base-funding-core
Jul 27, 2026
Merged

billing: guarded Base funding and x402 settlement#8
halfaipg merged 2 commits into
mainfrom
codex/base-funding-core

Conversation

@halfaipg

Copy link
Copy Markdown

Summary

  • add immutable Base USDC/AIPG/ETH funding receipts backed by integer micro-USD credits
  • keep USDC, AIPG, ETH, and x402 independently default-off
  • add conversion-backed ETH receipts that credit only actual canonical Base USDC proceeds
  • journal x402 before settlement and unlock worker payout only after independent exact-transfer proof
  • add migration, operational caps, alerting, CLI reconciliation, docs, and canary runbook

Safety

  • migration 0018 must deploy before code
  • all new production flags stay off on merge
  • no real funds moved by this PR
  • credits are explicitly non-transferable and nonwithdrawable

Verification

  • 334 service/router tests passed; 7 environment-gated tests skipped in that run
  • all 7 Postgres concurrency tests passed separately
  • Alembic upgrade/check/downgrade/re-upgrade/check passed on disposable Postgres 14
  • pip-audit: no known vulnerabilities
  • Semgrep: no findings in changed money-path files
  • gitleaks staged scan: no leaks

@halfaipg
halfaipg merged commit b633c99 into main Jul 27, 2026
1 check passed
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