Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
31c0dbc
Prepare canonical roster and assignment receiving
benhook1013 Oct 18, 2026
837d47b
Add routed runtime identity client proof
benhook1013 Oct 18, 2026
9a70e50
Merge commit '4b3a05b9be88eac72399a1f0f872b3f9f9538339' into codex/ga…
benhook1013 Oct 18, 2026
e4f1038
Merge commit '2047474d2d13281a41b24920a92c8cc670d63163' into codex/ga…
benhook1013 Oct 18, 2026
6863e50
Merge commit '2e2ffe43a66a55828f9ce517cf527e43e1b283f5' into codex/ga…
benhook1013 Oct 18, 2026
b6a9e6e
Merge commit 'db5d464cd80cc558a4e5a7967a1908a1a40f8c17' into codex/ga…
benhook1013 Oct 18, 2026
e03cb03
Merge commit '6984e0ace8a8cde5842b9a6394bdabc1cfd895c2' into codex/ga…
benhook1013 Oct 18, 2026
fcc9ef2
Merge commit '9d1166aef7db3c4e26c1e72b0febe1fbdc115c08' into codex/ga…
benhook1013 Oct 18, 2026
a788100
Merge prepared source documentation and receiving proof status
benhook1013 Oct 18, 2026
8242563
Receive selected-owner transport review corrections
benhook1013 Oct 18, 2026
d7a2031
Receive transport test collector qualification correction
benhook1013 Oct 18, 2026
707f29e
Receive bounded review-record recovery observation
benhook1013 Oct 18, 2026
cf03be4
Merge commit '276ee2f54b99bb7be9434f038136e7c603e980e7' into codex/ga…
benhook1013 Oct 18, 2026
d9df1a9
Receive parent settlement binding cache correction
benhook1013 Oct 18, 2026
e084d7c
Merge commit 'd10129708df489051b9695b664c65a90b3bb7afb' into codex/ga…
benhook1013 Oct 18, 2026
740f9ab
Receive merged recovery maintenance through roster parent
benhook1013 Oct 18, 2026
bfe9b13
Merge commit 'e8ff14b5acd940e56e61e6a28ee0a2234c29c27f' into codex/ga…
benhook1013 Oct 18, 2026
caaba64
Merge commit 'e602703458e4753114ca2cb9c01ba5f161fdb710' into codex/ga…
benhook1013 Oct 18, 2026
2045198
Merge commit 'cfc966feec8faf08d9ca4d5b3d185b29a15344c0' into codex/ga…
benhook1013 Oct 18, 2026
fa02c7b
Merge commit '3b9e7a9a9abb97d6180d362f3e5463c1128e8c92' into codex/ga…
benhook1013 Oct 18, 2026
af6270a
Merge commit 'cd1cb47b421ffe0df923e67b47916d6360ea9d9d' into codex/ga…
benhook1013 Oct 18, 2026
dd9a455
Merge commit '7b0f148a78747fae2e4fbb8e660c19f793fc1428' into codex/ga…
benhook1013 Oct 18, 2026
8a1a429
Merge commit '9e4d6e07be6477df73f396c8215208cd7e3c790f' into codex/ga…
benhook1013 Oct 18, 2026
4b2de88
Merge commit '23eaaebf028c2dae5e9bd284768bbec4d58868e1' into codex/ga…
benhook1013 Oct 18, 2026
77ce852
Merge commit '83cdcd4243464252ba592191eec2b2e7e351eaf3' into codex/ga…
benhook1013 Oct 18, 2026
e9cd125
Merge commit '2cf6aaffa13fbe0a856d3d98ca8d0e8eff03ac12' into codex/ga…
benhook1013 Oct 18, 2026
b7ccc91
Merge commit 'f5e8e5f58ec26a64cf63d178ebdcedd2969a7d94' into codex/ga…
benhook1013 Oct 18, 2026
f6aa424
Merge commit 'edb6d7e7a244b59d6806b3b88ffbccc71bf645e6' into codex/ga…
benhook1013 Oct 18, 2026
6417113
Merge commit '5ebbf3d674d426b7b90ff45f12abaa5ae89ed420' into codex/ga…
benhook1013 Oct 19, 2026
66552a1
Merge commit 'e721e4c3d70a8fa1a936e70346117f048c35cc40' into codex/ga…
benhook1013 Oct 19, 2026
4f684a4
Merge commit 'f9e1758af8fae53d056da9058e78f50dad1e540e' into codex/ga…
benhook1013 Oct 19, 2026
343ac02
Merge commit '2bfc318d3fd5449f5e72a31de6b0204c80148adb' into codex/ga…
benhook1013 Oct 19, 2026
ce8842c
Merge commit '0d41d7041191b3508f78b88c209a033e24b59a94' into codex/ga…
benhook1013 Oct 19, 2026
66128da
Merge commit '857360e2257d1a0e930d0b3239fd1a786da08592'
benhook1013 Oct 19, 2026
5182a9f
Merge commit '7f46a25139867e3bb76ced8a0878c25d4f973efd' to receive re…
benhook1013 Oct 19, 2026
b74d5bc
Merge commit '3c2ae336010a3de2a66e5a401db5f3a8474ef3de' to receive pu…
benhook1013 Oct 19, 2026
15985ed
fix: align passive roster errors and source client validation
benhook1013 Oct 19, 2026
36bc85c
test: detect passive source bean factory registration
benhook1013 Oct 19, 2026
18bd271
Merge commit 'da9e367a2668ad816c7c34cbfbd38f123b8c17b3' into codex/ga…
benhook1013 Oct 19, 2026
44423d7
Merge commit '24497a5796d64f5da1c31f0c6e9de9745fa361d9' into codex/ga…
benhook1013 Oct 19, 2026
4ed7bd0
fix: tighten passive Entity source validation and login proof diagnos…
benhook1013 Oct 19, 2026
a48fe94
docs: align canonical roster source and registration status
benhook1013 Oct 19, 2026
03f300e
Merge commit '4fa3d381ee08e9630201d9bb2bbc7040f64bdfe1' into codex/ga…
benhook1013 Oct 19, 2026
490bf9b
fix(entity): preserve internal roster failures and prove exact owner …
benhook1013 Oct 19, 2026
519a397
Merge commit 'a575d7584ebbe10f0472facaa8f9ea1f8036dff9' into codex/ga…
benhook1013 Oct 19, 2026
2fe43c0
Merge qualified selected publication parent fixes
benhook1013 Oct 19, 2026
20b3d78
Guard passive Entity client lifecycle and retain proof provenance
benhook1013 Oct 19, 2026
99ad8e1
test(entity): cover initialized assignment owner reads
benhook1013 Oct 19, 2026
d19af18
Receive develop reconciliation through PR #3251
benhook1013 Oct 19, 2026
ba69310
Merge commit '13949d0598580e5561a97fedcf615b2b4894a05e' into codex/ga…
benhook1013 Oct 19, 2026
bd6ec87
Receive qualified parent while preserving roster work
benhook1013 Oct 20, 2026
bd26a46
Receive Automation status tracker link correction
benhook1013 Oct 20, 2026
140e84d
Merge commit '5e3a788e37a2da803c7a615063e91c8dfaf03852' into codex/ga…
benhook1013 Oct 23, 2026
2415666
Merge commit '8923154a289b22b432a0e96ffda8855e443eb0b4' into codex/ga…
benhook1013 Oct 23, 2026
46c8273
Merge commit '03110bbe5253fbebfbec2236c93bb30f150b4659' into codex/ga…
benhook1013 Oct 23, 2026
cfe13d3
Rebase roster receiving parent to updated Gameplay candidate
benhook1013 Oct 23, 2026
22c85d5
Merge commit 'a35e8b46dc2f2e33d3d321ea12d7cfcce014ee85' into codex/ga…
benhook1013 Oct 23, 2026
38819a6
Merge commit '38b9c0bec5aed1b9ab418b53e0cdf177b1fc8dc8' into codex/ga…
benhook1013 Oct 23, 2026
ad0ff56
Merge commit '8a306b580f553acec937d519ee50c7970bb03271' into codex/ga…
benhook1013 Oct 23, 2026
304b4a5
Merge commit '68e5b17ce6b21fa60839b23934b53acf685ce846' into codex/ga…
benhook1013 Oct 23, 2026
dc94f9e
Merge commit 'a65794028591fe1cec79da4ad2485113db33940c' into codex/ga…
benhook1013 Oct 23, 2026
2393dfc
Merge commit 'f2e7f5df33' into codex/gameplay-2967-roster-receiving-2…
benhook1013 Oct 23, 2026
c136847
Merge commit '127474b50f6bfd7920d3e240d9a721d2c85c2472' into codex/ga…
benhook1013 Oct 23, 2026
e79ebc0
Merge commit 'a711d926449a800e2aadb8b54029d25a79c157f6' into codex/ga…
benhook1013 Oct 23, 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
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Handles player characters, NPCs, runtime actor identity, items, and all inventor

## Implementation Status

Entity V1003–V1010 prepares opaque actor UUIDs, quarantine metadata, namespace/scope integrity, and assignment/receipt/roster storage while retaining legacy values. Exact canonical repository readers, including `ActorIdentityRepository` and `CharacterRepository`, are registered Spring beans. The assignment, receipt, and roster service compositions remain manually composed and unregistered, with no authenticated clients or gRPC handlers. Existing legacy reads, roster listing, updates, cache access, scoped consumers, condition expiry, and cleanup retain develop behavior; this preparation does not enforce runtime quarantine or replace gameplay admission. Authenticated owner provenance, the real Game Session caller and execution replacement, and production activation remain unproved. Focused storage and unchanged legacy player-flow qualification is recorded under [GR-3.1](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#capability-status); [Entity API Contracts](./api-contracts.md#implementation-status) owns the detailed source and wire contract.
Entity V1003–V1010 prepares opaque actor UUIDs, quarantine metadata, namespace/scope integrity, and assignment/receipt/roster storage while retaining legacy values. Exact canonical repository readers, including `ActorIdentityRepository` and `CharacterRepository`, are registered Spring beans. The assignment, receipt, and roster services, certificate-guarded clients, peer interceptor, and gRPC read adapter remain manually composed source definitions with no automatic Spring or gRPC registration. Their bridge limits and registration prerequisites are recorded in [Entity API Contracts](./api-contracts.md#implementation-status). Existing legacy reads, roster listing, updates, cache access, scoped consumers, condition expiry, and cleanup retain develop behavior; this preparation does not enforce runtime quarantine or replace gameplay admission. Authenticated owner provenance, the real Game Session caller and execution replacement, and production activation remain unproved. Focused storage and unchanged legacy player-flow qualification is recorded under [GR-3.1](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#capability-status); [Entity API Contracts](./api-contracts.md#implementation-status) owns the detailed source and wire contract.

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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ The authoritative REST schema source lives in [../../../../services/entity-manag

The prepared selected-source command and immutable receipt/digest reads remain standalone, unregistered and unqualified. Forward V1011 adds the empty selected source catalogue over the current combined Entity/Saga parent, retaining explicit family and equipment evidence; this does not enable arbitrary authored templates, placement or gameplay admission. Its publication consumption follows the [canonical Game Design profile](../game-design-service/version-control.md#selected-full-publication-profile); current controlled-input proof limits and pending cross-owner qualification belong to the [selected-full owner tracker](../../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#selected-entity-and-automation-intake-prerequisite).

Entity V1003–V1010 and the manually composed, unregistered assignment/receipt/roster services are passive source and storage preparation. The canonical roster proto has no runtime handler, authenticated client, peer interceptor, or bean registration in this boundary. Legacy adapters and consumers retain develop behavior. The qualified immutable donor contains the complete migration tail; focused qualification of this recut, including the default combined Entity/Saga locations and actual-parent upgrade, is recorded under [GR-3.1](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#validation-and-proof). Neither storage fixtures nor discovery references establish actual owner provenance, fresh Account eligibility, gameplay admission, or PLAY. Authenticated owner handoff and real caller/execution replacement remain required.
Entity V1003–V1010 and the manually composed, unregistered assignment/receipt/roster services are passive source and storage preparation. The canonical roster proto has manually composed certificate-guarded client, peer-interceptor, and read-adapter source definitions, but no automatic runtime handler, client, or service-bean registration. Default component scanning and legacy activation flags leave this family unregistered; [Runtime and Data](./runtime-and-data.md#implementation-status) owns its registration prerequisites. Legacy adapters and consumers retain develop behavior. The qualified immutable donor contains the complete migration tail; focused qualification of this recut, including the default combined Entity/Saga locations and actual-parent upgrade, is recorded under [GR-3.1](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#validation-and-proof). Neither storage fixtures nor discovery references establish actual owner provenance, fresh Account eligibility, gameplay admission, or PLAY. Authenticated owner handoff and real caller/execution replacement remain required.

The manually composed Account/Game Session evidence bridge currently supports `SHARED` only; the assignment bridge requires already canonical, non-nil UUID game-instance text under the existing bridge contract. Those bounded adapters supply no owner proof outside their declared scope. They do not narrow the passive assignment core, which supports `SHARED` and `ISOLATED` and hashes exact bounded opaque game-instance text without parsing or normalization.

The target read semantics are: any policy other than `PRESEEDED_ONLY` is non-authorizing and returns `FAILED_PRECONDITION`; `ListPreseededRoster` may successfully return zero actors and binds the exact target to its snapshot UUID and digest. PRESEEDED_ONLY actor display names are nonblank, trimmed, control-free text bounded to 100 Unicode code points, matching the accepted assignment core. `ReadSelectedPreseededAssignment` requires that same typed snapshot reference, echoes the exact request/account/selected-character/target/snapshot bindings, and returns `FAILED_PRECONDITION` if the snapshot is stale or the selected actor is absent from it. It also returns the original non-nil assignment operation UUID and immutable intent digest from the unique matching committed `ASSIGNED` `PRESEEDED_ONLY` `PLAYER` receipt. Entity resolves that receipt only for the exact account, selected actor, complete expected target, current owner counters, and published owner-proof digest; zero or multiple matches disclose no reference, and readback must match the same receipt. The response is persisted owner evidence, not a newly minted identity, an admission grant, or proof that Account eligibility remains current. Both methods require a server-derived typed `PlayerExecutionContext`, the exact same-namespace Game Session mTLS caller allowlist, and equality between context and request/target fields. Context `playable_state_scope` is exactly the text `SHARED` or `ISOLATED` matching the target enum, never numeric enum text. The initial roster read has no selected actor and requires no admitted-character or current-binding proof; the selection read requires `context.character_id` to equal `selected_character_uuid`. The context is unsigned scope data, not a credential, and does not authorize an additional Account lookup solely for the read. Malformed input is `INVALID_ARGUMENT`; authorization failures are `UNAUTHENTICATED` or `PERMISSION_DENIED` as applicable; unavailable dependencies are `UNAVAILABLE`. Failures use non-OK gRPC status with no partial response, not response-level `ErrorDetail`. These semantics do not authorize the legacy numeric `ListCharactersByAccount` RPC for canonical gameplay.

Expand Down Expand Up @@ -48,7 +50,7 @@ curl http://localhost:8080/ping

- `Ping(PingRequest) returns (PingResponse)` – connectivity check defined in `entity_management_service.proto`.

- `CanonicalGameplayRosterService.ListPreseededRoster` and `ReadSelectedPreseededAssignment` – target `PRESEEDED_ONLY` pre-admission wire contract described in [Implementation Status](#implementation-status). Source models and manually composed services are present; authenticated transport handlers and caller registration are not. The result is discovery evidence, not actor admission or a session-binding shortcut.
- `CanonicalGameplayRosterService.ListPreseededRoster` and `ReadSelectedPreseededAssignment` – target `PRESEEDED_ONLY` pre-admission wire contract described in [Implementation Status](#implementation-status). Source models and manually composed certificate-guarded handler, peer-interceptor, client, and read-adapter source definitions are present; none of these or callers is registered. The result is discovery evidence, not actor admission or a session-binding shortcut.
- `CreateCharacter(CreateCharacterRequest) returns (CreateCharacterResponse)` – Current behavior: the scalar-only request validates tenant, account, and scope, then Entity returns an application `FAILED_PRECONDITION` before `CharacterService` allocation because the request cannot carry the authenticated owner proof and durable operation binding. Target behavior remains Entity-owned allocation and persistence of a primary controllable actor after the caller has passed Account membership/grant/realm admission. The target request carries the resolved `{accountId, tenantId, worldSlug, realmSlug}`, stable `playableStateNamespaceId`, the `playableStateScope` supplied only as authoritative realm-snapshot/attestation evidence, active `gameInstanceId`, explicit `entryPolicy=PLAYER_CREATED`, exact published descriptor identity/version, player creation input, and proof of the catalog/admission-pointer snapshot. Entity rejects a missing or mismatched policy before allocation or replay, and cross-checks the policy against the canonical snapshot and the applicable descriptor identity/version. It also carries caller-stable `createCharacterRequestId` and canonical `mutationDigest`; Entity recomputes the digest over the immutable trusted target, `entryPolicy`, exact descriptor/version, and creation input. The durable operation guard key is `{tenantId, playableStateNamespaceId, accountId, createCharacterRequestId}`. Within one local transaction, Entity admits and locks that guard plus digest, serializes the `PLAYER_CREATED` zero-roster boundary on `{tenantId, playableStateNamespaceId, accountId}`, and rereads the roster against the unchanged policy and descriptor/version before allocation. Only a still-empty roster may allocate; concurrent distinct request identities cannot both cross a stale zero-roster observation. Entity then atomically persists the allocated `{accountId, tenantId, playableStateNamespaceId, characterId}` association and replayable response. The same guard and digest exact-replay the original response; the same guard with a different digest returns `IDEMPOTENCY_CONFLICT` before allocation. Callers cannot choose or derive `playableStateScope`; Entity must reject caller-derived evidence and validate the exact immutable namespace/scope pair. A scope change under one namespace is rejected and never creates a second or split actor record. Entity allocates `characterId` only after the operation guard, validates the namespace/scope and active-instance fence, and never derives identity from account/name/hash or delegates character ownership to Account. Durable persistence/keying remains `{tenantId, playableStateNamespaceId, characterId}`; `playableStateScope` remains separately validated immutable routing/authorization evidence, `gameInstanceId` is only the replaceable active-runtime fence, and neither is a durable character-identity dimension. Entity Management does not expose a direct player REST route. This target boundary remains an implementation/proof gap; current implementation proves denial only.
- `UpdateEntity(UpdateEntityRequest) returns (UpdateEntityResponse)` – updates mutable character state for the requested `{tenantId, playableStateNamespaceId, gameInstanceId, playableStateScope, characterId}` target. `playableStateScope` must be the authoritative realm-snapshot/attestation result; callers cannot choose or derive it, and Entity validates the exact immutable namespace/scope pair before mutation. A caller-selected or changed scope, missing/mismatched namespace or scope, stale snapshot, caller-asserted instance, or global `characterId` is rejected rather than updating or splitting records. Target state also requires a fresh, server-resolved active-instance authorization fence for that exact namespace/scope and instance, checked atomically immediately before mutation. The current request path does not yet carry and prove the complete fresh fence, so it remains an implementation/proof gap and must not be treated as target enforcement.
- `QueryInventory(QueryInventoryRequest) returns (QueryInventoryResponse)` – the current response is an unpaged repeated `InventoryItem items[]` projection. The live handler emits `item_id`, `item_name`, `item_description`, and `quantity`, and conditionally emits `container_instance_id`, `item_instance_id`, and `visible_ref` when those values are present. This projection does not establish complete instance-aware identity or stack/concurrency safety: rich pagination, complete holder-local stack uniqueness, find-then-create concurrency, and explicit-family duplicate handling remain target/proof gaps documented in [Runtime and Data](./runtime-and-data.md#implementation-status).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This document defines Entity Management’s runtime model, persistence ownership
- `EntityDraftDesignDigestServiceImpl` currently emits `digestSchemaVersion=1` without hashing item `equipmentSlotGroupKey`, while `EquipmentServiceImpl` uses that field for slot compatibility admission. The digest is therefore incomplete for equipment semantics: different slot-group constraints may attest the same content digest. Target convergence adds the normalized field, bumps the schema version, and proves cross-version digest isolation plus publish-gate rejection of a changed constraint.

- 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 source services are manually composed and unregistered; no authenticated 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).
- 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).
- 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. Before any handler, service, or alternative snapshot writer is registered, this family must have an ADR 0163 retention declaration covering its class, terminal and reference blockers, compatible horizon, holds, metrics, cleanup cadence, and proved owner-local disposal. 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
Loading
Loading