Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
6ac9438
Checkpoint created actor runtime projection and origin consumers
benhook1013 Oct 27, 2026
e09ec57
Merge commit '045da05c27ee1f86accbeab14e484c43136b4aab' into codex/ga…
benhook1013 Oct 28, 2026
95ad659
Correct created-origin pairing and receiving source fixtures
benhook1013 Oct 28, 2026
fa10f06
Merge commit '64df5062c853bb9b93a0aed1c9401d2cd7ebbd3d' into codex/ga…
benhook1013 Oct 28, 2026
571ebed
test: qualify created-origin receiving and fresh region grants
benhook1013 Oct 28, 2026
a80b9ea
Merge commit '115032f9a1f38e59ae6f94ea9a5a74d953bc1098' into codex/ga…
benhook1013 Oct 28, 2026
dce04e3
Merge commit 'd0680ae89c4cc6f8db4bfc69f0fb8d921354ff23' into codex/ga…
benhook1013 Oct 28, 2026
f8a23b9
docs: record combined-parent created-origin proof
benhook1013 Oct 28, 2026
290a5ea
Merge commit '031ed71ddc7135afdfba576b2bb14bd46cc0406f' into codex/ga…
benhook1013 Oct 28, 2026
b8a0391
Merge commit '4f7682db74fcde4fab5b022bdffdf2ffcb9d11d0' into codex/ga…
benhook1013 Oct 28, 2026
c8ed869
docs: record staged final and created-origin receiving proof
benhook1013 Oct 28, 2026
3637672
Merge commit '085c1a1202ef7f42af829548b86c46cfb95079c3' into codex/ga…
benhook1013 Oct 28, 2026
01f00c6
Record unresolved CI readiness interpretation gap
benhook1013 Oct 28, 2026
e4dc82a
Merge commit 'ad2ab4fbfa59afcb968798d78027e1a25c20bb74' into codex/ga…
benhook1013 Oct 28, 2026
c36d1e9
Merge commit '7995cccf79ce70c012600fcad4f6a00a08603b1d' into codex/ga…
benhook1013 Oct 28, 2026
e6c8d56
docs: distinguish source observation recovery from diagnosis
benhook1013 Oct 28, 2026
cb4c664
Merge commit '5ade81ff3b3490f1dc3eb1327c6e85abea2876ca' into codex/ga…
benhook1013 Oct 28, 2026
dec6b62
docs: record created-origin receiving startup recovery
benhook1013 Oct 28, 2026
371c169
Merge commit 'b036382d9c8d93696d9bb1d646760dca6f21a119' into codex/ga…
benhook1013 Oct 28, 2026
5b1fc91
Merge commit '97e1e333fac0ab696e15941ad25567c4f50ba67e' into codex/ga…
benhook1013 Oct 28, 2026
1a7e0de
docs: record complete parent carry and startup recoveries
benhook1013 Oct 28, 2026
1b51be6
Merge commit '6117aeb55c92d1e30e9642bdf1e225d1dfca4ce9' into codex/ga…
benhook1013 Oct 28, 2026
a6aa0ef
test: retain predecessor images across created origin extension
benhook1013 Oct 28, 2026
3797f64
Merge commit '84633d08267275710408d5a1c0f7847493d03b82' into codex/ga…
benhook1013 Oct 28, 2026
8b6230f
Merge commit '449b22956ed35ee41d4886a3e85e6cf6ea09ba8f' into codex/ga…
benhook1013 Oct 28, 2026
a250e27
test: advance retained Entity migration manifests through created pro…
benhook1013 Oct 28, 2026
f092e02
Merge commit '28e187cac38722ffed213ae1919abd34cc6d3495' into codex/ga…
benhook1013 Oct 28, 2026
67479c5
Merge commit 'f5e03c566eef20e189ca0160417ce067140d6be3' into codex/ga…
benhook1013 Oct 29, 2026
726203e
Use closed actor receipts and stream-aware Telnet test assertions
benhook1013 Oct 29, 2026
77bdc89
Merge commit 'b8147a63d03329f0a96e2b00b24cc58bb170fa5e' into codex/ga…
benhook1013 Oct 29, 2026
3215055
Merge commit '0354c27394824edd334216b45f1438a2d9de8e3e' into codex/ga…
benhook1013 Oct 29, 2026
9b4d7a3
Retain canonical receiving proof postimages
benhook1013 Oct 29, 2026
d107e3c
Merge commit '7aab564f6eea3774915a1d8565874fd33db88127' into codex/ga…
benhook1013 Oct 29, 2026
1ca0e31
docs: align created projection lifecycle and placement scope
benhook1013 Oct 29, 2026
0ee5218
docs: retain failed supplementary gate callback diagnosis
benhook1013 Oct 29, 2026
7a393e7
Record validation-gate recovery and actionable review obligations
benhook1013 Oct 29, 2026
ffa1089
Carry reconciled NEW parents into created-origin consumers
benhook1013 Oct 29, 2026
1e461b1
test(entity): assert projection immutability at the owning guard
benhook1013 Oct 29, 2026
02af930
Carry parent review fixes into created actor receiving boundary
benhook1013 Oct 29, 2026
7f1b303
Apply qualified candidate proof and canonical formatting in receiving…
benhook1013 Oct 29, 2026
c577e86
Merge branch 'codex/gameplay-original-new-final-admission-20261027' i…
benhook1013 Oct 29, 2026
3be4579
Preserve created-owner anchors while carrying current parent contracts
benhook1013 Oct 29, 2026
47a3ab2
Merge branch 'codex/gameplay-original-new-final-admission-20261027' i…
benhook1013 Oct 29, 2026
426c70e
Merge branch 'codex/gameplay-original-new-final-admission-20261027' i…
benhook1013 Oct 29, 2026
62d9a1c
style(gameplay): retain canonical World composition spacing
benhook1013 Oct 29, 2026
d607a6f
Merge branch 'codex/gameplay-original-new-final-admission-20261027' i…
benhook1013 Oct 29, 2026
56ed222
fix(world): bind created actor origin as native jsonb
benhook1013 Oct 29, 2026
26f62aa
docs: retain native placement and controller recovery lessons
benhook1013 Oct 29, 2026
60f368b
test(world): retain complete V1045 migration probe prerequisites
benhook1013 Oct 29, 2026
eafdb2a
test(issuer): prove retention guards at actual historical frontiers
benhook1013 Oct 29, 2026
ea15b9d
Merge commit '68719e9520994256e165e2a1f6c1ed4b052eba37' into codex/ga…
benhook1013 Oct 29, 2026
e2b2f00
Record bounded CI pagination and controller observation recovery lessons
benhook1013 Oct 29, 2026
46e492f
Merge commit 'bd6c0f3a02e8cca2d49ac16e085ef4d0676434f4' into codex/ga…
benhook1013 Oct 29, 2026
dde2bf1
Keep historical CAS fixture type available after parent reconciliation
benhook1013 Oct 29, 2026
763e2df
Merge commit '11f30d779f8a07c5474c2671eb24f4a0a3959190' into codex/ga…
benhook1013 Oct 29, 2026
3d6c45d
Merge commit 'da78404eb0e0ec34643808dc8b01518f2a89ff76' into codex/ga…
benhook1013 Oct 29, 2026
39b6dce
Merge commit 'd64626eb1ee94f7d5de1a870462dd0a6a4f2bcf0' into codex/ga…
benhook1013 Oct 29, 2026
7790667
Merge branch 'codex/gameplay-original-new-negative-cleanup-20261030' …
benhook1013 Oct 29, 2026
f5d9a72
Merge commit 'd2e3a21a31419680e68ab2da6ea7e808e4efd83c' into codex/ga…
benhook1013 Oct 29, 2026
b768881
fix: preserve never-dispatched cleanup across created-origin migration
benhook1013 Oct 29, 2026
c1f39e6
test: preserve primary World migration failures through cleanup
benhook1013 Oct 29, 2026
e93aac6
Merge commit 'd77e9edfa6343297f98aaee3919b2bf2451d524c' into codex/ga…
benhook1013 Oct 29, 2026
5ce29bf
Merge commit '184c041e2bc0d76b1ca4900af2042ee4a723a972' into codex/ga…
benhook1013 Oct 29, 2026
d5a0241
Merge commit 'b0ea8f107b51ae0d2250b354dd4c3b9c871b474b' into codex/ga…
benhook1013 Oct 29, 2026
643d360
Merge commit '8ac55c69ed8e2fb16d0b907c83a86aabd3cf7b31' into codex/ga…
benhook1013 Oct 29, 2026
b7143cf
Merge commit '5c2c225d7c24ad350a8321ba35a3bb595540a71a' into codex/ga…
benhook1013 Oct 29, 2026
e0f56c5
Record created-origin receiving recovery and retained upgrade proof
benhook1013 Oct 29, 2026
64f0c0f
Merge commit '83f9c496ba0ec5b1b3734baac391d768f2ec6d29' into codex/ga…
benhook1013 Oct 29, 2026
88424b0
Retain validated created-origin receiving test formatting
benhook1013 Oct 29, 2026
158cdf1
Merge commit 'c71b1dd4483ad01b865e2f495768323a6826b1e1' into codex/ga…
benhook1013 Oct 29, 2026
235f4f5
Merge commit 'addd87bdbbb05000b4c374de3a8ebc4e9632a6ca' into codex/ga…
benhook1013 Oct 29, 2026
ec695b2
Retain final-owner receiving proof and clock-recovery attribution
benhook1013 Oct 29, 2026
e217155
Merge commit 'aee0e254cc4c3496eb331c9572533aa925ef9fcf' into codex/ga…
benhook1013 Oct 29, 2026
ad546a5
Retain descendant clock proof and its documentation failure limit
benhook1013 Oct 29, 2026
fc8abdf
Normalize created actor reference selector refusals and proof status
benhook1013 Oct 29, 2026
2cb1041
Record observed Hosted capture timing after controller deployment
benhook1013 Oct 29, 2026
2ad49dd
Carry qualified original NEW cleanup repairs into created-origin cons…
benhook1013 Oct 29, 2026
063cb41
Carry qualified negative-read repairs into created-origin proof
benhook1013 Oct 29, 2026
fbc1b1d
Carry current develop ancestry into created-origin proof
benhook1013 Oct 29, 2026
b48a473
test(world): prove created-origin placement with actual local owners
benhook1013 Oct 29, 2026
61b4982
docs: attribute controlled created-origin World placement proof
benhook1013 Oct 29, 2026
7789779
Merge commit '6c97bfe474' into codex/gameplay-created-owner-consumer-…
benhook1013 Oct 29, 2026
57a73ad
fix: qualify retained region bridges before upgrading created origins
benhook1013 Oct 29, 2026
d896365
test(world): bind listeners before copying client endpoints
benhook1013 Oct 29, 2026
4e877e5
Merge commit '838ec65bb288a418629a36f857ee17197c81141f' into codex/ga…
benhook1013 Oct 29, 2026
4dcb668
docs: retain created-origin repair and port recovery proof
benhook1013 Oct 29, 2026
10acecc
Preserve executor fence upgrade proof before exact preparation refusal
benhook1013 Oct 29, 2026
573f761
Merge commit '81fac66661' into codex/gameplay-created-owner-consumer-…
benhook1013 Oct 29, 2026
9c07225
Record current-parent created actor receiving proof
benhook1013 Oct 29, 2026
5740821
Merge commit 'ab41ab2a60' into codex/gameplay-created-owner-consumer-…
benhook1013 Oct 29, 2026
bf99a26
Record retained state guard receiving qualification
benhook1013 Oct 29, 2026
31a92bb
Unify created reference refusals and freeze historical bridge proof
benhook1013 Oct 30, 2026
434b8ae
Describe the staged created-runtime reference reads accurately
benhook1013 Oct 30, 2026
ed33eff
Merge commit 'ea9bc2aba5036b9ff30f3b034b0f6089dc46a6cb' into codex/ga…
benhook1013 Oct 30, 2026
a8ed306
Carry the verified front retention proof into created-owner delivery
benhook1013 Oct 30, 2026
c0f745e
Assert created Entity outage preserves unavailable status
benhook1013 Oct 30, 2026
e45cdc5
Merge commit 'e067e02cc4039d6f415ee4c4943db2de1b9fadfb' into codex/ga…
benhook1013 Oct 30, 2026
4023bdf
Merge commit '8ebcae8dbefbd100e9518b88decedd054b383b2d' into codex/ga…
benhook1013 Oct 30, 2026
f476582
Bound first-NEW abort guard planning without changing checks
benhook1013 Oct 30, 2026
9ad0632
Merge commit '76bb89f9f7ade57a3c590c1305ed5a01cf4b9de6' into codex/ga…
benhook1013 Oct 30, 2026
b0f623a
Resolve abort planner migration against the active Flyway schema
benhook1013 Oct 30, 2026
6289027
Isolate issuer test state and retain native CI task profiles
benhook1013 Oct 30, 2026
580e2e9
Receive merged front and require exactly one Entity read per placemen…
benhook1013 Oct 30, 2026
cc28259
Align retained region upgrade proof with complete current migration h…
benhook1013 Oct 30, 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
3 changes: 2 additions & 1 deletion .github/scripts/run-gradle-module-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ bash "$ROOT_DIR/dev-tools/validation/run-gradle-with-dependency-recovery.sh" \
--max-workers=2 \
'-Dorg.gradle.jvmargs=-Xmx2500m -Dfile.encoding=UTF-8' \
":${MODULE}:check" \
-PfullCheck
-PfullCheck \
--profile
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,15 @@ jobs:
if-no-files-found: warn
retention-days: 14

- name: Upload Gradle Task Profile
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: gradle-profile-${{ matrix.module }}-${{ github.sha }}-attempt-${{ github.run_attempt }}
path: build/reports/profile/
if-no-files-found: warn
retention-days: 14

# Final gating and PR reporting
validation-gate:
name: Validation Gate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ This read authenticates historical assignment provenance only. It does not reval

## Initial runtime actor reference

`CanonicalPlayerCreatedRuntimeReferenceService` exposes separate `ReadPlayerCreatedActorPlacementReceipt` (World only) and `ReadPlayerCreatedActorRuntimeReference` (Game Session only) methods. Each requires exact same-namespace mTLS role identity before decoding. The closed schema-one selector carries the complete actor target and original creation operation, mutation digest and terminal UUID/raw SHA256. The owner first reads and validates the actual committed creation, then reads the unquarantined actor and original runtime projection in a repeatable-read, read-only transaction before returning the scoped numeric runtime ID, projection generation/fence and original catalog/pointer/lifecycle/policy consequence. Requests are bounded to 4 KiB and responses to 8 KiB. No request is a credential; missing or changed retained provenance refuses without allocation or backfill. The [runtime projection owner](./runtime-and-data.md#initial-runtime-actor-projection-and-reference) defines write authority and retention. These readers are manually bound and unregistered; historical evidence grants no fresh Account eligibility, World activation or gameplay admission.

The created-origin reads return no partial response or response-level error: wrong peer or owner namespace uses `PERMISSION_DENIED`; malformed closed selectors use `INVALID_ARGUMENT`; every well-formed selector with missing or mismatched original evidence, including a changed mutation digest, uses the same bounded `FAILED_PRECONDITION` refusal. This read-only mapping does not change the creation writer's `ALREADY_EXISTS` idempotency conflict. Transient storage failures use `UNAVAILABLE`, invalid retained evidence uses `DATA_LOSS`, and unexpected failures use `INTERNAL`; status descriptions omit private storage details.

`CanonicalPreseededActorAssignmentService.ReadPreseededActorRuntimeReference` is a distinct read for the exact same-namespace Game Session workload. It loads the actual Entity-owned projection for the original assignment, full expected target and character; it never allocates or backfills a missing projection. The [Entity runtime projection owner](./runtime-and-data.md#initial-runtime-actor-projection-and-reference) defines allocation, uniqueness, retained generations and nonreuse. The response carries that typed scoped numeric runtime identity, projection generation/fence and complete original assignment provenance in a closed bounded envelope. The existing assignment and World-only receipt messages retain their character-UUID semantics and immutable bytes.

The service authenticates this method's Game Session peer before selector decoding, rejects unknown or malformed fields and mismatched scope/provenance, and bounds both request and response at its manual transport boundary. It returns no reference for missing, stale or contradictory projection state and exposes no general entity lookup. Peer failure returns `PERMISSION_DENIED`; malformed selectors return `INVALID_ARGUMENT`; an absent or stale projection returns `NOT_FOUND`, including quarantine or selector drift; contradictory provenance returns `FAILED_PRECONDITION`; transient data-access or transaction failures return `UNAVAILABLE`; other failures return `INTERNAL`. This read preserves `NOT_FOUND` for absent or stale projections, while the assignment write maps a dependency `NOT_FOUND` to `FAILED_PRECONDITION`. The method's narrow manual composition does not register a production handler, authorize an unsupported replacement or confer placement, region ownership, player admission or activation. Game Session independently joins its [World initial-location read](../world-management-service/api-contracts.md#canonical-initial-player-location) and current region lease before using the reference in a binding bridge.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This document defines Entity Management’s runtime model, persistence ownership
## Implementation Status

- The current crafting REST adapter is runtime-reachable legacy implementation drift, not a supported or advertised boundary: the crafting paths and schemas are omitted from the ping-only authoritative OpenAPI, whose root `security: []` applies only to the health contract, so the adapter remains unsupported/nonconformant. The deployed interceptor requires any `AUTHENTICATED` bearer because this non-public path is not in the public-route list, but neither layer provides tenant binding; there is no controller `SessionContext` tenant guard. `CraftingServiceImpl` trusts the DTO's `tenantId`, `resultItemId`, and ingredient item IDs; `CraftingRecipeRepository.findWithIngredientsById` and the update branch use recipe ID alone, while ingredient loading also uses recipe ID alone. The tenant-qualified list methods first select IDs but then re-enter that unqualified lookup, so they are not evidence of an end-to-end tenant predicate. Existing crafting tests do not establish caller-tenant authorization, cross-tenant recipe isolation, or same-tenant result/ingredient ownership.
- World-owned `character_location` and `npc_location` tables plus their authoritative movement, occupancy, and read/write paths are target-only. They are absent from the current schema, migrations, and runtime; `room_instance` is topology rather than actor location, and a Game Session room binding is not World location authority. Entity Management must not add competing location persistence or treat a cache/projection as authoritative.
- World owns guarded, manually composed initial `character_location` storage and its unregistered placement/read boundary. General movement, occupancy and NPC location remain unqualified; `room_instance` is topology, and a Game Session room binding is not World location authority. Entity Management must not add competing location persistence or treat a cache/projection as authoritative.
- **Target crafting boundary:** require authenticated caller context and exact tenant authorization before any recipe operation, derive the target tenant rather than treating request `tenantId` as authority, and make recipe read/update and ingredient load/update predicates tenant-qualified. Validate that the result item and every ingredient item belong to the target tenant and the same applicable version/Draft scope before writing. A missing context, tenant mismatch, recipe mismatch, or cross-tenant item reference fails closed before any recipe or ingredient mutation; the target negative proof must exercise each case.
- Current runtime item/equipment/container mutation RPCs that carry an `effectId` use `entity_mutation_effects` as the domain-local replay table. Entity Management records the applied protobuf response for `{tenantId, effectId}` and returns that stored response on duplicate delivery so `GET`, `DROP`, `PUT`, `TAKE`, `WEAR`, and `REMOVE` do not double-apply after Game Session replay or retry. Requests with a blank `effectId` bypass this table and execute directly; that fallback is current compatibility behavior, not a safe gameplay admission path. This is the current durable effect-replay guard, not a replacement tick-watermark implementation.
- The `entitymanagement.mutation.effect.execution{operation,effect_status}` metric distinguishes first apply, replay/no-op, in-progress conflict, reported reuse outcome, and unreadable stored-response outcomes.
Expand Down Expand Up @@ -309,7 +309,7 @@ See [Versioning & Runtime Configuration](../../system-architecture-versioning-ru
- Actor gameplay state is persisted separately from the legacy character stat columns. `actor_resource_states` stores current/base/max resource values with source provenance, while `actor_active_conditions` stores active condition keys, stack counts, source provenance, start/expiry timestamps, and effect payload JSON. Reads merge baseline character stat fields with persisted resource rows so later mutation/effect slices can converge on the new state model without removing the bootstrap character fields first.
- The first shared effect-evaluation seam is an in-process Entity Management service that evaluates typed resource modifiers and granted states deterministically. Active condition payloads and equipped item-template payloads are `CONTINUOUS` effect sources: they contribute while their source exists and never write derived values into current resources during reads. When an attached source changes a bounded-resource maximum, its attach, detach, refresh, expiry, or replacement mutation performs the one idempotent capacity normalization using the declaration override or resolved tenant/game `actorState.capacityChangePolicy` captured by that mutation. Evaluation reads never normalize current state. Gameplay-attested `ApplyActorCondition` calls are the first `INSTANT` mutation path, creating active condition/action-state rows through the same internal mutation service under an idempotent effect id. A scheduled Entity Management job globally and without a batch bound deletes elapsed active-condition rows on a 30-second default fixed delay measured after the previous invocation completes; read-time filtering prevents expired effects from being restored before cleanup. The job does not delete separate `entity_mutation_effects` receipts, which are checked before mutation, but receipt-retention and typed replay/concurrency proof remain target gaps. Player command wiring remains future work.
- Target-state active-condition rows are condition instances with stable instance ids, frozen definition/release snapshots, source provenance, stack counts, expiry, and applied-effect snapshots. Condition-definition DML, not source-id coincidence, selects `REPLACE`, `REFRESH`, `STACK`, or `PARALLEL` reapplication behavior and its duration policy. Typed removal resolves exact keys, authored tags, or permitted sources in deterministic definition priority and instance-id order; it must not expose raw row or payload deletion to player-facing callers.
- Target only: World Management will own character/NPC location and instance-membership rows and their authoritative reads/writes; those tables and paths are not present in the current implementation. Entity Management owns and persists item instances and inventories, but must not add competing actor-location fields or tables.
- World Management owns the guarded initial `character_location` placement and purpose-specific read boundary described by the [World initial-location owner](../world-management-service/runtime-and-data.md#character-location-ownership). General movement, occupancy, NPC location and instance-membership behavior remain target state. Entity Management owns and persists item instances and inventories, but must not add competing actor-location fields or tables.
- Entity graphs cache inventory relationships for fast lookups.

### Sealed canonical roster retention
Expand Down Expand Up @@ -375,7 +375,7 @@ Each actor also has one persisted, release-admitted `dispositionKey`: its main g

The actor is the shared subject for gameplay targeting, effects, stats, conditions, and communication. It does not move other service ownership:

- Target ownership: World Management will be authoritative for an actor's room location and the room occupancy view once its location tables and read/write path exist; current topology and session bindings do not provide that authority.
- World Management is authoritative for guarded initial character placement through its [initial-location owner](../world-management-service/runtime-and-data.md#character-location-ownership). General actor movement, NPC location and room occupancy remain target state; topology and session bindings do not create that authority.
- Game Session owns only ephemeral session attachment, protocol state, and player-facing presence projection.
- Account Service remains authoritative for account identity and authorization inputs.

Expand All @@ -385,11 +385,13 @@ Character and NPC records remain the durable domain records for their respective

### Initial Runtime Actor Projection and Reference

The Entity-owned initial runtime projection is allocated only through the exact applicable authenticated assignment owner chain after its current authorization and target checks. Its complete unique association is `{tenantId, playableStateNamespaceId, gameInstanceId, characterId}`. The durable projection retains the original assignment operation, receipt and intent digest, complete target, projection fence and projection generation. Existing assignment, placement and roster character-UUID fields and immutable receipt bytes remain unchanged. For this projection boundary, the durable Entity `entity_runtime_entity_id_sequence` is the sole allocator. Adopting another canonical allocator requires an explicit migration that preserves uniqueness and nonreuse; allocator unavailability never authorizes runtime fallback to another allocator. A private database row key is never promoted into this role. The bounded projection does not qualify convergence of legacy allocators; the [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#active-gaps) retains that implementation gap.
Fresh protected `PLAYER_CREATED` settlement allocates its own nonadmitting runtime projection in the same SQL transaction as the first `COMMITTED` terminal. The projection uses the shared runtime sequence and retains the exact creation operation, mutation digest, original terminal UUID/raw SHA256 and complete actor target in `entity_player_created_runtime_projections`. It is a separate purpose from a PRESEEDED assignment; a creation operation never becomes an assignment ID. Abort, terminal replay, roster selection and historical reference reads allocate nothing and never backfill an older actor. Missing projection state fails closed. The immutable projection and original terminal remain retained through retries and owner recreation; V1023 forbids update, delete and truncate and grants no cleanup or production registration authority.

The Entity-owned initial runtime projection is allocated only through the applicable protected creation or authenticated assignment owner chain after its current authorization and target checks. Its complete unique association is `{tenantId, playableStateNamespaceId, gameInstanceId, characterId}`. The durable projection retains its original purpose-specific operation and receipt/digest, complete target, projection fence and projection generation. Existing assignment, placement and roster character-UUID fields and immutable receipt bytes remain unchanged. For this projection boundary, the durable Entity `entity_runtime_entity_id_sequence` is the sole allocator. Adopting another canonical allocator requires an explicit migration that preserves uniqueness and nonreuse; allocator unavailability never authorizes runtime fallback to another allocator. A private database row key is never promoted into this role. The bounded projection does not qualify convergence of legacy allocators; the [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#active-gaps) retains that implementation gap.

Allocation guarantees concurrent uniqueness, stable exact retry and restart, and nonreuse throughout the required runtime and retention lifetime. Reconnect alone does not replace the projection. Runtime replacement is target state: the replacement owner allocates a new projection generation and runtime ID while retaining and fencing the previous association. A controlled source cannot authorize production allocation. Allocation alone establishes neither World placement, an active lifecycle, a Game Session region lease nor admission.

The `entity_preseeded_actor_runtime_projections` runtime identity is S3 for instance-lifecycle partitioning. Its immutable assignment association and provenance remain recovery and nonreuse lineage subject to the canonical reference, hold, and retention rules; this classification grants no deletion permission or numeric retention horizon. Current replacement and lifecycle-registration limitations are recorded in the [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#active-gaps). See [Instance Termination Cleanup Contract](#instance-termination-cleanup-contract), [ADR 0123](../../decisions/adr-0123-database-authoritative-temporal-coordinated-world-lifecycle.md), [ADR 0163](../../decisions/adr-0163-service-owned-retention-classes-with-cross-service-safety.md), and the [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#active-gaps).
The `entity_preseeded_actor_runtime_projections` and `entity_player_created_runtime_projections` runtime projection families are Entity-owned S3 for instance-lifecycle partitioning under [ADR 0163](../../decisions/adr-0163-service-owned-retention-classes-with-cross-service-safety.md). This local classification records their storage and lifecycle consequence; it grants no deletion permission, numeric retention horizon, World registration, or cleanup authority. Their immutable associations and purpose-specific provenance remain recovery and nonreuse lineage subject to the canonical reference, hold, and retention rules. Current replacement and lifecycle-registration limitations are recorded in the [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#active-gaps). See [Instance Termination Cleanup Contract](#instance-termination-cleanup-contract), [ADR 0123](../../decisions/adr-0123-database-authoritative-temporal-coordinated-world-lifecycle.md), and the [Gameplay tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#active-gaps).

The existing assignment service exposes one separate purpose-specific runtime-reference read to the exact same-namespace Game Session workload. It selects the original assignment, complete target and character, loads the actual retained projection, and returns a closed bounded typed reference with its full owner-qualified association, original assignment provenance, projection fence and generation. The read never allocates or repairs missing projection state, and an unavailable, stale or contradictory source fails closed. The World-only immutable assignment-receipt read retains its distinct purpose and authority.

Expand Down
Loading
Loading