Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
81b5267
Prepare created actor owner and immediate roster consumer
benhook1013 Oct 24, 2026
1cafc09
Receive typed created-roster owner evidence failures
benhook1013 Oct 24, 2026
b53bc6f
Receive qualified public creation source review corrections
benhook1013 Oct 24, 2026
765f4b2
Merge commit '5297c88ffcf9126454029b7749d5943c7df954b1' into codex/ga…
benhook1013 Oct 24, 2026
92473e0
Merge commit '2aa25d9327bd9c15698c69168f2c96254f0fa732' into codex/ga…
benhook1013 Oct 24, 2026
8d341be
docs: record created owner and roster component qualification
benhook1013 Oct 24, 2026
c9bd1ce
test: compose player-created roster owners over authenticated transports
benhook1013 Oct 24, 2026
36305dd
Record initial created-roster composition proof and narrow fixture ac…
benhook1013 Oct 24, 2026
7c4cec2
Merge branch 'codex/gameplay-created-roster-source-parent-proof-20261…
benhook1013 Oct 24, 2026
7e9c959
Merge branch 'codex/gameplay-created-roster-source-parent-proof-20261…
benhook1013 Oct 24, 2026
c977409
Apply canonical formatting to coupled owner proof
benhook1013 Oct 24, 2026
4920bce
Record current-parent created-roster qualification and remaining admi…
benhook1013 Oct 24, 2026
1f42196
Bound physical created-roster composition RPCs for CI
benhook1013 Oct 24, 2026
914f1ec
Document shutdown side effects in coupled roster test channel
benhook1013 Oct 24, 2026
ec73c12
fix(gameplay): preserve created roster failure and retirement contracts
benhook1013 Oct 24, 2026
ebf1950
Fix created-roster source errors and bounded receipt validation
benhook1013 Oct 24, 2026
76a2a5e
Receive current roster source parent and merged CI replay repair
benhook1013 Oct 24, 2026
139f779
Receive qualified retirement metrics and horizon proof through source…
benhook1013 Oct 24, 2026
4d0dd8e
Fix created roster review boundaries and quarantine proof
benhook1013 Oct 24, 2026
a673a22
Receive protected roster recovery observability in created owner
benhook1013 Oct 24, 2026
faf3ab8
Supply recovery metrics in created owner unit fixtures
benhook1013 Oct 24, 2026
ba0a88a
Merge commit '15d9d0b65434041af689d4079b8755485fc04525' into codex/ga…
benhook1013 Oct 24, 2026
c282e2c
Name the explicit preseeded owner composition proof
benhook1013 Oct 24, 2026
9f02353
Carry qualified roster replay and dispatch corrections into created c…
benhook1013 Oct 24, 2026
6f68adc
Reconcile created roster owners with bounded sibling retirement
benhook1013 Oct 24, 2026
337f5b8
Merge commit 'bd032b622d7696ebfeeab462d9c2907b9eed8765' into codex/ga…
benhook1013 Oct 24, 2026
7f44ad9
Record current-parent created roster qualification
benhook1013 Oct 24, 2026
d92b28b
Qualify created roster retention progress and large owner calls
benhook1013 Oct 24, 2026
99068ed
Record qualified created roster correction and fresh image proof
benhook1013 Oct 24, 2026
f8567ea
Guard production created-roster request bytes and qualify complete ow…
benhook1013 Oct 24, 2026
8e752d6
Receive trusted deferred-gate maintenance from roster parent
benhook1013 Oct 24, 2026
a93b003
fix: retain default gRPC bounds and recover owner fixtures
benhook1013 Oct 24, 2026
05facd2
Merge typed roster transport prerequisite into owner consumer
benhook1013 Oct 24, 2026
30a205f
Merge clarified transport contract summary with full owner status
benhook1013 Oct 24, 2026
c156886
Merge commit '9a31043133ff1423c588748c1bc8c9415b425ae5' into codex/ga…
benhook1013 Oct 24, 2026
1530f77
Merge commit '1a889d0e71484f2ff133f52c5df93c819fb053e2' into codex/ga…
benhook1013 Oct 24, 2026
e4b5394
Merge commit '76c03828ab1acf096dd7ecbaf21e917cc1cb9b1e' into codex/ga…
benhook1013 Oct 25, 2026
fe5d7f4
Prove classification shape and proof budgets survive migrations
benhook1013 Oct 25, 2026
7f2fda0
Refuse fresh empty created rosters that hide retained actors
benhook1013 Oct 25, 2026
1f5d97f
Stabilize created-roster proof and clarify classification input
benhook1013 Oct 25, 2026
d6b6d8c
Reconcile bounded retention fixes and preserve created-roster receipts
benhook1013 Oct 25, 2026
7229668
Carry current dependency baseline into player-created owner composition
benhook1013 Oct 25, 2026
f07ebad
Merge commit '843cf563a9ad6995e671593edae2add2690f1f85' into codex/ga…
benhook1013 Oct 25, 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 @@ -23,6 +23,7 @@ This document defines Entity Management’s runtime model, persistence ownership

- Entity V1003–V1005 adds independent opaque actor UUIDs, quarantine metadata, exact namespace/scope constraints, and canonical lookup indexes without inferring Account or tenant UUID provenance. Legacy values are retained. The exact canonical repository reader excludes quarantined rows. Existing legacy consumers retain develop behavior for legacy rows, while numeric character, inventory, equipment, friend, resource and condition predicates exclude actors carrying canonical `tenant_uuid` provenance even when their status becomes `QUARANTINED`, including updates and condition expiry. Legitimate legacy/quarantined rows with null canonical tenant provenance retain legacy behavior. Entity's private tenant-row association is not a platform numeric tenant identity; equal numeric values do not authorize legacy access to a canonical actor. Canonical UUID assignment, receipt and roster predicates remain separate. This narrow storage bridge boundary does not activate runtime quarantine enforcement or canonical player admission.
- Entity V1006–V1010 adds committed assignment/receipt and sealed roster-snapshot storage with canonical publication identity and exact owner counters. The services and certificate-guarded client/read-adapter source definitions are manually composed and unregistered; neither default scanning nor an optional flag registers them. No authenticated production transport, actor promotion of retained legacy rows, or runtime admission is activated. The detailed assignment/roster contract remains in [Entity API Contracts](./api-contracts.md#implementation-status).
- Forward V1016 adds the immutable `PLAYER_CREATED` source identity and created-receipt branch while preserving the `PRESEEDED_ONLY` guards and budgets. The [owning tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#player-created-owner-and-roster-preparation) records qualified controlled initial storage/transport composition and separate retention components. Full guarded post-issuance supersession through retirement remains unrun; the path stays unregistered, with production custody, Account settlement, admission and activation unproved.
- Sealed canonical roster snapshots and their actor references are immutable Entity-owned records: append a new snapshot/reference set when the canonical target or roster changes, preserving the existing deletion guards. The [family retention declaration](#sealed-canonical-roster-retention) defines its ADR 0163 obligations. Before any handler, service, or alternative snapshot writer is registered, owner-local disposal must be proved with authoritative terminal/reference/hold carriers and compatible configured horizons. Local carrier and disposal source is prepared with focused qualification; genuine producer composition and registration remain unavailable. See the [implementation tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#canonical-sealed-roster-retention-prerequisite). This does not set a numeric horizon, authorize deletion, or establish indefinite retention. The current passive writer has no registered production call chain; its pending implementation obligation is tracked under #2967 and is not completion or merge proof.
- Standard, production, and test Flyway profiles use PostgreSQL `transactional-lock=false` for V1004's concurrent index builds. Entity V1003–V1010 follows unchanged develop Saga V1000–V1002 under the default combined migration locations. Current storage, fresh packaged legacy player-flow, and actual-parent upgrade qualification and its local infrastructure limits are recorded under [GR-3.1](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#validation-and-proof).
- Actual authenticated owner provenance and the real Game Session caller/controller/execution replacement remain incomplete. Test-created `OWNER_RESOLVED` rows establish bounded storage isolation only; legacy names, numeric IDs, `shared-live`, `instance:<id>`, and runtime pointers never fill missing canonical owner evidence. Runtime quarantine guards, cleanup holds, and condition-expiry retention belong to the later runtime boundary.
Expand Down Expand Up @@ -341,6 +342,14 @@ An unbound `OPEN` admission with no local original selection is a distinct local

The configured cadence and batch bound limit each owner-local sweep. Its bounded health metrics must report oldest blocking retirement, cleanup lag and per-sweep disposed/blocked/failure counts with fixed outcome labels; snapshot, actor, account, tenant and namespace identifiers must not become metric labels. These are family-specific cleanup obligations, not a global garbage-collection registration.

#### Player-created snapshot storage

Forward `V1021__character_create_binary_safe_immutability.sql` preserves the existing creation intent and terminal transition with an exact typed-row comparison, avoiding JSON materialization of large binary terminal/proof columns. Published creation V1015 remains unchanged. Forward `V1016__player_created_roster_snapshot_receipts.sql` extends the existing sealed-roster family after Entity creation V1015. A `PLAYER_CREATED` snapshot requires `SHARED` scope and immutable canonical `canonical_player_created_source_identity` bytes; preseeded snapshots keep that column null. Immutable entry-policy metadata selects the applicable admission, original receipt, lifecycle-proof and outbox branch. The created original receipt is distinct and mutually exclusive with the preseeded receipt. Prior preseeded digest/history, provenance, immutability, reference/hold, epoch, conditional-disposal and late-nonce guards remain effective. Created receipt/proof/ACK storage uses its explicit purpose budgets, including the complete selected terminal in retirement evidence, while existing preseeded caps remain unchanged. The [Entity API owner](./api-contracts.md#player-created-roster-and-selected-character) defines the wire identities and bounds. Entity's original-reference, retirement acknowledgement and confirmation client calls use a finite ten-second RPC deadline for validated `PLAYER_CREATED` targets; preseeded calls and generic owner reads retain five seconds. These deadlines cover the RPC itself, with request prevalidation and response validation performed separately.

Forward `V1020__canonical_roster_created_retirement_recognition.sql` extends retained target classification and snapshot inventory with additive typed recognition. A created retirement target binds the canonical account, complete target and complete canonical created-source identity; preseeded target bytes remain unchanged. Bounded initialization adds version-two metadata against exact immutable source bytes and positive retirement proof without replacing the original classification, snapshot, transfer or seal rows. The effective metadata view requires the applicable actual source family and exact retained evidence; a version marker alone grants no authority. A valid typed classification can qualify an earlier unrecognized created source, while malformed or uninitialized retained evidence keeps the roster boundary protected. Legacy seals whose stored target omits the created source stay protected rather than being rewritten. Created siblings use the same shared acquisition fence and independent per-snapshot preparation, holds, horizons and disposal checks described in [sealed roster retention](#sealed-canonical-roster-retention).

Capture uses one short writable owner transaction in the established order: admission nonce, original operation, namespace enrollment, tenant association and account roster guard, then the applicable snapshot/reference rows. Under those fences it checks actual retained creation-operation and actor provenance, captures the ordered roster, persists or reuses its exact source-bound snapshot, seals it and binds admission plus original receipt atomically. Any failed validation or bind rolls the capture back. Exact operation replay reads the retained receipt; selected readback requires the existing nonce and immutable original snapshot, checks the persisted original creation terminal and performs no actor allocation. Source and owner RPCs precede SQL, and the shared retention/recovery/outbox family preserves full created receipt bytes while using a validated generic projection only for snapshot comparisons. Unknown outcomes and outstanding references or holds retain their existing protection.

### Persisted actor and realm-entry identity

Under [ADR 0140](../../decisions/adr-0140-realm-authored-controllable-actor-entry.md), Entity Management is the persistence authority for the generic primary controllable actor. It allocates canonical `characterId` values and stores the namespace/association tuple `{accountId, tenantId, playableStateNamespaceId, characterId}`. The durable actor storage key is `{tenantId, playableStateNamespaceId, characterId}`; `playableStateScope` is separately validated server-derived policy/routing evidence and `gameInstanceId` is only the replaceable active-runtime fence for namespace-backed writes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Target state makes Game Session the authoritative owner of region/tick coordinat

## Implementation Status

Closed created-receipt wire checks and mandatory bounded production server registration are present. Created selection persistence, Entity client and owner-retirement composition remain separate implementation work. The transport foundation does not enable the created owner or establish player admission.

The initial-LOGIN PostgreSQL journal and exact original-attempt cleanup owner are unregistered source preparation, with no new Game Session endpoint or legacy LOGIN handler composition. Their unregistered Account client authenticates the exact same-namespace Account mTLS peer and validates the explicit initial delegation profile, signature, original request/context, token hash, claim/projection equality and bounded nonsecret evidence. Its one transient invocation permits at most one transport reload/retry under the unchanged deadline. It also uses the original-request retirement contract. The result retains compact private-token bytes only in process; validation supplies neither current registry authority nor live context installation. Journal snapshots and typed closure fixtures supply no authenticated caller custody or physical Redis closure; the separate Redis adapter remains outside runtime composition. See the [canonical coordination contract](../../system-architecture-jwt-and-token-contracts.md#game-session-original-attempt-coordination) and [implementation tracker](../../../project-management/implementation-tracking/player-access-and-session.md#initial-private-gameplay-login-issuance-source-intake).

The source-first owner stage consumes the closed Game Design creation/source receipt, four immutable launch snapshots and policy seal through the trusted fixed capability parser. `RunOwnedCanonicalLaunchPreparationOwner` exposes canonical fresh-association, catalog and `STARTING` creation with independent owner readback only through an explicit preparation call; it has no scheduler. The published `RunOwnedInitialAdmissionFixtureCoordinator` bootstrap and existing `GameInstanceServiceImpl` behavior remain until coherent canonical adoption, so this source-first path is not evidence that the current scheduled runtime allocates that canonical launch. Game Design source keys and Game Session's allocated private tenant/runtime keys remain separate. The published numeric fixture path has not been removed by this source-only split. This explicit canonical path establishes no canonical World materialization/activation, canonical first-`OPEN`, or canonical admission result.
Expand Down Expand Up @@ -38,6 +36,8 @@ This document mixes live and target-state control-plane surfaces. Current live b

Read the pause/status/recovery APIs below as the target-state contract unless the [Game Session runtime and tick coordination tracker](../../../project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md) explicitly records them as live.

The unregistered created-owner consumer contains V1017 and V1020; V1020's created-receipt branch does not supply the separate canonical UUID runtime or creation-protection prerequisites. The [player-created roster consumer tracker](../../../project-management/implementation-tracking/player-access-and-session.md#player-created-roster-consumer-preparation) records controlled initial source/receipt/replay qualification, separate recovery/retirement/ACK components and the still-unrun guarded post-issuance supersession composition. Production custody, Account settlement, production PKI, registration, activation and public admission remain unproved. The independently qualified [public character-creation source-read contract](#public-character-creation-source-read) remains a separate boundary.

For script transitions, the live boundary includes the exact `scriptPinEpoch` and an atomic current-pin/request-result ledger commit; bounded authoritative history readback and append-only rollout history remain target-state gaps. Target pin and rollback requests require the explicit tagged `expectedCurrentPin` precondition defined in the [Scripting Control Plane API](../../system-architecture-scripting-control-plane-api.md): exactly `UNCONDITIONAL`, `EXPECT_UNPINNED`, or `EXPECT_EPOCH(scriptPinEpoch)`, with the complete tag/value included in the normalized digest. Missing/unknown tags fail validation; a both-absent tuple for a never-pinned instance is valid semantic `UNPINNED` and matches only `EXPECT_UNPINNED`; a partial tuple is invalid owner state, cannot satisfy `EXPECT_UNPINNED` or `EXPECT_EPOCH`, and is rejected/fails closed even for an `UNCONDITIONAL` request. Missing or unreadable authority is not `UNPINNED` and remains unavailable. `UNCONDITIONAL` is only the explicit `platformAdmin` break-glass repair branch with the matrix's `privileged_control` authorization; it skips only current-pin comparison and does not bypass coherent owner state, readiness, or other validation. See [Rollout and Rollback](../../system-architecture-scripting-rollout-and-rollback.md#pin-compare-and-set-preconditions) for the owner semantics. A valid precondition mismatch is deterministic and non-mutating and follows the existing idempotency/history semantics.

## Service Interactions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ The sections below define the target-state runtime contract. Current implementat
- Bounded durable semantic reconnect-context persistence is partial: ordered `resume_transcript_entry` rows and best-effort Redis caching are live, while namespace-key migration to `{tenantId, playableStateNamespaceId, characterId}`, the distinct durable `resumeContextGeneration` episode fence and termination protocol, complete-envelope hard-bound accounting and omission-marker convergence, and post-logout replay suppression remain implementation/proof gaps.
- Current live/recent presence projection wiring is implementation drift: `gameplaypresence:session:<sessionId>`, its game-instance/account set indexes, and `accountrecentpresence:<tenantId>:<accountId>` are written with untagged, separate Redis value/index operations. Game Session remains the target owner, but the physical shapes, storage-role classification, exact scope, partial-write handling, reset/rebuild/readback behavior, and private-by-failure contract are unproved; the [Redis owner and reset catalog](../../system-architecture-redis-reset-and-recovery.md#reset-policy-matrix-prefix-summary) records these current families without accepting them as target authority.
- Current LOOK handling writes the legacy `lookcache:<tenantId>:<legacySessionOrInstanceId>` projection even though reads remain authoritative/uncached. Its ten-minute, session-or-instance-only scope lacks the target viewer, policy, and causal read-fence identity; it is disposable implementation drift and must not be treated as the target `view:room-look:*` cache. See the [Redis cache catalog](../../system-architecture-redis-cache-reference.md#cache-rate-limit-key-catalog).

- The unregistered created-owner consumer includes V1017/V1020 but omits the separate canonical UUID runtime and creation-protection storage; created-receipt fields supply neither prerequisite. The [owning tracker](../../../project-management/implementation-tracking/player-access-and-session.md#player-created-roster-consumer-preparation) records controlled initial receipt/replay and separate retention-component proof, with current guarded post-issuance supersession through retirement still unrun. Production custody, Account settlement, production PKI, registration, activation and gameplay admission remain unproved.
- The current Flyway history also contains the Java/nontransactional `V8__remote_followup_target_instance_effect_identity` migration (`CREATE INDEX CONCURRENTLY`, `canExecuteInTransaction() = false`). This is outside the SQL migration input used by shared jOOQ generation and is not yet inventoried or proved as a narrow exception to the SQL-only persistence lineage.

## Runtime Details
Expand Down Expand Up @@ -81,6 +83,10 @@ Each acknowledgement binds the original operation, full account/target and same-

Compact transfer receipts survive original removal and remain protected until Entity confirms it durably received the first acknowledgement response. Their finite cleanup horizon covers both owners' declared retry/restore windows and starts after both confirmation and original removal. A lost request or reply retries the same immutable transfer. Once a confirmed receipt has itself been lawfully disposed, repeating its delivery confirmation is a harmless no-op: it creates no acknowledgement, release, retirement proof or target authority. Missing first-acknowledgement evidence remains unavailable. Unconfirmed transfer lineage remains protected rather than discarding the only retry evidence.

#### Player-created original roster storage

The created branch retains its exact typed roster receipt and selected-character receipt on the original operation, separately from the preseeded assignment receipt. Forward V1022 preserves the recovery-attempt timestamp transition with an exact typed-row comparison, so checking unchanged selected receipts does not convert large binary values to JSON; published V1020 and V1021 remain unchanged. Original-reference and retirement storage preserve the complete selected payload without truncation. Recovery retains the exact typed created-roster receipt independently of the selected terminal, while the existing preseeded storage branch remains unchanged. The [API contract](./api-contracts.md#player-created-original-roster-consequences) owns the shared transport ceiling and mandatory request admission before protobuf parsing; the default remains the framework limit, while an explicitly enlarged shared deframing path requires separate resource, concurrency and latency qualification before live created-owner activation. Current implementation and migration qualification are recorded in the [Player Access and Session tracker](../../../project-management/implementation-tracking/player-access-and-session.md#player-created-roster-consumer-preparation) and [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#player-created-owner-and-roster-preparation).

The unregistered bounded retention service uses the configured cadence and batch bound, pages past protected candidates, and reports oldest blocking age, cleanup lag, pending-transfer age and fixed cleanup outcomes without identity-bearing metric labels. Unfinished or unavailable authority remains protected. Production registration and real gameplay admission stay closed pending the [owning proof gate](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#canonical-sealed-roster-retention-prerequisite).

## Owner-Local Gameplay Restrictions
Expand Down
Loading
Loading