Skip to content
Merged
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 @@ -10,7 +10,7 @@ Entity V1003–V1010 prepares opaque actor UUIDs, quarantine metadata, namespace

The focused SQL-isolation fixtures may insert owner-resolved rows to test exact tenant/account/namespace/scope predicates; those rows are fixture evidence only and do not prove an Account or Game Design owner supplied that provenance at runtime. Existing `shared-live`, `instance:<id>`, numeric Account/tenant IDs, names, caller checksums, and Game Session pointers never fill missing UUID provenance.

World-owned `character_location` and `npc_location` tables, together with their authoritative movement, occupancy, and read paths, are target-only. They are absent from the current schema and runtime; current room topology or session bindings do not establish location authority, and Entity Management must not persist a competing location table, field, or cache authority.
World owns guarded initial `character_location` storage and a manually composed, unregistered [initial-placement boundary](../world-management-service/api-contracts.md#canonical-initial-player-location). Its current proof gaps, later movement, NPC location and live occupancy remain separate; current room topology or session bindings do not establish that authority. Entity Management must not persist a competing location table, field or cache authority.

The target-state model is container-first:

Expand All @@ -34,13 +34,13 @@ Inventory and equipment mutations are also intended to be auditable through a ca
### Responsibilities

- Target responsibility: persist characters, NPCs, and items with optimistic locking. The current character update path does not yet provide tenant- and namespace-bound version CAS or stale-write proof; see [Runtime and Data](./runtime-and-data.md#implementation-status).
- Own the persisted runtime actor core that unifies player and NPC gameplay identity; target location and occupancy authority belongs to World Management, but its tables and read/write path are not implemented
- Own the persisted runtime actor core that unifies player and NPC gameplay identity; target location and occupancy authority belongs to World Management, while the prepared initial-placement path remains unregistered and does not establish movement or occupancy
- Provide CRUD and query APIs for other services
- Own and manage all inventories and item containment; at target, character location and instance metadata live in the World Management Service, but the current authoritative path is absent
- Own and manage all inventories and item containment; at target, character location and instance metadata live in the World Management Service, while the prepared initial-placement boundary does not establish registered execution
- Own room-attached ground containers, hidden inventory containers, equipment bindings, and the audit trail for item/container movement
- Coordinate deferred writes through Game Session Service

Target responsibility: World Management is the sole owner of authoritative character and NPC location tables (`character_location`, `npc_location`) for each game instance. Those tables and their authoritative write/read path are currently absent; Entity Management must not persist competing location fields or treat cached location as authoritative. See [World Management Runtime and Data](../world-management-service/runtime-and-data.md#character-location-ownership).
Target responsibility: World Management is the sole owner of authoritative character and NPC location tables (`character_location`, `npc_location`) for each game instance. Guarded initial character placement is prepared but remains unregistered; NPC location, movement and live occupancy remain separate gaps. Entity Management must not persist competing location fields or treat cached location as authoritative. See [World Management Runtime and Data](../world-management-service/runtime-and-data.md#character-location-ownership).

For canonical naming and scoping rules, see [Identifier Glossary](../../system-architecture-identifier-glossary.md).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ Entity independently reads canonical Account identity and `PUBLIC_PRODUCTION_STA

The response reports the existing persisted assignment operation UUID, intent digest and `ASSIGNED` or `IDEMPOTENCY_CONFLICT` outcome. A canonical actor UUID is present only for `ASSIGNED`; conflict exposes none. Exact retries retain the existing writer's revalidation and immutable replay behavior. The later roster-selection operation has its own distinct identity and links to this receipt. Assignment does not initialize World location or grant `PLAY`, public creation, runtime activation, production registration or custody authority.

`ReadPreseededActorAssignmentReceipt` is a separate immutable read on this purpose-specific service, available only to the exact same-namespace World workload certificate. The assignment write and all existing roster methods remain Game Session only. Its closed selector binds the placement correlation UUID, original assignment UUID, canonical Account and actor UUIDs, unchanged assignment-intent digest and complete expected target. Entity reads its actual committed `ASSIGNED` receipt and returns its persisted target and minimal core after exact selector and digest validation; supplied selector values are not source proof. The placement UUID is transport correlation and does not create another Entity operation.

This read authenticates historical assignment provenance only. It does not revalidate current Account eligibility, settle a protection, grant `PLAY`, initialize location or activate a runtime. World independently owns the [initial placement boundary](../world-management-service/api-contracts.md#canonical-initial-player-location).

## Player-created roster and selected character

`CanonicalGameplayRosterService.ListPlayerCreatedRoster(CanonicalPlayerCreatedRosterRequest)` and `ReadSelectedPlayerCreatedCharacter(CanonicalSelectedPlayerCreatedCharacterRequest)` are distinct non-admitting Entity owner reads. They require the exact authenticated same-namespace Game Session workload over mTLS and a closed `PlayerExecutionContext` whose operation, account, session, tenant, realm, playable namespace/scope and runtime instance agree with the request and full target. Listing has no selected actor; selected readback requires `context.character_id` to equal the requested actor. Entity independently obtains and compares the complete current published `PLAYER_CREATED` source, descriptor, policy, canonical version and `SHARED` target before local work. Missing, changed or unsupported source evidence fails closed. `ListPreseededRoster` and `ReadSelectedPreseededAssignment` remain strictly `PRESEEDED_ONLY`; `AUTO_PROVISIONED` is unsupported by these roster methods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ This doc set is the authoritative source for:
- Provide procedural-generation support.
- Expose geometry and region metadata. Pathfinding is handled by the Movement/Travel subsystem in Game Logic, while World Management stores and publishes versioned navmesh/path graph artifacts.
- Notify Game Session and Automation services when the world changes.
- Target responsibility: track character/NPC locations and instance occupancy through World-owned persistence. The current implementation has no authoritative location/occupancy tables or write path; see [runtime and data](./runtime-and-data.md#character-location-ownership).
- Current LOOK behavior is separate from that target: the World `GetRoomSnapshot` data consumed by Game Logic's `ResolveLook` is fixture-backed and does not establish authoritative character/NPC location or occupancy persistence. The target owner contract remains unimplemented until the World-owned location/occupancy write and read surfaces exist.
- Target responsibility: track character/NPC locations and instance occupancy through World-owned persistence. Guarded initial character-location storage and a manually composed, unregistered placement boundary are prepared; live movement and occupancy remain unavailable. See [runtime and data](./runtime-and-data.md#character-location-ownership).
- Current LOOK behavior is separate from that target: the World `GetRoomSnapshot` data consumed by Game Logic's `ResolveLook` is fixture-backed and does not establish authoritative character/NPC location or occupancy persistence. The prepared initial-placement read does not establish current occupancy or the causal LOOK contract.
- Avoid storing or managing live item or inventory state. Room inventory and ground items are derived from Entity Management queries scoped by room and instance identifiers.

## Identifier Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Implementation Status

The [canonical initial-player-location boundary](#canonical-initial-player-location) is prepared as manually composed, unregistered source. Its implementation and proof gaps are recorded in the [World tracker](../../../project-management/implementation-tracking/world-runtime-and-movement.md#canonical-initial-player-location-preparation); this preparation does not enable the protected activation or ordinary player path.

The prepared recipient-specific inventory read verifies the exact Entity or Automation workload and independently reads Account's held World-closure authorization before reading the original retained World inventory. It is separate from the ordinary Game Design publication read and adds no mutation or runtime registration. Qualification remains pending in the [recipient-intake tracker](../../../project-management/implementation-tracking/player-access-and-session.md#selected-recipient-source-intake-preparation).

The standalone published-spawn requirements read is prepared as unregistered source. It consumes the exact authenticated Game Design release and frozen World selector, accepts only the exact same-namespace Entity workload, and returns immutable design requirements rather than runtime actor or placement authority. Qualification and producer limitations belong to [the World implementation tracker](../../../project-management/implementation-tracking/world-runtime-and-movement.md#published-spawn-requirements-read-preparation).
Expand Down Expand Up @@ -297,6 +299,18 @@ Overdue hold diagnostics are observational. World Management emits `world_initia

Operator procedure: use the scoped World reconciliation log fields to identify the exact hold, then inspect that World hold and the corresponding authenticated Game Session owner-read evidence against the complete bound identity in this contract. If owner transport or workload identity is unavailable, repair that dependency and retry through the existing scheduled reconciler using the same hold identity. Only exact authenticated `COMMITTED` or definitive `ABORTED` owner proof may resolve the hold. Never edit either database directly, release a hold because its diagnostic age elapsed, fabricate an abort, or use a raw pointer as proof; unavailable or mismatched evidence continues to fence termination.

## Canonical Initial Player Location

`CanonicalInitialPlayerLocationService.PlaceInitialPlayer` and `ReadInitialPlayerLocation` are separate internal methods restricted to the exact same-namespace Game Session mTLS workload. Their [schema-1 request](../../../../protos/world-management/v1/canonical_initial_player_location.proto) carries a stable placement operation UUID, complete expected assignment target, canonical Account and actor UUIDs, original Entity assignment selectors and exact initial-admission hold and terminal selectors. Request values are comparison inputs, not credentials or trusted owner proof bytes. This is initial placement only; it supplies no movement, occupancy, activation, first-`OPEN` or replacement authority.

Before a new placement, World independently obtains the immutable [Entity assignment receipt](../entity-management-service/api-contracts.md#protected-preseeded-actor-assignment) through its World-only method and the existing World-only `CanonicalInitialAdmissionOwnerProofReadService.GetCanonicalInitialAdmissionOwnerProof` response. It requires the exact retained World `COMMITTED` initial hold and authenticated Game Session `COMMITTED` pointer/audit terminal, preserving their request, fence, target, version, epoch and catalog bindings. Missing, pending, aborted, mismatched or unavailable evidence supplies no placement authority. Account settlement follows its separate owner contract and is not an additional placement precondition.

Remote Entity and Game Session reads finish outside World SQL. World then serializes on its lifecycle and association, independently checks the actual `ACTIVE` epoch and retained ROOM mapping and exact committed hold tuple, and atomically records the immutable V1019 operation and `character_location`. Exact replay preserves the original durable outcome; a conflicting intent cannot overwrite or reposition the actor. Independent owner readback must match the committed operation and location. Missing World registration or prerequisites fail closed without a fabricated receipt.

The narrow read returns retained initial-placement evidence, not current occupancy or a lease. The response binds the placement, Account, actor and assignment identities; `APPLIED` includes the retained tenant/version/template and private runtime room ID, while `CONFLICT` carries its retained conflict code. World request/result digests identify its sealed owner bytes; clients validate their representation and echoed identities rather than recomputing them from incomplete network selectors. The manual reader also checks the exact immutable Entity receipt and remains unavailable when that owner cannot be read; this does not turn historical assignment evidence into fresh eligibility. Game Session must separately revalidate its current target and admission fences before consuming placement for `PLAY`.

This preparation reuses existing owner schemas and terminal plumbing. It does not register those owners, release protections, create an `ACTIVE` fixture, seed SQL or bypass the separately held activation chain. Positive placement qualification still requires genuine authorized `ACTIVE`, hold and pointer prerequisites; a room marker or controlled transport response does not prove that chain or causal `LOOK`.

## Run-Owned World Launch Evidence

The opt-in run-owned fixture is disabled by default. Target integration requires a fixed-server provider to independently read the immutable capability and source receipt, verify the authenticated same-namespace Game Session peer and World leaf/CA pins, and compare the exact Game Design descriptor and Game Session allocation before any World effect. Requests cannot select file paths, certificate identities or evidence. This boundary grants neither default-denied Game Design bundle/version/artifact RPC authority nor player admission. The complete wire and comparison contract belongs to [Testing Strategy](../../system-architecture-testing.md#run-owned-v1-launch-read-evidence).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ World templates follow the same stability rules as entity templates:

## Character Location Ownership

World Management is the authoritative owner of character and NPC location for each game instance. The schema includes guarded `character_location` and immutable initial-location operation storage from V1019. These are retained owner evidence: canonical first-placement execution and activation remain unavailable, and the registered runtime does not write this family. Live `room_instance` topology and a Game Session room-binding seam do not establish authoritative occupancy.
World Management is the authoritative owner of character and NPC location for each game instance. The schema includes guarded `character_location` and immutable initial-location operation storage from V1019. The manually composed [initial-placement boundary](./api-contracts.md#canonical-initial-player-location) prepares owner writes and exact retained readback without changing those migrations. Registered execution and activation remain unavailable; the registered runtime does not write this family. Current proof and activation-dependent gaps belong to the [World tracker](../../../project-management/implementation-tracking/world-runtime-and-movement.md#canonical-initial-player-location-preparation). Live `room_instance` topology and a Game Session room-binding seam do not establish authoritative occupancy.

- Only World-owned operations may write location as part of movement, instancing and world creation invoked by Game Session. The initial-placement storage preserves its exact admission hold and APPLIED operation binding. V1042.10 rejects DELETE and TRUNCATE on `character_location`, preserving the existing V1019 operation-history guard; it grants no placement, movement or cleanup authority. `npc_location` and generalized occupancy execution remain unimplemented.
- Other services, including Entity Management and Game Session, treat World location storage as read-only and rely on World Management gRPC APIs or cached projections. Current room reads and the Game Session binding do not establish location authority.
Expand Down
Loading
Loading