FireMUD Delivery Status

PR data refreshed

PR #3125 review history

Review rounds

Three-number pills mean: found (raw) / accepted here (useful) / routed

Hosted CodeRabbit2 completed
10/10/02/2/0
CLI CodeRabbit6 completed
5/4/04/4/02/2/02/2/03/1/1
Subagent Review4 completed
0/0/01/1/01/1/01/1/0

Recorded review history

Reviews and findings

  1. Subagent Review 1 CompletedModel: gpt-6-luna · Xhigh
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  2. Subagent Review 2 CompletedModel: gpt-6-luna · Xhigh
    Found: 1 Accepted: 1 Routed: 0
    1. Distinguish target plugin launch schema from implemented canonical authored-world wireMinor

      game-templates.md:223-224; proto request347-359 and LaunchDescriptor595-610. Static doc contract correction, no runtime change.

      • Accepted Current illustrative ResolveLaunchDescriptor schema omits required canonical tenant/world/source binding and mixes target-only plugin rollback fields. Clarify implemented wire vs target contract without weakening accepted plugin design.
  3. Subagent Review 3 CompletedModel: gpt-6-luna · Xhigh
    Found: 1 Accepted: 1 Routed: 0
    1. Ordinal selection can silently select a different actor after the displayed roster changesMinor

      Whole 106-path read-only pass covered launch descriptor and release binding, actual Game Session catalog and association/route evidence, Entity roster client/owner-read boundary, ordinal selection and original assignment read, contracts and trackers. No validation executed; default-off non-admitting composition and Account/World/admission/live proof gaps remain.

      • Accepted The selection menu must return its exact snapshot identity and later ordinal submission must bind that identity; a changed roster must reject or refresh, never reinterpret the prior ordinal.
  4. Subagent Review 4 CompletedModel: gpt-6-luna · Xhigh
    Found: 1 Accepted: 1 Routed: 0
    1. Malformed runtime flags can be sealed into a successful launch descriptorMinor

      Fresh whole106path static review completed. Requested nonJSON text with empty default currently passes text-only evidence validation. Full Game Design launch/read/release and real Game Session catalog/association/route/roster/ordinal/assignment boundary inspected; no validation executed, no runtime closure claimed.

      • Accepted ResolveLaunchDescriptor must reject malformed requested or template runtime-flags JSON before persisting a descriptor; preserve exact source binding and non-admitting behavior.
  5. Hosted Review 1 CompletedRuntime 6m 50s
    Found: 10 Accepted: 0/7/3 Routed: 0
    1. Check the menu identity before you resolve the ordinal.Minor

      Right now the service resolves the ordinal before it compares expectedMenuIdentity with the refreshed snapshot.

      Example: a player saw a menu with three actors and submits "3". The roster now has two actors. CanonicalGameplayActorSelection.select returns SELECTOR_OUT_OF_RANGE, so the service never reaches the STALE_MENU_IDENTITY check. The same thing happens when the ordinal is malformed. The player is told their choice is invalid when the real problem is that the menu is stale.

      The service already accepts only a menu-bound ordinal. Check MISSING_MENU_IDENTITY and STALE_MENU_IDENTITY first, then call select.

      Proposed reorder

      +    if (selector != null && !selector.isBlank()) {
      +      if (expectedMenuIdentity == null) {
      +        return new Denied(Denial.MISSING_MENU_IDENTITY);
      +      }
      +      if (!expectedMenuIdentity.matches(snapshot)) {
      +        return new Denied(Denial.STALE_MENU_IDENTITY);
      +      }
      +    }
           CanonicalGameplayActorSelection.SelectionResult selection =
               CanonicalGameplayActorSelection.select(validated.orElseThrow(), selector);
      @@
      -    if (selector != null && !selector.isBlank()) {
      -      if (expectedMenuIdentity == null) {
      -        return new Denied(Denial.MISSING_MENU_IDENTITY);
      -      }
      -      if (!expectedMenuIdentity.matches(snapshot)) {
      -        return new Denied(Denial.STALE_MENU_IDENTITY);
      -      }
      -    }
      

      If you reorder, update the expected denials in CanonicalGameplayRosterSelectionServiceTest. The case at Line 252 ("Pilot Two" with a null identity) and the case at Line 258 ("3" with a null identity) will then return MISSING_MENU_IDENTITY. Either pass the menu identity in those cases or change the expected reason.

      • Accepted Menu identity checked after ordinal parse; stale smaller roster reports out-of-range. Require matching menu identity before resolving nonblank selector.
    2. Assert the denial reason for the allowed-peer probes.Trivial

      For the resolve and descriptor-read calls, the mocks throw probe exceptions. The test only checks that a response exists. A response that carries PERMISSION_DENIED after the owner call still passes, but verify(...) covers that case. The test does not assert that the response error is the mapped probe outcome and not PERMISSION_DENIED. Add assertThat(resolve.response().getError().getCode()).isNotEqualTo("PERMISSION_DENIED") and the same check for descriptorRead. This change makes the authorization outcome explicit.

      Based on learnings: tests for identity-sensitive operations must assert the fields that determine the authorization outcome.

      • Accepted Allowed-peer probes reach owner mocks but do not assert response authorization outcome; add explicit non-PERMISSION_DENIED evidence.
    3. Map only transport status codes to the *_UNAVAILABLE denials.Minor

      Both catch blocks turn every StatusRuntimeException into ROSTER_UNAVAILABLE or ASSIGNMENT_UNAVAILABLE. That includes permanent owner results:

      • The architecture contract says Entity returns FAILED_PRECONDITION when the policy is not PRESEEDED_ONLY.
      • CanonicalGameplayRosterClientTest Line 577 uses FAILED_PRECONDITION with "roster snapshot changed".
      • PERMISSION_DENIED and INVALID_ARGUMENT are also caught here.

      A caller then sees a retryable unavailable result for a stale or denied state. Retrying with the same snapshot does not help. Map UNAVAILABLE and DEADLINE_EXCEEDED (and possibly RESOURCE_EXHAUSTED) to *_UNAVAILABLE. Map FAILED_PRECONDITION to a stale or changed denial, and map the other codes to INVALID_*_PROOF. routeFailure at Line 155 has the same broad mapping.

      As per path instructions, the review must flag violations of "gRPC application-error handling … and failure-mode expectations".

      Also applies to: 122-126

      • Accepted Broad gRPC catch mislabels permanent/stale authority as transient unavailable. Classify transport codes and preserve stale/invalid denials.
    4. Add the selection boundary to the AA-2.1 capability row.Minor

      This status entry records a new selection service and focused proof, but the AA-2.1 row does not name the new selection production or test anchors. Add those anchors and the remaining activation gap to that row. Keep its partial rating.

      As per coding guidelines, “the capability rows are the complete scan-first status surface,” and “implemented and partial rows name concrete production anchors.”

      • Accepted AA2.1 capability row omits current selection production/test anchors and activation gap; add exact anchors, retain partial rating.
    5. Handle a roster-bound retry before assignment binding.Minor

      The new retry branch assumes boundAssignmentUuid and boundIntentDigest exist. The new-selection branch binds the roster snapshot before it binds either value. If execution stops between those bindings, a retry enters this branch without an assignment reference to compare. Define separate roster-bound and assignment-bound retry states, or commit the selection bindings as one durable step.

      As per path instructions, “Review docs for canonical-current-state consistency.”

      • Accepted Retry pseudocode requires assignment bindings during a roster-only partial retry. Distinguish roster-bound and assignment-bound stages while retaining original tuple evidence.
    6. Check stored request ID compatibility.Minor

      CanonicalInitialAdmissionRepository reconstructs CanonicalInitialAdmissionRequest from persisted data. If any stored initialAdmissionRequestId value contains 121–128 code points, the new 120-code-point validation throws IllegalArgumentException during reconstruction.

      Confirm that every storage column is limited to 120 code points or fewer and that no existing producer can create a longer value.

      • Accepted Valid storage-width regression: V9 widens immutable pointer audit to128 and V34.3 widens initial intent to128. New DTO120 guard rejects retained121-128 IDs; align128 and prove bounds/readback.
    7. Remove or differentiate the duplicate denial test.Trivial

      completeLaunchBindingDeniesCandidateBeforeTypedOwnerOutcome does not stub completeLaunchBindingService. Because of this, it does not set up a typed owner outcome. The test is therefore the same as getCompleteLaunchBindingDeniesCandidateBeforeOwnerRead (Line 1167). Stub the owner service with a typed outcome to match the test name, or delete the test.

      • Accepted Duplicate denial test claims typed owner outcome without setting one up. Remove duplicate and retain existing deny-before-owner coverage.
    8. Separate invalid or rejected Game Design policy reads from unavailability.Minor

      The client uses IllegalStateException for two cases: an invalid owner response and an uninitialized stub. The reader then treats every StatusRuntimeException and every IllegalStateException as GameDesignUnavailableException. CanonicalGameplayRosterOwnerReadGrpcAdapter maps that exception to Status.UNAVAILABLE. As a result, Entity gets a retryable status for denied or invalid owner evidence. It does not get FAILED_PRECONDITION.

      • services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/CanonicalPublishedPlayerRouteReadService.java#L297-L307: map only the transient gRPC codes (UNAVAILABLE, DEADLINE_EXCEEDED, RESOURCE_EXHAUSTED, ABORTED) and the uninitialized client to GameDesignUnavailableException. Map other status codes and invalid responses to InvalidAuthorityException.
      • services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/client/GameDesignPublishedRealmPolicyClient.java#L87-L92: throw a dedicated InvalidResponseException for codec rejections instead of a generic IllegalStateException.

      📍 Affects 2 files

      • services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/CanonicalPublishedPlayerRouteReadService.java#L297-L307 (this comment)
      • services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/client/GameDesignPublishedRealmPolicyClient.java#L87-L92
      • Accepted Malformed/denied policy evidence and uninitialized client share generic ISE/unavailable mapping. Distinguish invalid response and nontransient status from true transport failures.
    9. Assert the exact denial status and error code.Trivial

      isGreaterThanOrEqualTo(400) also passes for a 500 from an unrelated crash. With that assertion, the test cannot show that the numeric selector caused the denial. Assert the specific HTTP status the service returns for this IllegalArgumentException path. Also assert that the response body contains FAILED_PRECONDITION.

      Proposed assertion

      --- "a/services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/GameSessionApplicationIntegrationTest.java"
      +++ "b/services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/GameSessionApplicationIntegrationTest.java"
      @@ -131,7 +131,8 @@
                           .build(),
                       HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
       
      -    assertThat(response.statusCode()).isGreaterThanOrEqualTo(400);
      +    assertThat(response.statusCode()).isEqualTo(400); // confirm the mapped status
      +    assertThat(response.body()).contains("FAILED_PRECONDITION");
           assertThat(gameInstanceRepository.findAll()).hasSize(existingGameInstances);
           org.mockito.Mockito.verifyNoInteractions(worldManagementClient);
         }
      
      • Accepted Broad HTTP>=400 assertion accepts unrelated500. Assert intended400/FAILED_PRECONDITION and retain no-world-call/no-mutation proof.
    10. Align the isolated-selection proof status.Minor

      This paragraph says the isolated-selection proof is unrun. The current-status entry in design/project-management/implementation-tracking/player-access-and-session.md says focused local proof passed for the selection composition. State which tests ran and keep any other unrun route, client, or guard proof separate.

      As per coding guidelines, “Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes.”

      • Accepted Tracker incorrectly labels exercised isolated-selection proof unrun; align bounded proof and its limits with Player Access status.
  6. CLI Review 1 CompletedRuntime 2m 53s
    Found: 9 Accepted: 0/4/5 Routed: 0
    1. Stub the route counters so that the stale-pointer test checks the pointer.Trivial

      fixture() does not stub route.catalogRevision(), route.pointerVersion(), or route.activeWorldEpoch(). On the Mockito mock, all three return 0L. exactRequest(0L, 0L, 0L) sends 1L for each counter, so even the baseline request mismatches all three counters.

      tenantSelectorOwnerReadRejectsChangedCanonicalSelectorOrCounterBeforeGameDesign therefore passes even if the pointer-version comparison is removed. The catalog-revision mismatch and the epoch mismatch still throw StaleAuthorityException. The readCurrent(Request) path also has no passing test.

      Stub the three counters to 1L. Then the exact request matches, and each delta isolates one counter. Add one case per counter, and one positive case that reaches listPublishedRealmEntryPolicies.

      ♻️ Proposed change

           when(route.canonicalVersionId()).thenReturn(VERSION);
      +    when(route.catalogRevision()).thenReturn(1L);
      +    when(route.pointerVersion()).thenReturn(1L);
      +    when(route.activeWorldEpoch()).thenReturn(1L);
      
        @Test
        void tenantSelectorOwnerReadRejectsEachChangedCounterBeforeGameDesign() {
          for (long[] deltas : new long[][] {{1L, 0L, 0L}, {0L, 1L, 0L}, {0L, 0L, 1L}}) {
            var f = fixture();
            when(f.routeReader().readCurrentTarget(TENANT)).thenReturn(f.route());
            assertThatThrownBy(
                    () -> f.service().readCurrent(exactRequest(deltas[0], deltas[1], deltas[2])))
                .isInstanceOf(CanonicalPublishedPlayerRouteReadService.StaleAuthorityException.class);
            verify(f.policyClient(), never()).listPublishedRealmEntryPolicies(TENANT, VERSION);
          }
        }
      

      Also applies to: 216-226

      • Accepted Unstubbed baseline counters0 differ from request1, masking isolated stale-pointer proof. Stub matchingbaseline, independently vary eachcounter and prove positive owner read.
    2. Fix the "current-contract" examples. They contradict the new wire contract.Minor

      Line 226 says ResolveLaunchDescriptorRequest is source-qualified by canonical_tenant_id, world_slug, authored_world_source_operation_id, and expected_authored_world_source_evidence_digest. It also says plugin selection is not part of the current wire contract. The unchanged text at Line 250 still calls the examples below "current-contract examples". Those example requests omit all four source fields. They also include requestedPluginSelection, pluginSelectionMode, and enabledPluginVersions, which are target-only.

      Fix one of the two:

      • Mark the examples as target-only illustrations.
      • Add the source-qualified fields and remove the plugin fields from the current examples.

      As per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs".

      • Accepted Examples claim current wire while using target-only plugin/rollback fields and omitting source qualification. Label existing conceptual extension examples target-only and link current wire owner.
    3. Make the Entity handler status consistent across documents.Minor

      Line 78 says the selection composition "consumes the existing Entity methods". Line 39 of this document says the Entity CanonicalGameplayRosterService wire "currently has no handler or activation". design/architecture/microservices/entity-management-service/api-contracts.md Lines 9 and 46 say the same. The player-access tracker (Line 9) also refers to "Existing Entity-side owner handling and proof". A reader cannot tell whether an Entity handler exists. State that Game Session calls the Entity wire contract, and that no Entity handler exists yet. Alternatively, if a handler exists, update the Entity contract.

      Proposed wording

      -... It rereads the exact published route after each Entity read and returns only a selection menu, denial, or Entity's original assignment reference. This source-only composition consumes the existing Entity methods but does not establish membership or admission, ...
      +... It rereads the exact published route after each Entity read and returns only a selection menu, denial, or Entity's original assignment reference. This source-only composition calls the Entity `CanonicalGameplayRosterService` wire contract, which has no Entity handler yet; it does not establish membership or admission, ...
      

      As per path instructions: "Flag ... conflicts between architecture docs".

      • Accepted GS source wording implies implemented Entity methods while this parent only contains wire. Clarify wire consumer and absent current handler/activation, retain nonadmitting scope.
    4. Use separate UUIDs for the source registration request, the source operation, and the intake operation.Trivial

      sourceReceipt passes sourceOperationId in the registration-request position of AuthoredWorldSourceDigest.requestDigest and of the AuthoredWorldSourceEvidence constructor. It passes intakeOperationId in the source-operation position. It then uses intakeOperationId again as the IntakeReceipt operation ID.

      The source operation ID and the intake operation ID are therefore the same value. If production code compares or swaps these two identifiers by mistake, these tests do not detect it. CanonicalGameplayRosterSelectionServiceTest uses separate UUIDs for these fields.

      Add a distinct sourceRegistrationRequestId. Pass sourceOperationId in the source-operation position.

      • Accepted Source fixture conflates registration/source/intake operation IDs. Use distinct identities in their canonical digest/constructor roles.
    5. Make the aborted-proof test use an aborted proof.Trivial

      abortedCurrentOwnerProofFailsWithoutReadingLaunchAssociation stubs readCurrentOpenSnapshotForRealm to throw IllegalStateException. missingCurrentOpenOwnerProofFailsWithoutReadingLaunchAssociation does the same thing. Only the message text differs, so both tests run the same failure path.

      As a result, no test checks that CanonicalPlayerRouteReadService rejects these proofs:

      • a returned proof whose Outcome is not COMMITTED
      • a returned proof with positiveDurableAbort == true

      If that check regresses, an aborted owner proof can produce a playable route, and these tests still pass. Return a CurrentOpenSnapshot that contains an aborted proof. Then assert InvalidAuthorityException and assert that no launch read occurs.

      ♻️ Proposed change

      -    when(admissionRepository.readCurrentOpenSnapshotForRealm(NAMESPACE, TENANT, REALM))
      -        .thenThrow(new IllegalStateException("Current OPEN pointer has no committed proof"));
      +    CanonicalInitialAdmissionOwnerProof committed = committedProof(7L);
      +    CanonicalInitialAdmissionOwnerProof aborted =
      +        new CanonicalInitialAdmissionOwnerProof(
      +            CanonicalInitialAdmissionOwnerProof.Outcome.ABORTED, // use the actual non-committed constant
      +            REQUEST_ID, "a".repeat(64), NAMESPACE, TENANT, "demo-world", REALM,
      +            PLAYABLE_NAMESPACE, "SHARED", INSTANCE, VERSION, 82L, 1L,
      +            OriginKind.NO_PRIOR_POINTER, null,
      +            committed.holdId(), committed.holdFence(), committed.holdBindingDigest(),
      +            7L, 27L, "sha256:" + "f".repeat(64), true,
      +            Instant.parse("2026-10-07T00:00:00Z"));
      +    when(admissionRepository.readCurrentOpenSnapshotForRealm(NAMESPACE, TENANT, REALM))
      +        .thenReturn(currentOpenSnapshot(aborted));
      
      • Accepted Aborted test only throws generic repository error. Prove real valid ABORTED value rejected by existing CurrentOpenSnapshot guard and reader before launch; never fabricate invalid OPEN snapshot.
    6. Remove the duplicate PERMISSIONDENIED roster case.Trivial

      Remove the duplicate `PERMISSION_DENIED` roster case.

      Lines 525-536 check that PERMISSION_DENIED from listPreseededRoster maps to INVALID_ROSTER_PROOF. The loop at lines 538-550 checks the same status and the same denial again. Delete the separate block so that each status mapping has one owner.

      • Accepted Standalone PERMISSION_DENIED roster case duplicates the following status-loop proof; retain loop and remove duplicate.
    7. Use different UUIDs for the default canonical version ID and the route realm ID.Trivial

      fixture(PolicySpec...) uses 22222222-2222-4222-8222-222222222222 as the default canonicalVersionId. canonicalPublishedRoute() uses the same UUID as realmId (line 248). It then sets canonicalVersionId from fixture.target().canonicalVersionId().

      In every test that uses canonicalPublishedRoute(), the realm ID and the canonical version ID are therefore equal. Examples are CanonicalGameplayRosterSelectionServiceTest and the roster snapshot target. A swap of these two arguments in route reads, policy reads, or roster target construction passes those tests.

      Use a unique UUID for the default canonical version.

      ♻️ Proposed change

           return fixture(
               uuid("11111111-1111-4111-8111-111111111111"),
      -        uuid("22222222-2222-4222-8222-222222222222"),
      +        uuid("55555555-5555-4555-8555-555555555551"),
               19L,
      

      Also applies to: 239-256

      • Accepted Fixture default canonicalVersion equals realm UUID, masking identifier swaps. Use distinct default version identity without changing other fixture defaults.
    8. State that GetCompleteLaunchBinding currently denies every call.Minor

      Line 17 says this method authenticates candidate peers and then returns PERMISSION_DENIED before request validation or owner reads. The index entries at Line 147 and Line 227 describe a working read that returns the descriptor and the release attestation. Other entries in this index mark their target-only status, for example CompareAndSetVersionState. Add the same qualifier here so the index matches current state.

      Proposed wording

      -- `GetCompleteLaunchBinding` – returns that exact descriptor together with its matching full-version release attestation and artifact/manifest evidence; it does not infer or authorize runtime admission.
      +- `GetCompleteLaunchBinding` – **Target state:** returns that exact descriptor together with its matching full-version release attestation and artifact/manifest evidence; it does not infer or authorize runtime admission. The current handler authenticates the candidate peer and then returns `PERMISSION_DENIED` before request validation or owner reads.
      

      As per path instructions: "Review docs for canonical-current-state consistency."

      Also applies to: 227-227

      • Accepted GetCompleteLaunchBinding index entries imply working production read despite current deny-before-owner handler. Mark target behavior and state current exactpeer authentication/denial.
    9. Define or remove "published A/B/C dependencies".Minor

      This is the canonical architecture document, and it does not define "A/B/C". A reader cannot tell which dependencies block validation. Name the dependencies or link the tracker section that defines them. Validation status belongs in the implementation tracker, so a link is the smaller change.

      Proposed wording

      -The canonical authored-world launch slice includes source-qualified ResolveLaunchDescriptor, exact independent GetLaunchDescriptor, and GetCompleteLaunchBinding returning descriptor and release-attestation evidence separately. Game Session's evidence-only preparation and focused proof sources are present, but validation is deferred until published A/B/C dependencies are integrated. Numeric launch selectors are non-authorizing.
      +The canonical authored-world launch slice includes source-qualified ResolveLaunchDescriptor, exact independent GetLaunchDescriptor, and GetCompleteLaunchBinding returning descriptor and release-attestation evidence separately. Implementation and proof status is recorded in the [authoring implementation tracker](../../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#launch-activation-cutover-and-termination). Numeric launch selectors are non-authorizing.
      

      As per path instructions: "Review docs for canonical-current-state consistency."

      • Accepted Undefined A/B/C proof status is stale canonical README content. Link implementation tracker and preserve RPC/numeric selector consequences.
  7. Hosted Review 2 CompletedRuntime 6m 44s
    Found: 2 Accepted: 0/2/0 Routed: 0
    1. Map Entity FAILED_PRECONDITION by call site. The current mapping uses the wrong denial for both calls.Minor
      • rosterFailure maps FAILED_PRECONDITION from ListPreseededRoster to STALE_MENU_IDENTITY. No menu identity takes part in that call. The proto contract uses FAILED_PRECONDITION for a non-PRESEEDED_ONLY policy or a stale target. A caller that sent no selector therefore gets an incorrect "stale menu" denial. Map this case to ROUTE_CHANGED.
      • assignmentFailure maps every non-transient code to INVALID_ASSIGNMENT_PROOF. The proto says ReadSelectedPreseededAssignment returns FAILED_PRECONDITION when the snapshot is stale or the selected actor is no longer in it. That is a refresh-the-menu condition, not invalid proof. Map it to STALE_MENU_IDENTITY.

      Proposed fix

         private static Denial rosterFailure(StatusRuntimeException failure) {
           Status status = failure.getStatus();
           if (isTransient(status)) {
             return Denial.ROSTER_UNAVAILABLE;
           }
           if (status.getCode() == Status.Code.FAILED_PRECONDITION) {
      -      return Denial.STALE_MENU_IDENTITY;
      +      return Denial.ROUTE_CHANGED;
           }
           return Denial.INVALID_ROSTER_PROOF;
         }
      
         private static Denial assignmentFailure(StatusRuntimeException failure) {
      -    return isTransient(failure.getStatus())
      -        ? Denial.ASSIGNMENT_UNAVAILABLE
      -        : Denial.INVALID_ASSIGNMENT_PROOF;
      +    Status status = failure.getStatus();
      +    if (isTransient(status)) {
      +      return Denial.ASSIGNMENT_UNAVAILABLE;
      +    }
      +    if (status.getCode() == Status.Code.FAILED_PRECONDITION) {
      +      return Denial.STALE_MENU_IDENTITY;
      +    }
      +    return Denial.INVALID_ASSIGNMENT_PROOF;
         }
      

      As per path instructions, flag violations of "gRPC application-error handling … and failure-mode expectations."

      • Accepted Canonical Entity proto distinguishes stale roster target from stale selected snapshot. Map roster FAILED_PRECONDITION to ROUTE_CHANGED and selected assignment to STALE_MENU_IDENTITY; preserve other denials.
    2. Move the roster-read sections out of the initial-admission-bind narrative.Minor
      • Line 66 has no blank line after Line 65. Markdown therefore renders the roster-owner read paragraph as part of the initial-bind retry paragraph.
      • The new ### Entity preseeded-actor assignment source read heading sits between the initial-bind text and Line 80.
      • Line 80 starts "The local run-owned Compose fixture path now reaches this owner transaction." After this change, "this owner transaction" refers to the roster selection composition, not the initial admission bind.

      Fix: move Lines 66–78 after Line 80, under a separate heading, for example ### Canonical gameplay roster owner reads. Then update the #initial-admission-bind links in runtime-and-data.md and the trackers to the new anchor.

      As per path instructions, "Review docs for canonical-current-state consistency."

      • Accepted Roster source paragraphs split initial-bind narrative and misbind Compose owner transaction. Group reads under their own owner heading; retarget only roster-source links.
  8. CLI Review 2 CompletedRuntime 2m 58s
    Found: 5 Accepted: 0/3/1 Routed: 0
    1. Give the exact enum text for each field in the intentdigest preimage.Minor

      Give the exact enum text for each field in the `intent_digest` preimage.

      The preimage says "scope/policy values use their canonical enum names". It also lists "core actorKind". The proto has two possible forms for each of these values:

      • PLAYABLE_STATE_SCOPE_SHARED or SHARED
      • CANONICAL_ROSTER_ACTOR_KIND_PLAYER or PLAYER
      • CANONICAL_ROSTER_ENTRY_POLICY_PRESEEDED_ONLY or PRESEEDED_ONLY

      The Game Session roster-snapshot digest v3 already mixes the two forms. In CanonicalGameplayRosterClient.calculateSnapshotDigest, the scope uses the full proto name PLAYABLE_STATE_SCOPE_SHARED and the policy uses the short name PRESEEDED_ONLY. If two implementers read this text differently, their intent_digest values will not match, and later placement revalidation will fail closed.

      Name the exact byte string for each enum field, for example "SHARED/ISOLATED, PRESEEDED_ONLY, PLAYER (short names, not proto value names)". As per path instructions: "Flag … conflicts between architecture docs."

      • Accepted Intent-digest enum spelling is ambiguous across full proto versus internal names. Name exact SHARED/ISOLATED, PRESEEDED_ONLY and PLAYER short strings from canonical Entity digest.
    2. Build one expected target and reuse it in both classes.Trivial

      matchesExactPublishedTarget compares 17 target fields one by one. It also repeats the policy checks and rawDigest from CanonicalGameplayRosterClient.toExpectedTarget/rawPublishedPolicyDigest/rawOwnerProofDigest. If someone adds a field to CanonicalGameplayRosterTarget and updates only one of these two places, the client sends one target and the selection check compares another. Expose one builder from the client, for example a package-visible or public static expectedTarget(route). Then compare the protobuf messages with equals.

      ♻️ Proposed refactor

         private static boolean matchesExactPublishedTarget(
             CanonicalGameplayRosterTarget target, CanonicalPublishedPlayerRoute publishedRoute) {
           if (target == null || !target.getUnknownFields().asMap().isEmpty()) {
             return false;
           }
      -    var route = publishedRoute.route();
      -    RealmEntryPolicy policy = publishedRoute.entryPolicy();
      -    ...
      -        && target.getActiveWorldEpoch() == route.activeWorldEpoch();
      +    return CanonicalGameplayRosterClient.expectedTarget(publishedRoute).equals(target);
         }
      
      • Accepted Selection duplicates the client exact-target builder and digest checks. Reuse one public builder with full protobuf equality, retaining null/unknown-field rejection.
    3. Replace "implements" with "specifies" for ListPreseededRoster.Minor

      Line 253 says the CanonicalGameplayRosterService.ListPreseededRoster wire "implements only the pre-admission PRESEEDED_ONLY lookup". The Entity API contract says this proto "is a wire contract only; it has no handler or activation in the current stage". "Implements" suggests a working Entity handler. Use "specifies" so the two documents agree. As per path instructions: "Flag … conflicts between architecture docs."

      • Accepted Canonical transactions describe wire semantics without claiming an active Entity handler; replace implements with specifies.
    4. Confirm that the assignment read compares the expected policy digest and release reference.Major

      PreseededActorAssignmentOwnerReadEvidence.Request carries expectedPolicyDigest and expectedPublishedReleaseBundleRef; the interceptor-chain test sets both. The API contract says the request selects the exact "catalog, policy-digest, and release selectors".

      requireAssignmentSelectors compares only namespace, tenant, world, realm, playable-state namespace/scope, instance, version, and catalog revision. readCurrent(sourceRequest) then selects the current policy by world and realm slug only. It does not compare that policy's digest or the set's publishedReleaseBundleRef with the request.

      Assume new PreseededActorAssignmentOwnerReadEvidence(request, sourceEvidence) does not check these two fields. Then an Entity request that carries a stale or wrong policy digest or release reference still receives successful source evidence. The response does not fail with FAILED_PRECONDITION. Entity could bind an assignment to policy evidence that its request never named.

      Verify whether the PreseededActorAssignmentOwnerReadEvidence constructor (Common Platform Core) rejects a mismatch between request.expectedPolicyDigest()/expectedPublishedReleaseBundleRef() and the selected policy evidence. If it does not, add an explicit check here and throw StaleAuthorityException:

      🛡️ Sketch

           CanonicalGameplayRosterOwnerReadEvidence sourceEvidence = readCurrent(sourceRequest);
      +    var selected =
      +        sourceEvidence.policySetEvidence().policies().stream()
      +            .filter(p -> p.policy().worldSlug().equals(request.worldSlug())
      +                && p.policy().realmSlug().equals(request.realmSlug()))
      +            .reduce((a, b) -> { throw new InvalidAuthorityException("Ambiguous policy"); })
      +            .orElseThrow(() -> new InvalidAuthorityException("Policy selector missing"));
      +    if (!("sha256:" + request.expectedPolicyDigest()).equals(selected.policyDigest())
      +        || !request.expectedPublishedReleaseBundleRef()
      +            .equals(sourceEvidence.policySetEvidence().publishedReleaseBundleRef())) {
      +      throw new StaleAuthorityException(
      +          "Current policy differs from the exact actor-assignment policy selectors");
      +    }
           return new PreseededActorAssignmentOwnerReadEvidence(request, sourceEvidence);
      

      Add a negative unit case for each mismatched selector.

      • Rejected Common PreseededActorAssignmentOwnerReadEvidence constructor already compares both exact policy digest and release reference. Its existing rejectsChangedSelectorsPolicyReleaseUnknownFieldsAndPartialSourceEvidence test separately proves both mismatches.
    5. Update the AR-3.1 Capability Status row to match the new status text.Minor

      The new paragraph records two things:

      • GetCompleteLaunchBinding authenticates peers and then denies before owner reads.
      • A focused proof for that boundary now exists.

      The AR-3.1 row (line 92) does not show either one:

      • It does not list GameDesignService/GetCompleteLaunchBinding deny-only behavior or its bearer-exempt registration.
      • Its proof cell does not list the new [CanonicalLaunchGrpcAuthWiringTest.java](../../../services/game-design-service/src/test/java/unit/net/firedevops/firemud/gamedesign/security/CanonicalLaunchGrpcAuthWiringTest.java).

      Add that anchor and a short complete-binding denial note to the gap cell. As per coding guidelines: "Each tracker contains one Capability Status row for every capability it primarily owns… the capability rows are the complete scan-first status surface."

      • Accepted AR-3.1 scan-first row omits existing complete-binding peer-authentication/deny boundary and exact auth-wiring proof anchor; align row without changing partial status.
  9. CLI Review 3 CompletedRuntime 2m 30s
    Found: 4 Accepted: 0/2/2 Routed: 0
    1. Move the roster bound and actor validation into one helper.Trivial

      The same actor rules exist in three places:

      • validateResponse (Lines 390-417).
      • requireValidSelectedRosterSnapshot (Lines 280-301).
      • CanonicalGameplayActorSelection.validate / isCanonicalDisplayName, together with a separate MAX_ROSTER_SIZE = 100.

      Each copy has its own MAX_ROSTER_SIZE, display-name checks (trim, 100-character limit, ISO control characters), and duplicate-UUID check. These checks mirror Entity's bounded snapshot contract. If one copy changes and the others do not, one layer accepts a snapshot that a later layer rejects. Keep the bound and the predicates in one package-visible or public static helper, for example on RosterActor or PreseededRosterSnapshot, and call that helper from all three places.

      ♻️ Sketch

      public record RosterActor(UUID characterUuid, String displayName) {
        public static final int MAX_DISPLAY_NAME_LENGTH = 100;
      
        public static boolean isCanonicalDisplayName(String value) {
          return value != null
              && !value.isBlank()
              && value.equals(value.trim())
              && value.length() <= MAX_DISPLAY_NAME_LENGTH
              && value.codePoints().noneMatch(Character::isISOControl);
        }
      }
      

      Also applies to: 390-417

      • Accepted Three layers duplicate typed actor bounds, identity uniqueness and display predicates. One focused typed-roster predicate preserves wire-specific checks and denial categories while preventing drift.
    2. State the current GetCompleteLaunchBinding denial in the README.Minor

      Line 21 says the slice includes "GetCompleteLaunchBinding returning descriptor and release-attestation evidence separately". It does not say that this is target behavior. The current behavior is different:

      • api-contracts.md Lines 17 and 147 say the production RPC authenticates the candidate peer and then returns PERMISSION_DENIED before request validation or owner reads.
      • CanonicalLaunchGrpcAuthWiringTest asserts that PERMISSION_DENIED result.

      As written, the README presents a denied RPC as an available read surface.

      📝 Proposed wording fix

      -The canonical authored-world launch slice includes source-qualified ResolveLaunchDescriptor, exact independent GetLaunchDescriptor, and GetCompleteLaunchBinding returning descriptor and release-attestation evidence separately.
      +The canonical authored-world launch slice includes source-qualified ResolveLaunchDescriptor and exact independent GetLaunchDescriptor. The target GetCompleteLaunchBinding returns descriptor and release-attestation evidence separately; the current production RPC authenticates exact same-namespace candidate peers and then returns `PERMISSION_DENIED` before request validation or owner reads.
      

      As per path instructions, flag "conflicts between architecture docs" and keep docs consistent with the canonical current state.

      • Accepted README still presents complete-binding target response as available. Align current exact-peer authentication then PERMISSION_DENIED boundary with owning API and preserve tracker/numeric-selector limits.
    3. Specify one exact enum encoding in the intent-digest preimage.Minor

      This paragraph defines a byte-exact digest preimage, but it gives two enum-encoding rules:

      • One sentence requires "the internal short strings PLAYER, SHARED or ISOLATED, and PRESEEDED_ONLY ... not full protobuf enum identifiers."
      • The next sentence says "scope/policy values use their canonical enum names."

      A reader can take "canonical enum names" to mean the protobuf names (PLAYABLE_STATE_SCOPE_SHARED, CANONICAL_ROSTER_ENTRY_POLICY_PRESEEDED_ONLY). If a producer and a verifier choose different encodings, their digests do not match, and every ReadSelectedPreseededAssignment readback fails closed. Keep only the short-string rule.

      📝 Proposed wording fix

      -UUIDs use canonical `UUID.toString()` form, counters use base-10 decimal text, and scope/policy values use their canonical enum names.
      +UUIDs use canonical `UUID.toString()` form, counters use base-10 decimal text, and actor-kind, scope, and policy values use only the short strings listed above.
      

      As per path instructions, docs under design/**/*.md are reviewed for "canonical-current-state consistency" and conflicts between architecture docs.

      • Accepted Intent preimage still has a second ambiguous enum-name clause after the explicit short-string rule. Converge on only the named internal strings.
    4. Add the missing tenant-mismatch case.Trivial

      The method name deniesTenantNamespaceRealmAndInstanceContextMismatchesBeforeEntityRead includes a tenant mismatch. The body only changes playableStateNamespaceId, gameInstanceId, and realmId. No case changes tenantId in the PlayerExecutionContext. If the service stops checking the caller tenant against the route tenant, this test still passes. Tenant isolation is the boundary that matters most here, so add a setTenantId(...) case. The case must assert ROUTE_MISMATCH and confirm that the roster is never read.

      🧪 Proposed test addition

           assertDenied(
               harness
                   .service()
                   .select(
                       valid.toBuilder()
                           .setRealmId(uuid("12121212-1212-4212-8212-121212121212").toString())
                           .build(),
                       null,
                       null),
               CanonicalGameplayRosterSelectionService.Denial.ROUTE_MISMATCH);
      +    assertDenied(
      +        harness
      +            .service()
      +            .select(
      +                valid.toBuilder()
      +                    .setTenantId(uuid("12121212-1212-4212-8212-121212121212").toString())
      +                    .build(),
      +                null,
      +                null),
      +        CanonicalGameplayRosterSelectionService.Denial.ROUTE_MISMATCH);
       
           verify(harness.stub(), never()).listPreseededRoster(any());
      

      If the service rejects a foreign tenant with a different Denial value (for example, during the route read), assert that value instead.

      • Accepted Missing tenant case leaves the named isolation proof incomplete. Fault-inject an owner catalog returned for another tenant and require ROUTE_MISMATCH before any Entity read.
  10. CLI Review 4 CompletedRuntime 2m 37s
    Found: 2 Accepted: 1/1/0 Routed: 0
    1. Record all three launch RPCs in the bearer-exemption status.Minor

      The AR-3.1 row says only GetCompleteLaunchBinding is in the gRPC public-method list. This PR also adds ResolveLaunchDescriptor and GetLaunchDescriptor to firemud.auth.grpc.public-methods in services/game-design-service/src/main/resources/application.yml and application-prod.yml. After this change, those two methods also skip [redacted credential] and depend only on the handler mTLS peer check.

      The tracker now understates a change to the security boundary. The Game Design API contract also documents [redacted credential] only for the published-policy methods (unchanged line 117 in design/architecture/microservices/game-design-service/api-contracts.md).

      State that all three launch methods skip [redacted credential] and keep their exact same-namespace peer checks. CanonicalLaunchGrpcAuthWiringTest already proves those peer checks and can serve as the proof anchor. Add the same note to the Game Design API contract implementation status. As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes."

      📝 Proposed wording

      -... Production `GetCompleteLaunchBinding` authenticates exact same-namespace candidate peers, then returns `PERMISSION_DENIED` before request validation or owner reads; the RPC is registered in the gRPC public-method list to bypass [redacted credential] while its mTLS peer checks remain active. |
      +... Production `GetCompleteLaunchBinding` authenticates exact same-namespace candidate peers, then returns `PERMISSION_DENIED` before request validation or owner reads. `ResolveLaunchDescriptor`, `GetLaunchDescriptor`, and `GetCompleteLaunchBinding` are registered in the gRPC public-method list to bypass [redacted credential] while their method-specific mTLS peer checks remain active. |
      
      • Accepted Both configured profiles register all three launch RPCs; tracker names only complete-binding method. Align canonical API registration note and secondary status with existing exact peer proof; preserve current deny-only limits.
    2. Use doThrow(...).when(source) for the second stub. The current when(...) call throws the first stubbed exception.Major

      Line 198 stubs source.readCurrent(any(...)) to throw StaleAuthorityException. At line 208, when(source.readCurrent(any(...))) calls the mock again. Mockito runs the existing thenThrow answer during that call, so the test throws StaleAuthorityException before it reaches .thenThrow(new InvalidAuthorityException(...)). As a result, staleOrInvalidCurrentSelectorsFailClosed fails with an unexpected exception, and the InvalidAuthorityException → FAILED_PRECONDITION mapping is never tested.

      Mockito documents doThrow as the required form when you override an earlier exception stub.

      🐛 Proposed fix

      -    when(source.readCurrent(any(CanonicalGameplayRosterOwnerReadEvidence.Request.class)))
      -        .thenThrow(
      -            new CanonicalPublishedPlayerRouteReadService.InvalidAuthorityException(
      -                "changed policy or source"));
      +    org.mockito.Mockito.doThrow(
      +            new CanonicalPublishedPlayerRouteReadService.InvalidAuthorityException(
      +                "changed policy or source"))
      +        .when(source)
      +        .readCurrent(any(CanonicalGameplayRosterOwnerReadEvidence.Request.class));
      
      • Accepted Current test executes and passes; typed any(Request.class) excludes null during when configuration. Accept explicit doThrow restub for clear exception override independent of matcher placeholder behavior, preserving assertions.
  11. CLI Review 5 CompletedRuntime 2m 41s
    Found: 2 Accepted: 0/2/0 Routed: 0
    1. Do not map every Entity FAILEDPRECONDITION on the assignment read to STALEMENUIDENTITY.Minor

      Do not map every Entity `FAILED_PRECONDITION` on the assignment read to `STALE_MENU_IDENTITY`.

      The Entity proto returns FAILED_PRECONDITION for these cases:

      • The snapshot is stale.
      • The selected actor is absent from the snapshot.
      • The policy is not PRESEEDED_ONLY.

      assignmentFailure maps all of them to STALE_MENU_IDENTITY. This result is wrong in two reachable paths:

      • The blank selector auto-selects a single-actor roster. That path returns no menu, so the caller has no menu identity to refresh.
      • A policy or route change that Entity reports is a route problem, not a menu problem. rosterFailure already maps the same status to ROUTE_CHANGED for the list read.

      A caller that acts on STALE_MENU_IDENTITY can show the menu again instead of re-resolving the route. Choose the denial from the call context: use STALE_MENU_IDENTITY only when expectedMenuIdentity was supplied. In all other cases, use ROUTE_CHANGED.

      🐛 Proposed fix

      -  private static Denial assignmentFailure(StatusRuntimeException failure) {
      +  private static Denial assignmentFailure(
      +      StatusRuntimeException failure, boolean menuSelection) {
           Status status = failure.getStatus();
           if (isTransient(status)) {
             return Denial.ASSIGNMENT_UNAVAILABLE;
           }
           if (status.getCode() == Status.Code.FAILED_PRECONDITION) {
      -      return Denial.STALE_MENU_IDENTITY;
      +      return menuSelection ? Denial.STALE_MENU_IDENTITY : Denial.ROUTE_CHANGED;
           }
           return Denial.INVALID_ASSIGNMENT_PROOF;
         }
      

      Pass expectedMenuIdentity != null from the call site at line 124.

      • Accepted Auto-selection supplies no menu identity; FAILED_PRECONDITION on selected assignment must map to ROUTE_CHANGED there, retaining STALE_MENU_IDENTITY for supplied menu selections and preserving transport/invalid mappings.
    2. Use the proto field names in the normative intent-digest preimage.Minor

      This paragraph defines a cross-service SHA-256 preimage. Some value names in it do not match the wire contract in entity_management_service.proto:

      • frozenPolicyDigest has no proto field. The target field is published_policy_digest.
      • gameInstanceId and playableStateNamespaceId appear where the target fields are game_instance_uuid and playable_state_namespace_uuid.
      • realmUuid and canonicalVersionUuid use the UUID suffix, so the list mixes two naming styles.

      An Entity implementer and a Game Session verifier can read these names differently and serialize different values. The result is a digest mismatch that fails closed. For each preimage element, name the exact source field, or state that frozenPolicyDigest is a different persisted value from published_policy_digest. Also state whether policy digests use the bare 64-hex form or the sha256:-prefixed form. The Game Session client sends the bare form.

      As per path instructions: "Flag ... conflicts between architecture docs."

      • Accepted Normative immutable preimage should identify internal persisted sources and exact wire counterpart names plus bare policy-digest form. Preserve existing v4 encoding/order and original receipt evidence; no algorithm or value-source change.
  12. CLI Review 6 CompletedRuntime 3m 13s
    Found: 3 Accepted: 0/0/1 Routed: 1
    1. Confirm where the assignment read checks the expected policy digest and release reference.Minor

      GetPreseededActorAssignmentOwnerReadRequest carries expected_policy_digest and expected_published_release_bundle_ref. PreseededActorAssignmentOwnerReadInterceptorChainTest sets both fields. The Game Session API contract says the request selects the exact "catalog, policy-digest, and release selectors". It also says Game Session checks the sealed Game Design policy set before it returns evidence.

      requireAssignmentSelectors compares namespace, tenant, world, realm, playable-state namespace and scope, instance, version, and catalog revision. It does not compare the expected policy digest or the release bundle reference. readCurrent(sourceRequest) then validates the route against a source request built from route-derived values. Suppose neither PreseededActorAssignmentOwnerReadEvidence.sourceRequest nor the PreseededActorAssignmentOwnerReadEvidence constructor compares these two fields with the returned policy evidence. Then Entity can receive successful source evidence for a policy or release other than the one it requested. The adapter maps this mismatch to a success response, not FAILED_PRECONDITION.

      Confirm that one of these Common evidence types rejects a mismatch. If neither type checks, add this check after requirePublishedPreseededPolicy selects the policy:

      if (!request.expectedPolicyDigest().equals(rawDigest(selected.policyDigest()))
          || !request.expectedPublishedReleaseBundleRef()
              .equals(complete.publishedReleaseBundleRef())) {
        throw new StaleAuthorityException(
            "Current published policy differs from the requested assignment selectors");
      }
      
      • Rejected Common PreseededActorAssignmentOwnerReadEvidence constructor already compares both exact expected policy digest and release reference before success; its existing test independently rejects changed digest and changed release. Duplicate CLI2 concern.
    2. Verify that the display-name length rule matches Entity's rule.Minor

      isCanonicalDisplayName limits value.length() to 100. That value counts UTF-16 code units, not Unicode code points. Line 58 says the client matches Entity's bounded roster contract. Other canonical limits in this PR count code points; for example, CanonicalInitialAdmissionRequest uses codePointCount.

      Suppose Entity limits display names to 100 code points. A valid name of 51 or more supplementary characters, such as emoji, then fails here. validateResponse would reject the complete roster, and CanonicalGameplayRosterSelectionService would return INVALID_ROSTER_PROOF for every actor of that account.

      Confirm whether Entity's CanonicalGameplayRosterSnapshotDigest contract counts UTF-16 units or code points. If it counts code points, apply this change:

      🐛 Proposed fix

      -        && value.length() <= 100
      +        && value.codePointCount(0, value.length()) <= 100
      
      Route · PR #3125 → PR #2967 Accepted/FixedGS client matches Entity roster UTF16 limit today. Entity assignment core accepts100Unicode code points while its roster guard accepts100UTF16 units; route owner convergence concern to2967 for adjudication before any client-bound change. View routed finding
    3. The test does not prove that the service rejects the canonical tenant UUID.Trivial

      The descriptor sets canonicalTenantId and leaves tenantId blank. A blank tenantId can produce "tenantId must be numeric" without any read of canonicalTenantId. The test then passes even when no coercion check exists.

      Add a second case that sets setTenantId("123e4567-e89b-12d3-a456-426614174000"). That case covers a UUID that reaches the numeric tenant parser directly. Also confirm the error message for a blank tenantId. If the message differs, the current case is distinguishable and is correct.

      The never() checks at Lines 219-221 duplicate verifyNoMoreInteractions(gameDesignClient) at Line 222. Remove them, or keep them only as documentation.

      ♻️ Proposed additional case

                           net.firedevops.firemud.gamedesign.v1.LaunchDescriptor.newBuilder()
                               .setLaunchDescriptorId("ld-cp-canonical-tenant")
      +                        .setTenantId("123e4567-e89b-12d3-a456-426614174000")
                               .setCanonicalTenantId("123e4567-e89b-12d3-a456-426614174000")
      

      Use a parameterized test so that both the blank tenantId case and the UUID tenantId case stay covered.

      • Accepted Existing launch test proves only blank legacy tenant rejection; add UUID-in-legacy-field parameter case while retaining exact diagnostic and no-mutation/no-extra-owner-read assertions.

Routed Findings

0 Open1 Accepted/Fixed0 Rejected
  1. Route 1 · PR #3125 → PR #2967 Accepted/FixedMinorVerify that the display-name length rule matches Entity's rule.

    isCanonicalDisplayName limits value.length() to 100. That value counts UTF-16 code units, not Unicode code points. Line 58 says the client matches Entity's bounded roster contract. Other canonical limits in this PR count code points; for example, CanonicalInitialAdmissionRequest uses codePointCount.

    Suppose Entity limits display names to 100 code points. A valid name of 51 or more supplementary characters, such as emoji, then fails here. validateResponse would reject the complete roster, and CanonicalGameplayRosterSelectionService would return INVALID_ROSTER_PROOF for every actor of that account.

    Confirm whether Entity's CanonicalGameplayRosterSnapshotDigest contract counts UTF-16 units or code points. If it counts code points, apply this change:

    🐛 Proposed fix

    -        && value.length() <= 100
    +        && value.codePointCount(0, value.length()) <= 100
    

    Outcome: Published9526190049a86feef40cd616ec7b5eb931247e8b preserves100-code-point source acceptance through Entity roster and GS client;292unit+27PostgreSQL0skip and21GS cases pass, fullEntity/focusedGS static/format/docs gates pass. PG supplementary100CP assignment/roster case executes.

    Earlier routing and proof

    Earlier decisions

    • Accepted Producer persists a valid100-code-point PRESEEDED display name that the100-UTF16 roster guard rejects. Preserve existing accepted source bound and align Entity roster plus GS consumer; prove supplementary-character assignment-to-roster readback.
    • Routed GS client matches Entity roster UTF16 limit today. Entity assignment core accepts100Unicode code points while its roster guard accepts100UTF16 units; route owner convergence concern to2967 for adjudication before any client-bound change.

Unlinked items

no items unlinked