PR #2972 review history
Unit 1A · identity, Account and public JOIN
Review rounds
Three-number pills mean: found (raw) / accepted here (useful) / routed
Recorded review history
Reviews and findings
- Subagent Review 1 CompletedModel: gpt-6-luna · XhighFound: 3 Accepted: 3 Routed: 0
- Tracker falsely lists converged GrpcClientAuth as numericTrivial
- Accepted Correct remaining numeric-reader status to current SessionContext receive seam without claiming global convergence.
- UUID authentication producers leave numeric current-account readersMajor
AccountServiceImpl:242 and2071; common-security SessionContext:114; Logging SessionActorReaders:10; Automation ScriptEventIngressServiceImpl:1613.
- Accepted Source-owned token change must preserve canonical receiving semantics and denial. Correct common/Logging/Automation read path with focused proof; no numeric-to-UUID inference.
- Canonical profile RPC requires Social receiving convergence and minimized target readMajor
AccountGrpcService GetProfile/UpdateProfile versus Social AccountClient numeric requests and friend presence reads.
- Accepted Retain exact self-subject profile guard; adapt same-owner writes and use existing minimized presence-policy read for cross-account queries, not a broader authorization exception.
- CLI Review 1 CompletedRuntime 2m 45sFound: 3 Accepted: 1/0/0 Routed: 0
- Major
Update the AA-1.1 capability row to include RuntimeAccountIdentityGrpcService.java and runtime_account_identity_service.proto as implementation anchors, plus RuntimeAccountIdentityGrpcServiceTest.java and RuntimeAccountIdentityGrpcAuthWiringTest.java as proof anchors; alternatively, add a separate capability row that owns this runtime identity read and its proofs.
- Accepted Add runtime owner-read implementation and auth/service proof anchors to the existing AA-1.1 capability row; keep capability partial.
- Minor
Update unregister so it deletes the key whenever the retained value is readable as a FirstPartyConnectContext, regardless of whether it has complete routing scope; keep the existing behavior of retaining the key when deserialization fails.
- Rejected Readable type alone does not establish a complete canonical routing/ownership scope. Existing register/cleanup gate preserves incompatible retained evidence; deleting scope-incomplete records would bypass the legacy identity migration boundary.
- Major
Update RedisSessionContextService.readContext to treat retained contexts with non-canonical account identities as absent on mutation paths, so save can replace them and deleteBySessionId can remove them; preserve the existing lookup behavior that treats these entries as absent.
- Rejected Noncanonical retained identity is unknown evidence, not absence on a mutation path. Treating it as absent permits overwrite/deletion before owner-validated migration or invalidation; preserve fail-closed retention and fresh-login behavior.
- Subagent Review 2 CompletedModel: gpt-6-luna · XhighFound: 4 Accepted: 1 Routed: 3
- Gameplay chat UUID carrier reaches numeric-only Social sender receiverMajor
Game Logic CommunicationAggregationService sends UUID senderId; SocialGroupsGrpcService still requires positive long. Target remains unassigned pending canonical Social ownership boundary.
Route · PR #2972 → PR #2975 Accepted/FixedGeneral Social storage/receiving owner must converge retained relationship/chat subjects from trusted Account provenance. No guessed UUID-to-row mapping in source carrier PR. View routed finding - Account realm-grant receiver still parses public Account identity as a numeric row IDMajor
- Accepted Owned by Account carrier/receiving stage. Resolve canonical UUID privately under exact GS mTLS, validate returned tuple, echo UUID and add receiving/auth-wiring regression.
- Social presence policy consumer still sends and parses numeric Account identityMinor
Related prior run gameplay-2972-broad-luna-1-20261004 finding social-profile-uuid-receiver is a partial producer correction with immutable original counts; do not silently rewrite it.
Route · PR #2972 → PR #2975 Accepted/FixedRepeated observation of known downstream Social consumer/provenance gap. Account minimized UUID policy producer fixed here; General owns retained Social mapping/receiver. Missing data remains PRIVATE. View routed finding - Gameplay admission moderation read rejects canonical Account UUIDsMajor
PLAY sends UUID to LoggingAdminGrpcService numeric receiver. Source notes this known unavailable runtime proof; target Gameplay must implement producer/projection and actual admission receiving proof.
Route · PR #2972 → PR #2976 Accepted/FixedGameplay runtime-entry successor owns ADR0141 owner-local moderation projection; known nonactivating carrier-stage limit. Do not repair by restoring routine numeric Logging reads. View routed finding
- CLI Review 2 CompletedRuntime 3m 27sFound: 9 Accepted: 0/2/4 Routed: 0
- Trivial
Add tests in AccountGrpcServiceTest for authenticate and verifyEmailLoginOtp when their corresponding AccountService methods throw IllegalStateException; assert each returns a completed response containing ErrorDetail with no transport error.
- Accepted Fix current candidate alongside finding8: regressions for persisted-identity IllegalStateException on authenticate and email OTP must prove completed bounded application errors without transport exception.
- Trivial
The provenance loop in hasExactPersistedIdentity accepts every non-null enum value and does not match AccountServiceImpl.resolveAccountStorageId. Move the resolver’s explicit accepted-provenance predicate into a shared helper and use it from both hasExactPersistedIdentity and resolveAccountStorageId, allowing only ACCOUNT_REPOSITORY_INSERT, ACCOUNT_V29_MIGRATION, and ACCOUNT_DATABASE_INSERT.
- Accepted Fix current candidate: share the explicit three-value accepted provenance predicate between owner identity read and private UUID resolver; avoid future enum widening silently changing authority.
- Minor
Update the runtime-read boundary statements for GetTenantMembershipForRuntime and GetTenantEntitlementsForRuntime separately in the architecture guidance and its tracker: note that GetTenantMembershipForRuntime enforces the Game Session peer check, while GetTenantEntitlementsForRuntime still lacks a peer check and tenant-bound caller context, and cross-tenant negative proof remains missing.
- Accepted Fix current candidate documentation drift: runtime membership now has exact GS workload proof, whereas runtime entitlements still lacks that guard/tenant-bound caller proof. Separate implemented and missing boundaries in API owner and tracker.
- Major
Update RedisSessionContextService.readContext so a stored context with a non-canonical account identity does not throw and block RedisSessionContextService.save, including LOGIN saves. Replace the legacy context or remove its indexes as part of the save flow, while preserving normal handling of canonical contexts.
- Rejected Duplicate of prior rejected retention bypass: noncanonical stored identity must not authorize overwrite or index deletion. Preserve unreadable evidence and fail closed pending approved migration; fresh separate-session login remains possible.
- Trivial
Add an exact verification of the
dryRunQuotaService.tryAcquirecall in the test using the same user ID, script ID, and UUID-based account key as the stub, so the test asserts the service uses the updated account-key contract.- Accepted Fix current candidate: verify exact UUID-based dry-run quota call so the updated principal contract is asserted rather than merely stubbed.
- Minor
Update isSafeRealmGrantResponse to allow a larger, configurable future-time tolerance for evaluatedAt values, while preserving the existing past-time validation and other response checks.
- Rejected No evidenced clock-skew failure or canonical larger tolerance is supplied. Expanding the five-second fail-closed future bound would weaken the new receiving guard; current five-minute past bound and strict scope remain.
- Trivial
Remove the unused identity readback when constructing ConnectScopeContext for evaluateJoin; avoid calling requireAuthenticationPersistedIdentity and requireAccount solely to populate accountUuid, using a neutral placeholder or a JOIN-specific context instead.
- Rejected Do not replace owner-proven canonical UUID with a neutral placeholder. JOIN scope convergence must retain persisted Account identity validation; the common context is reused by identity-bearing paths. No unsafe removal solely to reduce a read.
- Minor
Update the Authenticate and VerifyEmailLoginOtp gRPC handlers to catch IllegalStateException from authenticateForGameplay and verifyEmailLoginOtp, respectively, and return a bounded application error through the existing ErrorDetail response path so normal application-error metering runs.
- Accepted Fix current candidate: catch identity-provenance IllegalStateException in both authentication handlers and return bounded AUTH_UNAVAILABLE application ErrorDetail through normal metering; no raw exception disclosure.
- Trivial
Update the rejection test around GameplayHandshakeFilter to capture whether the filter delegates to the chain, then assert the chain is not invoked for the numeric-account token. Keep the existing HTTP 403 assertion and remove or replace the request-header assertion that only checks the unchanged original request.
- Accepted Fix current candidate: numeric handshake rejection test must assert downstream chain never runs; original unchanged request header is insufficient negative proof.
- CLI Review 3 CompletedRuntime 2m 29sFound: 3 Accepted: 0/1/0 Routed: 0
- Major
Update readContext so a retained context with a non-canonical accountId is treated as stale rather than throwing: delete its associated indexes and return no context, allowing save to replace it, including during failed-login cleanup.
- Rejected Repeated unsafe stale-context replacement suggestion. Noncanonical retained identity is ambiguous ownership evidence, not authority to delete indexes and overwrite context. Retained denial contract and negative tests require no mutation.
- Minor
Update the runtime-read status statement to identify only GetTenantEntitlementsForRuntime as the remaining workload-binding blocker, while preserving the completed GetTenantMembershipForRuntime boundary. Align the AA-2.1 row with the implemented canonical Account UUID issuance stated in AA-1.1, and keep related status, gap, and record sections consistent.
- Accepted Tracker contradicts implemented membership peer/UUID receiver and Account UUID issuance despite its later correct limitation paragraph. Correct only stale runtime-read status and AA-2.1 carrier/issuance wording; retain entitlement, actor and runtime proof gaps.
- Minor
Update readRetainedPresenceForMutation so an invalid retained account UUID triggers deletion of the presence key and its associated index entries instead of throwing; allow the mutation to continue without the invalid presence.
- Rejected Repeated unsafe deletion suggestion: unreadable/noncanonical retained Account evidence must fail closed without deleting owner evidence or indexes. Existing mutation negative tests prove no-write/no-delete; this review cannot authorize a retention bypass.
- Hosted Review 1 CompletedRuntime 7m 18sFound: 4 Accepted: 0/2/1 Routed: 1
- Clear session state when stale connect-context invalidation fails.Minor
Credential authentication has succeeded at this point. If
invalidateStaleFirstPartyConnectContextreturnsfalse, the handler returnsCONNECT_CONTEXT_INVALIDwithout callingclearFailedLoginSessionState. Every other failure path in this method clears the session. As a result, an earlier projected session context, including a gameplay binding for a different account, stays in place.Call
clearFailedLoginSessionState(...)before the handler returns this failure.Proposed fix
if (!invalidateStaleFirstPartyConnectContext(numericSessionId, authenticatedAccountId)) { + clearFailedLoginSessionState( + numericSessionId, instance.getTenantId(), bootstrapGameInstanceId, null, null, 0L); return failure("CONNECT_CONTEXT_INVALID", "Connect context invalid"); }- Accepted Neutralize a readable canonical projected session after failed registry invalidation, preserving unreadable/legacy retained records and registry evidence. Add prior authenticated binding denial proof.
- Keep this change gated until Social & Groups accepts UUID sender IDs.Major
CommunicationAggregationServicenow sends the canonical Account UUID assender_id. Social & Groups passes that value toRequestIdValidation.requirePositiveLong, which callsLong.parseLong. The handler therefore returnsINVALID_ARGUMENTfor the UUID beforechatService.sendMessageruns.Ship the Social & Groups consumer change with this update, or retain the existing numeric sender contract until that migration is complete.
Route · PR #2972 → PR #2975 Accepted/FixedGeneral Social consumer/storage owns canonical UUID receiving and retained provenance. Existing social-chat route records same gap; no numeric fallback in this carrier stage. View routed finding - Separate the peer check from the tenant-binding status.Minor
Line 19 says both runtime handlers lack an exact workload check. Lines 49–50 say
GetTenantMembershipForRuntimeenforces the exact Game Session peer, so the tracker conflicts on that control. Update Line 19 to record the membership peer check separately. Keep its tenant-binding statement unless implementation evidence shows that control also changed.As per coding guidelines, “Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes.” As per path instructions, “Review docs for canonical-current-state consistency.”
- Accepted Correct tracker peer/tenant statements; same obligation as CLI3, already implemented in local bed3f2d pending publication.
- Remove the duplicate row-ID field before the schema is consumed.Trivial
source_account_row_id(field 5) andsource_numeric_row_id(field 7) always carry the same value. The server sets both from equal fields. The client andRuntimeAccountIdentityEvidencereject any response where they differ. The second field adds wire surface and an extra equality check, and it adds no evidence. This file is new and the client is not wired yet, so you can merge them into one field now at no cost. If the duplicate is kept on purpose as a self-consistency check, document that in the proto comment.- Accepted Remove duplicate wire row-ID and shared evidence member; retain independent persisted Account source-row provenance equality checks and negative proof.
- CLI Review 4 CompletedRuntime 2m 38sFound: 3 Accepted: 0/0/0 Routed: 0
- Minor
Update removeBySessionId to delete the retained presence key even when its accountId is invalid, rather than letting readRetainedPresenceForMutation abort removal. Keep canonical UUID validation for update mutations so those still abort on invalid account IDs, and allow registerConnected to proceed after stale presence cleanup.
- Rejected Repeated unsafe retention bypass: invalid Account UUID does not prove retained presence ownership or authorize deletion/index mutation. Preserve read-denial and mutation gate pending owner-validated disposition; existing no-mutation tests cover incompatible retained presence.
- Major
Update readContext so a retained context with a non-canonical Account identity is treated as replaceable instead of throwing; ensure save and deleteBySessionId can remove its indexes and proceed with overwrite or deletion, including failed-LOGIN cleanup.
- Rejected Duplicate of previously rejected legacy context replacement. Noncanonical retained identity is ambiguous ownership, not absence; deleting its indexes or overwriting it bypasses migration/invalidation proof. Fresh separate-session reauthentication remains possible; keep no-mutation guard.
- Minor
Update RedisFirstPartyConnectContextRegistry.unregister to delete any non-null value successfully read from Redis, including incomplete or incompatible contexts; retain the read-failure guard for values that cannot be deserialized.
- Rejected Readable Redis value alone does not establish complete canonical connect/routing ownership. Deleting arbitrary wrong-type or incomplete retained context contradicts register/unregister preservation proof; no new owner-validated invalidation is supplied.
- CLI Review 5 CompletedRuntime 3m 51sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- CLI Review 6 CompletedRuntime 2m 35sFound: 1 Accepted: 0/1/0 Routed: 0
- Minor
Handle IllegalArgumentException from dryRunPrincipalKey() in the dry-run admission flow and return a durable, non-retryable TriggerAdmission rejection so the claimed ingress is finalized instead of remaining IN_PROGRESS. Preserve the existing malformed-claim validation behavior and avoid changing unrelated principal-key handling.
- Accepted Malformed canonical Account claim escapes dry-run budget validation after event claim. Return bounded non-retryable rejection through normal durable finalization, without quota or handlers; retain strict UUID denial. No claim that PostgreSQL rollback leaves a persisted IN_PROGRESS row.
- CLI Review 7 CompletedRuntime 3m 51sFound: 4 Accepted: 0/1/2 Routed: 0
- Trivial
Consolidate canonical non-nil UUID parsing in a shared validation helper and reuse it from AuthenticationResult and the other named UUID-validation boundaries, including AccountRequestReaders.requireAccountUuid, AccountGrpcService.requireCanonicalAccountUuid, and RuntimeAccountIdentityGrpcService.parseCanonicalNonNilUuid. Keep each boundary’s existing exception or null-return mapping while removing duplicated parsing checks.
- Accepted Consolidate canonical non-nil UUID text parsing across four Account boundaries, preserving strict validation and existing exception/null mappings. Cheap owned improvement; focused regressions pending.
- Major
Update readContext to treat a retained context with a non-canonical account identity as stale: delete its index keys and return no context so save and deleteBySessionId can continue instead of throwing.
- Rejected Unsafe duplicate: retained noncanonical identity and indices must be preserved until proven migration/rebind. readContext fails before writes/deletes; lookup withholds authority without cleanup. Focused preservation tests confirm this.
- Trivial
Add the verified account UUID to
BootstrapContextinrequireBootstrapContextand pass it through tomintConnectScopeId, replacing the per-realmrequireAccountandrequireAuthenticationPersistedIdentitylookups. InevaluateJoin(VerifiedJoinScope), pass the UUID from the verified scope or caller, or remove the lookup if the resulting UUID is unused byevaluateJoin(ConnectScopeContext, ...).- Accepted Carry verified Account UUID in BootstrapContext to avoid per-realm storage rereads; remove JOIN UUID reread only if demonstrably unused, preserving owner validation. Bounded implementation pending.
- Minor
Update AccountGrpcService.getProfile to catch the IllegalStateException from resolveAccountStorageId and return an AUTH_UNAVAILABLE application error with the existing bounded message. Update updateProfile’s catch-all Exception handling to return the same AUTH_UNAVAILABLE error instead of INVALID_ARGUMENT or the internal exception message.
- Accepted Bounded AUTH_UNAVAILABLE for unavailable/unproven Account UUID resolution in both profile RPCs; preserve malformed-input classification and do not expose internal exceptions. Focused error-path proof pending.
- Hosted Review 2 CompletedRuntime 8m 13sFound: 1 Accepted: 0/1/0 Routed: 0
- Correct the stale numeric-identity summary.Minor
The authentication and player-bootstrap results now carry Account UUIDs. Keep the numeric-ID statement scoped to surfaces that still use numeric IDs.
Suggested documentation update
-Current login/auth/bootstrap results and tenant/profile/member DTOs still use numeric account and tenant identities; only registration and the Account components of the existing Account-local exports now use Account UUID. Migration to ADR 0020 UUID wire identities remains incomplete. +Current `AuthenticationResult.accountId` and `PlayerBootstrapResult.accountId` use canonical Account UUIDs. `ConnectTokenResult`, `ConnectTokenResponse`, `ProfileDto`, `RuntimeMembershipDto`, and `TenantDataExportDto` still carry numeric account and/or tenant identifiers. Registration `AccountDto.id` and the Account components of existing Account-local exports also use Account UUIDs. Migration to ADR 0020 UUID wire identities remains incomplete.- Accepted Current AuthenticationResult and PlayerBootstrapResult carry canonical Account UUIDs; the implementation summary still calls them numeric. Correct only the stale summary and retain the separate incomplete numeric surfaces.
- CLI Review 8 CompletedRuntime 3m 58sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
Routed Findings
Route 1 · PR #2972 → PR #2975 Accepted/FixedMajorKeep this change gated until Social & Groups accepts UUID sender IDs.
CommunicationAggregationServicenow sends the canonical Account UUID assender_id. Social & Groups passes that value toRequestIdValidation.requirePositiveLong, which callsLong.parseLong. The handler therefore returnsINVALID_ARGUMENTfor the UUID beforechatService.sendMessageruns.Ship the Social & Groups consumer change with this update, or retain the existing numeric sender contract until that migration is complete.
Outcome: 3a87f037c: same fixed UUID receiving defect as ce3a3026, distinct Hosted source retained. SocialGroupsGrpcServiceTest passes. https://github.com/benhook1013/FireMUD/pull/2975 . Source counts unchanged; real recipient delivery gated.
Earlier routing and proof
- Target history: PR #2975: Published approved UUID boundary is the concrete owning PR; preserve source observation/history.
Earlier decisions
- Routed General Social consumer/storage owns canonical UUID receiving and retained provenance. Existing social-chat route records same gap; no numeric fallback in this carrier stage.
Route 2 · PR #2972 → PR #2976 Accepted/FixedMajorGameplay admission moderation read rejects canonical Account UUIDs
PLAY sends UUID to LoggingAdminGrpcService numeric receiver. Source notes this known unavailable runtime proof; target Gameplay must implement producer/projection and actual admission receiving proof.
Outcome: 628044b50: canonical UUID evaluateModerationPolicy receiver; allowlisted Game Session/Social positives and denial tests pass in219 Logging units. https://github.com/benhook1013/FireMUD/pull/2976 . Mutations remain unavailable; PostgreSQL/live unproved.
Earlier routing and proof
- Target history: PR #2976: Published approved UUID boundary is the concrete owning PR; preserve source observation/history.
Earlier decisions
- Routed Gameplay runtime-entry successor owns ADR0141 owner-local moderation projection; known nonactivating carrier-stage limit. Do not repair by restoring routine numeric Logging reads.
Route 3 · PR #2972 → PR #2975 Accepted/FixedMinorSocial presence policy consumer still sends and parses numeric Account identity
Related prior run gameplay-2972-broad-luna-1-20261004 finding social-profile-uuid-receiver is a partial producer correction with immutable original counts; do not silently rewrite it.
Outcome: 3a87f037c: exact UUID bulk policy requests/response provenance and100+1 order proof in AccountClientTest pass; Social120/0/0. https://github.com/benhook1013/FireMUD/pull/2975 . No live activation claim.
Earlier routing and proof
- Target history: PR #2975: Published approved UUID boundary is the concrete owning PR; preserve source observation/history.
Earlier decisions
- Routed Repeated observation of known downstream Social consumer/provenance gap. Account minimized UUID policy producer fixed here; General owns retained Social mapping/receiver. Missing data remains PRIVATE.
Route 4 · PR #2972 → PR #2975 Accepted/FixedMajorGameplay chat UUID carrier reaches numeric-only Social sender receiver
Game Logic CommunicationAggregationService sends UUID senderId; SocialGroupsGrpcService still requires positive long. Target remains unassigned pending canonical Social ownership boundary.
Outcome: 3a87f037c: UUID sender reaches Social DTO; numeric/malformed IDs deny. SocialGroupsGrpcServiceTest passes in120-unit gate. https://github.com/benhook1013/FireMUD/pull/2975 . Character-recipient WHISPER/TELL remains gated.
Earlier routing and proof
- Target history: PR #2975: Published approved UUID boundary is the concrete owning PR; preserve source observation/history.
Earlier decisions
- Routed General Social storage/receiving owner must converge retained relationship/chat subjects from trusted Account provenance. No guessed UUID-to-row mapping in source carrier PR.
Unlinked items
no items unlinked