This repository was archived by the owner on Nov 11, 2026. It is now read-only.
Repository navigation
feat: add inactive test checkout and durable Stripe intake - #47
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The console has no checkout, payment recovery or signed Stripe intake. This adds the first test-only source stage for console#44 and platform#818. Samuel directs checkout and backend work to proceed in parallel.
User Impact
The new public buy page can select an admitted test product and open Stripe Checkout. A protected recovery page reads current payment facts. A confirmed payment does not claim that a Gateway exists. No real catalogue, live key or deployed binding is included. Existing
/api/*authentication stays unchanged.Why This Change Was Made
One Worker owns intake and one D1 transaction owns the receipt/outbox. The outbox sends references through the existing provisioning queue. No second provisioner or copied entitlement ledger is added. The backend contract remains provisional. The backend must retrieve current Stripe facts and validate the order, catalogue and trusted tenant binding before any effect.
This is the smallest coherent payment-intake stage. It includes durable intent before Stripe, stable retry parameters, signed events and recovery after a lost response. Existing-account linkage, billing portal, resize, destroy and live mode remain separate. The simplification pass retained these boundaries and removed an unconditional effect counter from the wire fixture. The fixture now rejects changed parameters for a reused key.
Evidence
Candidate:
6b297da65ad75413ac5e119f8aa15dc68ec59830. Base:8ef6f0f3586a9a04dfc25abe7e8241ffd3482762.pnpm lint,pnpm format:check,pnpm test:worker,pnpm build,pnpm build:worker,git diff --check: pass. Worker suite: 29 tests. The build includes TypeScript checks. Worker build is dry-run only.pnpm exec vitest run --project ui --browser.headless --maxWorkers=1 FILES: all 20 files and 73 tests pass in two bounded batches. The combined shell then exceeded the host memory bound before demo tests. No passing whole-command result is claimed.pnpm test:checkout: two active built-browser flows pass at desktop/mobile widths. The HTTPS harness uses the actual UI, Worker and D1. External Stripe and Turnstile remain synthetic. Missing, forged and invalidated cookies cause zero Stripe requests before creation and after uncertainty.rk_test_support also has positive/negative controls. Fresh full local ClawSweeper review completed on base8ef6f0f3586a9a04dfc25abe7e8241ffd3482762through final head6b297da65ad75413ac5e119f8aa15dc68ec59830. Qualified upstream runner:446dd257a7996b4b5226d20af42108e5a2f4e552. All 35 changed paths were covered. Result: patch correct; security cleared; shipped-entry proof sufficient; no actionable finding. Real provider and backend activation remain separate. The reviewer ran read-only source inspection, not target tests.No real Stripe sandbox or Turnstile acceptance occurred. D1/Queue/cron, hosted Access bypass, trusted backend mapping and current-fact effect validation remain activation gates. Live mode is rejected in code. Live mode, the first live price and first live webhook retain separate Deploy records.
Related: arcforgelabs/platform#1026; arcforgelabs/platform#814; arcforgelabs/platform#815; arcforgelabs/platform#818.
Exact-head GitHub checks: six pass, zero pending or failed. CI run passed frozen install, lint, format, Worker/UI tests, both demo suites, both builds and the accounts theme build. Dependency review, PR context and CodeQL also passed. The live merge state is CLEAN for the reviewed head.