Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ The receipt digest uses the same framing over `game-session-canonical-launch-pre

This local consumer and persistence remain an unwired candidate until their focused producer/consumer proof is complete; implementation and execution limits belong to the [Player Access tracker](../../../project-management/implementation-tracking/player-access-and-session.md). Preparation survivor evidence has no invented TTL or automatic release; cleanup requires its owning retention proof.

### Fresh STARTING owner association and protected World read

For a fresh runtime, Game Session resolves the canonical tenant through Game Design's authenticated `ResolveRuntimeTenantIdentity` read, with a separate request identity and exact namespace, tenant UUID and `NEW_GAME_ROW` source. Game Session allocates its own private tenant key and preserves the complete immutable source association; that key is neither public tenant identity nor permission. The association's source row, former key and provenance must match the committed authored-world intake used by the selected catalog and preparation.

The explicit STARTING owner composes that association, the committed preparation and Game Design's complete descriptor/release-attestation pair outside an ambient transaction. Its short writable READ COMMITTED transaction serializes the namespace/request, creates or exactly reuses the Game Session-owned instance, and captures the immutable launch association atomically. A new instance is `STARTING` and semantically unpinned; no World lifecycle, pointer opening or gameplay admission is created. Independent committed association and instance readback must match before success. Changed owner, request, source or complete pair conflicts without another row; a historical retry cannot assert that World is still preparing or that admission is open. The acting Account UUID remains a management-owner binding, not proof of current Account authorization.

`GetCanonicalGameInstanceLaunchAssociation` is a protected, read-only World composition surface. Require the exact `spiffe://firemud/ns/<namespace>/sa/world-management-service` mTLS caller and equality with the request namespace. The separate read UUID and exact tenant/world/instance/control-plane-request/descriptor selectors, descriptor request/result digests and release-attestation evidence digest must all match the persisted association. Return their exact echoes, complete descriptor and separate attestation, playable namespace/scope, public-production flag and current Game Session row status/version. Missing, contradictory, cross-namespace or changed evidence denies without allocation or enrollment. World independently validates these results; caller-supplied expected digests are selectors, not authority. Current Game Session status/version is not World lifecycle evidence. Optional read wiring defaults off, and the STARTING producer remains explicitly constructed rather than automatically activated. Required execution and complete World/Account/coordinator composition remain tracked in [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md#current-status).

### Retained tenant identity snapshot and local association

Game Session owns the evidence behind `gameSessionEvidenceDigest` in [Game Design's audited association](../game-design-service/api-contracts.md#audited-retained-game-session-tenant-association). It captures an exact, declared identity projection of its retained rows, not a complete runtime backup or proof of historical lifecycle, effects or admission. The closed version-2 snapshot contains `schemaVersion=2`, the exact `targetNamespace`, canonical positive BIGINT decimal-string `legacyGameSessionTenantId`, and all six arrays below. Each array includes every row for that tenant, in ascending numeric primary-key order; the shared namespace uses its tenant primary key. Row objects contain exactly their listed SQL field names. SQL integer values are canonical decimal strings, UUIDs are canonical lowercase strings, booleans are JSON booleans, text is exact valid Unicode, and absent nullable fields are explicit JSON null. Each instance binds both its nullable retained numeric `owner_account_id` and nullable canonical `owner_account_uuid`; at least one must be present. Capturing those exact slots does not prove an association between them, authorize a guessed mapping, or make a retained numeric owner a canonical Account identity. No timestamp, display label, actor/reason or participant-result payload is reconstructed or asserted by this projection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The service runtime model assumes replaceable workers, not authoritative in-proc

## Implementation Status

- The nonactivating fresh launch-owner cut adds authenticated Game Design `NEW_GAME_ROW` tenant association (V15), an explicitly constructed STARTING producer, and atomic instance/complete descriptor-release-attestation capture (V16). The protected `GetCanonicalGameInstanceLaunchAssociation` read requires the exact same-namespace World workload and echoes its immutable selectors; returned status/version describe the current Game Session row, not World lifecycle or admission readiness. Complete-binding preparation independently rechecks the committed local snapshot before its protected Game Design read. Optional receiving configuration defaults off. The producer is not wired into the run-owned coordinator; World prepare/commit/lifecycle composition and deployed proof remain incomplete. The [local API boundary](./api-contracts.md#fresh-starting-owner-association-and-protected-world-read) and [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md) separate this source implementation from activation and execution evidence.

- The unregistered initial canonical realm-catalog candidate stores exact committed authored-world intake evidence and owner-allocated realm/namespace results under the [Game Session catalog contract](./api-contracts.md#initial-canonical-public-production-realm-catalog). V12.1 widens the existing SHARED allocation family without mapping or rewriting retained numeric rows; ISOLATED allocations remain realm-local. This is not a complete catalog lifecycle, creator authorization, instance/pointer producer or admission path. Execution evidence and remaining composition/activation gates belong to [Player Access](../../../project-management/implementation-tracking/player-access-and-session.md).

The sections below define the target-state runtime contract. Current implementation and proof status is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This is a non-normative implementation tracker for player access and session. Ca

## Current Status

The fresh Game Session launch-owner receiving candidate adds a separately authenticated Game Design tenant association, a Game Session-owned private key, and complete v2 launch association capture/read. It retains V15/V16 source/transaction guards, same-namespace World-only transport, genuine SHARED/public-production catalog evidence and exact immutable selector echoes. The explicit, unregistered STARTING producer allocates or exactly retries a real Game Session instance and captures its full descriptor/attestation association in the same owner transaction, with independent committed readback. The source-qualified complete binding read validates the committed preparation before network I/O; no flat numeric launch fallback or runtime activation is supplied. Consolidated jOOQ, main/unit/integration-source compilation, boot JAR, formatting and documentation checks pass; 36 focused Game Session and five shared policy cases pass without failures or skips. PostgreSQL producer, retry, changed-pair rollback and migration definitions compile but have not executed locally. Physical PostgreSQL proof, runtime coordinator wiring, authenticated World preparation/through-commit/lifecycle readback and fresh-image playable proof remain open. Existing numeric capability fields are not canonical tenant association evidence, and Game Session status is not World lifecycle authority.

The current #3029 local candidate adds unwired Account V79 publication participation and the shared exact selected-Draft codec. The existing Game Design adapter preserves its original eight-input selection bytes/digest. Publication reservations and immutable publication/revocation orders share the existing source locks and WAITING journal; source changes cannot finish while any affected publication lacks its own authenticated terminal results. Earlier Draft outcomes cannot satisfy this predicate. Twelve new PostgreSQL definitions cover replay/restart, source races, rollback, direct-SQL guards and retained V78 history, but have not executed locally without Docker. The current authority producer, Game Design no-publication seal, both-owner terminal verification and settlement remain required; nothing here enables publication or creator authority. See [Account's publication authorization owner contract](../../architecture/microservices/account-service/api-contracts.md#account-owned-publication-authorization-fence).

Exact source `d87f9cc2d30e775ea1e0c31f98ddfc64ec28c5ec` [CI37458361299](https://github.com/benhook1013/FireMUD/actions/runs/37458361299) executes nineteen Draft authorization-fence PostgreSQL cases with eighteen passes, one failure and zero skips. Stable unresolved pagination fails because its plain-SQL timestamp cursor is bound as varchar; the correction explicitly casts the original timestamp/UUID cursor without changing ordering or original operation identity. A separate V78 creator-party retained-history fixture targets nonexistent reserved V77; it now migrates genuine V74 history through V78 and compares the complete Account and membership rows, with no party enrollment. Corrected Account check and boot JAR pass in the combined affected gate; all 488 Account integration definitions skip locally without Docker. Corrected PostgreSQL pagination and migration execution remain required. Existing Account proofs do not establish current creator-party/terms authorization or the four live Gameplay owner handoffs.
Expand Down
40 changes: 40 additions & 0 deletions protos/game-session/v1/game_session_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ service GameSessionControlPlaneService {
// Read exact durable owner proof for a World-owned initial-admission hold.
rpc GetInitialAdmissionBindProof(GetInitialAdmissionBindProofRequest)
returns (GetInitialAdmissionBindProofResponse);
// Read the exact Game Session-owned STARTING launch association for World composition.
rpc GetCanonicalGameInstanceLaunchAssociation(
GetCanonicalGameInstanceLaunchAssociationRequest)
returns (GetCanonicalGameInstanceLaunchAssociationResponse);
rpc ValidateBuiltInCommandAlias(ValidateBuiltInCommandAliasRequest)
returns (ValidateBuiltInCommandAliasResponse);
rpc ListAdmissionPointers(ListAdmissionPointersRequest)
Expand Down Expand Up @@ -500,6 +504,42 @@ message GetInitialAdmissionBindProofResponse {
shared.v1.ErrorDetail error = 20;
}

// A transport retry has a separate read identity and cannot create a new launch operation.
message GetCanonicalGameInstanceLaunchAssociationRequest {
string read_request_id = 1;
string target_namespace = 2;
string canonical_tenant_id = 3;
string world_slug = 4;
string game_instance_uuid = 5;
string control_plane_request_id = 6;
string launch_descriptor_id = 7;
string expected_descriptor_request_digest = 8;
string expected_descriptor_result_digest = 9;
string expected_release_attestation_evidence_digest = 10;
}

message GetCanonicalGameInstanceLaunchAssociationResponse {
string read_request_id = 1;
string target_namespace = 2;
string canonical_tenant_id = 3;
string world_slug = 4;
string game_instance_uuid = 5;
string control_plane_request_id = 6;
string launch_descriptor_id = 7;
string descriptor_request_digest = 8;
string descriptor_result_digest = 9;
string release_attestation_evidence_digest = 10;
string playable_state_namespace_id = 11;
string playable_state_scope = 12;
// Current Game Session row projection only; World lifecycle authority remains separate.
string current_game_instance_status = 13;
int64 current_row_version = 14;
gamedesign.v1.LaunchDescriptor launch_descriptor = 15;
gamedesign.v1.AuthoredWorldReleaseAttestationEvidence release_attestation = 16;
shared.v1.ErrorDetail error = 17;
bool public_production = 18;
}

message GetGameplayCommandStatusRequest {
string command_id = 1;
string tenant_id = 2;
Expand Down
Loading
Loading