Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
4b1aa49
Compose isolated Account login and first-invoice receiving
benhook1013 Nov 7, 2026
1ee099d
Reconcile checkout receiving with paid admission authority
benhook1013 Nov 7, 2026
0a71ffa
Carry corrected paid authority refusal proofs into checkout receiving
benhook1013 Nov 7, 2026
2bcba2d
Carry repaired first-invoice parent into isolated checkout
codex Nov 8, 2026
e804a3f
Merge commit 'e64c611a096ea194e0e6b8bfb4812713867d1726' into dot/acco…
codex Nov 8, 2026
13aa0d8
Merge commit 'c4afa79ed130f31704bcd45715de6bc4adbc3b5c' into dot/acco…
codex Nov 8, 2026
d8e3bb1
Merge commit '05b66e02d625477a7cc05ec3162ddeb1831f5a04' into dot/acco…
codex Nov 8, 2026
a97ae72
Merge commit 'a2876834427f35bb08c2c24d0282105689aea626' into dot/acco…
codex Nov 8, 2026
c1b26ea
Merge commit '9f79d6a4a91ae9e950e82ab6c9a470a8cde66a6e' into dot/acco…
codex Nov 8, 2026
38df187
Merge commit 'b1dc38e05dc37d068bfbe4367647502bcbc0a436' into dot/acco…
codex Nov 8, 2026
b9da602
Merge commit '3cc3d1839af80ae22c7f0e0ca2ca3d9ff7befd1a' into dot/acco…
codex Nov 8, 2026
13b112b
Merge commit '87c77156e39c2f780ad746a7653359b30f24af94' into dot/acco…
codex Nov 8, 2026
4885194
Merge commit '9da59420b0d89efdddba04961fcc345858328305' into dot/acco…
codex Nov 8, 2026
8677805
Merge commit '4f2bf307baedea4c805a409bd4042b57fe511a61' into dot/acco…
codex Nov 8, 2026
f824341
Fix checkout receiving OpenAPI lint errors
codex Nov 8, 2026
09089f1
Merge commit '54983d59b2d89c30fc777f63299999dbe350a2bb' into dot/acco…
codex Nov 8, 2026
f4e6870
Local topology proof only
codex Nov 8, 2026
f861007
Merge commit 'e98166bda7eaea24863ccfb9cb26faef9f227483' into dot/acco…
codex Nov 8, 2026
464860b
Merge commit 'c5f25d64043c707a4f7b9580133ffc98aaf5e537' into dot/acco…
codex Nov 8, 2026
7edc03f
Carry Hosted7 provisioning recovery through stack
codex Nov 8, 2026
026019d
Merge commit 'c98fa65b3f511b4a5522f6605cc30302531d2151' into dot/acco…
codex Nov 8, 2026
182c88c
Merge commit '202b57306fa8f2158b11e240426c8bd310364fcc' into dot/acco…
codex Nov 8, 2026
0aa4f72
Merge commit '79b25445e2686cc0f55e20c2a0b011f68d4f313d' into dot/acco…
codex Nov 8, 2026
16887c8
Merge commit '68040bc90dfbf9d0553754d9b273b67157ddcebd' into dot/acco…
codex Nov 8, 2026
a916db7
Merge commit 'e6898d92f54527650ed5f64b51be648c8b2b2c22' into dot/acco…
codex Nov 8, 2026
63287d1
Carry verified #3390 additive split into #3410
codex Nov 8, 2026
f74c77b
Carry verified #3390 CLI19 fixes into #3410
codex Nov 8, 2026
2052d44
Carry verified #3390 CLI21 fixes into #3410
codex Nov 8, 2026
3ac5952
Carry verified #3390 CLI21 fixture correction fixes into #3410
codex Nov 8, 2026
c917014
Carry verified #3408 V1041 lifecycle fixture repair into #3410
codex Nov 8, 2026
dbdbaa6
Carry verified #3390 CLI22 attestation and scoped test fixes into #3410
codex Nov 8, 2026
0dfb0b1
Carry #3414 CLI2 tracker corrections into #3410
codex Nov 8, 2026
ef9768a
Carry #3414 CLI3 cleanup and proof corrections into #3410
codex Nov 8, 2026
ad790fe
Carry #3414 CLI4 capability status correction into #3410
codex Nov 8, 2026
64544ee
Carry World CI phase diagnostics into #3410
codex Nov 8, 2026
43f0a5a
Carry Account CI stall diagnostics into #3410
codex Nov 8, 2026
4f3592f
Carry diagnostic lint and provisioning tracker corrections into #3410
codex Nov 8, 2026
36c726b
Carry validated CI cancellation guards into #3410
codex Nov 8, 2026
f2445a4
Carry validated authenticated receiving fixes into #3410
codex Nov 8, 2026
a080566
Carry validated authenticated receiving fixes into #3410
codex Nov 8, 2026
ad333a5
Carry bounded Account CI reliability experiment into #3410
codex Nov 8, 2026
a29f6c9
Carry authenticated receiving CLI3 fixes into #3410
codex Nov 8, 2026
d5fb7da
Carry authenticated receiving CLI4 fixes into #3410
codex Nov 8, 2026
20be794
Carry validated CI and JWKS repairs through #3410
codex Nov 8, 2026
9ebe4ad
Carry refreshed dependency locks into checkout receiving
codex Nov 8, 2026
47df568
Carry database-clock dispatch fence while preserving first-invoice co…
codex Nov 8, 2026
fe20a73
Carry complete smoke proof fingerprints into #3410
benhook1013 Nov 8, 2026
a0f9e4d
Carry tenant-qualified browser discovery through #3410
benhook1013 Nov 8, 2026
7ef08cf
Carry committed JOIN replay correction through #3410
benhook1013 Nov 8, 2026
4c898b8
Carry stable artifact snapshot correction through #3410
benhook1013 Nov 9, 2026
0667f02
Carry Hosted12 qualified selector and proof corrections through #3410
benhook1013 Nov 9, 2026
273a01d
Carry CLI27 JOIN attempt diagnostic correction through #3410
benhook1013 Nov 9, 2026
8241b01
Carry smoke intake and optional capture fixes through #3410
benhook1013 Nov 9, 2026
994fdb8
Carry truthful JOIN replay and tenant diagnostics through #3410
benhook1013 Nov 9, 2026
8d0be7e
Carry tenant-qualified JOIN integration fixture correction through #3410
benhook1013 Nov 9, 2026
353abac
Carry attempt-qualified failure-log artifact retention through #3410
benhook1013 Nov 9, 2026
a797e89
Carry immutable Gateway client construction through #3410
benhook1013 Nov 9, 2026
b7ac105
Carry PostgreSQL clock fix through #3410
benhook1013 Nov 9, 2026
abdf087
Carry bounded PLAY transition CI and receiving fixes through #3410
benhook1013 Nov 9, 2026
a06441f
Carry complete V1039 migration history assertion
codex Nov 10, 2026
101fd36
Merge commit 'bfff59d67385a78c0590eef037119d1143041836' into dot/3410…
codex Nov 10, 2026
714914f
Preserve published #3410 ancestry with tested migration-history check…
benhook1013 Nov 10, 2026
397bc54
Receive corrected #3408 dispatch fixture and preserve published ancestry
benhook1013 Nov 10, 2026
79974f5
Return unauthorized for invalid checkout owner bearer credentials
benhook1013 Nov 10, 2026
e69bae8
Order controlled provider success after real checkout consent
benhook1013 Nov 10, 2026
89d2565
Receive current reviewed parent while preserving #3410 fixes and proof
benhook1013 Nov 10, 2026
b8bcfc6
Order shared Redis composition before Boot Redis defaults
benhook1013 Nov 10, 2026
3207493
Receive reviewed capacity corrections while preserving #3410 source
benhook1013 Nov 10, 2026
be992ac
Preserve invalid input and contracted checkout error outcomes
benhook1013 Nov 10, 2026
5f258be
Reconcile checkout fixes with the published JWKS parent
benhook1013 Nov 10, 2026
5026019
Use the supported mock HTTP request builder in checkout proof
benhook1013 Nov 10, 2026
ddd0a4f
Carry published JWKS failure classification into #3410
benhook1013 Nov 10, 2026
2b448e5
Carry published JWKS RV-only correction into #3410
benhook1013 Nov 10, 2026
cc77f2c
Reconcile held checkout fixes with tested capacity parent
benhook1013 Nov 10, 2026
94c0b57
Separate checkout conflict from signer outages and qualify isolated H…
benhook1013 Nov 10, 2026
b5d0320
Fail closed on checkout Redis rate-limit errors and strengthen receiv…
benhook1013 Nov 10, 2026
452cec3
Align #3410 with published capacity policy and proof corrections
benhook1013 Nov 10, 2026
d69384d
Compose the canonical rate script in registered checkout proof
benhook1013 Nov 10, 2026
1ce8b97
Carry first-invoice holds while retaining existing checkout authentic…
benhook1013 Nov 10, 2026
86c0b39
Carry current first-invoice parent into checkout receiving
benhook1013 Nov 11, 2026
f73c7b3
Format checkout receiving controller test
benhook1013 Nov 11, 2026
5968d77
Merge commit 'b80031f248cc9c257ee5cb86a1893e85db17902f' into HEAD
benhook1013 Nov 11, 2026
3b4fec4
Merge commit '776b5cd3e674f501ef9f877f8fce15845f50b540' into HEAD
benhook1013 Nov 11, 2026
830ed70
Prove exact bound checkout through registered receiving
benhook1013 Nov 11, 2026
05aae1c
Carry original-operation checkout recovery into registered receiving
benhook1013 Nov 11, 2026
8ce1deb
Format registered checkout proof
benhook1013 Nov 11, 2026
f80fd43
Merge commit '4ec02b05a84b38f37d8714ed3ff36349eaf934fb' into HEAD
benhook1013 Nov 11, 2026
b822c09
Merge commit 'f7412187e9eb152489b8e2d30d8a1e4b37a57a52' into HEAD
benhook1013 Nov 11, 2026
d8ba21a
Merge Account lifecycle fixture schema repair into checkout receiving
benhook1013 Nov 11, 2026
99a6f8a
Map checkout owner transaction failures to unavailable
benhook1013 Nov 11, 2026
ca4db72
Carry current first-invoice parent without changing checkout source
benhook1013 Nov 11, 2026
16d4365
Carry capacity conservation checkpoint into checkout receiving
benhook1013 Nov 11, 2026
5e46b16
Qualify checkout replay accounting and receiving boundaries
benhook1013 Nov 11, 2026
0c50e3c
Carry verified capacity execution fixes into authenticated checkout r…
benhook1013 Nov 11, 2026
dad692e
Use the first Stripe handle from the original loading context
benhook1013 Nov 11, 2026
f43cbf4
Carry parent recovery into authenticated checkout receiving
benhook1013 Nov 11, 2026
4051ec0
Repair checkout review findings and carry transfer fixes
benhook1013 Nov 11, 2026
34a2b19
Carry qualified physical handoff fixture repairs into #3410
benhook1013 Nov 11, 2026
abfb081
fix(checkout): recover retained operations across sessions
benhook1013 Nov 11, 2026
8d4a26e
Carry capacity fixes and repair receiving contract and Redis health f…
benhook1013 Nov 11, 2026
b27ed7e
fix(auth): carry verified HTTP client source into Account login
benhook1013 Nov 11, 2026
c870745
Carry capacity review repairs and qualify retained-positive guard ass…
benhook1013 Nov 11, 2026
bbce425
Carry qualified admission SQL observer fix into receiving stack
benhook1013 Nov 11, 2026
2dbb1bc
Preserve checkout changes while carrying qualified Account fixtures
benhook1013 Nov 12, 2026
47de014
Preserve checkout child with exact CLI-ready capacity carry
benhook1013 Nov 12, 2026
e34a1d3
Carry exact aborted-original transfer fixes through retained stack
benhook1013 Nov 12, 2026
cc438e1
Carry qualified final admission review fixes into #3410
benhook1013 Nov 12, 2026
2396a89
Carry verified Account capacity expiry proof while preserving child a…
benhook1013 Nov 12, 2026
b68e274
Carry qualified historical FINAL witness without changing child scope
benhook1013 Nov 12, 2026
05d57e3
Merge commit '4646cb06be7642dfc3c06b09fb275502237a3c44' into HEAD
benhook1013 Nov 12, 2026
986ef0f
Merge commit '6495726b5eee6e4a5905cada391029745e5aeb98' into HEAD
benhook1013 Nov 12, 2026
b292da1
Merge commit '55b45546da808380853ba496b7ff5d5bf26612eb' into HEAD
benhook1013 Nov 12, 2026
77e7b39
Carry atomic admission retention onto checkout receiving
benhook1013 Nov 12, 2026
661d9c9
Carry corrected retention proof fixture onto checkout receiving
benhook1013 Nov 12, 2026
e23acd9
Carry final retention fixture correction
benhook1013 Nov 12, 2026
d1da771
Carry bounded recovery and transfer custody onto checkout receiving
benhook1013 Nov 12, 2026
418d056
Carry bounded admission and initial custody onto checkout receiving
benhook1013 Nov 12, 2026
947d222
Carry TLS replacement and retention fixes onto checkout receiving
benhook1013 Nov 12, 2026
5768b51
Carry credential-free capacity evidence into checkout receiving
benhook1013 Nov 12, 2026
3269924
Carry staged capacity lineage into authenticated checkout
benhook1013 Nov 12, 2026
2e80665
Carry Account capacity fixes into authenticated checkout
benhook1013 Nov 12, 2026
aec7888
Carry disabled Account retention qualification into checkout
benhook1013 Nov 12, 2026
7c27921
Carry typed capacity outcomes into checkout receiving
benhook1013 Nov 12, 2026
3bbbcf4
Carry the current Account checkout receiving base
benhook1013 Nov 12, 2026
e61301f
Bound Account sign-in and preserve exact uncertain retry
benhook1013 Nov 12, 2026
3d04a3b
Carry tested sign-in and Gateway fixes onto current Account receiving
benhook1013 Nov 12, 2026
1c7a25d
Preserve checkout owner request deadlines and signer failures
benhook1013 Nov 12, 2026
281d78b
Reconcile checkout receiving with verified first-invoice parent
benhook1013 Nov 12, 2026
211e40c
Carry tested region lease deadlines into checkout receiving
benhook1013 Nov 12, 2026
0a27f53
Fix Account reauthentication response OpenAPI structure
benhook1013 Nov 12, 2026
b1e92c9
Carry tested transfer evidence expiry into checkout receiving
benhook1013 Nov 12, 2026
159419f
Carry deterministic deadline proof setup
benhook1013 Nov 12, 2026
24c31b5
Carry bounded gameplay handoff and TLS fixes
benhook1013 Nov 12, 2026
c29ce10
Carry published-stub and World call compatibility
benhook1013 Nov 12, 2026
a6495e2
Carry bounded World placement and contender lease custody
benhook1013 Nov 13, 2026
3d726bd
Carry original capacity and region custody guards
benhook1013 Nov 13, 2026
4afcd5b
Carry Account checkout repairs into the trusted ingress composition
benhook1013 Nov 13, 2026
67e7887
Carry original capacity and region custody guards
benhook1013 Nov 13, 2026
a757b88
Merge commit '67e78872c48ae7a9ea7f89391115726c500e90e5' into codex/ga…
benhook1013 Nov 13, 2026
963ef99
Preserve exact historical billing replay in the isolated API schema
benhook1013 Nov 13, 2026
50c2872
Merge commit 'd153a7bb7b2e02bce4d183cf02bb6f19f4aeb3a6' into codex/ga…
benhook1013 Nov 13, 2026
3532ae1
Carry reviewed capacity and checkout corrections
benhook1013 Nov 13, 2026
5d02048
Carry original capacity and region custody guards
benhook1013 Nov 13, 2026
38e8275
Carry verified capacity replay and handoff safeguards
benhook1013 Nov 13, 2026
d287752
Carry bounded initial timeline and corrected owner proofs
benhook1013 Nov 13, 2026
4c0e4fa
Receive the complete checkout transport and browser proof
benhook1013 Nov 13, 2026
11d701b
Carry bounded capacity execution and align the readback boundary
benhook1013 Nov 13, 2026
ae4ba15
Carry bounded capacity evidence and exact handoff fixes
benhook1013 Nov 13, 2026
b39088d
Stage checkout browser and its CI entrypoint on the ingress receiver
benhook1013 Nov 13, 2026
db3e66b
Carry bounded capacity evidence and exact handoff fixes
benhook1013 Nov 13, 2026
03537f3
Preserve the database-time capacity reservation entry point
benhook1013 Nov 13, 2026
b44e00d
Move the browser and its CI entrypoint to the ingress receiver
benhook1013 Nov 13, 2026
6360b63
Carry exact capacity closure and frozen transfer fixes
benhook1013 Nov 13, 2026
011ebdd
Carry exact capacity closure and frozen transfer fixes
benhook1013 Nov 13, 2026
d42cba0
Carry reviewed Account settlement evidence into checkout receiving
benhook1013 Nov 13, 2026
f7072c3
Carry audited no-send terminal settlement into checkout receiving
benhook1013 Nov 13, 2026
ddb741b
Merge commit 'e087b66bbe8028fdd96bba811d1809598bf8273c' into HEAD
benhook1013 Nov 13, 2026
8df736d
Merge commit '9a0351ed0bac57703def11be93b0eff241847b87' into HEAD
benhook1013 Nov 13, 2026
8604055
Merge commit '5a2b522732b9ec7188a1ec83a8313c7a47a85f8c' into HEAD
benhook1013 Nov 13, 2026
53a5072
Merge commit 'e88514003dc94ac8bf78e6eaa6e3c05d3b9e37c2' into HEAD
benhook1013 Nov 13, 2026
f7e9e00
Merge commit '4fdc1afbc5f0d9f67265f01070498fab32df78c3' into HEAD
benhook1013 Nov 13, 2026
a8339e7
Merge commit 'a1b34694e705585a2d75d7a50c1849bdf85b2698' into HEAD
benhook1013 Nov 13, 2026
57d1be4
Merge commit '8ac551a61bc99caecf716d5839ae293688caa22a' into HEAD
benhook1013 Nov 13, 2026
debe52e
Merge commit 'a0024069cfd2a4eeb7ad012eade348f0b1a9c64e' into HEAD
benhook1013 Nov 13, 2026
8ba800e
Merge commit '88e149b06f203abd2223fadc4c5ffc3cb94b3280' into HEAD
benhook1013 Nov 13, 2026
2e32c50
Merge commit 'ba283b6d7c0b9dc4755c0d820aba894a2a55b7a5' into HEAD
benhook1013 Nov 13, 2026
9f47891
Merge commit '887ba2800700ef99ddb287990eb8ce44946c47c1' into HEAD
benhook1013 Nov 13, 2026
d9a615b
Close checkout review gaps in body deadlines and retained billing replay
benhook1013 Nov 13, 2026
1bf97c1
Carry partitioned Gameplay integration suites through #3410
benhook1013 Nov 13, 2026
15940aa
Merge commit '1bf97c147d2a5d6088ff1ebcd9b870027d83c028' into HEAD
benhook1013 Nov 13, 2026
f900306
Carry paid credential current-source validation through #3410
benhook1013 Nov 13, 2026
363bb56
Carry exact Gameplay review fixes through #3410
benhook1013 Nov 13, 2026
ceb7c48
Apply the Account and Gateway login review fixes
benhook1013 Nov 13, 2026
c486b62
Retry signed success only for exact retained first invoices
benhook1013 Nov 13, 2026
1c0eef2
Carry the reviewed region proof boundary through #3410
benhook1013 Nov 13, 2026
5001bad
Carry exact receiving fixes through #3410
benhook1013 Nov 13, 2026
bac6039
Carry billing verification narrowing and preserve retained legacy bil…
benhook1013 Nov 13, 2026
41da525
Prove overlapping Account billing verification and exact rollback
benhook1013 Nov 13, 2026
a773c01
Carry exact receiving fixes through #3410
benhook1013 Nov 13, 2026
442b94f
Fix Account authority responses and Gateway login schema
benhook1013 Nov 14, 2026
cfc9aee
Carry the current Gameplay parent into #3410
benhook1013 Nov 14, 2026
1e8fdc2
Merge commit '0d86b74b4dbdb447efc3a283fbb7abf4c5f8c3d2' into HEAD
benhook1013 Nov 14, 2026
6ab6783
Merge commit '83e0fc82f716dd72af500d6a815e5e945e187d5a' into HEAD
benhook1013 Nov 14, 2026
624d20e
Merge commit '70389f720b155b045f44361b4e27b39e6d999ac3' into HEAD
benhook1013 Nov 14, 2026
33986c6
Merge commit '0634b01945527ff77c4c059f421cfc690a2caa42' into HEAD
benhook1013 Nov 14, 2026
9a0716a
docs(authz): distinguish retained first-invoice reads from mutations
benhook1013 Nov 14, 2026
e8a77ee
Merge commit '9d21c2d7f38e592e56e0853452d4e7c7e2f66116' into HEAD
benhook1013 Nov 14, 2026
7926f66
Align account recovery tests with retained denial and payment conflict
benhook1013 Nov 14, 2026
60b9982
Format account conflict assertion
benhook1013 Nov 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -539,15 +539,21 @@ The private self-service game-creation reauthentication owner binds exact origin

### Hosting First-Invoice Checkout

The Account-owned HTTPS owner surface is `/billing/hosting/subscriptions/{subscriptionId}/first-invoice`, externally prefixed by `/api/account`. It is an account-scoped billing-owner operation, not tenant-role authority: the exact current `control-ui` Account subject must own the subscription and selected instrument. Billing suspension does not remove this recovery surface. The isolated checkout receiving slice #3410 owns the HTTPS controller and browser composition. This Account producer keeps registration held. Route activation requires a physical Gateway-to-Account proof that Account observes a secure request through the authenticated owner transport. A direct Account TLS test supplies only the Account listener proof; the [Stripe owner contract](./stripe-integration.md#first-invoice-confirmation-and-completion) and existing retention, deletion, backup, custody and registration gates remain binding.
The isolated receiving login is public `POST /api/account/auth/login` at Gateway. Its bounded JSON body is `{requestId, callerContextId, email, secret}`, with non-nil request/context UUIDs and one enabled ordinary primary secret. Gateway authenticates Account's exact same-namespace URI SAN before releasing credentials over the narrow mTLS `AccountControlUiAuthenticationService/AuthLogin` RPC. Account permits only the exact same-namespace Gateway workload and delegates to its durable Account-only issuer and current-actor owners. Gateway's existing header-trust WebFilter supplies a process-private canonical source proof; the controller does not interpret public source headers as proof. The closed RPC requires one canonical literal client address and the fixed HTTP transport class, and Account carries that transient source into the sign-in owner. Missing Gateway proof returns no-store HTTP 503 before credential forwarding; absent, duplicate, malformed or unsupported wire source fields are rejected before issuance. Source metadata does not change the retained v1 credential-request MAC or reset its replay budget. Success is `{status: SUCCESS, data: {accountId, authToken, expiresAt}}`, with no-store headers. Exact retries retain the same issuance; changed input conflicts. Credential-bearing replay uses a constant-time MAC comparison and an Account-owned, serialized five-failure budget bound to the immutable original issuance operation and request. Failed comparisons commit independent immutable attempt records before returning the conflict; after five failures, that request is denied before credential-MAC access. Exact retries below the budget recover the original credential without primary reauthentication or another OTP consumption, and never reset the budget. Scope, caller or context conflicts and unavailable custody are not counted as credential failures. This short recovery-request budget changes neither Account security state nor other requests and does not replace the broader credential-abuse policy in [ADR 0034](../../decisions/adr-0034-layered-abuse-controls-without-attacker-triggered-account-locks.md). The direct legacy Account HTTP login is rejected in this isolated mode and cannot provide a checkout fallback. Production legacy-login drift elsewhere remains unchanged.

- `GET` returns the exact existing invoice, PaymentIntent, selected instrument, amount, currency, immutable `tupleDigest`, expected current subscription row version, expiry, nullable retained `confirmationRequestId`, nullable retained `openingRequestId` before first consent, current `authorizationVersion` (zero before first consent) and `AWAITING_PAYMENT`, `COMMITTED`, or terminal unpaid `CANCELED` state. A canceled checkout offers no payment authorization. `amount` is a positive decimal integer string in Stripe minor units, not a floating-point or major-unit amount. No client secret appears in status, URLs, logs or audit. A null `confirmationRequestId` means only that no confirmation row is currently committed. When `openingRequestId` is present, explicit pre-row renewal must use that exact original operation. That absence does not authorize a replacement request or charge. Recovery semantics remain owned by the [Stripe contract](./stripe-integration.md#first-invoice-confirmation-and-completion).
- `POST /reauthenticate` takes distinct stable evidence `requestId` and `confirmationRequestId` plus one enabled ordinary login secret over HTTPS. A proof usable for new billing consent requires `billingBinding` with `originalRequestId`, `expectedRowVersion`, `expectedAuthorizationVersion`, `acceptedTupleDigest`, `invoiceExpiresAt`, and `authorizationPurpose`; `confirmationRequestId` names that binding's authorization request. Use `INITIAL_CONFIRMATION` with the original request ID and version zero for opening proof, `PRE_ROW_RENEWAL` with the retained original ID and a distinct authorization request at version zero for pre-row recovery, or `FOLLOWUP_RENEWAL` for a later retained authorization version. Account returns a newly bound proof only after actual primary authentication and exact owner binding. A replayed unbound historical `evidenceId` remains non-authorizing for new consent. `SELF_SERVICE_GAME_CREATION` evidence is rejected for payment. The [Stripe owner contract](./stripe-integration.md#durable-opening-proof-and-explicit-pre-row-renewal) defines the binding and recovery behavior.
The first-party `/account/subscriptions/{subscriptionId}/checkout` route obtains its bearer only from that login, holds it in memory, restricts authenticated requests to the exact owner endpoints, and unmounts checkout on expiry, local sign-out, session replacement or route departure. The browser bounds login dispatch and response-body consumption to ten seconds. An uncertain response lets the user re-enter the original secret and retry with the same request IDs for up to one minute from first submission. Only the original IDs, email and deadline remain in browser memory for that retry. Authenticated checkout requests use the same ten-second deadline across fetch and response-body consumption. The browser cancels expired requests, discards late responses and leaves payment retries under explicit user control. Local sign-out clears this UI's credentials; it does not claim server-side token revocation. Navigation, Back/Forward, reload and remount never authorize a provider command.

The Account-owned HTTPS owner surface is `/billing/hosting/subscriptions/{subscriptionId}/first-invoice`, externally prefixed by `/api/account`. When the protected signer source is unavailable, the owner endpoints return retryable HTTP 503 and preserve the browser’s current session for an explicit retry. It is an account-scoped billing-owner operation, not tenant-role authority: the exact current `control-ui` Account subject must own the subscription and selected instrument. Billing suspension does not remove this recovery surface. Deployment qualification requires that the authenticated Gateway-to-Account HTTPS transport leaves Account observing a secure request. The handlers register only in the explicitly isolated, default-off controlled-fixture composition; this does not enable actual provider or customer-data intake. Live provider/customer qualification and the applicable retention, deletion, backup, custody and deployment prerequisites remain necessary before production intake, as defined by the [Stripe owner contract](./stripe-integration.md#first-invoice-confirmation-and-completion).

- `GET` returns the exact existing invoice, PaymentIntent, selected instrument, amount, currency, immutable `tupleDigest`, expected current subscription row version, expiry, nullable retained `confirmationRequestId`, nullable server-verified `preRowOriginalRequestId`, current `authorizationVersion` (zero before first consent) and `AWAITING_PAYMENT`, `COMMITTED`, or terminal unpaid `CANCELED` state. A canceled checkout offers no payment authorization. `amount` is a positive decimal integer string in Stripe minor units, not a floating-point or major-unit amount. No client secret appears in status, URLs, logs or audit. A null `confirmationRequestId` means only that no confirmation row is currently committed; it does not prove that an original operation has stopped. That absence does not authorize a replacement request or charge. Before a confirmation row exists, `preRowOriginalRequestId` exposes only the original operation identity from an exact owner/subscription/tuple/row-version/expiry-verified durable fence at authorization version zero; inconsistent retained evidence refuses the read instead of appearing absent. A committed confirmation takes precedence and makes this pre-row reference null. Navigation or replacement login may recover this identity through a fresh authenticated owner read, never earlier consent or proof. Resumption requires a separate explicit renewal action, fresh unchanged charge consent and primary authentication bound to `PRE_ROW_RENEWAL` with a distinct authorization request. Expired status is observational and never extends renewal eligibility. Recovery semantics remain owned by the [Stripe contract](./stripe-integration.md#first-invoice-confirmation-and-completion).
- `POST /reauthenticate` takes distinct stable evidence `requestId` and `confirmationRequestId` plus one enabled ordinary login secret over HTTPS. A new billing proof requires `billingBinding` with `originalRequestId`, `expectedRowVersion`, `expectedAuthorizationVersion`, `acceptedTupleDigest`, `invoiceExpiresAt`, and `authorizationPurpose`; `confirmationRequestId` names that binding's authorization request. Use `INITIAL_CONFIRMATION` with the original request ID and version zero for opening proof, `PRE_ROW_RENEWAL` with the retained original ID and a distinct authorization request at version zero for pre-row recovery, or `FOLLOWUP_RENEWAL` for a later retained authorization version. Account returns a newly bound proof only after actual primary authentication and exact owner binding. Omitting `billingBinding` is allowed only to replay the exact previously retained unbound historical request; it returns the original evidence and creates no new evidence. A fresh unbound billing request returns HTTP 409 before evidence is written, and any replayed unbound evidence remains non-authorizing for consent or payment. `SELF_SERVICE_GAME_CREATION` evidence is rejected for payment. The [Stripe owner contract](./stripe-integration.md#durable-opening-proof-and-explicit-pre-row-renewal) defines the binding and recovery behavior.
- `POST /confirm` takes the immutable confirmation `requestId`, `expectedRowVersion`, `reauthenticationEvidenceId`, exact `acceptedTupleDigest` and explicit `acceptCharge=true`. The server resolves the retained commercial tuple; client amounts, instrument substitutions and provider defaults cannot change it. An exact retry retains the original operation and provider idempotency identity. Changed request fields conflict.
- `POST /renew` takes the original confirmation `requestId`, distinct fresh `authorizationRequestId`, `expectedAuthorizationVersion`, original `expectedRowVersion`, fresh `reauthenticationEvidenceId`, unchanged `acceptedTupleDigest` and explicit `acceptCharge=true`. For pre-row renewal, use expected authorization version zero and `PRE_ROW_RENEWAL` proof from `/reauthenticate`; after a retained first consent, use the exact current version and `FOLLOWUP_RENEWAL` proof. Exact renewal replay is read-only; changed evidence, consent, payment identity or losing authorization version conflicts. Renewal never resets invoice expiry or provider command history. The [Stripe owner contract](./stripe-integration.md#durable-opening-proof-and-explicit-pre-row-renewal) owns the recovery behavior and single-command boundary.
- The narrowly authorized owner response returns provider status and a client secret only for `requires_action`, with `Cache-Control: no-store`. Stripe.js `handleNextAction` completes provider authentication for that existing intent. A browser result never completes Account fulfillment; the owner polls status until the signed server completion has committed and independently read back.
- Transport or provider failures are uncertain, not evidence that no payment occurred. `FIRST_INVOICE_PROVIDER_UNCERTAIN` and `FIRST_INVOICE_EVIDENCE_REFUSED` preserve the original operation; clients must not create a replacement request or charge to escape an unknown result.

The separate `POST /billing/hosting/webhook` adapter accepts only a single bounded `Stripe-Signature` header and the exact raw UTF-8 JSON body, at most 256 KiB, over actual HTTPS. It accepts no browser bearer as provider authority. Signature validation, immutable intake, retained invoice linkage, fresh provider observations and Account completion remain independent predicates. Only independently read-back `COMMITTED` completion is acknowledged with HTTP 200; retained `RECONCILING` state returns 503 so the same signed event can be redelivered without another payment command. Gateway forwards only this exact signed-event path and the four owner operations over verified HTTPS without automatic retries or redirects; forwarded scheme or identity headers cannot establish transport security.

### Sensitive Actions and Gameplay Handoff

- Account identity/factor changes, new real-money charges, saved payment-instrument changes, global deletion, billing-owner transfer, and global administration are HTTPS-only account/control operations. Clients may be web, native, or CLI, but a Telnet gameplay connection cannot complete them or receive elevated authority.
Expand Down
12 changes: 10 additions & 2 deletions design/architecture/microservices/account-service/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,17 @@ The source-only Control-UI issuance preparation reads the configured margin thro

The gRPC schemas for this service live in [`protos/account/v1`](../../../../protos/account/v1). Use `./gradlew generateProto` to regenerate Java stubs when the definitions change.

## Held first-invoice checkout configuration
## Isolated First-Invoice Receiving Configuration

The prepared [first-invoice owner](./stripe-integration.md#first-invoice-confirmation-and-completion) has no enabling flag or automatically registered bean/controller. Explicit composition requires the Account Stripe client, a protected webhook signing secret (`firemud.payment.hosting-webhook-secret`), a public Stripe publishable key for the provider-authentication client, finite provider transport limits and genuine current Account/control-ui owners. Secrets must not be logged or exposed through property diagnostics. Separate versioned billing-purpose reauthentication policies and exact commercial billing-policy rows are required; absent rows refuse and no migration seeds a default. Configuration alone does not clear registration or custody gates.
The [first-invoice owner](./stripe-integration.md#first-invoice-confirmation-and-completion) is registered only with the `isolated-checkout-receiving` profile and `firemud.account.checkout-receiving.enabled=true`. Combining that profile with `prod` or `production` refuses startup. This selects a controlled-fixture-only isolated receiving composition. It does not authorize intake of real provider or customer data, production billing intake, live activation or privacy qualification. Default production configuration registers none of its new handlers.

Account requires explicit `firemud.grpc.workload-namespace`, `firemud.account.checkout-receiving.private-signer-root`, `public-signer-root` and `control-ui-keyring-root`; the dedicated control-ui keyring must remain separate from signer roots. All three roots must be existing mounted directories with absolute normalized paths. Startup resolves their physical paths and refuses missing or unresolvable roots and custody equality or ancestor/descendant overlap with either signer root, including symlink aliases. This startup check does not protect against privileged later mount replacement. The shared explicit-import `AccountProtectedJwksSourceConfiguration` owns the single API-binding, ConfigMap-client and trusted-source graph, including the existing protected path and namespace/incarnation checks. Checkout does not provision or duplicate those sources. Delivered named isolated inputs are `accountCheckoutIsolatedCoordinationUri`, `accountCheckoutIsolatedAcknowledgements` and `accountCheckoutIsolatedStripeClient`; the real Lettuce pinned provider and existing Stripe SDK owners consume them. Explicit hosting catalog, reconciliation limits/recovery policy and the protected webhook signing secret (`firemud.payment.hosting-webhook-secret`) are also required. No live SDK transport or credential is provisioned.

Gateway uses the same isolated profile/selector plus `firemud.account.checkout-receiving.workload-namespace`, `account-https-base-url` and `account-ca-cert-path`; its ordinary gRPC endpoint and file-backed mTLS client configuration identify Account independently. Gateway `firemud.account.checkout-receiving.rate-limit-decision-timeout-ms` defaults to 2,000 ms and must be between 1 and 30,000 ms. It bounds the deferred Redis rate-limit decision; expiry cancels that subscription and returns the existing no-store 503 without forwarding or accepting a late allow. Both incoming HTTP listeners must actually use TLS. Gateway forwards neither identity headers nor an asserted secure scheme. The frontend uses the current HTTPS origin and explicitly supplied public Stripe key; missing provider-authentication configuration refuses checkout.

Before using the isolated login listener with a real ingress, verify that direct clients and other workloads cannot reach it through an address trusted for forwarded headers. The selected ingress must replace client-supplied forwarding and canonical source headers before forwarding to Gateway. A matching private CIDR alone supplies no evidence of that topology. Retain exact listener reachability and header-replacement proof before qualifying the source for per-client abuse enforcement.

Separate versioned billing-purpose reauthentication policies and exact commercial policy rows remain necessary; absent rows refuse and migrations seed no defaults. Category-specific privacy/finance-approved finite retention, minimization, deletion, backup/provider consequences and deployed source custody remain unqualified activation obligations. No boolean in this receiving composition supplies those approvals.

## Canonical Gameplay LOGIN Receiving

Expand Down
Loading
Loading