Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
185 changes: 184 additions & 1 deletion .github/workflows/ci.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Accepted

## Implementation Status

The current implementation does not fully satisfy this decision. The held-back World mutation algorithm now advances its declared aggregate and scope epochs with expected-epoch storage predicates, including conflict-safe first claims; execution and remaining limitations are recorded in the [World tracker](../../project-management/implementation-tracking/world-runtime-and-movement.md#current-status). Some mutation shapes can still omit required scope fencing. `SaveRevision` can call World Management before Game Design persists its local revision, and there is no Game Design-owned durable commit/proposal coordinator with exact base and digest binding, complete affected-scope capture, per-owner apply status, or a creator-visible synchronized read fence. The registered World write remains denied without Account commit authorization. Existing revision ledgers and publish digests do not prove the complete contract.
The current implementation does not fully satisfy this decision. The held-back World mutation algorithm advances its declared aggregate and scope epochs with expected-epoch storage predicates, including conflict-safe first claims; execution and remaining limitations are recorded in the [World tracker](../../project-management/implementation-tracking/world-runtime-and-movement.md#current-status). Some mutation shapes can still omit required scope fencing. The new internal Game Design coordinator retains exact base/input binding, declared affected units, per-owner outcomes and a synchronized visibility record, but it is not connected to authenticated complete owner producers or normal authoring reads. `SaveRevision` can still call World Management before Game Design persists its local revision. The registered World write remains denied without Account commit authorization; internal coordination, authorization-order storage, revision ledgers and graph captures do not prove the complete contract. Current coordinator and publication-selection limits belong in the [Game Design tracker](../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#current-status), and Account producer/source-writer limits belong in [Player Access and Session](../../project-management/implementation-tracking/player-access-and-session.md#current-status).

## Decision Record

Expand Down
12 changes: 12 additions & 0 deletions design/architecture/microservices/account-service/api-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ Supported reads and downloads, including any controlled export the product suppo

Decline or missing reacceptance does not itself cancel a subscription, delete content, decide a refund, or change billing or entitlement state. Subscription and billing consequences remain independent under [ADR 0143](../../decisions/adr-0143-stripe-v1-hosting-billing-and-deferred-creator-monetization.md) and the Account subscription lifecycle; payment or continued hosting never implies hosted-terms acceptance or marketplace enrollment. Future creator commerce remains separately gated by [ADR 0179](../../decisions/adr-0179-firemud-managed-creator-commerce-boundary.md).

### Account-Owned Authored-Draft Authorization Fence

Account owns the exact-operation authorization fence for the multi-owner Draft commit in [ADR 0129](../../decisions/adr-0129-durable-fenced-multi-owner-draft-commits.md). It binds the authenticated acting Account, canonical tenant and Version, stable operation and commit identities, complete mutation/input digest, expected Draft and base commit, and each applicable current role, party, terms and authority source with its independent version and checkpoint. Game Design and World remain the mutation owners. A capture, reservation, source receipt or finalization response is not reusable permission for a later owner commit.

Account durably orders the exact operation against changes to every applicable authority source before either owner may commit. If the authority change wins, owner work must be rejected and the source mutation may finish only after definitive, exact no-commit/abort readback from both participants. If the operation wins, Account waits for every participant's definitive outcome. Both commits establish success; both definitive aborts or a definitive mixed vector establish terminal failure/nonpublication and may release the authorization fence without advancing synchronized Draft visibility. World's original applied result remains immutable even when Game Design definitively did not commit. An unknown Game Design result is not no-commit proof: recovery must first recover any valid committed result or obtain durable no-commit evidence that fences delayed attempts for the exact operation. Conflicting, missing or unavailable evidence remains pending. The operation ordering, all original participant results and source-change intent remain durable and immutable; they are not reopened or rewritten to manufacture matching outcomes. The prior synchronized version remains authoritative, and any compensation is a separate freshly authorized operation rather than a rewrite of original apply evidence.

Each local transition uses a short owner transaction; no database lock spans a remote call and this is not a distributed database transaction. The source writer must participate in this ordering at its own commit, including issuer/account-wide changes when applicable. An Account-local reservation table alone does not prove that integration. The fence cannot extend authorization past a disclosed hosted-terms effective date or replace Account's required currentness check; the [hosted-terms contract](#account-owned-hosted-terms-and-creator-party) remains authoritative. Expiry, a lease, an operator acknowledgement, absence of an outcome, or a previously returned authorization result cannot bypass recovery or create permission.

A disclosed terms effective date is never delayed by unresolved owner work and never grandfathers a later Game Design commit. Recovery may recognize an exact valid pre-deadline commit; otherwise Game Design must provide the durable final no-commit proof before the definitive mixed failure can settle. Staged or partially applied content remains non-authoritative and cannot satisfy publication or admission.

**Implementation boundary:** the internal durable fence and participant readback storage are preparation, not an authenticated authorization producer or enabled writer. Complete source-writer participation, current role/party/terms proof, authenticated participant verification and both commit-versus-revocation interleavings remain required before canonical writes may be enabled. No public route or wire schema is selected by this section. Current proof and remaining gates belong to [Player Access and Session](../../../project-management/implementation-tracking/player-access-and-session.md#current-status).

### Account-Owned Playtest Grant Contract

Account is the sole writer and read authority for non-public realm grants under [ADR 0138 (PLAYTEST-01)](../../decisions/adr-0138-expiring-playtest-grants-with-bounded-active-revocation.md). The canonical grant identity is `{accountId, tenantId, worldSlug, realmSlug, playtestLifecycleId}`, with `playtestLifecycleId` immutable for the lifecycle; the record carries active/revoked state, monotonic `grantRevision`, `grantExpiresAt`, grantor/audit metadata, and the stable `requestId` outcome. `tenantAdmin` may create, extend, list, and revoke grants only within the exact tenant it administers. Authenticated `platformAdmin` may create, extend, revoke, or deliberately re-grant only through a distinct reasoned and audited `privileged_control`/break-glass grant-mutation branch governed by [Operator Authorization References](#operator-authorization-references) and [operator delegation](../../system-architecture-authz-route-matrix.md#operator-delegation). The branch requires an Account-issued authorization reference bound to the typed grant action, exact target and current playtest lifecycle, canonical `mutationDigest/v1` digest, live `platformAdmin` role, exact target-tenant generation, and `privileged_control` evidence. The grant's stable `requestId` remains the domain idempotency identity; the operator flow's `controlPlaneRequestId` is a separate correlation identity, and the reference binds both. The branch carries an explicit reason and audit attribution, is distinct from `tenantAdmin`, and is not tenant impersonation or a gameplay grant. Both paths validate the exact tenant, world, realm, account, and current playtest lifecycle; a slug or caller-supplied tenant identifier is not proof.
Expand Down
Loading
Loading