Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
1575706
fix(account): require membership for private realm discovery
benhook1013 Sep 22, 2026
98f76f7
docs(alignment): mark Unit 1A review active
benhook1013 Sep 22, 2026
6c0e003
docs(game-session): align join-required lifecycle
benhook1013 Sep 22, 2026
1cb9557
fix(game-session): decouple player login from instance owner
benhook1013 Sep 22, 2026
1dc0ddb
fix(account): remove unsupported external link ingress
benhook1013 Sep 22, 2026
52f44be
Merge #2839 final 5C/5D parent into Unit 1A
benhook1013 Sep 23, 2026
788a8d1
fix(account): contain incomplete subscription creation
benhook1013 Sep 23, 2026
300cab6
fix(account): make gameplay login globally scoped
benhook1013 Sep 23, 2026
60a4570
fix(auth): isolate relogin and recovery requests
benhook1013 Sep 23, 2026
985391e
fix(auth): fail closed at bootstrap authority seams
benhook1013 Sep 23, 2026
cbaf103
docs(review): record Unit 1A Cycle 9
benhook1013 Sep 23, 2026
b559d65
docs(review): reconcile Unit 1A billing status
benhook1013 Sep 23, 2026
fd3d775
Bind profile access to exact account and tenant membership
benhook1013 Sep 23, 2026
b9c155d
Fail closed on unauthenticated factor changes
benhook1013 Sep 23, 2026
cde02b0
Fail closed on missing or ambiguous tenant entitlements
benhook1013 Sep 23, 2026
3db9dbb
docs: route Unit 1A admission outcome finding to 1B
benhook1013 Sep 23, 2026
0e2906a
fix: separate entitlement authority outages in Unit 1A
benhook1013 Sep 23, 2026
46aa4c8
fix: retain billing-specific connect-token denial
benhook1013 Sep 23, 2026
ef1f94a
docs: record Unit 1A registration bypass and provider scope
benhook1013 Sep 23, 2026
96b55df
Merge branch 'codex/5c-5d-successor' into codex/unit-1a-identity-enti…
benhook1013 Sep 24, 2026
208019f
Merge commit '932dcabf5978b419bcfbea7bf058d04a2879b5fb' into codex/un…
benhook1013 Sep 24, 2026
ecd119b
Merge commit 'd150d4776fdd46fd0dc764c148f0a671b0dbe08e' into codex/un…
benhook1013 Sep 24, 2026
633a578
Merge branch 'codex/5c-5d-successor' into codex/unit-1a-identity-enti…
benhook1013 Sep 24, 2026
d284bc7
Merge branch 'codex/5c-5d-successor' into codex/unit-1a-identity-enti…
benhook1013 Sep 25, 2026
96667a1
Merge #2839 pre-review correction into Unit 1A successor
benhook1013 Sep 27, 2026
4e1de6d
Tighten Unit 1A admission and account-switch boundaries
benhook1013 Sep 27, 2026
a9aac94
Reconcile Unit 1A identity with published 5C/5D parent
benhook1013 Sep 27, 2026
2c12c13
Keep account admission and LOGIN identity boundaries distinct
benhook1013 Sep 27, 2026
35c7b4a
Reconcile Unit 1A identity child with 5C/5D parent
benhook1013 Sep 27, 2026
1f42f38
Map malformed Account discovery and OTP input to stable errors
benhook1013 Sep 28, 2026
3dd476e
Document retryable bootstrap authority outages
benhook1013 Sep 28, 2026
671d04d
Classify Account authority outages and recovery delivery diagnostics
benhook1013 Sep 29, 2026
c409937
Fail close stale login context and malformed pointer scope
benhook1013 Sep 29, 2026
16a5392
Regenerate gRPC reference from current proto contracts
benhook1013 Sep 29, 2026
57fb31a
Merge remote-tracking branch 'origin/codex/5c-5d-successor' into code…
benhook1013 Sep 30, 2026
1d4c62e
Reconcile identity authority with published transaction parent
benhook1013 Sep 30, 2026
9e33584
Merge commit '7921ccd627722083cdaaf148e5efe5d05e3c88d0' into codex/pr…
benhook1013 Sep 30, 2026
6db9683
Merge commit '64ddb1ec6be8194da4475ee1cfb3d2df3af1b261' into codex/pr…
benhook1013 Oct 1, 2026
bdba130
Merge durable review-fix evidence parent
benhook1013 Oct 1, 2026
6e1084e
Merge corrected durable finding evidence parent into Unit 1A
benhook1013 Oct 1, 2026
7b4a594
Merge commit '49716202b9d5f8ee03e0a20ab8bb87a7836d0222' into codex/pr…
benhook1013 Oct 1, 2026
a69da28
Reconcile identity-entitlement boundary onto published controller parent
benhook1013 Oct 1, 2026
3a9020f
Merge commit '8c782e36df3ea7684e959d069febacf241d405b4' into codex/pr…
benhook1013 Oct 1, 2026
041f050
Merge commit 'ca26727331d45f0fffa4aa1f04bc7dcc2fb3f9b4' into codex/pr…
benhook1013 Oct 1, 2026
382d11e
Merge commit '3e2d734b8c9e3c1896771ca8c6f404c064ce2592' into codex/pr…
benhook1013 Oct 1, 2026
8875ad6
Merge commit 'd186af83da9cbe17e8882b26389d12253cb55dcb' into codex/pr…
benhook1013 Oct 1, 2026
aaa1309
fix(account): consume initial CLI presentation and doc findings
benhook1013 Oct 1, 2026
e9df29a
Align bootstrap discovery errors and login proof
benhook1013 Oct 1, 2026
c169eba
Preserve identity authority on repaired review parent
benhook1013 Oct 1, 2026
ec396b2
Keep identity authority stacked on completed footer repair
benhook1013 Oct 1, 2026
5170f4d
Merge commit '39062e21516b110beb3bec90466d71c49b5d70d2' into codex/pr…
benhook1013 Oct 1, 2026
a849a73
Merge remote-tracking branch 'origin/develop' into codex/pr2840-clean…
benhook1013 Oct 1, 2026
0a950a8
Fix authenticated denial status and cross-tenant login cleanup
benhook1013 Oct 1, 2026
340d7e4
Clarify implementation tracking and billing request authority
benhook1013 Oct 1, 2026
4c70506
Merge commit '24de13120e2778478b25559bfb4cb1d3315b85e2' into codex/pr…
benhook1013 Oct 1, 2026
6de8cce
Clarify subscription request identity and trim admission fixture
benhook1013 Oct 1, 2026
5bc8f48
Bind first PLAY to persisted actors over mTLS and contain unsupported…
benhook1013 Oct 1, 2026
62689f8
Stack gameplay admission on complete workload identity foundation
benhook1013 Oct 1, 2026
5033acf
Merge commit '29804c947764620afa4ad512ab0a044630e67124' into codex/pr…
benhook1013 Oct 1, 2026
f029d5c
Prove removed external account route over authenticated HTTP
benhook1013 Oct 1, 2026
9a082cf
Merge commit '0599482b1e3b97576deab435428feb9979ce3615' into codex/pr…
benhook1013 Oct 1, 2026
19d8f56
Isolate discovery entitlement failures and prove session fixtures
benhook1013 Oct 1, 2026
cb8c582
Reconcile workload map terminology prerequisite
benhook1013 Oct 1, 2026
7aca9bc
Isolate embedded Account route proof from MVC slice discovery
benhook1013 Oct 1, 2026
53fffa3
Reconcile final workload readiness helper prerequisite
benhook1013 Oct 1, 2026
39c4a02
Fix realm entitlement authority and Hosted proof contracts
benhook1013 Oct 1, 2026
dc04c19
Merge commit '85ece9ac343c46213f5f7d7d838bae08b97a378d' into codex/pr…
benhook1013 Oct 1, 2026
5c4b21d
Always clear roster test caller context
benhook1013 Oct 1, 2026
56e7ccf
Remove obsolete roster test setup rejected by SpotBugs
benhook1013 Oct 1, 2026
90891b3
Correct discovery failures, selection guidance and tenant-change cleanup
benhook1013 Oct 1, 2026
037918d
Canonicalize public internal-route denial and align focused proof
benhook1013 Oct 1, 2026
a4572ca
Seed authoritative demo entitlement for opted-in smoke
benhook1013 Oct 1, 2026
4c80083
fix(gameplay): report stale admission scope conflicts precisely
benhook1013 Oct 1, 2026
ac34221
Merge remote-tracking branch 'origin/develop' into codex/pr2840-clean…
benhook1013 Oct 1, 2026
1f772d7
Correct PLAY notices and persisted-roster cross-service fixture
benhook1013 Oct 2, 2026
8069ab2
Merge commit 'db8d25e55bda2f8124f990ad9412483e7af59236' into codex/pr…
benhook1013 Oct 2, 2026
38ee08d
Merge commit '31db6fa1bdf420c718c8d111409416863891de06' into codex/pr…
benhook1013 Oct 2, 2026
96d5c56
Align gameplay transport fixtures with persisted character ownership
benhook1013 Oct 2, 2026
38c4f0c
test(game-session): align persisted actor ownership in cross-service …
benhook1013 Oct 2, 2026
3ddab80
test(game-session): bind websocket admission fixtures to persisted ac…
benhook1013 Oct 2, 2026
e066e9e
fix(game-session): preserve verified bootstrap context through login
benhook1013 Oct 2, 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 @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The accepted cache and freshness policy is not implemented. Account currently restamps responses while deriving version fields from subscription row IDs. In the current runtime `PLAY` path, `AccountClient` emits `ENTITLEMENT_UNAVAILABLE` when entitlement authority is unavailable, while `PlayCommandHandler` checks only `gameplayAvailable` after a successful authority response and emits `TENANT_BILLING_BLOCKED` when that flag is false. This current implementation status does not change the target contract: unavailable authority remains retryable as `ENTITLEMENT_UNAVAILABLE`, while known denial remains `TENANT_BILLING_BLOCKED`. No runtime cache, billing-event sequence consumer, source-freshness validation, instance-lifecycle enforcement, or hard-suspension consumer exists. Current behavior also blocks `past_due` contrary to the accepted lifecycle.
The accepted cache and freshness policy is not implemented. Account currently restamps responses while deriving version fields from subscription row IDs, and the response lacks committed subscription status and complete operation-specific evidence. In the current runtime `PLAY` path, `AccountClient` emits `ENTITLEMENT_UNAVAILABLE` when entitlement authority is unavailable, while `PlayCommandHandler` checks only `gameplayAvailable` after a successful authority response and emits `TENANT_BILLING_BLOCKED` when that flag is false. Current code permits `past_due` gameplay and public join, consistent with the accepted lifecycle. This current implementation status does not change the target contract: unavailable authority remains retryable as `ENTITLEMENT_UNAVAILABLE`, while known denial remains `TENANT_BILLING_BLOCKED`. No runtime cache, billing-event sequence consumer, source-freshness validation, instance-lifecycle enforcement, or hard-suspension consumer exists.

## Decision Record

Expand Down Expand Up @@ -95,7 +95,7 @@ Durably replicating full entitlement projections into each runtime service could

## Implementation and Proof Obligations

- Implement the complete runtime response, operation-specific billing flags, and explicit free/trial state; correct `past_due` handling and remove row-ID-derived versions.
- Implement the complete runtime response, including committed subscription status, operation-specific billing flags, explicit free/trial state, and complete committed freshness/version evidence; remove row-ID-derived versions.
- Implement per-tenant cache, single-flight refresh, sequenced event invalidation, gap detection, periodic reconciliation, and the five-minute hard ceiling.
- Prove strict new commitment denial, eligible exact-same-binding/non-expanding reconnect and recovery continuity, fresh-entitlement enforcement for fresh admission or changed bindings, expired/unsafe last-known-good denial, exact 15-second and five-minute boundary behavior, the within-skew and beyond-skew evaluatedAt vectors, disabled continuity with an omitted limit, rejection of numeric zero, and finite-limit rejection when `maxClockSkew >= L`, and immediate known hard-cutoff behavior.
- Prove no entitlement lookup occurs on routine actions for an uninterrupted session.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

This decision is not implemented. Stripe hosting-billing lifecycle, verified webhooks, reconciliation, entitlement authority, billing-safe availability, and focused provider proof remain gaps; creator monetization remains deferred.
Stripe hosting-billing lifecycle, verified webhooks, reconciliation, entitlement authority, billing-safe availability, and focused provider proof remain gaps; creator monetization remains deferred. Current `CreateSubscription` gRPC and service paths fail closed with `FAILED_PRECONDITION` before local or provider mutation. The generic `CreatePaymentIntent`, `CreateDonation`, and `RefundPayment` RPCs now fail closed with `FAILED_PRECONDITION` before `PaymentService` or provider invocation; the underlying generic `PaymentService` substrate remains present but unsupported.

## Decision Record

Expand Down Expand Up @@ -116,7 +116,7 @@ This is simple only for unused access. It becomes false or destructive once curr

Current implementation is materially partial and broader than the accepted v1 product scope. Account can create Stripe PaymentIntents, invoke Stripe refunds, store `payment_transaction` rows, mark donation intent, and compute the configured 5% application fee and remaining creator share. Tests cover parts of that arithmetic and service invocation. Subscription rows and APIs also exist. These generic provider-mutating paths are implementation drift: unsupported generic PaymentIntent, refund, donation, and creator-share methods must reject before any provider mutation; only typed hosting-billing flows may proceed.

There is no demonstrated verified Stripe webhook lifecycle, durable idempotent fulfillment, `purchase_entitlement` authority, provider reconciliation, creator onboarding, payout ledger, reserve, settlement, tax, chargeback, negative-balance, or end-to-end hosting-subscription enforcement proof. The current subscription creation path also records a locally active row rather than proving the provider lifecycle described by the target design. Generic PaymentIntent, donation, creator-share, and refund surfaces must therefore be treated as incomplete and unsupported outside the accepted hosting-billing path. Their current generic RPC substrate is not proven exact-method-authorized; until it is removed or converged, the Account-local containment boundary in [Stripe Integration Design](../microservices/account-service/stripe-integration.md) applies and no such surface may create an entitlement. Any legacy operation already in flight is reconciled or rejected under its existing durable/provider identity and must never issue a replacement provider mutation or create a replacement provider identity.
There is no demonstrated verified Stripe webhook lifecycle, durable idempotent fulfillment, `purchase_entitlement` authority, provider reconciliation, creator onboarding, payout ledger, reserve, settlement, tax, chargeback, negative-balance, or end-to-end hosting-subscription enforcement proof. Current `CreateSubscription` gRPC and service paths reject the incomplete request with `FAILED_PRECONDITION` before local or provider mutation; the target provider lifecycle remains unproved. Generic PaymentIntent, donation, creator-share, and refund surfaces must therefore be treated as incomplete and unsupported outside the accepted hosting-billing path. Their current generic RPC substrate is not proven exact-method-authorized; until it is removed or converged, the Account-local containment boundary in [Stripe Integration Design](../microservices/account-service/stripe-integration.md) applies and no such surface may create an entitlement. Any legacy operation already in flight is reconciled or rejected under its existing durable/provider identity and must never issue a replacement provider mutation or create a replacement provider identity.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

V1 implementation must prove Stripe-hosted HTTPS checkout or management, authenticated billing-owner scope, provider-customer and payment-instrument safety, idempotent webhook and reconciliation processing for hosting subscription state, tenant availability propagation, duplicate and out-of-order events, provider outage behavior, refunds, deletion and billing-owner preconditions, billing-safe access during gameplay denial, audit correlation, metrics, alerts, and recovery from reconciliation drift.

Expand Down
5 changes: 3 additions & 2 deletions design/architecture/microservices/account-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Manages user accounts and authentication for the platform. It stores profile dat
## Implementation Status

- Provider-specific external identity linking is target-state only; no provider is advertised until its server-verified authorization, global subject uniqueness, recovery, unlink, and end-to-end login proof are complete.
- The current caller-asserted external-link scaffold is unsupported implementation drift, not an advertised provider integration.
- The caller-asserted external-link persistence/service scaffold remains unsupported implementation drift, but its REST route is removed and the exact legacy public-edge path is denied. No provider integration is advertised or externally available.
- Credential-bearing gameplay `Authenticate` and its verified-email challenge authenticate global Account identity without a tenant or membership prerequisite. The resulting private delegation token is account-scoped; Game Session retains any bootstrap tenant only as local transport context, and selected-target membership, grant, and entitlement remain separate `JOIN`/`PLAY` checks.
- Account is the target authority for the hosted Creator Party, identified operator and hosted-terms catalog, and acceptance/currentness evidence under [ADR 0180](../../decisions/adr-0180-account-owned-hosted-terms-acceptance-gate.md); changed-term notice, decline, continuity, and lifecycle consequences are separately governed by [ADR 0181](../../decisions/adr-0181-changed-hosted-terms-decline-and-existing-content-continuity.md). These hosted-terms contracts are target-only: no current party/signer registry, terms catalog, acceptance or transfer API/storage, creator UI, or downstream write-gate proof exists, and organization support is not enabled.
- Future managed-creator-commerce financial/provider reconciliation and entitlement authority are a separate target-only boundary under [ADR 0179](../../decisions/adr-0179-firemud-managed-creator-commerce-boundary.md); it does not expand hosted-terms acceptance/currentness authority or enable marketplace commerce, and no marketplace route or payout workflow is enabled.

Expand All @@ -33,7 +34,7 @@ Manages user accounts and authentication for the platform. It stores profile dat
- Profiles store a display name, bio, game history, and achievements.
- Password reset and verification flows.
- Subscription tracking with ban management.
- Owns the target **Stripe** hosting-plan billing and recurring hosting-subscription boundary; current provider lifecycle and entitlement proof remain partial. The target containment contract requires generic PaymentIntent, refund, donation, and creator-share surfaces to reject before any provider mutation, but the current implementation retains provider-mutating drift; see [Operations](./operations.md#saga-participation) and [Configuration](./configuration.md#implementation-status) for the current status. These surfaces are not advertised product paths. One-time and creator/player commerce remain future-gated under [ADR 0179](../../decisions/adr-0179-firemud-managed-creator-commerce-boundary.md).
- Owns the target **Stripe** hosting-plan billing and recurring hosting-subscription boundary; current provider lifecycle and entitlement proof remain partial. Incomplete `CreateSubscription` fails closed before mutation until caller-bound billing ownership, durable request identity, instrument selection, and provider-confirmed activation exist. `CreatePaymentIntent`, `CreateDonation`, and `RefundPayment` currently return `FAILED_PRECONDITION` in `PaymentGrpcService` before dispatch to `PaymentService` or any provider; the generic payment persistence/service/provider substrate remains unsupported. These RPCs are not advertised product paths. One-time and creator/player commerce remain future-gated under [ADR 0179](../../decisions/adr-0179-firemud-managed-creator-commerce-boundary.md).
- Expose Account relationship/projection data for actor discovery and access checks; do not create or own persisted gameplay actors.
- gRPC APIs cover authentication, account lifecycle, export/delete, runtime/admission, membership, realm-grant, entitlement, profile, and hosting-billing operations; generic payment scaffolds do not widen that capability boundary. The canonical API inventory is [API Contracts](./api-contracts.md).

Expand Down
Loading
Loading