Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
069cbc8
feat: retain canonical roster references through safe disposal
benhook1013 Oct 23, 2026
0910500
docs: record independent roster boot and smoke proof
benhook1013 Oct 23, 2026
c80027a
fix: fence and recover abandoned canonical roster reads
benhook1013 Oct 23, 2026
5fb09ca
docs: record fenced roster recovery qualification
benhook1013 Oct 23, 2026
2c26649
Fix retained roster replay admission, snapshot locking and outcome ev…
benhook1013 Oct 23, 2026
f428552
Prove roster fence waits and refuse calls without the unregistered owner
benhook1013 Oct 23, 2026
7cb0608
Record exact fence proof and rebuilt held-admission runtime qualifica…
benhook1013 Oct 23, 2026
0bcf082
fix(game-session): share roster source locks and preserve route denials
benhook1013 Oct 23, 2026
2ae7fcc
Merge commit '88363a38df9a74ca8d1f41b6110f2ed470a57d75' into codex/ga…
benhook1013 Oct 23, 2026
fde545f
test(game-session): correct initial-admission origin fixture
benhook1013 Oct 23, 2026
bdca192
docs(gameplay): record shared roster source and runtime proof
benhook1013 Oct 23, 2026
aa36226
Preserve roster retirement evidence through durable owner acknowledge…
benhook1013 Oct 23, 2026
dba4a2f
Qualify retirement acknowledgement migrations and fresh runtime proof
benhook1013 Oct 23, 2026
ce02d51
fix: preserve roster cleanup horizons and owner failure boundaries
benhook1013 Oct 24, 2026
3cab778
Merge remote-tracking branch 'origin/develop' into codex/gameplay-ros…
benhook1013 Oct 24, 2026
d05e513
docs: record roster review corrections and fresh runtime proof
benhook1013 Oct 24, 2026
2aa7a73
fix: isolate roster page failures and type stale authority
benhook1013 Oct 24, 2026
a277d37
docs: record final roster correction runtime proof
benhook1013 Oct 24, 2026
2b368cb
Receive merged required-gate replay repair from develop
benhook1013 Oct 24, 2026
7229930
Observe committed retirement transfers and stabilize retained horizon…
benhook1013 Oct 24, 2026
5aa7c9f
Observe protected roster recovery failures and prove stable fences
benhook1013 Oct 24, 2026
53b4b29
Remove unnecessary roster recovery metrics suppression
benhook1013 Oct 24, 2026
808468d
Close roster replay and dispatch races while preserving owner recovery
benhook1013 Oct 24, 2026
8cd4f0e
Enforce roster input and joined transaction guards with unknown healt…
benhook1013 Oct 24, 2026
042d5da
Bound roster retirement preparation and preserve recovery fairness
benhook1013 Oct 24, 2026
9f0cb20
Record fresh staged-retirement runtime qualification
benhook1013 Oct 24, 2026
789a525
fix: retire sibling roster snapshots under one target fence
benhook1013 Oct 24, 2026
87af698
docs: record sibling roster retention qualification
benhook1013 Oct 24, 2026
4c7c637
Receive trusted required-gate recovery maintenance
benhook1013 Oct 24, 2026
cb18cc6
fix: classify retained roster request conflicts precisely
benhook1013 Oct 24, 2026
3df8879
fix: expose unknown roster health as NaN
benhook1013 Oct 24, 2026
6356f53
Fix Entity retirement health and prove retained legacy refusal
benhook1013 Oct 25, 2026
130d55d
Keep malformed roster originals from starving bounded cleanup
benhook1013 Oct 25, 2026
de1187a
Reject contradictory roster recovery and classify oversized selectors
benhook1013 Oct 25, 2026
954a496
Link roster recovery handoff to its owning proof tracker
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ The manually composed Account/Game Session evidence bridge currently supports `S

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.

Before its owner RPC, Entity reserves an owner-local admission nonce for the exact original request. Entity independently reads the exact original Game Session selection through [its authenticated owner-reference contract](../game-session-service/api-contracts.md#original-canonical-roster-selection-reference). Capture commits the sealed snapshot, immutable original-operation/Game Session target-fence receipt and `ORIGINAL_SELECTION` retention reference in one Entity transaction, conditionally matching that same still-open local admission nonce. A failed bind rolls the new snapshot and reference back. A retry of that original operation returns its immutable local receipt rather than silently binding a later roster. The selected-assignment read names the same original request UUID and recorded snapshot; a fresh request UUID is a different operation. Disposal revokes the local nonce in the same transaction; an older delayed handler cannot recreate a disposed snapshot after payload or tombstone cleanup. This source boundary remains unregistered. Only complete authenticated Game Session target-retirement evidence, local reference/hold closure, exact local epochs and Entity-owned horizons can qualify the owner-local disposal path described in [Runtime and Data](./runtime-and-data.md#sealed-canonical-roster-retention). Entity shares acquisition closure across sibling snapshots for the same account and full target while retaining each snapshot's proof and disposal qualification independently. Its non-authoritative `entity_canonical_roster_snapshot_targets` inventory identifies exact-target siblings even when direct capture left no admission/original row; it grants no retirement, disposal or release authority, and unresolved source classification keeps the boundary protected. Existing sibling records remain readable after the first retirement seal, but that does not authorize delayed capture.

`CanonicalGameplayRosterRecoveryService.RecoverOriginalSelection` is the separate certificate-guarded closure boundary defined by the [recovery proto](../../../../protos/entity-management/v1/canonical_gameplay_roster_recovery.proto). It accepts schema version 1, the unchanged original Game Session selection request and its exact `recovery_uuid`. Entity independently rereads that original through the authenticated Game Session owner client and requires the same recovery identity before entering local SQL. It reconstructs the normal admission binding from that original account, complete target, operation and session. The local transaction closes the existing nonce, or establishes and closes a nonce if none exists, retaining an immutable response bound to the exact request, admission UUID, owner fence and target fence. An already bound original returns its exact local roster receipt; an unbound closure returns no receipt. Closure never resolves a fresh target, captures a snapshot or releases protection. Exact recovery retries return the original response; a different recovery identity or binding conflicts. Normal admission and every delayed handler reject the closed nonce. The recovery service and adapter remain manually composed and unregistered; the same-namespace Game Session certificate allowlist excludes player caller context. Finite cleanup and positive owner-acknowledgement requirements belong to [sealed roster retention](./runtime-and-data.md#sealed-canonical-roster-retention).

Recovery request/recovery identity conflicts use an explicit owner conflict signal and return `FAILED_PRECONDITION`; invalid retained recovery state uses `UNAVAILABLE`, while malformed caller input remains `INVALID_ARGUMENT`. Retirement observation and acknowledgement are separate from nonce closure. Entity first seals the exact retired snapshot/account/target against new acquisition and delayed capture, then prepares original releases and durable delivery intents in bounded pages before using the [Game Session transfer methods](../game-session-service/api-contracts.md#original-canonical-roster-selection-reference) outside SQL. A retained seal alone supplies no release, acknowledgement or disposal completion. No acknowledgement waits for physical Entity deletion, and no absent original or elapsed timeout establishes retirement. The [owner retention family](./runtime-and-data.md#sealed-canonical-roster-retention) owns atomicity, exact nonce binding, finite seal and transfer retention, and final disposal qualification.

The `ReadSelectedPreseededAssignment` `intent_digest` is the bare lowercase 64-hex SHA-256 of Entity's immutable assignment-intent preimage, with no `sha256:` prefix. Entity serializes these UTF-8 string values in this exact order: domain `firemud.entity.preseeded-actor-assignment.v4`; original `assignmentUuid`; `canonicalAccountUuid`; core `actorKind`; core `displayName`; target `canonicalTenantUuid`; `realmUuid`; `worldSlug`; `realmSlug`; `gameInstanceId`; base-10 `catalogRevision`; `canonicalVersionUuid`; `frozenPolicyDigest`; `playableStateNamespaceId`; `publishedReleaseBundleRef`; `playableStateScope`; and `entryPolicy`. The operation and account values come from `PreseededActorAssignmentRequest.assignmentUuid` and `.canonicalAccountUuid`, corresponding to `assignment_uuid` in the selected-assignment response and `canonical_account_uuid` on its request and response. `actorKind` and `displayName` come from the original `request.corePayload`, not the currently selected roster actor's `actor_kind` or `display_name`. Target values come from the independently resolved `PreseededActorAssignmentOwnerEvidence` used to create the persisted assignment receipt; their corresponding `CanonicalGameplayRosterTarget` wire fields are `tenant_uuid`, `realm_uuid`, `world_slug`, `realm_slug`, `game_instance_uuid`, `catalog_revision`, `canonical_version_uuid`, `published_policy_digest`, `playable_state_namespace_uuid`, `published_release_bundle_ref`, `playable_state_scope`, and `entry_policy`. In particular, internal `gameInstanceId` is a bounded opaque string; the `game_instance_uuid` wire field name does not add UUID parsing or normalization to its digest value. At the canonical roster bridge, the owner supplies `game_instance_uuid` as already canonical, non-nil UUID text under the shared [Identifier Format Conventions](../../system-architecture-identifier-glossary.md#identifier-format-conventions). That boundary contract does not change the generic assignment digest path: it hashes the exact opaque owner-supplied text and does not infer aliases, parse, or normalize it. The internal `frozenPolicyDigest` is the same persisted value represented by `CanonicalGameplayRosterTarget.published_policy_digest`; it is bare lowercase 64-hex without a `sha256:` prefix and is not separately derived. For this assignment, the enum values are the internal short strings `PLAYER`, `SHARED` or `ISOLATED`, and `PRESEEDED_ONLY`, respectively, not full protobuf enum identifiers. UUID values use canonical `UUID.toString()` form, counters use base-10 decimal text, and `actorKind`, `playableStateScope`, and `entryPolicy` use only the short strings listed above. Each value is encoded as UTF-8 and prefixed by its byte length as a four-byte big-endian integer; SHA-256 covers the concatenated length-prefixed values. The digest returned by the selected-assignment read is the original persisted receipt digest, not recomputed from that read's request, the current roster, or current owner/Account observations. See the [Entity proto](../../../../protos/entity-management/v1/entity_management_service.proto) for the wire field names.

The live crafting REST surface is runtime-reachable but is not a tenant-authorized gameplay or design-time boundary: `POST /crafting/recipes` accepts a caller-supplied `tenantId` in `CraftingRecipeDto`, and `GET /crafting/recipes/{id}` accepts only a globally-shaped recipe id. The ping-only authoritative OpenAPI document declares root `security: []`; the crafting handlers and schemas are omitted from that contract. The deployed Entity HTTP interceptor currently requires only an `AUTHENTICATED` bearer (crafting is not in the public-route list), while the controllers do not apply `SessionContext` tenant authorization and the service/repository do not bind either operation to the authenticated caller. The create path can therefore persist a caller-selected tenant (and an existing DTO id can update by id), while the read path performs an ID-only recipe lookup. `CraftingControllerTest` and `CraftingServiceImplTest` cover request/recipe validation and happy-path persistence only; they do not prove unauthenticated denial, tenant-qualified lookup/update, or cross-tenant item ownership. The handlers must remain unsupported/fenced or gain the target caller-bound authorization before they can be treated as a supported route.
Expand Down
Loading
Loading