Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
08791e3
Extract Account capacity origin prerequisite with coherent physical f…
benhook1013 Nov 14, 2026
a04d1ff
fix(ci): recover failed event gate from verified PLAY exception
benhook1013 Nov 15, 2026
7e88c75
Merge commit '3474c809ee6e980e551318ce94c0044d8da17576' into HEAD
benhook1013 Nov 15, 2026
4a628b7
Fix pending canonical refresh polling and capacity retirement link
benhook1013 Nov 18, 2026
109908f
Fix capacity review contracts and bounded runtime proof polling
benhook1013 Nov 18, 2026
28e18d2
Make capacity migration proof row presence explicit
benhook1013 Nov 18, 2026
0a7e853
Enforce exact capacity attempts and refresh proof boundaries
benhook1013 Nov 18, 2026
284a796
fix: address capacity prerequisite CLI review findings
benhook1013 Nov 18, 2026
c4def78
fix: preserve capacity conflict ordering and bounded smoke recovery
benhook1013 Nov 18, 2026
7408cb0
fix: retain exact smoke proof and sanitize capacity refusals
benhook1013 Nov 18, 2026
ec9f5ca
fix: preserve capacity authority after blocking writes and bound proo…
benhook1013 Nov 18, 2026
5b452f6
fix: reconcile skipped runtime refreshes after original producer failure
benhook1013 Nov 18, 2026
5144515
fix: preserve bounded exact runtime recovery across fanout
benhook1013 Nov 18, 2026
7911ac5
fix(ci): accept proven metadata-only validation shapes
benhook1013 Nov 19, 2026
325980f
fix(ci): verify runtime recovery against authoritative live tuple
benhook1013 Nov 19, 2026
ab092d1
fix(ci): bind smoke exception acceptance to selected producer
benhook1013 Nov 19, 2026
fc17e2b
fix(ci): recheck validation selection before recovery dispatch
benhook1013 Nov 19, 2026
73d24b2
fix(ci): preserve runtime inventory and fanout failure boundaries
benhook1013 Nov 19, 2026
87b2821
fix(ci): bound canonical smoke evidence convergence
benhook1013 Nov 19, 2026
dc998e2
fix(ci): narrow accepted runtime refresh observation
benhook1013 Nov 19, 2026
c537333
test(account): require direct sanitized capacity error
benhook1013 Nov 19, 2026
6e7d225
fix(capacity): retry rearm and preserve exact RPC deadline
benhook1013 Nov 19, 2026
26e0844
fix(ci): isolate runtime changed-file lookup failures
benhook1013 Nov 19, 2026
6b4c33d
fix(ci): observe uncertain runtime dispatch before unlock
benhook1013 Nov 19, 2026
2185478
Merge commit 'fe9873c01fc006c5d9238673d047127e90ef01f5' into HEAD
benhook1013 Nov 19, 2026
fd4c6db
fix(account): preserve endpoint default and original refusal fence
benhook1013 Nov 19, 2026
a7967e5
Tighten exact review workflow recovery and capacity proofs
benhook1013 Nov 19, 2026
1419755
Resolve seven Hosted review findings
benhook1013 Nov 19, 2026
ffafcfd
Merge develop formatter migration and preserve exact review fixes
benhook1013 Nov 19, 2026
f6dad29
Isolate live-base reads in retarget smoke contract
benhook1013 Nov 19, 2026
6228254
Retain runtime refresh observation across transient inventory failures
benhook1013 Nov 19, 2026
0b0bfbe
Strengthen reloading gRPC client tests
benhook1013 Nov 21, 2026
a40b174
Reconcile FireMUD #3451 with current develop
benhook1013 Nov 21, 2026
bf1c552
Fix retained FireMUD #3451 review findings
benhook1013 Nov 22, 2026
8ad3362
Address FireMUD #3451 follow-up CLI review
benhook1013 Nov 22, 2026
7af9b83
Settle retained FireMUD #3451 review findings
benhook1013 Nov 22, 2026
27f1482
Verify delayed smoke markers within the exact attempt deadline
benhook1013 Nov 22, 2026
9634d30
Finish exact smoke, dispatch, and capacity follow-up findings
benhook1013 Nov 22, 2026
ff2b4d5
Resolve FireMUD #3451 review findings and Validation failures
benhook1013 Nov 22, 2026
f03051b
Keep retarget and smoke proof contracts aligned
benhook1013 Nov 22, 2026
80c263a
Revalidate runtime and smoke proof after recovery
benhook1013 Nov 22, 2026
ce2a2c2
Merge commit '738d2dbc09b4aebe10068f50ccfa1b7d9a711fe7' into HEAD
benhook1013 Nov 22, 2026
a4db30b
Resolve retained runtime CI and capacity review findings
benhook1013 Nov 22, 2026
afd7054
Qualify exact runtime retry and capacity review fixes
benhook1013 Nov 22, 2026
ec45bf7
Recognize the exact PR merge ref in runtime evidence
benhook1013 Nov 22, 2026
e5bd2ce
Exercise direct REST pagination in the runtime contract
benhook1013 Nov 22, 2026
a6f5685
Prove runtime artifact attempts and failed PLAY retry eligibility
benhook1013 Nov 22, 2026
31662ad
Merge remote-tracking branch 'origin/develop' into HEAD
benhook1013 Nov 22, 2026
a9fbd85
Correct smoke recovery and Account proof from both review lanes
benhook1013 Nov 22, 2026
8220669
Merge remote-tracking branch 'origin/develop' into HEAD
benhook1013 Nov 23, 2026
79138d3
Require verified retained Account history before V1040.4 activation
benhook1013 Nov 23, 2026
f4e517a
Read the retained dev-demo PostgreSQL Deployment for preflight
benhook1013 Nov 23, 2026
59b15ca
Show the supported verification path after a recorded dev-demo failure
benhook1013 Nov 23, 2026
1215c6a
Read the original Account quota denial without replaying capacity
benhook1013 Nov 23, 2026
4451cf4
Merge commit 'cbb627fd0638c5bd9671ae7571b58d0b743bcc55' into codex/fm…
benhook1013 Nov 23, 2026
3fb4577
Keep the shared Account fixture closed to both private capacity RPCs
benhook1013 Nov 23, 2026
7bd2384
Merge commit '7f4f3578176b438128770c5bbb277e37818a3ed9' into codex/fm…
benhook1013 Nov 23, 2026
306260d
Resolve the retained Account capacity and runtime review batch
benhook1013 Nov 23, 2026
d268294
Merge branch 'develop' of https://github.com/benhook1013/FireMUD into…
benhook1013 Nov 23, 2026
b041b67
Address returned runtime and Account proof review findings
benhook1013 Nov 23, 2026
3fad0ac
Pin the exact revised runtime producer proof
benhook1013 Nov 23, 2026
279b943
Format Account and codec regression fixtures
benhook1013 Nov 23, 2026
4fe2ff8
Preserve exact authorized trusted refresh definitions
benhook1013 Nov 23, 2026
2475f26
Carry develop and strengthen dev-demo recovery and CI regression cove…
benhook1013 Nov 24, 2026
218ddce
Document the settlement contract and exercise the retained PostgreSQL…
benhook1013 Nov 25, 2026
301d7d2
Retain exact dev-demo and runtime publication evidence in workflow ou…
benhook1013 Nov 27, 2026
be22a5b
Retain the exact producer artifact in trusted publication evidence
benhook1013 Nov 27, 2026
004a805
Retain authenticated exact expired capacity denials before mutation
benhook1013 Nov 27, 2026
f8279f2
Format the retained Account denial replay test
benhook1013 Nov 27, 2026
976f1fe
Guard both runtime refresh paths with shared exact dispatch custody
benhook1013 Nov 27, 2026
609fed1
Keep trusted smoke history limited to shipped producers
benhook1013 Nov 27, 2026
961e083
Complete Account capacity and trusted-runtime review corrections
benhook1013 Nov 27, 2026
bc4e1b2
Hold Account uniqueness activation until writers are fenced
benhook1013 Nov 28, 2026
a9883fd
Requalify exact original runtime image publications
benhook1013 Nov 28, 2026
b83dec8
Address the Account foundation CLI review batch
benhook1013 Nov 28, 2026
6c8fb1b
Batch Account and runtime review fixes at the capacity stack head
benhook1013 Nov 28, 2026
6b0ea00
Resolve the final Account capacity CLI review batch
benhook1013 Nov 28, 2026
70b3946
Keep Account prerequisite current with deferred CI gate fix
benhook1013 Nov 28, 2026
e231ba0
Prove final attempt changes hold after the live identity read
benhook1013 Nov 28, 2026
4993f75
Repair Account prerequisite validation contracts
benhook1013 Nov 28, 2026
5df9582
Qualify Account capacity and exact hosted workflow recovery
benhook1013 Nov 28, 2026
9bb5193
Close capacity owner and runtime qualification review findings
benhook1013 Nov 28, 2026
480839d
Preserve both final Smoke proof fences and the deadline
benhook1013 Nov 28, 2026
880e66e
Exercise the final Smoke proof fences in recovered runs
benhook1013 Nov 28, 2026
167d2af
Apply Account prerequisite review fixes and exact CI evidence checks
benhook1013 Nov 28, 2026
b6eb32b
Qualify exact runtime retries and Account expiry review fixes
benhook1013 Nov 28, 2026
aee8f26
Close Account expiry and exact runtime review findings
benhook1013 Nov 28, 2026
dd97a9a
Address Account capacity and deployment review findings
benhook1013 Nov 28, 2026
72155ab
Qualify runtime attempts and preserve bootstrap review evidence
benhook1013 Nov 28, 2026
72238fd
Keep Smoke Gate startup and dependency recovery within runner limits
benhook1013 Nov 28, 2026
a442092
Keep one compact rejection fixture for untrusted runtime workflows
benhook1013 Nov 28, 2026
084ece9
Merge commit 'f4389a57c95c655edbf0a27dc01d289fed4b174f' into HEAD
benhook1013 Nov 28, 2026
1fc9c0b
Prove native smoke tracking through behavior fixtures
benhook1013 Nov 28, 2026
5a4beb7
Fold Account capacity origin migrations into the pre-v1 baseline
benhook1013 Nov 29, 2026
9247fc3
Verify exact runtime and Account review custody
benhook1013 Nov 29, 2026
ae0a6ca
Qualify Account expiry without a wall-clock race
benhook1013 Nov 29, 2026
42f4d66
Merge commit '12579fee34f02f509854c0b74d9ef7a638221f71' into HEAD
benhook1013 Nov 29, 2026
93e01c5
Batch Account capacity and runtime evidence review fixes
benhook1013 Nov 29, 2026
06e6754
Share native attempt proof for runtime smoke
benhook1013 Nov 29, 2026
fb95db9
Return shared CI machinery to develop's versions
benhook1013 Nov 30, 2026
1ea6e39
Drop dev-demo retained-database custody machinery
benhook1013 Nov 30, 2026
7640488
Use PostgreSQL time alone for Account capacity evaluation lifetime
benhook1013 Nov 30, 2026
b8bbc23
Address second #3451 review round
benhook1013 Nov 30, 2026
b1c71be
Merge remote-tracking branch 'origin/develop' into HEAD
benhook1013 Nov 30, 2026
acd31da
Address third #3451 review round
benhook1013 Nov 30, 2026
b48b4ea
Address fourth #3451 review round
benhook1013 Nov 30, 2026
596fb17
Return dev-demo bootstrap to develop's version
benhook1013 Nov 30, 2026
684863f
Address fifth #3451 review round
benhook1013 Nov 30, 2026
17afe7e
Merge remote-tracking branch 'origin/develop' into HEAD
benhook1013 Nov 30, 2026
eca20e4
Address sixth #3451 review round
benhook1013 Nov 30, 2026
26de5b1
Address Hosted review round on 17afe7e5
benhook1013 Nov 30, 2026
d863638
Address seventh #3451 review round (CLI and Hosted on 26de5b1f)
benhook1013 Dec 1, 2026
f25ab0c
Merge remote-tracking branch 'origin/develop' into HEAD
benhook1013 Dec 1, 2026
06068ae
Address eighth #3451 review round
benhook1013 Dec 1, 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.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This document defines the Account Service runtime model, persistent data ownersh

Account owns platform identity, hosted Creator Party/operator and terms currentness authority, durable membership, entitlement authority, Account-local authentication persistence, global `account_security_lock`/`platform_access_ban` enforcement, Stripe v1 hosting-billing state, and future marketplace financial reconciliation. The hosted terms and creator-party authority are target-only under [ADR 0180](../../decisions/adr-0180-account-owned-hosted-terms-acceptance-gate.md) and [ADR 0181](../../decisions/adr-0181-changed-hosted-terms-decline-and-existing-content-continuity.md); future creator commerce remains separately gated by [ADR 0179](../../decisions/adr-0179-firemud-managed-creator-commerce-boundary.md). This document records only local runtime and data consequences; fixed-category moderation and appeal ownership is defined by [Moderation Policies](../logging-admin-service/moderation-policies.md), gameplay/chat enforcement remains in Game Session and Social & Groups, gameplay admission and JOIN identity binding are defined by [Authentication](../../system-architecture-authentication.md), and token refresh, replacement, generation, revocation, fencing, and logout are defined by [JWT and Token Contracts](../../system-architecture-jwt-and-token-contracts.md).

### Finalized capacity usage retirement

After [Game Session supplies authenticated terminal proof](../game-session-service/runtime-and-data.md#finalized-capacity-usage-retirement) for the exact finalized binding and reservation, Account retains a unique retirement receipt and subtracts only the units covered by that exact receipt from used units in the same owner transaction, leaving unrelated used units unchanged. Exact retirement retries replay that receipt without a second decrement. The same finalized reservation units may be retired only once across all receipt identities. Account verifies that new coverage is disjoint from the retained retirement coverage and remains within the finalized reservation before it decrements usage. Account preserves the original `FINALIZED` reservation, result and replay evidence. The retirement schema must reconcile used units as finalized units minus retained retirement coverage. The receipt and decrement commit together under that inventory constraint.

## Implementation Status

Both existing `bootstrap-connect-scope` producer paths mint the exact persisted Account UUID. Scope validation compares canonical UUID subject/Account claims before owner readback; malformed identity remains `CONNECT_SCOPE_INVALID`, while unavailable owner evidence is `AUTH_UNAVAILABLE`. Retained scope/JOIN rows and digests continue to use private Account row keys without a schema rewrite. This scope-artifact transition itself adds no Game Session text dispatch; the separately qualified ordinary receiving cohort now carries UUID Account identity through the direct-text caller context and Account-to-Entity references. Proof and retained-scope rediscovery limits are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#bootstrap-connect-scope-uuid-artifact) and [ordinary UUID receiving](../../../project-management/implementation-tracking/player-access-and-session.md#ordinary-uuid-issuer-and-receiving).
Expand Down Expand Up @@ -84,7 +88,13 @@ Current public bootstrap, direct-scope, JOIN, connect-token and numeric entitlem

Strict capacity follows the canonical [capacity-attempt proof obligations](../../system-architecture-versioning-runtime.md#focused-capacity-attempt-proof-obligations). The prepared V1040 storage records immutable exact Account evaluation bytes, one stable outer request/reservation identity, the current attempt/digest and monotonic rearm/reservation fences, prior-attempt evidence, recovery claims, and durable held/used units. Deferred PostgreSQL constraints compare the complete reservation inventory with usage; eligibility reads and issuer-local counters cannot initialize or replace it. Zero usage is established only when the existing creator bootstrap commits against a genuinely new fresh-tenant association born in that same Account transaction, with the exact creation tuple and nonadmitting sequence-zero baseline. Earlier tenants are not backfilled. The actual player evaluator retains its complete bundle inside its final source transaction, so failed source commit exposes neither a capacity evaluation nor an entitlement result. Reservations use conservative microsecond expiry bounds without extending the evidence lifetime. The same prepared recovery schema retains its immutable read history and `capacity-recovery/1` retry budget. Deadline or budget exhaustion quarantines the original complete hold; it does not expire, release or replace it. No live recovery source/scheduler or quarantine-resolution authority is registered.

The unregistered capacity owner requires exact retained evidence and current Account membership/issuance/scope source equality before creating a new positive player-binding reservation. Exact attempt retries replay before fresh-source or usage work; changed complete payloads conflict. The Account recovery component alone can finalize, release or rearm under its current durable claim and exact selected-owner readback; an ambiguous observation records only the bounded retry/deadline and retains the hold. Account's default runtime leaves the capacity receiver, selected-owner readback and recovery worker unregistered. Controlled observations prove Account ledger transitions. Actual Game Session execution, closure and admitted-session teardown require their own retained owner receipts. World lifecycle, authoritative prior-shape/zero-delta recovery, current selected-owner activation and complete end-to-end qualification remain held as detailed in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#strict-tenant-capacity-owner-preparation).
V1040.1 serializes the exact Account `ACCEPTED` and `NO_ACCEPT` origin decisions against reservation creation and rearm. A pre-V1040.1 writer cannot create a reservation after the guard applies. The [database migration compatibility and writer-quiescence policy](../../system-architecture-database-migrations.md#version-aware-migration-checklist) governs deployment. The same baseline retains an exact quota denial under an explicitly installed finite tenant refusal limit. The same serializable owner transaction checks quota and chooses between a reservation and a denial. The denial carries no reservation and permanently excludes acceptance for the exact original. Exact replay returns the same decision even after capacity becomes available. An unavailable refusal budget or uncertain outcome leaves Game Session's reserve active. Account neither frees nor rearms an accepted reservation through this path. Before enabling any admission producer, the Account operator must provision every supported canonical tenant through `AccountCapacityRefusalBudgetRepository.provision` and call `requireReady` with the same explicit lifetime limit and the bounded admission cohort headroom in one writable owner transaction while producers remain quiescent. Commit only after both succeed; otherwise roll back the undersized installation so it does not permanently bind an unusable limit. Sizing is explicit: the finite lifetime limit must cover retained denials plus the planned denial cohort, counting both quota and `CAPACITY_EVALUATION_EXPIRED` denials, which spend the same limit ([Account API](api-contracts.md)); it is not the gameplay capacity quota or an automatically replenished rate limit. Exact provisioning retries preserve the row and its historical evidence; a different limit conflicts. Missing, mismatched or insufficient budgets fail readiness. Readiness is a local observation, not a reservation or authority to admit, and the SQL trigger remains the runtime concurrency authority. Exhaustion requires stopping new admission and an independently designed retention-safe lifecycle, never deleting denials or resetting/increasing this immutable budget. No exhaustion detector or admission-producer stop control is implemented by these private repositories: the positive reservation path does not consult refusal headroom. Qualifying that stop, including last-slot consumption followed by available capacity, is an unmet activation prerequisite; provisioning readiness alone cannot satisfy it. These private methods do not register an endpoint, seed tenants automatically or activate the default-off capacity component.

For pre-v1 resets use the [database migration reset safety gate](../../system-architecture-database-migrations.md#version-aware-migration-checklist). This capacity implementation adds no reset, budget-reset, or receipt-deletion operation.

The V1040.1 capacity-origin baseline stores one immutable refusal slot per retained `NO_ACCEPT` decision as the contiguous sequence `1..N`. After origin identity arbitration, a fresh refusal takes the existing tenant budget lock, reads the highest slot through the tenant-slot index, and appends `N+1` in the same transaction. `requireReady` uses that indexed highest slot as the retained refusal count to compute bounded headroom. Replay, conflict, and failed inserts leave the inventory unchanged.

The unregistered capacity owner requires exact retained evidence and current Account membership/issuance/scope source equality before creating a new positive player-binding reservation. Before fresh-source or usage work, an exact retry of the reservation's current attempt replays its result and an exact retry of a retained denial replays that denial. A retry of an attempt superseded by rearm, or with a changed payload, conflicts with the existing retained binding. A non-retained billing refusal does not itself bind the attempt for replay or conflict; a retry still requires fresh current evidence. The Account recovery component alone can finalize, release or rearm under its current durable claim and exact selected-owner readback; an ambiguous observation records only the bounded retry/deadline and retains the hold. No runtime readback producer or recovery client is registered. World lifecycle, authoritative prior-shape/zero-delta recovery, current selected-owner activation and complete end-to-end qualification remain held as detailed in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#strict-tenant-capacity-owner-preparation).

The canonical gameplay LOGIN primary-credential adapter reuses Account’s password and email-OTP authority without creating a legacy token or session. Its owner transaction retains the verified challenge identity and consumes it only after new PENDING issuance; denial accounting and expiry cleanup commit under the existing owner denial path. Exact pending retry does not reverify or reconsume. Canonical-only verification pads to two KDF comparisons with non-authorizing process-local random decoy evidence using the existing Argon2 profile. The adapter participates only in the explicitly enabled protected LOGIN composition; default deployment behavior remains unchanged. Focused unit and real PostgreSQL proof and its controlled upstream/external-owner limits are recorded in [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#initial-private-gameplay-login-issuance-source-intake). Deployed authenticated issuance and timing parity remain unproved.

Expand Down
Original file line number Diff line number Diff line change
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. 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).
- `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 the reservation only for the currently bound attempt. A superseded attempt cannot replay a rearmed reservation. Account separately replays the retained quota denial for its own exact attempt. A change to a retained binding outside proof-backed rearm conflicts before usage mutation. A non-retained billing refusal does not create such a binding. The initial attempt needs no rearm CAS. A new attempt on an existing reservation 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
Loading
Loading