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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,8 @@ jobs:
permissions:
contents: read
id-token: write
# Account needs 40 minutes for full checks; World, Game Session and Game Design retain 30 minutes including post-job cleanup.
timeout-minutes: ${{ matrix.module == 'account-service' && 40 || (matrix.module == 'world-management-service' || matrix.module == 'game-session-service' || matrix.module == 'game-design-service') && 30 || 20 }}
# Account and Game Session need 40 minutes for full checks, packaging and post-job cleanup; World and Game Design retain 30 minutes.
timeout-minutes: ${{ (matrix.module == 'account-service' || matrix.module == 'game-session-service') && 40 || (matrix.module == 'world-management-service' || matrix.module == 'game-design-service') && 30 || 20 }}
strategy:
fail-fast: false
matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The authoritative REST schema source lives in [../../../../services/entity-manag

## Implementation Status

The [protected preseeded assignment ingress](#protected-preseeded-actor-assignment) and its Game Session client are manually composed and unregistered. Their current proof and remaining execution gaps are recorded in the [assignment tracker](../../../project-management/implementation-tracking/gameplay-rules-entities-and-effects.md#protected-preseeded-assignment-ingress).

The standalone, unregistered `EntityPlayerCreatedRosterSourceClient` reads Game Session’s [public character-creation source](../game-session-service/api-contracts.md#public-character-creation-source-read) through exact same-namespace workload mTLS. It checks the complete sealed policy set, original authored source, World lifecycle and current target together, retaining the owner-issued policy identity and digest separately from authored projection identities. Its private authenticated result supplies source input only. The created-roster consumer remains a separate manually composed and unregistered path; neither path widens the existing `PRESEEDED_ONLY` roster or selected-assignment services, allocates a character, acquires protection or establishes admission.

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).
Expand Down Expand Up @@ -82,6 +84,18 @@ For `DROP` and `PICKUP`, Entity is the holder-mutation participant in the canoni
grpcurl -plaintext localhost:6565 entity_management.v1.EntityManagementService/Ping
```

## Protected preseeded actor assignment

`CanonicalPreseededActorAssignmentService.AssignPreseededActor` is the dedicated internal, non-admitting `PRESEEDED_ONLY` write in [preseeded_actor_assignment.proto](../../../../protos/entity-management/v1/preseeded_actor_assignment.proto). `CanonicalGameplayRosterService` remains read-only. Schema 1 carries the existing stable assignment UUID, canonical Account UUID, complete eleven-field expected target, minimal Entity-validated `PLAYER` core and bounded display name, and mutation-intent digest. The closed codec rejects unsupported schemas, unknown fields, incomplete targets and malformed identities before owner reads. The existing assignment digest grammar and exact opaque `gameInstanceId` bytes remain unchanged; display names and private Account row IDs never become actor identity.

Only the exact certificate-derived, same-namespace Game Session workload may call this method. Entity additionally checks its server-owned run capability against the active Entity trust root, run, project, workload namespace and complete assignment intent, then rechecks it against independently resolved owner evidence immediately before its existing atomic writer. Request fields, caller metadata, player JWTs and caller-supplied capability paths or tokens cannot substitute for that authority. The method uses the mandatory bounded gRPC transport and its exact peer guard. Its manual factories do not register a production handler or activate a default client.

Failures use non-OK gRPC statuses without a partial response or response-level `ErrorDetail`: malformed requests use `INVALID_ARGUMENT`; missing or incorrect peer identity and run-capability failures use `PERMISSION_DENIED`; known assignment evidence preconditions, mismatches and ineligibility detected by assignment validation use `FAILED_PRECONDITION`; explicitly unavailable owner dependencies or evidence use `UNAVAILABLE`; and unexpected internal failures use `INTERNAL`. Dependency-side `NOT_FOUND` and `FAILED_PRECONDITION` map to bounded `FAILED_PRECONDITION`; `DEADLINE_EXCEEDED`, `PERMISSION_DENIED`, `RESOURCE_EXHAUSTED`, `ABORTED`, `CANCELLED`, `UNAUTHENTICATED` and `UNAVAILABLE` map to bounded `UNAVAILABLE`, while other dependency statuses map to bounded `INTERNAL`. Response encoding failures remain bounded `INTERNAL`, an `onNext` observer failure is passed unchanged to `onError`, and an `onCompleted` failure is not followed by another terminal callback. Status descriptions are fixed and bounded and omit upstream error details.

Entity independently reads canonical Account identity and `PUBLIC_PRODUCTION_STAGING_ONLY` evidence through their existing narrowly scoped owner APIs, and reads Game Session's current assignment target. These remote calls run outside the local SQL transaction. Staging evidence and Account row provenance grant no gameplay membership or admission, and do not replace Game Session's fresh Account eligibility check. No additional Game Session-to-Account assignment wire protocol is introduced.

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.

## 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
Loading
Loading