Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
6933582
Prepare strict Account capacity reservations and bounded recovery
benhook1013 Nov 7, 2026
4719fb6
Carry current cutover source repairs into capacity preparation
benhook1013 Nov 7, 2026
4ce4d9e
Carry validated parent roster and admission proof repairs
benhook1013 Nov 7, 2026
c21c3be
Merge current cutover infrastructure
benhook1013 Nov 7, 2026
fb56d3b
Repair tenant capacity persistence and proof contracts
benhook1013 Nov 7, 2026
2c1ab50
Compose exact tenant capacity commitment with original NEW final admi…
benhook1013 Nov 7, 2026
03025fc
Merge commit 'fc1e2a5ebafd66af035f4797fe4b644216d5c0e8' into dot/tena…
codex Nov 8, 2026
5e8584b
Merge commit '9f2a414bf2d85e5f1d19552eec6ddf5db1f79672' into dot/tena…
codex Nov 8, 2026
23a6346
Merge commit '0f35e70b2bdbce68827717b8dceb07e565a60b61' into dot/tena…
codex Nov 8, 2026
ff08587
Merge commit '8d11089ba6d9763103f576d778aa293e2fe4f478' into dot/tena…
codex Nov 8, 2026
04f875c
Merge commit 'b1b2ebd92f1841065596529c9a609c1c5c7d245a' into dot/tena…
codex Nov 8, 2026
4b64bf9
Merge commit '910aca33cbd56239842ffd9862149f8124a7b593' into dot/tena…
codex Nov 8, 2026
a8bcdb4
Merge commit '717be4100afc0b8db38ee49f71e85ac1ce1dbb3f' into dot/tena…
codex Nov 8, 2026
289b571
Merge commit '02b380bd6d4db06dc39d4af8b82b896449869904' into dot/tena…
codex Nov 8, 2026
b1d174c
Merge commit '9533e9e3e09146a7d805f7776d46144ad990f6b8' into dot/tena…
codex Nov 8, 2026
a221154
Merge commit '3a03296fbaffb7b650c51deb7dcf385e80a8d622' into dot/tena…
codex Nov 8, 2026
11a2998
Complete protected target resolution in capacity composition fixture
codex Nov 8, 2026
8bdf9ba
Merge commit '0a23e8c8d1af1f1c3a91c3383b06fa5962367f92' into dot/tena…
codex Nov 8, 2026
67d8d42
Local topology proof only
codex Nov 8, 2026
a62541b
Merge commit '95635241b9a4180cf53a40dba2b868a5ecc4306f' into dot/tena…
codex Nov 8, 2026
cbee455
Merge commit 'c96231ca9b824b38ca73840fd87e5224a2a5e1df' into dot/tena…
codex Nov 8, 2026
edc2927
Carry Hosted7 provisioning recovery through stack
codex Nov 8, 2026
4433c5e
Merge commit '8681516f12467d84a3b7f22c60144842fc5066bc' into dot/tena…
codex Nov 8, 2026
9c9a61b
Merge commit 'd1f09daf900054a8917ab9f63f7b3ca3e45ca0e7' into dot/tena…
codex Nov 8, 2026
2efdff8
Merge commit '5674a7b7014bd75c7bc2876a485a0782fc36cc86' into dot/tena…
codex Nov 8, 2026
c2fa303
Merge commit '9cf52cc85d7721315d1246755f3e137b7088353f' into dot/tena…
codex Nov 8, 2026
a7e999c
Merge commit 'f645f2197c04a18c22b4ac1146cca1956d0cbd1a' into dot/tena…
codex Nov 8, 2026
0da06d1
Carry verified #3390 additive split into #3407
codex Nov 8, 2026
0639836
Carry verified #3390 CLI19 fixes into #3407
codex Nov 8, 2026
97eab62
Carry verified #3390 CLI21 fixes into #3407
codex Nov 8, 2026
da15ffa
Carry verified #3390 CLI21 fixture correction fixes into #3407
codex Nov 8, 2026
cbae090
Carry verified #3390 CLI22 attestation and scoped test fixes into #3407
codex Nov 8, 2026
ad01b97
Carry #3414 CLI2 tracker corrections into #3407
codex Nov 8, 2026
02d0406
Carry #3414 CLI3 cleanup and proof corrections into #3407
codex Nov 8, 2026
8c0d8e7
Carry #3414 CLI4 capability status correction into #3407
codex Nov 8, 2026
2235389
Carry World CI phase diagnostics into #3407
codex Nov 8, 2026
10203fc
Carry Account CI stall diagnostics into #3407
codex Nov 8, 2026
c99706f
Carry diagnostic lint and provisioning tracker corrections into #3407
codex Nov 8, 2026
f96a33f
Carry validated CI cancellation guards into #3407
codex Nov 8, 2026
aaf913d
Carry validated authenticated receiving fixes into #3407
codex Nov 8, 2026
3b66e4b
Carry validated authenticated receiving fixes into #3407
codex Nov 8, 2026
93b829f
Carry bounded Account CI reliability experiment into #3407
codex Nov 8, 2026
f734de2
Carry authenticated receiving CLI3 fixes into #3407
codex Nov 8, 2026
484ce0c
Carry authenticated receiving CLI4 fixes into #3407
codex Nov 8, 2026
7446da5
Carry validated CI and JWKS repairs through #3407
codex Nov 8, 2026
43f30b4
Carry Account expiry fixture repair through #3407
codex Nov 8, 2026
4af1950
Carry verified dispatch clock and review corrections through stack
codex Nov 8, 2026
76176b3
Carry complete smoke proof fingerprints into #3407
benhook1013 Nov 8, 2026
3d527ce
Carry tenant-qualified browser discovery through #3407
benhook1013 Nov 8, 2026
e50f9bc
Carry committed JOIN replay correction through #3407
benhook1013 Nov 8, 2026
513fdff
Carry stable artifact snapshot correction through #3407
benhook1013 Nov 9, 2026
bb4ca33
Carry Hosted12 qualified selector and proof corrections through #3407
benhook1013 Nov 9, 2026
c974bc9
Carry CLI27 JOIN attempt diagnostic correction through #3407
benhook1013 Nov 9, 2026
d169534
Carry smoke intake and optional capture fixes through #3407
benhook1013 Nov 9, 2026
c913f33
Carry truthful JOIN replay and tenant diagnostics through #3407
benhook1013 Nov 9, 2026
89fc4fb
Carry tenant-qualified JOIN integration fixture correction through #3407
benhook1013 Nov 9, 2026
50c0180
Carry attempt-qualified failure-log artifact retention through #3407
benhook1013 Nov 9, 2026
7962e61
Carry immutable Gateway client construction through #3407
benhook1013 Nov 9, 2026
f5eaa2f
Carry PostgreSQL clock fix through #3407
benhook1013 Nov 9, 2026
76e0bec
Carry bounded PLAY transition CI and receiving fixes through #3407
benhook1013 Nov 9, 2026
10da26e
Include V1039 in canonical join migration history proof
codex Nov 10, 2026
c6647a6
Merge commit '2b18864dd0c93f0d50d31f163bc17de289aa72ee' into dot/3407…
codex Nov 10, 2026
b8d1eb8
Preserve public capacity ancestry with verified V1039 checkpoint
benhook1013 Nov 10, 2026
c4c8dea
Supply canonical scope readers to capacity admission composition fixture
benhook1013 Nov 10, 2026
9313355
Preserve frozen issuer cohort when new capacity receipt is absent
benhook1013 Nov 10, 2026
2ba7218
Receive current Account JWKS parent for capacity CI repairs
benhook1013 Nov 10, 2026
e0616e5
Restore final Human completion lower bound with forward catalog epoch
benhook1013 Nov 10, 2026
5672083
Align current catalog retention assertion with forward epoch
benhook1013 Nov 10, 2026
967f547
Record controlled receiving proof and remaining capacity qualification
benhook1013 Nov 10, 2026
d532e04
Receive current reviewed parent while preserving #3407 fixes and proof
benhook1013 Nov 10, 2026
5164f73
Tighten capacity buffer cleanup and retained migration proof
benhook1013 Nov 10, 2026
5ea74a7
Receive published JWKS correction while preserving #3407 fixes
benhook1013 Nov 10, 2026
c0fdc32
Carry published JWKS failure classification into #3407
benhook1013 Nov 10, 2026
2a78c73
Carry published JWKS RV-only correction into #3407
benhook1013 Nov 10, 2026
6eb1013
Bound capacity INSTALL and CLOSE by the existing Redis operation budget
benhook1013 Nov 10, 2026
02f5acc
Return fresh capacity policy denials after exact replay and source va…
benhook1013 Nov 10, 2026
c8dab91
Preserve provisional state in denial proof and record the held retent…
benhook1013 Nov 10, 2026
84a6915
Prove default Account runtime entitlement refuses without capacity cr…
benhook1013 Nov 10, 2026
d7cd0b5
Reconcile capacity proof with current Account JWKS parent
benhook1013 Nov 10, 2026
16f5333
Merge qualified Account current-JWKS fixes into capacity receiving proof
benhook1013 Nov 11, 2026
03a7b15
Follow the Testcontainers availability contract for entitlement proof
benhook1013 Nov 11, 2026
e5c814f
Distinguish Account capacity admission refusals
benhook1013 Nov 11, 2026
3fe1372
Validate original capacity binding before Account commitment
benhook1013 Nov 11, 2026
54e4654
Merge develop after #3409 without changing capacity source
benhook1013 Nov 11, 2026
36fa21b
Honor capacity admission deadlines and candidate binding
benhook1013 Nov 11, 2026
c86fae5
fix(gameplay): retain committed execution and fence owner movement
benhook1013 Nov 11, 2026
4a18e54
fix(capacity): classify owner evidence and await connection cleanup
benhook1013 Nov 11, 2026
d0d2dfa
Preserve unqualified normal owner-transfer recovery implementation
benhook1013 Nov 11, 2026
db6bcd7
Prepare formatted normal-handoff recovery with focused signed-observa…
benhook1013 Nov 11, 2026
650d56d
Fix transfer fencing envelope and physical recovery fixtures
benhook1013 Nov 11, 2026
09a606e
Fix physical handoff fixture composition and Redis client policy
benhook1013 Nov 11, 2026
be71dd4
fix(capacity): preserve terminal handoff and exact recovery claims
benhook1013 Nov 11, 2026
f53cfd4
test(capacity): isolate connector saturation and resource cleanup
benhook1013 Nov 11, 2026
fe30e5a
Retain explicit SpotBugs XML diagnostics for failed validation
benhook1013 Nov 11, 2026
fa8be62
Clarify binary varargs and JDBC ownership in admission tests
benhook1013 Nov 11, 2026
36a6d22
Fix capacity recovery deadlines and independent admission proofs
benhook1013 Nov 11, 2026
8804433
Bind nullable SQL observer text before admission assertions
benhook1013 Nov 11, 2026
385e43e
Make transfer observations unambiguous and retain physical install di…
benhook1013 Nov 11, 2026
06c9ec6
Prepare isolated proof of frozen transfer replay and contract tests
benhook1013 Nov 12, 2026
bbec21e
Fix canonical vectors, workload metadata and physical expiry evidence
benhook1013 Nov 12, 2026
7a52537
Retain exact aborted originals through frozen owner transfer
benhook1013 Nov 12, 2026
10240ff
Allow bounded replica fsync in positive login composition proof
benhook1013 Nov 12, 2026
72b9b45
Align capacity bridge lock ordering and prove physical predecessor re…
benhook1013 Nov 12, 2026
1b062ef
Fix binary-key cleanup varargs in final admission integration tests
benhook1013 Nov 12, 2026
742cbb8
Export physical image fixture for Account capacity composition proof
benhook1013 Nov 12, 2026
94bece1
test: preserve historical FINAL through native Account fencing
benhook1013 Nov 12, 2026
5d640e1
Retry serialized capacity commits and tighten evidence fixtures
benhook1013 Nov 12, 2026
f7d5193
Resume completed region handoffs with the same live private grant
benhook1013 Nov 12, 2026
595d20d
Close CLI review gaps in capacity custody and transfer proof
benhook1013 Nov 12, 2026
ea92f49
Retain the verified final admission receipt and execution outcome ato…
benhook1013 Nov 12, 2026
a56b3ed
Pass the controlled Redis deletion key as the declared varargs array
benhook1013 Nov 12, 2026
5cf3c60
Expire the controlled session key without a Redis varargs call
benhook1013 Nov 12, 2026
020391f
Bound recovery reads and require authentic region transfer custody
benhook1013 Nov 12, 2026
c7ef5a9
Keep capacity admission deadlines and initial execution custody exact
benhook1013 Nov 12, 2026
a4133bc
Publish TLS replacements before retirement and verify exact retention…
benhook1013 Nov 12, 2026
961b797
Preserve exact capacity commitment and transfer recovery custody
benhook1013 Nov 12, 2026
b76e8c7
Adopt credential-free player evidence for capacity commitment
benhook1013 Nov 12, 2026
87a871f
Base capacity reservations on credential-free player entitlement
benhook1013 Nov 12, 2026
58d8ec9
Prepare the unregistered Account capacity foundation
benhook1013 Nov 12, 2026
11f3155
Carry the reviewed scope-binding fixture correction
benhook1013 Nov 12, 2026
e7529d3
Keep the Account capacity foundation as an independent stage
benhook1013 Nov 12, 2026
e92bf11
Bound Account capacity contention retries and type retention failure
benhook1013 Nov 12, 2026
2616596
Keep capacity replay lock-free and qualify every execution operation
benhook1013 Nov 12, 2026
dd04268
Reconcile the Account capacity foundation with develop
benhook1013 Nov 12, 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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Payment-instrument ownership, explicit per-subscription binding, initial billing

## Implementation Status

The plan-change timing, over-quota behavior, pending-plan metadata, and full quota-bearing runtime entitlement response described below are canonical target-state behavior. Current implementation has the first runtime availability surface, but quota fields, pending plan metadata, downgrade/cancellation enforcement, strict capacity admission, and the target separation between create and existing-subscription update APIs still need implementation follow-through. Account now has unregistered customer-first-dispatch and exact-customer saved-method owner sources, but these prerequisites do not create a subscription or enable a caller path. The current `CreateSubscriptionRequest` carries only tenant/account/plan fields: it lacks the caller-supplied stable `requestId`, exact instrument-selection input, and immutable creation-operation identities. Account computes the versioned `requestDigest` from normalized request fields; that digest is not a caller-supplied request field. Account must also resolve the authoritative billing owner, which is not supplied as a request field. Account therefore rejects this incomplete create method with `FAILED_PRECONDITION` before any membership, account, subscription, or provider mutation; it must not be treated as proof of the target contract. Expected row-version/CAS is not a creation precondition and is required for every supported existing-subscription mutation through `UpdateSubscription`. The durable authority/usage ledger and reservation lifecycle for strict capacity admission are also not implemented.
The plan-change timing, over-quota behavior, pending-plan metadata, and full quota-bearing runtime entitlement response described below are canonical target-state behavior. Current implementation has the first runtime availability surface, but quota fields, pending plan metadata, downgrade/cancellation enforcement, strict capacity admission, and the target separation between create and existing-subscription update APIs still need implementation follow-through. Account now has unregistered customer-first-dispatch and exact-customer saved-method owner sources, but these prerequisites do not create a subscription or enable a caller path. The current `CreateSubscriptionRequest` carries only tenant/account/plan fields: it lacks the caller-supplied stable `requestId`, exact instrument-selection input, and immutable creation-operation identities. Account computes the versioned `requestDigest` from normalized request fields; that digest is not a caller-supplied request field. Account must also resolve the authoritative billing owner, which is not supplied as a request field. Account therefore rejects this incomplete create method with `FAILED_PRECONDITION` before any membership, account, subscription, or provider mutation; it must not be treated as proof of the target contract. Expected row-version/CAS is not a creation precondition and is required for every supported existing-subscription mutation through `UpdateSubscription`. The strict capacity owner and durable usage/reservation source are locally prepared but remain unregistered and unqualified; see [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#strict-tenant-capacity-owner-preparation).

The target `CreateSubscription` request accepts a high-entropy stable caller-supplied `requestId` as the sole logical create-operation key, along with the normalized tenant, plan, and instrument-selection inputs. Account resolves the authoritative billing owner and computes a versioned `requestDigest` from those normalized inputs and the resolved owner; neither the digest nor billing-owner resolution is supplied as a request field. Account captures the resolved owner's authority version/generation and validates that exact fence in the same local intent/outbox transaction before persisting the pair or creating provider work; an owner change or generation/version mismatch fails closed. A retry with the same `requestId` and normalized create fields recomputes the same digest and replays the same `subscriptionId`, durable operation, and outcome; changed fields that produce a different digest return `IDEMPOTENCY_CONFLICT`. The provider `subscription_provisioning_request_id` and cleanup identity remain separate provider-operation keys and must not replace the caller identity.

Expand Down Expand Up @@ -205,7 +205,7 @@ Downstream services depend on billing events for timely entitlement enforcement,
- **Periodic refresh** – even when events are flowing, every healthy runtime consumer must refresh or reconcile cached entitlements at least once per 60 seconds so extended event outages meet the `<=60-second` delayed/missed-event SLA rather than causing unbounded drift.

- `CreateSubscription` – Create one hosting subscription for an immutable `tenantId` and initial `plan_code`. The caller supplies a high-entropy stable `requestId`; Account resolves the authoritative billing owner and computes and persists a versioned `requestDigest` from the normalized create tuple, including that owner, immutable `tenantId`, initial `plan_code`, and exact instrument-selection input. The digest and resolved billing owner are not request fields. A retry with the same `requestId` and normalized create fields recomputes the same digest and replays the same durable operation and outcome; changed fields that produce a different digest return `IDEMPOTENCY_CONFLICT`; the caller identity is distinct from provider operation identities. It rejects an existing `subscriptionId`, expected row version, update operation ID, or any other update-only field. Creation must resolve the authoritative billing owner before its subscription row exists, capture the owner's authority version/generation, authorize the actor against that resolved owner (or require the explicit audited cross-tenant handoff), and require either an explicit saved `paymentInstrumentId` or deterministic instrument-selection input that resolves to exactly one saved instrument owned by that owner. In one local Account transaction, Account locks or CAS-validates the resolved owner and exact captured version/generation before committing the subscription operation, immutable internal `subscriptionId` and `tenantId`, owner, owner fence, customer-operation reference, confirmed provider customer when available, instrument binding and reserved instrument version, `pending` status, immutable `subscription_provisioning_request_id`, separate cleanup/cancellation provider-operation identity, and outbox work item before customer reconciliation or provider creation. An owner-fence mismatch fails closed before any provider operation. The worker may reconcile the customer operation while the row remains pending, but its provisioning claim atomically requires a confirmed matching customer and revalidates ownership, exact instrument version, and attachability; detach racing with provisioning is serialized by that reservation/version boundary and a stale claim fails before Stripe. Creation retries retain the creation identity for lookup; cleanup retries reuse the distinct cleanup identity. Stripe customer and provider defaults are prohibited.
- `CommitTenantCapacityAdmission` – Target Account-owned internal RPC and final capacity fence described above. Its canonical callers are Game Session and World Management; it requires stable outer `(tenantId, requestId, admissionId)`, fresh per-attempt `admissionAttemptId`, current `capacityRearmFence`, the exact complete Account-authenticated evidence bundle returned by evaluation, bounded `capacityDelta`, and a versioned `mutationDigest` over the attempt identity, fence, and complete payload. An exact identity-and-payload retry replays; any changed bundle version, snapshot/evaluation identity, entitlement field, tuple, cutoff, checkpoint, delta, attempt ID, fence, or digest conflicts before usage mutation. The initial attempt needs no rearm CAS. A new attempt requires an Account-owned CAS over the same outer tuple, terminal `OWNER_EXECUTION/NOT_EXECUTED_AFTER_AUTHORIZATION` plus durable no-commit evidence, current fence, and prior digest; that CAS advances the fence without creating a second reservation. Stale or losing fences return `FENCE_REJECTED` only with durable no-accept/no-runtime-mutation proof. It is the only contract that can turn a fresh entitlement snapshot into a strict capacity commitment. Downstream owners cannot replace it with a local compare or cached flag. No proto RPC, caller integration, durable usage ledger, or reservation lifecycle is implemented yet. See the canonical [capacity-attempt proof obligations](../../system-architecture-versioning-runtime.md#focused-capacity-attempt-proof-obligations).
- `CommitTenantCapacityAdmission` – Target Account-owned internal RPC and final capacity fence described above. Its canonical callers are Game Session and World Management; it requires stable outer `(tenantId, requestId, admissionId)`, fresh per-attempt `admissionAttemptId`, current `capacityRearmFence`, the exact complete Account-authenticated evidence bundle returned by evaluation, bounded `capacityDelta`, and a versioned `mutationDigest` over the attempt identity, fence, and complete payload. An exact identity-and-payload retry replays; any changed bundle version, snapshot/evaluation identity, entitlement field, tuple, cutoff, checkpoint, delta, attempt ID, fence, or digest conflicts before usage mutation. The initial attempt needs no rearm CAS. A new attempt requires an Account-owned CAS over the same outer tuple, terminal `OWNER_EXECUTION/NOT_EXECUTED_AFTER_AUTHORIZATION` plus durable no-commit evidence, current fence, and prior digest; that CAS advances the fence without creating a second reservation. Stale or losing fences return `FENCE_REJECTED` only with durable no-accept/no-runtime-mutation proof. It is the only contract that can turn a fresh entitlement snapshot into a strict capacity commitment. Downstream owners cannot replace it with a local compare or cached flag. The shared contract, Account durable owner and private receiver, and Game Session adapter are locally prepared without runtime registration or qualification; current source/proof limits remain in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#strict-tenant-capacity-owner-preparation). See the canonical [capacity-attempt proof obligations](../../system-architecture-versioning-runtime.md#focused-capacity-attempt-proof-obligations).
- `UpdateSubscription` – Apply one plan, instrument, cancellation, or other supported update to an existing immutable `subscriptionId`. Period-end and immediate cancellation both use this mutation; no separate `CancelSubscription` mutation exists. It requires the target subscription identity, a distinct immutable operation-specific request ID, and the expected subscription row version/CAS; it rejects `subscription_provisioning_request_id`, creation-only fields, and any attempted `tenantId` change. Retries reuse the same update identity and guard and never reuse the initial provisioning identity. Provider activation and billing require a confirmed provider subscription ID. Caller-bound tenant variants derive actor identity from auth context; cross-tenant admin variants are separate APIs.
- `GetSubscriptionTenantHighLevel` / `ListSubscriptionsTenantHighLevel` – Query subscription state for one tenant, scoped by tenant authorization.
- `ListSubscriptionsCrossTenantSupportSafe` – Cross-tenant support-safe high-level listing for troubleshooting only.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ routes:
changed_attempt_without_rearm_ordering: rejected_before_any_mutation
mutation_contract: account_owned_fenced_capacity_reservation_create_or_replay
canonical_errors:
any_of: [CAPACITY_ADMISSION_STALE, CAPACITY_QUOTA_EXCEEDED, FENCE_REJECTED, IDEMPOTENCY_CONFLICT, AUTH_UNAVAILABLE]
any_of: [CAPACITY_ADMISSION_STALE, CAPACITY_QUOTA_EXCEEDED, TENANT_BILLING_BLOCKED, ENTITLEMENT_UNAVAILABLE, FENCE_REJECTED, IDEMPOTENCY_CONFLICT, AUTH_UNAVAILABLE, PERMISSION_DENIED, INVALID_ARGUMENT]
fence_rejection_requirements: no_accept_no_runtime_mutation_proof
- service: account-service
route: GetTenantEntitlementsTenant
Expand Down
Loading
Loading