PR #2847 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 not recordedFound: 2 Accepted: 0 Routed: 0
- Committed Account audit payloads lack finite safe-watermark retention cleanupMinor
Safe watermark, hold and compact digest/receiver evidence policy remains an Account lifecycle decision.
- Rejected Valid lifecycle gap, but no approved safe-watermark/hold/finite-retention policy and no credible open target PR; not an authorized #2847 fix. Reported to Overseer for policy and owner assignment; delivery evidence stays retained.
- Terminal JOIN operation rows indefinitely block Account deletionMinor
ADR 0163 requires replay horizon and ADR 0050 requires an approved finite disposition; PENDING evidence must remain retained.
- Rejected Valid lifecycle gap, but no approved replay horizon or erasure disposition and no credible open target PR; not an authorized #2847 fix. Reported to Overseer for policy and owner assignment; unresolved PENDING stays retained.
- Subagent Review 2 CompletedModel not recordedFound: 2 Accepted: 2 Routed: 0
- Direct-text scope issuer retained a scope without checking gameplay entitlementMajor
- Accepted Fixed in 3c9afe4c21b9d49000fdee58fb5b187059392b7d: current entitlement read before mint, with unavailable/blocked no-retention and active positive tests.
- Authorization matrix omitted direct-text scope RPC and mislabeled local JOIN as target-onlyMinor
- Accepted Fixed in 3c9afe4c21b9d49000fdee58fb5b187059392b7d: exact Game Session mTLS scope route plus honest local partial JOIN status and remaining proof gaps in YAML and Markdown.
- Subagent Review 3 CompletedModel not recordedFound: 4 Accepted: 4 Routed: 0
- Authorization matrix omitted Account-only Logging audit receipt RPCsMinor
- Accepted Fixed in local abc357768bf7da3c47568e8825512048c5a90180: CreateLogEvent and ReadLogEventReceipt inventoried with exact Account mTLS policy in YAML and Markdown. Publication awaits topology approval.
- Game Session protocol still labeled implemented direct-text JOIN as unavailableMinor
- Accepted Fixed in local abc357768bf7da3c47568e8825512048c5a90180: current local JOIN status and distinct first-party/end-to-end gaps now stated in owner protocol. Publication awaits topology approval.
- Logging audit RPCs trusted Account service basename without exact namespace identityMajor
- Accepted Fixed in local abc357768bf7da3c47568e8825512048c5a90180: exact Account SPIFFE URI guard, wrong-namespace negative proof, and Helm/base namespace injection with render contract. Publication awaits topology approval.
- Authenticated REALMS disclosed private/playtest realms without membership and grant proofMajor
- Accepted Fixed in local abc357768bf7da3c47568e8825512048c5a90180: exact ACTIVE membership and grant checks omit unauthorized private realms; unavailable authority fails closed; positive, denial and dispatch tests. Publication awaits topology approval.
- Subagent Review 4 CompletedModel not recordedFound: 2 Accepted: 1 Routed: 1
- HTTP JOIN accepts an active bootstrap token after account lifecycle denialMajor
- Accepted Accepted for focused #2847 HTTP JOIN lifecycle recheck and no-intent/membership/audit negative proof; local correction in progress.
- Public Account runtime gRPC reads lack exact caller bindingMajorRoute · PR #2847 → PR #2848 Accepted/FixedExisting Account identity and entitlement seam belongs to #2840; observation posted there at issuecomment-5872080209. No #2847 fix claimed. View routed finding
- Subagent Review 5 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- Non-public REALMS discovery omits tenant gameplay entitlement gateMajor
- Accepted Fixed locally in 6cf552761 with exact-tenant and parseable-time authority validation, unavailable/denied behavior and focused negative proof; publication waits for approved split.
- Subagent Review 6 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- Zero or multiple tenant-wide public production realms can reach discovery or admissionMajor
- Accepted Fixed locally in d10a5fa5c with tenant-wide Game Session cardinality, fail-closed REALMS/JOIN/PLAY and Account discovery mapping; focused positive, negative, and malformed-authority tests pass. Publication awaits approved split.
- Subagent Review 7 CompletedModel not recordedFound: 2 Accepted: 0 Routed: 0
- Retained demo membership remains non-admitting after V26Major
- Rejected V26 intentionally quarantines retained membership; Account's contract blocks deployment pending no-data proof or audited disposition. Seeder promotion by email would erase that guarantee. Valid live gate reported to Overseer; no credible open target PR.
- Expired retained connect scopes have no bounded cleanup pathMinor
- Rejected Valid gap, not a safe isolated #2847 fix: expiry-only deletion breaks PENDING terminalization and exact replay. ADR 0163 needs an approved horizon, blockers and watermark. Reported to Overseer; no credible open target PR.
- Subagent Review 8 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- CHARS reaches Entity before membership and private realm grant checksMajor
- Accepted Fixed locally in 22ab2314b: fresh entitlement, membership and private grant checks, exactly-one public authority, and fail-closed selector handling before Entity; focused handler and dispatcher tests passed. Broader interpreter fixture reconciliation and publication remain pending.
- Subagent Review 9 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- Stage 1 Account reader rejects old Game Session proto-default realm identityMinor
- Accepted Fixed locally in c5d4cc718 by moving exact identity/revision producer, persistence, V5/V6 migrations and proof into Stage 1; text JOIN/cardinality stay in child. Stage 1 Game Session full unit and focused Account/producer tests passed. Publication awaits split approval.
- Subagent Review 10 CompletedModel not recordedFound: 6 Accepted: 5 Routed: 0
- REALMS numeric ordinals are not snapshot-resolved by CHARS or PLAYMajor
- Rejected Valid preexisting target-state gap, not introduced by this JOIN child; current-catalog numeric lookup would be unsafe. No credible open PR owner, so report to Overseer for a separate exact-snapshot selector assignment.
- JOIN reinterprets retained world ordinal against current catalogMajor
- Accepted JOIN now uses retained Account-issued scope; reorder and stale-scope proof passed locally in 6e485d81c.
- CHARS trusts mismatched Entity roster rowsMajor
- Accepted Child now rejects wrong tenant/account/scope, blank IDs/names and duplicate IDs in 6e485d81c; full namespace/pointer-bound roster API remains an Overseer follow-up.
- Closed public realm scope error becomes empty successful REALMSMinor
- Accepted REALM_UNAVAILABLE now propagates fail-closed with focused proof in local 6e485d81c.
- Bare world slug groups cross-tenant pointersMajor
- Accepted Fail-closed case-folded collision guard and focused proof committed locally in 6e485d81c; full tenant-qualified contract remains an Overseer follow-up.
- CHARS accepts contradictory public membership lifecycle tuplesMajor
- Accepted Exact MISSING ACTIVE INACTIVE admission/version tuple checks and negative no-Entity tests committed locally in 6e485d81c.
- Subagent Review 11 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 12 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 13 CompletedModel not recordedFound: 2 Accepted: 2 Routed: 0
- Catalog-only and no-op pointer updates incorrectly advance runtime pointer versionMajor
- Accepted Canonical catalog revision and pointer version are distinct; focused Stage 1 service/repository CAS fix and proof in progress.
- Direct-text scope issuance accepts blank Game Session request identityMajor
- Accepted Blank typed requestId violates direct-text correlation contract; focused Account gRPC/service guard and negative proof in progress.
- Subagent Review 14 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- Operator catalog updates lack expected catalog revision and can overwrite newer policyMajor
- Accepted The operator exposes only pointerVersion while catalog-only changes preserve it; repository CAS cannot reject a stale operator request without an expected catalog revision. The full pair and readback/audit correction is required before publication.
- Subagent Review 15 CompletedModel not recordedFound: 5 Accepted: 5 Routed: 0
- WORLDS ordinal can silently select a different target after catalog reorderMajor
- Accepted ADR 0168 requires exact response-local ordinal binding; current-catalog reindexing is unsafe while numeric selectors remain advertised.
- REALMS and CHARS accept stale or incomplete Account entitlement evidenceMajor
- Accepted Positive version/sequence and 15-second fresh evaluation guard with negative tests are implemented locally.
- Process-local pending direct-text JOIN scope is lost on hidden Game Session replacementMajor
- Accepted Retained-edge replacement must preserve bounded pending JOIN identity; shared-state remediation and proof are being scoped.
- CHARS admits incomplete selected-realm routing evidence before Entity roster readMajor
- Accepted Fail-closed complete-pointer guard and negative tests are implemented locally; full Entity roster namespace binding remains a separate protocol gap.
- JOIN forwards Account scope-invalid and membership-reconciliation outcomes without canonical guidanceMinor
- Accepted A bounded Stage 2 lane is updating the truthful JOIN error inventory and focused player guidance.
- Subagent Review 16 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 17 CompletedModel not recordedFound: 5 Accepted: 3 Routed: 0
- Expired unreferenced Account discovery scopes have no bounded cleanupMinor
- Accepted Investigate a scoped cleanup retaining all JOIN-referenced evidence and avoiding a guessed operation-retention policy; implement if the existing schema supports it safely.
- Terminal JOIN replay changes stored outcome during authority outageMajor
- Accepted Exact identity/digest terminal replay must use the retained result; revalidation belongs to pending or fresh attempts. Focused correction required.
- Admission-pointer audit omits catalog and realm identityMinor
- Rejected Duplicate of already accepted narrow operator catalog-CAS/readback/audit finding on the same reviewed head; audit expansion remains required in that correction.
- JOIN rows indefinitely block Account deletion without approved retention policyMinor
- Rejected Duplicate of the earlier #2847 Account lifecycle/retention finding; no approved finite replay or erasure horizon exists, so no TTL or deletion behavior may be invented in this child. The unresolved policy decision remains reported to Overseer.
- Bootstrap discovery can mint scope after pointer visibility changes between readsMajor
- Accepted Reapply exact public-realm admissibility after final pointer reread and reject changed target before scope retention.
- Subagent Review 18 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 19 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 20 CompletedModel not recordedFound: 2 Accepted: 2 Routed: 0
- Admission-pointer audit omits catalog and stable realm identityMinor
Front audit lacks catalog revision and durable realm/namespace IDs; catalog-only changes cannot be read back exactly. The planned CAS child adds revision but not the two IDs.
- Accepted Valid original #2847 obligation. Complete exact audit/list readback in the owned catalog-CAS child before publication; no other owner or CodeRabbit credit is inferred.
- V6-quarantined admission pointers enter text discovery and PLAYMajor
Authority-backed GameplayWorldCatalog accepts unknown scope or missing durable realm/namespace identities and catalog revision; the gRPC mapper is stricter.
- Accepted Valid front-stage fail-closed gap. Bounded GameplayWorldCatalog filter and negative proof assigned; publication waits for correction.
- Subagent Review 21 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 22 CompletedModel not recordedFound: 9 Accepted: 6 Routed: 0
- Same-target cutover replay skips expected version pairMajor
The replay branch can return despite missing or stale catalog revision.
- Accepted Valid activation bug. The cutover RPC is now guarded before replay in local 0dfa86ba6; exact replay remains a later activation obligation.
- Catalog-only edits can outlive connect-token catalog evidenceMajor
Pointer version stays stable while current token and handshake consumers omit catalog revision.
- Accepted Valid newly reachable metadata mutation. SetAdmissionPointer remains fail-closed in local 0dfa86ba6 until the exact pair reaches connect-token admission.
- Current pointer list overlays catalog revision onto unrelated latest auditMajor
Separate pointer/audit reads can fabricate a matching exact pair or return another mutation's row.
- Accepted The operator list is still active. A bounded exact-pair/identity fail-closed check is being implemented locally; mutating readback is also blocked by the RPC guard.
- Prepared cutover marks execution after pointer and audit commitMajor
A crash can leave a moved pointer with an unexecuted preparation.
- Accepted Valid newly reachable cutover. ExecutePreparedVersionCutover remains fail-closed in local 0dfa86ba6 until one owner-local transaction and readback exist.
- Prepared artifacts are not bound to catalog-derived identityMajor
Prepared artifact omits catalog revision, namespace and scope needed for exact execution.
- Accepted Valid activation precondition. Cutover remains fail-closed in local 0dfa86ba6; no incomplete preparation is accepted as executable.
- Historical audit rows lack catalog revisionMinor
V7 cannot reconstruct exact revision for earlier events and preserves null.
- Rejected Historical revision cannot be fabricated; optional absence explicitly marks unavailable proof in audit history. The active current-pointer list is separately being made fail-closed on incomplete or mismatched audit.
- SetAdmissionPointer reopens independent runtime cutoverMajor
The child enabled a target move without World hold, drain and prepared execution proof.
- Accepted Valid newly reachable mutation. The owner control RPC is now fail-closed in local 0dfa86ba6, integrated with the front at c2f8e08ff; full activation remains a separate contract gap.
- Preexisting repository stale-pair race on concurrent updatesMajor
An internal read and later lock-read can converge a stale update to the same state.
- Rejected Existing target-state gap, not a newly active child mutation: public update RPCs remain fail-closed, while initial bootstrap creation uses repository uniqueness fencing. Preserve as activation concern, not a claimed current fix.
- Preexisting caller-asserted actor in owner pointer RPCMajor
The owner RPC has not yet redeemed the Account-bound operator authorization reference.
- Rejected The mutating owner RPCs remain fail-closed in the corrected child; Account-derived actor authorization is a later activation prerequisite, not a safe current-PR actor inference.
- Subagent Review 23 CompletedModel not recordedFound: 7 Accepted: 5 Routed: 0
- Logout delete races CAS lobby mutation and Redis outageMajor
A concurrent REALMS write can recreate the deleted lobby record; Redis failure follows session deletion.
- Accepted Valid current Stage 3 lifecycle risk; exact tombstone/fence and failure ordering are being traced before focused implementation.
- Numeric PLAY world selector reindexes current catalogMajor
A WORLDS reorder can redirect PLAY 1 to a different world.
- Accepted Valid stale-selection admission hazard; exact retained WORLDS snapshot resolution and no-side-effect negative proof are in progress locally.
- Private-only world appears in public WORLDS projectionMajor
A tenant's public realm in another world makes a private-only world pass default selection and expose runtime metadata.
- Accepted Confirmed in the Stage 3 discovery projection; retain internal private admission but filter anonymous public WORLDS and prove no metadata disclosure.
- Preexisting PLAY actor/name/hash fallback remains target-state driftMajor
The fallback predates this Stage 3 unique diff and is not changed by its selector patch.
- Rejected Preexisting target-state issue without a credible current owner; report to Overseer rather than count an unrelated #2847 accepted fix or silently remove player recovery behavior.
- Stable tenantSlug/worldSlug selector remains unrepresentedMinor
The current catalog and output use worldSlug without canonical tenantSlug disambiguation.
- Rejected Known wider target/current model gap, already reported to Overseer; no credible assigned open PR owns cross-service tenant-slug authority. Do not invent a global slug or claim this Stage 3 patch completes it.
- Public REALMS omits generated request ID in Account scope contextMajor
Account rejects blank request IDs, so public REALMS cannot mint a scope or lead to JOIN.
- Accepted Fixed in local 5780865e5 with generated request ID propagation and focused handler proof.
- Numeric realm selector lacks exact REALMS snapshotMajor
PLAY can misinterpret a numeric realm index as a character instead of rejecting stale selection.
- Accepted Valid selector contract gap; bounded Redis-backed realm snapshot and stale-index negatives are in progress locally.
- Subagent Review 24 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 25 CompletedModel not recordedFound: 5 Accepted: 5 Routed: 0
- Exact no-op pointer CAS returns from an unlocked stale readMajor
Concurrent update can commit after the initial read while no-op still reports the old pair as success.
- Accepted Valid internal authority-service race, latent while external mutation RPCs are closed; retain as a fix before activation, with focused concurrent proof.
- Runtime-state pointer readback omits stable identitiesMinor
Current admission pointer entries carry revision but omit realm and namespace IDs.
- Accepted Valid active read defect; bounded runtime mapper and negative proof fix in progress.
- Latest pointer audit uses pod wall-clock orderMajor
Cross-pod clock skew can select an older event as latest and falsely reject readback.
- Accepted Valid multi-writer ordering issue for current audit reads; use monotonic durable event order with focused skew proof.
- Retained V1 audit rows block strict pointer list after V7Major
V7 leaves old event identities null, so strict latest-audit comparison rejects retained current pointers.
- Accepted Valid retained-data rollout obligation; guarded transition and exact database proof are being scoped before implementation.
- Logging maps owner AUTHORITY_UNAVAILABLE to HTTP 500Minor
New strict pointer-read error falls through generic internal-error mapping instead of retryable unavailable.
- Accepted Valid newly reachable operator-read outcome; map to HTTP 503 and prove focused response status.
- Subagent Review 26 CompletedModel not recordedFound: 3 Accepted: 2 Routed: 0
- Bootstrap realm response omits catalog and namespace snapshotMajor
DTO and OpenAPI omit catalogRevision, namespace ID and canonical playable scope despite the first-join contract.
- Accepted Valid current front contract gap; fixed locally in b4ec4dda5 with DTO/OpenAPI projection and focused Account tests.
- Pointer audit does not retain catalog and stable identityMinor
Front-stage event and control-plane history omit revision, realm ID and namespace ID.
- Rejected Duplicate of the prior accepted CAS-child audit-identity obligation already implemented in 4586c3c40 and integrated in f0c585971; front writes remain closed until that child.
- Incomplete authority pointer appears as empty world discoveryMajor
Catalog filtering hides malformed retained pointers, while ListGameplayWorlds returns a successful empty result to Account.
- Accepted Valid front-owned typed-error gap; a same-snapshot fail-closed list response and negative Account proof are pending.
- Subagent Review 27 CompletedModel not recordedFound: 3 Accepted: 1 Routed: 0
- Lobby cleanup failure escapes after logout context deletionMajor
StoreUnavailableException is uncaught after SessionContext deletion, leaving uncertain stale lobby state.
- Rejected Distinct symptom but duplicate of the first pass's accepted logout ordering/outage finding; a best-effort success or late stable error alone would be unsafe without the cross-store terminal episode fence. Owner decision remains open.
- Numeric world selector misclassifies character as realmMajor
PLAY 1 Sora forces Sora into realm selection even when the exact world has one default realm.
- Accepted Valid optional-realm grammar regression; resolve the exact world before second-token disambiguation and add focused proof.
- Tenant-qualified world selector remains target-state driftMinor
Current bare world slugs and global grouping predate the corrected player diff.
- Rejected Known target/current cross-service owner gap already reported to Overseer in the first player pass; not a distinct new accepted Stage3 finding.
- Subagent Review 28 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 29 CompletedModel not recordedFound: 2 Accepted: 1 Routed: 0
- Retained pre-V7 audit event blocks strict pointer listMajor
V7 leaves old event metadata null while current pointer is backfilled, so list readback fails closed.
- Rejected Duplicate of accepted cas-retained-audit-upgrade-gap in pr2847-cas24-2; guarded transition remains open pending owner migration decision.
- Concurrent cold-start bootstrap can abort the losing Game Session podMajor
Both initializers can observe zero rows, then the second creation conflicts after the first seeds the shared database and startup fails.
- Accepted New valid CAS-child startup defect; implement guarded serialization and exact shared-store concurrency proof before publication.
- Subagent Review 30 CompletedModel not recordedFound: 4 Accepted: 3 Routed: 0
- Public JOIN route is reachable while route matrix marks it target-onlyMinor
AuthController maps /auth/bootstrap/join through the canonical Gateway /api/account/auth/** route, but route matrix declares target_not_currently_routable.
- Accepted Concrete contract/activation mismatch; asked Overseer whether first-stage JOIN should remain fail-closed until final child or be recorded as intentionally live. No activation edit pending decision.
- Inactive public membership returns generic connect rejection before JOIN policy resultMajor
Connect token and character discovery check gameplayAdmissionAllowed before the public INACTIVE membership policy path.
- Accepted Canonical multi-tenancy contract requires policy denial or JOIN_REQUIRED; bounded Account fix and negative proof assigned.
- JOIN receipts may indefinitely block account deletionMinor
No approved retention/erasure horizon is recorded for retained JOIN operation rows.
- Rejected Duplicate of previously recorded #2847 Account retention-policy gap; no authority to invent a receipt TTL or change deletion semantics.
- Front gRPC discovery does not enforce tenant-global public realm cardinalityMajor
World-local pointer completeness permits two visible public-production realms in separate authored worlds for one tenant.
- Accepted Canonical multi-tenancy contract requires exactly one tenant-global public-production realm; bounded Game Session fix and negative proof assigned.
- Subagent Review 31 CompletedModel not recordedFound: 4 Accepted: 2 Routed: 0
- Guessed private-only world may yield an empty REALMS successMajor
Stable world resolution searches visible private worlds even when public WORLDS omits them.
- Rejected Preexisting private admission route and no demonstrated unauthorized tenant disclosure in this unique diff; needs broader target-contract decision before restriction.
- Cross-tenant world-slug collision undercounts tenant public realmsMajor
toWorlds drops shared slug groups before tenant-wide public-production cardinality counts them, potentially allowing an ambiguous JOIN scope.
- Accepted Valid fail-open admission defect; fix the cardinality source independently of the lossy public world projection and add three-pointer negative proof.
- Entitlement outage guidance abandons retained PENDING JOIN identityMinor
Message asks for a new REALMS/JOIN attempt although Account stores PENDING and expects retry of the same intent/request ID.
- Accepted Contradicts canonical JOIN recovery guidance; correct message and focused negative proof in player stage.
- Potential stale numeric JOIN alias after refreshed WORLDS menuMinor
replaceWorldSnapshot retains prior aliases and scopes; reviewer could not establish whether prior REALMS scope should intentionally survive refreshed menu.
- Rejected Lower-confidence contract question rather than proven regression; retained exact Account scope must not be discarded speculatively. Track as proof limit pending selector policy.
- Subagent Review 32 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- Enabled demo seeder leaves a V26-migrated demo membership quarantinedMajor
- Accepted The migration quarantines every old membership, while the seeder previously skipped any existing demo row. Exact SEEDED_DEMO-only reassertion and regression proof are being prepared in the front-stage branch; publication pending.
- Subagent Review 33 CompletedModel not recordedFound: 2 Accepted: 1 Routed: 0
- Terminal JOIN retry replays before the required current-policy checkMajor
- Accepted The current JOIN implementation returns terminal result before scope-expiry and entitlement evaluation, contrary to the exact-retry contract. A fail-closed current-policy check and focused negative proof are being prepared in the front-stage branch; publication pending.
- Account audit receipt is not returned by the generic QueryLogs routeMinor
- Rejected The Logging API contract limits current QueryLogs to log_events and describes the current Account receiver as durable receipt/readback only. It does not promise Account envelopes in that generic query. Full operator audit projection remains target-state work.
- Subagent Review 34 CompletedModel not recordedFound: 3 Accepted: 1 Routed: 0
- World catalog groups two tenant realms with the same slugsMajor
- Rejected The code and baseline schema predate this PR and the current global (world_slug, realm_slug) unique index makes the stated two-row persisted counterexample unreachable; tenant-qualified schema/catalog convergence remains an explicitly tracked target gap, not a fix in this front stage.
- Account bootstrap realm reread compares only visibility and public classificationMajor
- Accepted The changed first-party discovery path must reject a different authoritative realm identity/revision even if flags are unchanged; exact record comparison and a no-scope-mint negative test are being implemented in the owning front stage.
- Game Session pointer bootstrap ApplicationRunner is unregisteredMajor
- Rejected The parent #2846 deliberately removed @Component in commit 11bea5f07 to keep front-stage pointer writes closed pending complete audit, with an explicit negative registration test; restoring it in this front PR would violate that fail-closed stage boundary.
- Subagent Review 35 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- Account accepts noncanonical playable-state namespace in bootstrap and direct-text JOIN contextMajor
- Accepted The identifier glossary requires a canonical UUID, but Account bootstrap and gRPC direct-text caller only checked nonblank. A bounded dual-boundary correction and negative tests are underway on #2847.
- Subagent Review 36 CompletedModel not recordedFound: 1 Accepted: 0 Routed: 0
- Account audit receipts are not mirrored into the legacy QueryLogs tableMinor
- Rejected The Logging contract deliberately separates exact ReadLogEventReceipt audit readback from the narrow current QueryLogs implementation over log_events. No current requirement mirrors Account receipt rows into QueryLogs; broader audit queryability remains a documented target gap.
- Subagent Review 37 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- P2 public OpenAPI advertises the unavailable Gateway-denied JOIN facadeMinor
- Accepted Fixed and published b810e5232927ac6b6283d49592d4af1a33b6bca3: remove unavailable public operation/unused schemas, preserve RPC and Gateway denial, add parsed contract proof. Full Account check, focused Gateway test, docs and diff pass.
- Subagent Review 38 CompletedModel not recordedFound: 3 Accepted: 1 Routed: 0
- Character discovery OpenAPI omitted retryable 503Minor
- Accepted Fixed/published 8b6e619cb491d18a748db75c4d4cc32dc631b6bf: restore existing response, parsed OpenAPI and MockMvc outage proof; full Account/docs/diff checks passed.
- Expired uncertain PENDING should remain pendingMajor
- Rejected Duplicate settled successor boundary: published #2848 0b2b4ee71002bbc339638573234578184b7ee0bf already preserves PENDING/AUTH_UNAVAILABLE for readback-only recovery; no new #2847 fix or route.
- Replay terminal JOIN under expired scopeMajor
- Rejected Authentication scope-validity rule requires expired retained scope to fail closed; stored result is preserved, not replayed under expired authorization. No distinct readback-only contract proved.
- CLI Review 1 CompletedRuntime 3m 53sFound: 11 Accepted: 3/1/4 Routed: 0
- Trivial
Update the mapping in listAdmissibleRuntimeRealmTargets to reuse its initial realm list for the per-realm cardinality check instead of calling requireRealmTarget, which repeats listGameplayRealms. Keep only the getAdmissionPointer re-read inside the loop and preserve the sameRuntimeRealmAuthority validation.
- Rejected The second realm-list/cardinality read is deliberate fresh authority proof before scope minting. Reusing the initial list can miss newly ambiguous realm authority while one pointer is unchanged; preserve reread and sameRuntimeRealmAuthority check.
- Major
Update logPayment so RuntimeExceptions from deliver are caught and logged, preserving its best-effort behavior without allowing audit delivery failures to fail payment flows.
- Accepted logPayment explicitly remains best effort; mismatched receipts and transport/runtime failures from deliver must not escape into payment flows. Strict outbox delivery still throws.
- Major
Add a final RuntimeException catch to both issueDirectTextConnectScope and joinPublicProductionMembership, mapping unexpected runtime failures to the documented retryable AUTH_UNAVAILABLE error so each handler still sends a typed response and completes the gRPC call.
- Accepted Unexpected dependency runtime failures currently escape both scoped RPCs; map to typed retryable AUTH_UNAVAILABLE without losing fail-closed peer/context checks or completion.
- Minor
Reconcile the explicit JOIN/Join & Play status with the current Account-owned writer status elsewhere in the document; update the stale claim that it is unimplemented to match the canonical current state, without changing unrelated membership behavior.
- Accepted Runtime status repeats conflicting paragraphs, including target-only JOIN despite implemented Account writer. Consolidate to actual producer fields/local writer and link distinct downstream text/recovery proof gaps.
- Trivial
Rename initializerIsRegisteredAfterAuditIdentityBecomesComplete to describe the existing assertion that GameplayAdmissionPointerBootstrapInitializer has the Component annotation, or extend the test to verify the claimed ordering or audit-identity dependency. Keep the test aligned with the behavior it actually checks.
- Accepted Test name claims ordering/audit readiness but asserts only Component registration; rename to match the real proof.
- Trivial
Rename executePreparedVersionCutoverIsIdempotentAfterSameRequestAlreadyMovedPointer to describe the POINTER_VERSION_MISMATCH fail-closed behavior, and remove the unused stubs for findPointer, listPointerAudit, and getPreparedVersionUpgrade. Keep the no-interaction assertions.
- Accepted Test name claims successful idempotency but asserts POINTER_VERSION_MISMATCH/no interactions; rename and remove unused authority/preparation stubs.
- Major
Update the guard around gameplayWorldCatalog.requireUniqueVisiblePublicProductionRealm to run only when realm.visible() and realm.publicProductionRealm() are both true, allowing hidden realms to continue through the existing admission flow.
- Accepted GetAdmissionPointer is a read projection: hidden realms may be resolved for separately gated admission. Run visible-public cardinality guard only for visible public targets; retain exact identity/visibility and public duplicate denial.
- Trivial
Update publicProductionRealmCardinality and its catalog call paths to load and normalize the world snapshot once per catalog operation, compute public production realm counts per tenant from that snapshot, and pass those counts to resolveDefaultRealm and hasValidPublicProductionRealm instead of reloading pointers for each check.
- Accepted Within one text catalog operation, reuse one normalized catalog snapshot for tenant-wide public counts/default selection; avoid inconsistent repeated supplier snapshots while preserving all fail-closed cardinality rules.
- Trivial
Replace the hand-written DDL in GameplayAdmissionPointerRepositoryTest’s createSchema method with Flyway migrations from the existing service-scoped filesystem migration directory. Do not use classpath:db/migration; ensure the test applies the same service migrations used by the application.
- Accepted Handwritten H2 schema does not prove deployed migrations. Preserve fast repository proof and add service-scoped PostgreSQL/Flyway proof rather than pretending PostgreSQL migration SQL is H2-compatible.
- Trivial
Update AccountAuditOutboxRepository.pending so concurrent workers cannot select the same pending rows: add a row-claim or lease mechanism before returning envelopes, using database locking with skip-locked semantics where supported. Ensure claimed rows are unavailable to other workers until processing completes, while preserving the existing ordering and limit behavior.
- Rejected Outbox contract is at-least-once with immutable identity/digest and receiver deduplication. PENDING-only CAS preserves terminal states; duplicate workers do not imply duplicate audit records. New leasing adds recovery machinery without a proved correctness need.
- Major
Update visibleWorldsFromAuthoritySnapshot and requireExactlyOneVisiblePublicProductionRealmPerTenant so incomplete pointers or invalid public-realm counts exclude only the affected tenant from the world projection, while preserving fail-closed behavior for that tenant. Keep valid tenants discoverable instead of throwing AuthorityPointerUnavailableException for the entire snapshot.
- Rejected Strict authority-snapshot discovery intentionally fails on malformed/ambiguous routing rather than advertising partial success; focused completeness/cardinality tests and current Account outage semantics prove this. Do not restore omitted-tenant success.
- Hosted Review 1 CompletedRuntime 12m 14sFound: 12 Accepted: 11 Routed: 0
- Add a catch for
CatalogRevisionUnavailableExceptionor confirm that it cannot occur here.MinorlistGameplayWorldscatches onlyAuthorityPointerUnavailableException.listGameplayRealmsuses the same authority snapshot and also catchesCatalogRevisionUnavailableExceptionandIllegalArgumentException. IfvisibleWorldsFromAuthoritySnapshotortoWorldsthrows any other runtime exception, gRPC returns UNKNOWN instead of an applicationErrorDetail. That result conflicts with the repository rule for gRPC application-error handling. The other catalog RPCs end with a genericExceptionhandler that callsGrpcAppErrors.internal. Add the same handler here.Proposed fix
} catch (GameplayWorldCatalog.AuthorityPointerUnavailableException ex) { ... responseObserver.onCompleted(); + } catch (Exception ex) { + responseObserver.onNext( + ListGameplayWorldsResponse.newBuilder() + .setError(GrpcAppErrors.internal(meterRegistry, LOG, "ListGameplayWorlds", ex)) + .build()); + responseObserver.onCompleted(); }- Accepted Return bounded application INTERNAL error and complete observer on unexpected catalog exceptions; preserve explicit ADMISSION_POINTER_UNAVAILABLE path.
- Separate the current connect-token and text
PLAYoutcomes.MinorThese paragraphs blur the current mappings.
design/architecture/microservices/account-service/runtime-and-data.mdstates that connect-token issuance returnsCONNECT_TOKEN_REJECTEDfor existing non-admitting membership, while textPLAYmay returnJOIN_REQUIRED(Lines 25 and 273).design/architecture/microservices/account-service/api-contracts.md#L63-L63: distinguish the current connect-token mapping from the textPLAYmapping.design/architecture/system-architecture-authentication.md#L33-L33: identify textPLAYas the current path that may returnJOIN_REQUIREDfor existing non-admitting membership.
As per path instructions, “Review docs for canonical-current-state consistency.”
📍 Affects 2 files
design/architecture/microservices/account-service/api-contracts.md#L63-L63(this comment)design/architecture/system-architecture-authentication.md#L33-L33
- Accepted Align current-state Account/Auth descriptions: connect-token rejects existing non-admitting membership; text PLAY may still return JOIN_REQUIRED. Do not change target authorization.
- Return the stored outcome when you replay a terminal FAILED JOIN that has no policy digest.Minor
Some failures call
failedJoinbeforebindPolicyEvidence. Examples areCONNECT_SCOPE_MISMATCHandPUBLIC_PRODUCTION_ADMISSION_DENIEDfrom a non-public realm. These operations areFAILEDwithrequestDigest == null. On replay,replayTerminalJoinre-evaluates current policy. If evaluation now succeeds, the checkoperation.requestDigest() == nullreturnsIDEMPOTENCY_CONFLICTinstead of the stored outcome. The same request ID then reports a different result over time, and a retrying client sees an idempotency error it did not cause.AccountGrpcServiceTest.joinPublicProductionMembershipPreservesStoredFailureOutcomeexpects the stored failure outcome withreplayed=true.🐛 Proposed fix
private JoinPublicProductionResult replayTerminalJoin( JoinOperation operation, String callerBinding, VerifiedJoinScope scope) { + if ("FAILED".equals(operation.status()) && operation.requestDigest() == null) { + return resultFromJoinOperation(operation, true); + } if (isConnectScopeExpired(scope)) {- Accepted Partial: policyless definitive FAILED retries may preserve stored failure only after scope/caller/intent, expiry and applicable fresh authority checks. Never bypass those gates or return success/mutate on failed replay.
- Do not reuse existing protobuf field numbers or remove
ErrorDetail.MajorThe base contract uses request fields 1–4 and response fields 1–2. The new schema reuses these numbers with different meanings and types. Old and new producers or receivers can misread, reject, or ignore fields during a rolling deployment.
LoggingAdminGrpcService.createLogEventstill reads the old request fields and callssetError(...)for authorization, validation, and internal failures. The new response schema removes that field and therefore breaks this application-error contract.Use new field numbers, reserve removed numbers and names, and add
shared.v1.ErrorDetail errorto both response messages.message CreateLogEventRequest { - AccountAuditScope scope = 1; - string tenant_id = 2; - string audit_event_id = 3; - string producer_service = 4; - string event_type = 5; - google.protobuf.Timestamp occurred_at = 6; - int32 schema_version = 7; - bytes payload = 8; - int32 payload_digest_version = 9; - string payload_digest = 10; + AccountAuditScope scope = 11; + string tenant_id = 12; + string audit_event_id = 13; + string producer_service = 14; + string event_type = 15; + google.protobuf.Timestamp occurred_at = 16; + int32 schema_version = 17; + bytes payload = 18; + int32 payload_digest_version = 19; + string payload_digest = 20; + reserved 1, 2, 3, 4; + reserved "account_id", "type", "message"; } message CreateLogEventResponse { - AccountAuditScope scope = 1; - string tenant_id = 2; - string audit_event_id = 3; - string receipt_id = 4; - string log_event_id = 5; - int32 schema_version = 6; - int32 payload_digest_version = 7; - string payload_digest = 8; - AccountAuditReceiptStatus status = 9; - AccountAuditReceiptOutcome outcome = 10; + AccountAuditScope scope = 11; + string tenant_id = 12; + string audit_event_id = 13; + string receipt_id = 14; + string log_event_id = 15; + int32 schema_version = 16; + int32 payload_digest_version = 17; + string payload_digest = 18; + AccountAuditReceiptStatus status = 19; + AccountAuditReceiptOutcome outcome = 20; + shared.v1.ErrorDetail error = 2; + reserved 1; } message ReadLogEventReceiptResponse { AccountAuditScope scope = 1; string tenant_id = 2; string audit_event_id = 3; string receipt_id = 4; string log_event_id = 5; int32 schema_version = 6; int32 payload_digest_version = 7; string payload_digest = 8; AccountAuditReceiptStatus status = 9; AccountAuditReceiptOutcome outcome = 10; + shared.v1.ErrorDetail error = 11; }- Accepted Preserve unchanged legacy tenant/log-event/error field identities; reserve removed names/numbers, allocate new fields safely, restore existing ErrorDetail and bind receipt response errors. Regenerate docs and compile consumers.
- CodeRabbit summary-only outside-diff finding 1 of 1 (aggregate; no individual detail)
summary-only aggregate; provider supplied no individual detail
- Accepted Shared Account runtime fixture must emit implemented ACTIVE/MISSING lifecycle and positive/zero authority generation, including JOIN updates, with focused producer compatibility proof.
- Drain more than one batch per interval so cleanup can keep up with scope creation.Major
Each
listBootstrapRealmscall inserts one retained scope row per public realm. EachissueDirectTextConnectScopecall inserts one more row. The bootstrap discovery endpoint is a publicGET.cleanupExpiredConnectScopesdeletes at mostbatchSize(default 100) rows perinterval-ms(default 60 s). Deletion is therefore capped at about 100 rows per minute. If discovery and scope issuance create more than about 100 rows per minute,account_connect_scope_recordsgrows without bound. This also slows the cleanup anti-join.Loop while a batch returns
batchSizerows. Bound the loop by a time budget or a maximum batch count for each run.♻️ Proposed fix
public void cleanupExpiredConnectScopes() { Instant capturedNow = Instant.now(); + long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(10); try { - deleted.increment(connectScopeRepository.deleteExpiredUnreferenced(capturedNow, batchSize)); + int removed; + do { + removed = connectScopeRepository.deleteExpiredUnreferenced(capturedNow, batchSize); + deleted.increment(removed); + } while (removed == batchSize && System.nanoTime() < deadline); } catch (RuntimeException ex) {- Accepted Drain full cleanup batches with a strict maximum per run, same captured cutoff, retained-reference guard, counters and failure handling; regression full/partial/bounded batches.
- Log the exception cause in the best-effort
logPaymentcatch.TrivialThe catch block discards the exception. The warning therefore has no failure reason, such as a digest mismatch or a transport error. Pass the exception as the last logger argument. SLF4J records the stack trace and does not change the placeholder substitution. Tests assert that the exception is swallowed, so behavior stays the same.
Proposed fix
- } catch (RuntimeException ignored) { + } catch (RuntimeException ex) { logger.warn( "Deferred payment audit delivery failed for tenantId={} accountId={} transactionId={}", tenantId, accountId, - transactionId); + transactionId, + ex); }- Accepted Partial: add bounded exception-type diagnostics to best-effort payment failure; reject logging arbitrary throwable messages/stack details that may expose secrets. Preserve swallowed failures and test sanitization.
- Do not hold the tenant subscription row lock across Game Session RPCs.Major
executeJoinAttemptlocks the account row and then callsevaluateJoin.evaluateJoinfirst makes Game Session calls throughrequireCurrentConnectScopeTarget:listGameplayRealmsandgetAdmissionPointer. It then takesSELECT ... FOR UPDATEon the tenant's subscription row throughlockedJoinEntitlement. The secondevaluateJoinat Line 695 repeats both Game Session RPCs while the transaction still holds that tenant-wide subscription lock.The lock therefore stays open for the duration of the remote calls and their deadlines. During that window:
- every concurrent JOIN for the tenant waits on the lock;
- every subscription writer for the tenant waits, including billing updates;
- each waiter keeps a database connection open.
A slow or partitioned Game Session can then exhaust the Account connection pool.
Fetch and validate the current realm target before you take the subscription lock. Inside the locked section, compare only the already-fetched pointer evidence with the retained scope. If commit-time revalidation is required, run the pointer re-read before
lockedJoinEntitlement. Then use the lock only to read and fence the entitlement version.- Accepted Avoid remote target RPCs after tenant subscription lock: preliminary unlocked policy evaluation, fresh commit target reread before final locked entitlement comparison; retain exact digest fence and race proof.
- Stop permanently failing envelopes from blocking the audit outbox.Major
deliverPendingalways readsoutbox.pending(50), and that query orders bycreated_at, audit_event_id. A failed delivery only updateslast_attempt_at, and the row staysPENDINGat the same position. Some envelopes may never get a terminal receipt. Examples are a receiverCONFLICT/IDEMPOTENCY_CONFLICToutcome, a digest mismatch, or a malformed row. When 50 such rows exist, every run retries the same 50 rows. NewerACCOUNT_REGISTEREDandACCOUNT_JOINED_PUBLIC_PRODUCTIONevents are then never delivered. The job also retries every 5 seconds without backoff.Add an attempt count and a
next_attempt_atcolumn with exponential backoff. Select rowsWHERE next_attempt_at <= now(), ordered bynext_attempt_at. Move rows to a terminalFAILED/quarantine state after a bounded number of attempts or after a non-retryable receipt outcome. Also emit a metric for stuck rows.♻️ Sketch
- public List<AccountAuditEnvelope> pending(int limit) { - return dsl.selectFrom(ACCOUNT_AUDIT_OUTBOX) - .where(ACCOUNT_AUDIT_OUTBOX.DELIVERY_STATUS.eq("PENDING")) - .orderBy(ACCOUNT_AUDIT_OUTBOX.CREATED_AT.asc(), ACCOUNT_AUDIT_OUTBOX.AUDIT_EVENT_ID.asc()) + public List<AccountAuditEnvelope> pending(int limit) { + return dsl.selectFrom(ACCOUNT_AUDIT_OUTBOX) + .where(ACCOUNT_AUDIT_OUTBOX.DELIVERY_STATUS.eq("PENDING")) + .and(ACCOUNT_AUDIT_OUTBOX.NEXT_ATTEMPT_AT.le(DSL.currentLocalDateTime())) + .orderBy(ACCOUNT_AUDIT_OUTBOX.NEXT_ATTEMPT_AT.asc(), ACCOUNT_AUDIT_OUTBOX.AUDIT_EVENT_ID.asc())recordAttemptmust then incrementattempt_countand setnext_attempt_at = now() + backoff(attempt_count). A new migration must add both columns and update the partial index.- Accepted Partial: durable attempt/backoff and due ordering prevent oldest failing rows starving later envelopes. Keep immutable PENDING retry evidence; no automatic terminal FAILED/quarantine or dropped audit after arbitrary attempt cap.
- Mark the Logging & Admin audit rows as target-only until the receiver implements the contract.Major
LoggingAdminGrpcService.createLogEventstill requiresAdminRoleGuardand maps the request to the legacy tenant/account/type/message DTO. NoReadLogEventReceipthandler appears in the Logging & Admin receiver. The “Implemented locally” status does not match the receiver implementation.</verification_static_supported>
- Accepted Mark receipt/readback receiver contracts target-only until #2848 implements exact workload, receipt and PostgreSQL proof; preserve normative mTLS-only owner boundary.
- Declare the status of the new Logging & Admin audit routes.Minor
The
CreateLogEventandReadLogEventReceiptentries omitroute_statusandimplementation_status.known_drift. The sibling markdown rows say "Implemented locally; proof incomplete." The supplied receiver handler still requires an admin role and uses the legacy request shape. A route without a status reads as fully current and proven. Add explicit drift entries. Align the status with the receiver state.end_user_token_required: false + implementation_status: + known_drift: + - receiver_receipt_contract_and_postgresql_runtime_proof_unavailable- Accepted Synchronize YAML route/known-drift status with target-only legacy receiver reality; do not claim absent ReadLogEventReceipt implementation.
- Limit public-realm cardinality failures to the affected tenant.Major
listPointers()returns all tenants.visibleWorldsFromAuthoritySnapshot()throws when any tenant has zero or multiple visible public-production realms.listGameplayWorlds()converts that exception into anADMISSION_POINTER_UNAVAILABLEresponse, so one tenant prevents discovery for every tenant.Filter invalid tenants from this projection. Keep
requireUniqueVisiblePublicProductionRealm()strict for tenant-specific admission.- requireExactlyOneVisiblePublicProductionRealmPerTenant(pointers); - return toWorlds(pointers).stream().filter(this::hasVisibleRealmEntries).toList(); + Set<Long> invalidTenantIds = invalidPublicProductionRealmTenants(pointers); + List<GameplayAdmissionPointerSnapshot> validPointers = + pointers.stream() + .filter(pointer -> !invalidTenantIds.contains(pointer.tenantId())) + .toList(); + return toWorlds(validPointers).stream().filter(this::hasVisibleRealmEntries).toList();Rename
requireExactlyOneVisiblePublicProductionRealmPerTenantto return the set of tenants whose cardinality is not exactly one, instead of throwing for the first invalid tenant.- Rejected Repeated partial discovery contradicts strict complete authority snapshot. Malformed or cardinality-ambiguous authority must not become a successful incomplete projection; existing fail-closed regressions retained.
- CLI Review 2 CompletedRuntime 3m 59sFound: 8 Accepted: 0/1/4 Routed: 0
- Trivial
Update
createSchemainGameplayAdmissionPointerRepositoryTestto initialize the test database by applying the service-scoped Flyway migrations instead of creating tables with handwritten DDL. Remove the copied schema definitions so tests use the same constraints and defaults as the migrated schema.- Rejected Already addressed by the V1-V6 PostgreSQL/Flyway integration regression in8fb4e9ee8. Fast H2 repository tests remain separate because real V2/V6 PostgreSQL migrations cannot execute on H2; no live PostgreSQL result claimed.
- Trivial
Update the RuntimeException catch block in AccountAuditDeliveryJob so a failure from outbox.recordAttempt(envelope.auditEventId()) does not exit the batch loop. Wrap that call in its own try block and ensure the job continues processing remaining envelopes.
- Accepted A failed attempt-timestamp update must not abort delivery of later immutable outbox envelopes; contain bookkeeping failure with bounded diagnostics and regress remaining-envelope delivery.
- Major
Update visibleWorldsFromAuthoritySnapshot so an incomplete pointer or invalid public-production realm count for one tenant does not fail discovery for every tenant. Exclude incomplete pointers from the projection, validate cardinality per tenant, and omit realms for tenants that fail that check; preserve fail-closed behavior for the affected tenant.
- Rejected Repeated suggestion contradicts strict complete authority snapshot: malformed pointers or ambiguous public realm counts deny discovery globally rather than falsely present a partial complete list. Existing completeness/cardinality regressions retained.
- Trivial
Update runRejectsMalformedBootstrapPointerSeedsBeforeAnyMutation to isolate a single malformed-seed condition, or assert the exception message identifies the intended validation rule; adjust pointerSeed inputs so public-production uniqueness does not trigger first.
- Accepted Strengthen malformed-seed regression to isolate its validation rule and assert the exact diagnostic; current multi-defect input only proves an unspecified rejection.
- Trivial
Make the seed fixtures in runKeepsAdmissionClosedForValidSeedsAcrossTenants explicitly express whether each seed is a public-production realm. Update pointerSeed to accept a publicProductionRealm parameter and use it to set that property, keeping requiresCharacterSelection independently controlled; pass true for these valid fixtures.
- Accepted Make public-production and character-selection seed booleans independent and explicit in the focused initializer fixtures.
- Minor
Update the scope mapping in LoggingAdminClient’s deliver method to explicitly accept only "platform" and "tenant", mapping each to its corresponding AccountAuditScope. Reject any other scope value rather than defaulting it to tenant.
- Accepted Reject null or unknown audit-envelope scopes before transport; map only canonical platform and tenant instead of silently defaulting to tenant.
- Minor
Update run() so invalid configured seeds, including an empty pointer list, are logged without propagating IllegalArgumentException and aborting startup; keep the existing warning that bootstrap is skipped and admission remains closed.
- Rejected Invalid configured bootstrap seeds deliberately fail startup before mutation; swallowing invalid or empty configuration would hide a deployment error. Valid seeds already leave admission closed without activation.
- Trivial
Make concurrent delivery of envelopes returned by AccountAuditOutboxRepository.pending safe by treating an already-delivered row in markDelivered as a successful no-op. Ensure that outcome does not enter the failure path that records an attempt or logs a pending warning.
- Accepted Treat exact matching durable terminal receipt as idempotent success after the PENDING CAS loses; missing rows or contradictory receipt/status remain failures. Add regression proof rather than blind zero-row success.
- CLI Review 3 CompletedRuntime 4m 07sFound: 7 Accepted: 0/4/1 Routed: 1
- Trivial
Add a generic Exception catch to createLogEvent after the AdminAuthorizationException handler. Convert unexpected exceptions to an in-band INTERNAL error with GrpcAppErrors.internal, send the response through responseObserver, and call onCompleted().
- Accepted Add the missing bounded INTERNAL/completion path for unexpected Logging Create failures without enabling the unavailable receiver; focused negative proof required.
- Minor
Update the seed-matrix row for POST /auth/bootstrap/join to state that it is implemented locally while Gateway exposure remains blocked, and note that the Account writer JoinPublicProductionMembership exists. Leave the Game Session JOIN row unchanged.
- Accepted Seed matrix still incorrectly labels Account-local JOIN as target-only; align that row with current local writer and blocked Gateway exposure.
- Minor
Update request validation in joinPublicProductionForTrustedCaller to reject request IDs longer than 128 characters with INVALID_ARGUMENT before claiming the JOIN intent; apply the same length check at the HTTP and gRPC boundaries if they do not already enforce it.
- Accepted Public DTO already caps requestId at128, but trusted service/gRPC path does not. Enforce before any intent/repository work with existing INVALID_ARGUMENT convention and focused boundary tests.
- Minor
Update the validation in AccountRuntimeStubServer to reject non-canonical UUIDs for realmId and playableStateNamespaceId and blank caller.getRequestId(), matching AccountGrpcService’s INVALID_ARGUMENT behavior. Update the compatibility test fixtures to use valid canonical UUIDs for those fields.
- Accepted Account runtime stub must reject noncanonical realm/namespace UUIDs and blank requestId like the real handler; correct compatibility fixtures and negative tests.
- Major
Update visibleWorldsFromAuthoritySnapshot to validate authority pointers and public-production realm uniqueness per tenant, excluding or reporting only tenants with invalid data while retaining valid tenants in discovery results. In resolveWorldFromAuthoritySnapshot, limit validation to tenants belonging to the selected world so unrelated tenant faults do not block resolution.
- Rejected Repeated partial-authority proposal violates the complete-catalog fail-closed invariant. A successful partial discovery list would conceal authoritative pointer/entitlement faults; existing strict negative tests are intentional.
- Minor
Update LoggingAdminClient.logPayment to append the payment audit event through AccountAuditOutboxRepository instead of calling deliver synchronously, so payment callers do not wait on remote delivery and the event is queued for outbox processing.
Route · PR #2847 → Unassigned target OpenDeferred commerce payment audit convergence is outside the registration/JOIN core; route unassigned to the commerce owner for independent transaction/outbox policy. Existing best-effort denial diagnostics stay unchanged. View routed finding - Minor
Add a final catch (Exception ex) to listGameplayRealms in GameSessionGrpcService, mapping unexpected application failures to GrpcAppErrors.internal in a ListGameplayRealmsResponse and completing the response observer. Preserve the existing specific exception handlers.
- Accepted ListGameplayRealms needs the same sanitized INTERNAL observer completion already added for world discovery; preserve specific pointer/validation outcomes.
- CLI Review 4 CompletedRuntime 5m 16sFound: 11 Accepted: 2/6/1 Routed: 0
- Minor
Update the disabled admission-pointer creation response in the production gRPC service to use a precondition or availability error code rather than POINTER_VERSION_MISMATCH, and update the GameSessionControlPlaneGrpcServiceTest assertion on responseRef to match.
- Accepted Pending fix: distinguish disabled pointer creation from real pointer-version conflicts; preserve CAS mismatch outcomes.
- Minor
Update logPayment to persist the payment audit event through AccountAuditOutboxRepository within the payment transaction instead of calling deliver synchronously; let AccountAuditDeliveryJob handle retries so the payment path does not wait on remote delivery.
- Rejected Duplicate already routed deferred-commerce observation. Canonical unassigned route aab8048f7c5cc3ea97f8d5d8cbb75aaf929b4995bfe64bd1a0fc9896456449a3 preserves payment outbox work; no new Account admission-core obligation.
- Minor
Update JOIN validation in AccountRuntimeStubServer to reject callers with a blank sessionId, and update scope issuance to require positive catalogRevision and pointerVersion values. Update AccountRuntimeStubServerCompatibilityTest fixtures to provide these fields, and clear connectScopesById in resetRuntimeState().
- Accepted Pending fix: faithful stub session/revision validation and reset scope invalidation with regression fixtures.
- Minor
Validate the final decodedPath after the eighth decoding pass in PublicInternalRouteBlockFilter before passing it to PathContainer.parsePath, and handle invalid encoded sequences through the filter’s existing invalid-path behavior. Add a filter test for the case where repeated decoding leaves a bare percent sign.
- Accepted Pending fix: final nested-percent decoding validation and existing denied invalid-path behavior, with regression.
- Major
Update GameplayAdmissionPointerBootstrapInitializer.run so validation failures from validateSeeds are logged at WARN without throwing or aborting startup, leaving admission closed when seeds are invalid or absent. Remove the lockForBootstrap call if it only guarded the removed seed writes; otherwise retain it only if needed for another operation.
- Accepted Partially accepted: remove obsolete seed-write advisory lock/transaction and prove no writes. Reject swallowing invalid configured seeds; strict fail-closed misconfiguration remains.
- Minor
Remove the world-wide hasValidPublicProductionRealm check on selectedWorld in PlayCommandHandler; rely on the existing selected-realm tenant validation so another tenant’s realm configuration does not block PLAY.
- Accepted Pending fix: selected-tenant PLAY validation must not be blocked by unrelated tenant in shared world; retain selected-tenant complete-catalog authority.
- Minor
Update the AA-1.2 row in the implementation-tracking table to add production anchors for AccountJoinOperationRepository, AccountConnectScopeRepository, ExpiredConnectScopeCleanupJob, AccountAuditOutboxRepository, and AuthController, plus proof anchors for ExpiredConnectScopeCleanupJobTest, AccountJoinDigestTest, and AccountAuditOutboxRepositoryTest. Keep the existing status and gap description unchanged.
- Accepted Pending doc fix: add canonical AA-1.2 repository/cleanup/controller and focused proof anchors; retain status and gaps.
- Trivial
Change membership_version and membership_authority_generation in JoinPublicProductionMembershipResponse to uint64, matching GetTenantMembershipForRuntimeResponse.
- Accepted Pending fix: JOIN version/generation uint64 wire types match runtime membership authority without changing tags.
- Minor
Replace the stale row-number reference in the Implementation Status section with references to the
GetTenantMembershipForRuntimeandGetTenantEntitlementsForRuntimeseed-matrix rows, so the reference remains accurate when rows are added or moved.- Rejected No stale numbered-row reference exists in reviewed matrix Implementation Status; seed methods are already named. Cited lines232-233 are unrelated owner route table entries.
- Major
Resolve the RuntimeRealmTarget once before opening joinTransactionTemplate and pass it into executeJoinAttempt. Update executeJoinAttempt and its evaluateJoin calls to recheck only database-local entitlement and membership state under the account, operation, and subscription locks; do not make Game Session gRPC calls while those locks or a JDBC connection are held.
- Accepted Remote JOIN reads under Account locks are a real contention risk. Pending bounded phased correction preserving commit-gate freshness; blindly caching target before a blocking transaction is rejected. Overseer freshness/fence question raised.
- Minor
Update the Validation and Proof status to distinguish the locally implemented Account JoinPublicProductionMembership writer and membership/audit-outbox transaction, which have local unit proof, from the still-open Game Session text dispatch, Join & Play, unknown-outcome recovery, and PostgreSQL/direct-text proof. Keep the canonical current-state wording consistent with the implementation-tracking entry.
- Rejected Already implemented on reviewed 34d80a8e15: Validation and Proof distinguishes local JOIN writer/unit proof from #2898 dispatch and #2848 recovery plus PostgreSQL/end-to-end gaps.
- Hosted Review 2 CompletedRuntime 11m 35sFound: 7 Accepted: 0/6/0 Routed: 0
- Distinguish the local JOIN route from public exposure.Minor
The
POST /auth/bootstrap/joincontroller exists locally. Gateway still denies its public path. Replace “target-only” with wording that states both facts, so the OpenAPI description does not classify an implemented controller as unimplemented.- Accepted Pending source fix: OpenAPI must distinguish implemented local bootstrap JOIN from blocked Gateway exposure.
- Audit outbox
next_attempt_atmixes session-localCURRENT_TIMESTAMPwith UTC comparisons.Minornext_attempt_atis aTIMESTAMPcolumn.pending()andrecordAttempttreat it as UTC throughtoLocalDateTime(Instant). New rows and backfilled rows instead getCURRENT_TIMESTAMPin the session time zone. On a database whose session zone is not UTC, new audit events become due late or early by that offset.services/account-service/src/main/java/net/firedevops/firemud/accountservice/repository/AccountAuditOutboxRepository.java#L40-L52: callrow.setNextAttemptAt(toLocalDateTime(occurredAt))inappendso the value no longer depends on the DB default.services/account-service/src/main/resources/db/migration/V28__account_audit_delivery_backoff.sql#L5-L10: use(now() AT TIME ZONE 'UTC')for the backfillUPDATEand the column default.
📍 Affects 2 files
services/account-service/src/main/java/net/firedevops/firemud/accountservice/repository/AccountAuditOutboxRepository.java#L40-L52(this comment)services/account-service/src/main/resources/db/migration/V28__account_audit_delivery_backoff.sql#L5-L10
- Accepted Pending source fix: explicit UTC next-attempt value plus UTC migration default/backfill and non-UTC regression.
- Make the Authentication doc consistent with the route matrix about
membershipLifecycleState.MinorLine 33 says that the adapter response "has no
membershipLifecycleStatefield" and lists only four admission-evidence fields.system-architecture-authz-route-matrix.mdLine 28 says that Account "now exposesmembershipLifecycleStateandmembershipAuthorityGeneration" and that only the Game Session consumer ignores them.AccountServiceImpl.getTenantMembershipForRuntimepopulates both fields. The two architecture docs therefore conflict about the current contract. State that Account returns both fields and that the current Game SessionPLAYand connect-token consumers do not yet consume them.As per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs".
- Accepted Pending source fix: Authentication current-status paragraph must match producer fields without claiming full consumer proof.
- Correct the current membership response description.Minor
Line 273 says lifecycle state is target-only and calls the response four-field. Lines 25 and 181 state that Account already emits
membershipLifecycleStateandmembershipAuthorityGeneration. Say that the consumer ignores those emitted fields; do not describe them as absent.As per path instructions, “Review docs for canonical-current-state consistency.”
- Accepted Pending source fix: producer emits lifecycle/generation; consumer omission, not absent response fields, is current drift.
- Enforce
allowPublicJoinduring scope issuance.MinorIssueDirectTextConnectScopechecksgameplayAvailablebut does not checkallowPublicJoin.requireRealmTargetvalidates the realm and pointer only. When gameplay is available and public joining is disabled, the method still mints and retains a connect scope. Add the public-production admission check before minting the scope.if (!entitlements.gameplayAvailable()) { throw new AuthenticationException( "TENANT_BILLING_BLOCKED", "Gameplay is not available for this tenant"); } + if (!entitlements.allowPublicJoin()) { + throw new AuthenticationException( + "PUBLIC_PRODUCTION_ADMISSION_DENIED", + "Public joining is not allowed for the selected game"); + } Instant evaluatedAt = Instant.now();- Rejected REALMS scope is routing evidence, not JOIN policy. Authentication permits public discovery without membership; allowPublicJoin is checked by explicit JOIN at commit. Checking enrollment during discovery would block existing members. Visibility and fresh gameplay entitlements remain required.
- Describe the local RPC seams without claiming a direct-text path.Minor
Line 33 calls the
REALMS-to-JOINpath local. The document still marks the direct-text scope producer unimplemented at Line 204, and it assigns text JOIN dispatch to#2898. Describe the local Account scope and JOIN RPCs separately until Game Session connects them.As per path instructions, “Review docs for canonical-current-state consistency.”
- Accepted Pending source fix: distinguish implemented Account scope/JOIN RPC seams from #2898 text dispatch and unproved end-to-end flow.
- Restrict the JOIN lock to the
subscriptionrow withFOR UPDATE OF subscription.MinorbaseSelect()joinsACCOUNTS. A bareFOR UPDATEin PostgreSQL locks rows from every table inFROM. The query therefore also locks the billing owner'saccountsrow.executeJoinAttemptfirst locks the caller's account throughlockAccountand then calls this method. Two JOINs can then form a lock cycle. Example: account A joins a tenant billed by B while account B joins a tenant billed by A. PostgreSQL aborts one of the two transactions. The JOIN is also serialized for no reason against unrelated writes to the billing owner's account, such as password reset or email verification.Proposed fix
.orderBy(SUBSCRIPTION.ID.asc()) - .forUpdate() + .forUpdate() + .of(SUBSCRIPTION) .fetch(this::toEntity);- Accepted Pending source fix: FOR UPDATE OF subscription avoids joined billing-owner Account lock while retaining commit policy fencing.
- CLI Review 5 CompletedRuntime 4m 58sFound: 6 Accepted: 0/2/2 Routed: 0
- Minor
Update the initializer’s handling of
pointersbefore the warning so null or empty seed lists log a warning without throwing; retainvalidateSeedsfor non-empty lists so their strict validation remains unchanged.- Rejected Explicit missing/empty configured bootstrap seeds are invalid configuration, with rejecting regression. Preserve approved strict seed-validation behavior; no canonical optional-empty contract authorizes swallowing it.
- Trivial
Update the connect-scope cleanup configuration and monitoring so production cleanup capacity keeps pace with rows inserted by listBootstrapRealms and issueDirectTextConnectScope. Size batch-size and interval-ms for expected production load, and add metrics for expired unreferenced rows and cleanup deletions compared with the insert rate, with alerts for a growing backlog.
- Accepted Partial: expose cleanup cap saturation and document measured-load tuning with existing deletion/failure metrics. No production workload baseline justifies invented batch/interval or alert thresholds; do not claim capacity proof.
- Major
Resolve the current RuntimeRealmTarget before opening the JOIN transaction and pass it into executeJoinAttempt; update executePendingJoinAttempt and its evaluation path to reuse that target rather than making Game Session RPCs while account and operation locks are held. Keep the locked transaction limited to local reads and membership and audit writes.
- Rejected Duplicate of partially accepted prior CLI finding8 and explicit human boundary: pending fresh reads remain; strict gate incomplete. Moving target reads pre-transaction without durable owner fence is not approved proof.
- Minor
Update the connect-token issuance statement in the account lifecycle overview to limit the admission-booleans enforcement claim to cache misses, and explicitly note that a replay cache hit may return cached success without fresh entitlement, membership, or pointer checks. Preserve the surrounding distinction between emitted lifecycle state and current enforcement.
- Accepted Correct API current status: fresh admission checks apply on cache misses, cached successes lack fresh membership/entitlement/pointer checks; no false freshness claim.
- Minor
Update rejectPreparedCutoverUntilCatalogRevisionPreconditionsAreSupported to throw AdmissionPointerMutationPreconditionException instead of AdmissionPointerVersionMismatchException, and ensure executePreparedVersionCutover in GameSessionControlPlaneGrpcService maps that exception to FAILED_PRECONDITION, consistent with setAdmissionPointer.
- Accepted Disabled prepared-cutover preconditions should map FAILED_PRECONDITION, not genuine pointer-version mismatch; preserve all mutation fences with focused regression.
- Trivial
Rename CatalogRevisionUnavailableException to a broader name such as AuthorityProjectionUnavailableException throughout GameSessionGrpcService, including both requireIdentity and requireCatalogRevision, so the exception name covers missing identity and invalid catalog revision failures.
- Accepted Rename shared missing-identity/revision exception without changing AUTHORITY_UNAVAILABLE mapping; cheap clarity fix owned here.
- Hosted Review 3 CompletedRuntime 11m 21sFound: 8 Accepted: 1/4/2 Routed: 0
- Keep both API descriptions aligned with the pending Game Session integration.Minor
design/architecture/microservices/account-service/runtime-and-data.md, Line 33, anddesign/architecture/microservices/account-service/api-contracts.md, Line 193, state that textREALMSwiring and JOIN dispatch are not implemented.design/architecture/microservices/account-service/api-contracts.md#L106-L106: DescribeIssueDirectTextConnectScopeas a local Account RPC; state that Game Session textREALMSwiring remains pending.design/architecture/microservices/account-service/api-contracts.md#L181-L181: DescribeJoinPublicProductionMembershipas a local Account RPC; state that text-client dispatch remains pending.
As per path instructions, “Review docs for canonical-current-state consistency.”
📍 Affects 1 file
design/architecture/microservices/account-service/api-contracts.md#L106-L106(this comment)design/architecture/microservices/account-service/api-contracts.md#L181-L181
- Accepted Correct Account RPC descriptions to local seams with Game Session text REALMS/JOIN pending; same doc batch as CLI, no end-to-end claim.
- Require PostgreSQL 16 or newer for the cleanup query.Minor
AccountConnectScopeRepositorycallspg_input_is_valid. PostgreSQL 15 and older do not provide this function, so each cleanup call fails.ExpiredConnectScopeCleanupJobcatches the exception, increments its failure counter, and leaves expired scopes in the table. Those rows can accumulate.If any production database is older than PostgreSQL 16, upgrade it or replace this query with a compatible safe-validation path.
- Accepted Partial: document current PostgreSQL>=16 cleanup requirement and supported deployed/test baseline. No unsupported old-version compatibility path is added.
- Check
response.getError()before receipt comparison.TrivialThe current receiver returns
ErrorDetailwithUNAVAILABLEand empty receipt fields. The client then reports "mismatched receipt evidence". The row stays pending, so behavior is safe. The diagnostic is misleading, and permission or contract errors are not distinguished. Throw a specific exception whenresponse.hasError()is true and include only the error code.Proposed fix
CreateLogEventResponse response = stub().withDeadlineAfter(5, TimeUnit.SECONDS).createLogEvent(builder.build()); + if (response.hasError()) { + throw new IllegalStateException( + "Account audit receiver returned error " + response.getError().getCode()); + }- Accepted Distinguish receiver ErrorDetail before strict receipt comparison using sanitized code only; pending/outbox guarantees retained.
- Do not hold a database transaction across repeated Game Session RPCs in bootstrap discovery.Minor
listBootstrapRealmsis now a read-write@Transactionalmethod because it inserts retained scopes.DataSourceTransactionManagerbinds a connection when the transaction begins, before any Game Session call. The method then performs these calls:listGameplayRealms(worldSlug)once.- One more
listGameplayRealmsand onegetAdmissionPointerfor each admissible realm, throughrequireRealmTarget(Line 410).
Each call has a 5 s deadline. The method holds the connection for 1 + 2N remote calls. The endpoint is a public bootstrap
GET. A slow Game Session can therefore exhaust the Account connection pool.issueDirectTextConnectScope(Line 495) has the same shape: itsrequireRealmTargetand entitlement read run inside the transaction.The inserts are single statements. Partial inserts are harmless because the cleanup job reclaims them. Run the RPCs outside a transaction, and keep only the inserts transactional. Also reuse the already-fetched realm list in the per-realm recheck instead of calling
listGameplayRealmsagain.♻️ Minimal change
@Override - @Transactional + @Transactional(propagation = org.springframework.transaction.annotation.Propagation.NOT_SUPPORTED) @Timed(value = "account.bootstrap_realms") public List<BootstrapRealmDto> listBootstrapRealms(String bootstrapToken, String worldSlug) {Also applies to: 495-495
- Accepted Partial: suspend discovery/scope transactions during remote reads; individual inserts remain atomic. Retain fresh catalog/pointer rechecks and mismatch regression; do not reuse initial snapshot as fresh evidence.
- Scope the JOIN idempotency key to the account, not the whole service.Major
request_idis the global primary key ofaccount_join_operations. The caller chooses therequestId: the bootstrap REST body supplies it, and Game SessionPlayerExecutionContextsupplies it on gRPC. Consider account B sending arequestIdthat account A already used.insertIntentdoes nothing on conflict.requireMatchingJoinIntent(AccountServiceImplLine 576-581 / Line 932) then fails withIDEMPOTENCY_CONFLICT. The consequences are:- Unrelated accounts block each other whenever a client uses short or sequential request IDs.
- A caller can learn whether another account already used a given request ID.
The table is new in this PR, so you can fix the key before release:
- Use
PRIMARY KEY (account_id, request_id). - Add
accountIdto the predicate inAccountJoinOperationRepository.find/findForUpdate/bindPolicyEvidence/recordAttemptFailure/finish/recordCallerBoundAuthorityInvalidation. - Pass
accountIdfromjoinPublicProductionForTrustedCaller. - Add
accountIdto the derivedauditEventIdpreimage ("account-join-audit/v1:" + requestId,AccountServiceImplLine 778-780). Without it, two accounts' JOINs with the same request ID collide on theaccount_audit_outboxprimary key.
Proposed schema change
CREATE TABLE account_join_operations ( - request_id VARCHAR(128) PRIMARY KEY, + request_id VARCHAR(128) NOT NULL, account_id BIGINT NOT NULL REFERENCES accounts(id), ... + CONSTRAINT account_join_operations_pk PRIMARY KEY (account_id, request_id),- Rejected Current global request-ID/account-digest behavior matches explicit ADR0025 different-account conflict rule. Per-account keys change that accepted contract; proposed change is escalated for human decision, not silently implemented.
- Preserve the last successful decode when later decoding fails.Major
For
POST /api/account/auth/bootstrap/%6Aoin;x=%25ZZ, the first pass decodes the route segment tojoin. The next pass fails on%ZZ, and returning the raw path restores%6Aoin, so the Gateway guard does not match. The broad Account route can then forward the request to@PostMapping("/bootstrap/join").Proposed fix
} catch (IllegalArgumentException exception) { - return path; + return decodedPath; } } - try { - URLDecoder.decode(decodedPath.replace("+", "%2B"), StandardCharsets.UTF_8); - } catch (IllegalArgumentException exception) { - return path; - } return decodedPath;Add a regression test:
void handlesMalformedPercentEncodingRemainingAfterMaximumDecodePasses() { assertAllowed(HttpMethod.POST, "/api/account/auth/bootstrap/%2525252525252525"); + assertBlockedPost("/api/account/auth/bootstrap/%6Aoin;x=%25ZZ"); }📍 Affects 2 files
services/spring-cloud-gateway/src/main/java/net/firedevops/firemud/springcloudgateway/filter/PublicInternalRouteBlockFilter.java#L97-L105(this comment)services/spring-cloud-gateway/src/test/java/unit/net/firedevops/firemud/springcloudgateway/filter/PublicInternalRouteBlockFilterTest.java#L355-L358
- Accepted Preserve last successfully decoded path on later malformed encoding; block encoded bootstrap JOIN with malformed suffix, retain depth bound and all other route denial.
- Provide a production reconciliation path before applying V26 to populated environments.Trivial
V26 sets every existing
account_tenant_membershiprow toLEGACY_UNVERIFIEDand disables gameplay admission.issueConnectTokenFreshrejects this state, and JOIN returnsMEMBERSHIP_RECONCILIATION_REQUIRED.TestDataSeederonly promotes the matching demo membership and is enabled only for local smoke seeding.The migration preserves
original_gameplay_admission_allowed, but no production reconciliation path consumes it. Any previously admitting membership therefore loses admission without a recovery path. Before deployment, confirm that target environments contain no real memberships or provide an operator reconciliation runbook or tool that uses this snapshot.- Accepted Partial: document fail-closed V26 inventory/deployment gate and retained provenance readback. No automatic promotion from original boolean, demo seeder production reconciliation or unrun live proof claimed.
- Map the disabled prepared cutover to
FAILED_PRECONDITION, notPOINTER_VERSION_MISMATCH.MinorrejectPreparedCutoverUntilCatalogRevisionPreconditionsAreSupportedthrowsAdmissionPointerVersionMismatchException. The gRPC layer maps that exception toPOINTER_VERSION_MISMATCH. Clients normally handle a version mismatch by re-reading the pointer and retrying. Here every retry fails the same way, so those clients can retry without end.setAdmissionPointerreports the same disabled state asFAILED_PRECONDITION. ThrowAdmissionPointerMutationPreconditionExceptionhere as well. Then add a matching catch inexecutePreparedVersionCutover.Proposed fix
- throw new AdmissionPointerVersionMismatchException( + throw new AdmissionPointerMutationPreconditionException(- Accepted Same prepared-cutover precondition issue as accepted CLI4; implement one shared fix and regression with FAILED_PRECONDITION while preserving genuine version mismatch.
- CLI Review 6 CompletedRuntime 4m 15sFound: 10 Accepted: 0/5/4 Routed: 0
- Minor
Update the AA-2.1 gap cell and the Validation section to distinguish the locally implemented Account JOIN writer from the remaining gaps: Gateway exposure, text dispatch, unknown-outcome recovery, and PostgreSQL proof. Keep the tracker’s status and implementation record consistent with that scope.
- Accepted Accept AA-2.1 tracker/validation alignment: distinguish implemented local Account writer from blocked public Gateway, text dispatch, unknown-commit recovery, strict commit fence and PostgreSQL proof.
- Minor
Update upsertPointer in DatabaseGameplayAdmissionPointerAuthorityService so the GameplayAdmissionPointerEvent created after saving records the saved pointer’s catalog revision, including catalog-only changes where pointerVersion does not change. If GameplayAdmissionPointerEvent has no catalog-revision field, add one and persist saved.getCatalogRevision() to it.
- Accepted Accept durable catalog revision in pointer audit events/readback, including catalog-only changes. Bring forward coherent audit foundation from #2897; no guessed historical revisions.
- Minor
Update the changed-digest assertion in AccountServiceImplTest to reuse the original requestId with the different scope, so the test exercises an idempotency conflict for the same request. Keep the retained-evidence stubs and expected IDEMPOTENCY_CONFLICT assertion unchanged.
- Accepted Accept same-request changed-input test correction: original request ID is 128-character requestId variable, not join-attempt-1. Supplement with retained global-ID cross-account privacy proof.
- Trivial
Update GameplayAdmissionPointerRepositoryTest.createSchema to test the production constraints rather than a drifting handwritten schema: preferably run the Flyway migrations against H2; otherwise add the V5 catalog_revision > 0 check, V6 identity-pair check, and realm_id partial unique index using production constraint names.
- Accepted Accept faithful repository constraint regressions against V5/V6; preserve honest separation of H2 proof from PostgreSQL partial-index/Flyway proof.
- Minor
Update the Game Session JOIN row to distinguish the unimplemented text dispatch tracked by #2898 from the Account writer, which is implemented locally. Correct the stale JOIN status in the related architecture entry that says explicit JOIN remains partial or unproved, keeping both descriptions consistent with the implemented Account writer and missing Game Session dispatch.
- Accepted Accept matrix clarity: local Account JOIN writer exists, while Game Session text dispatch belongs to #2898 and Gateway exposure remains blocked.
- Trivial
Update the BuildsVisibleWorldsFromOneAuthoritySnapshot test to have listPointers() return both snapshots in a single list, with one marked visible=false. Assert that only the visible snapshot appears in the response, keeping the single-call verification.
- Accepted Accept visible and hidden snapshots in one authoritative listPointers response with filtering and single-call proof.
- Trivial
Update the fail-closed cutover test to assert the expected error message on the response, in addition to its existing FAILED_PRECONDITION code assertion. Locate the test by its responseRef assertion and keep the interaction verifications unchanged.
- Accepted Accept exact disabled-cutover message regression while preserving all no-mutation assertions.
- Minor
Update the membership-response description around connect-token issuance to state that the response includes membershipLifecycleState and membershipAuthorityGeneration, but consumers do not yet enforce them; remove the claim that lifecycle state is target-only or absent. Keep the description focused on this consumer-enforcement gap.
- Accepted Accept documentation correction: runtime membership response carries lifecycle and authority generation; complete consumer enforcement remains missing.
- Trivial
Merge the identical handlers for AuthorityProjectionUnavailableException and GameplayWorldCatalog.AuthorityPointerUnavailableException into a multi-catch in the ListGameplayRealms response flow and getAdmissionPointer. Preserve the existing ADMISSION_POINTER_UNAVAILABLE response and observer behavior in both locations.
- Accepted Accept shared multi-catch for identical authority-projection failures with unchanged response code and observer behavior.
- Trivial
Update AccountAuditOutboxRepository.pending to claim selected outbox rows so concurrent replicas do not fetch the same envelopes. Use SKIP LOCKED within a transaction or bump next_attempt_at with a short lease; preserve the existing due-status filtering and ordering.
- Rejected Reject repeated outbox claim/lease proposal: current delivery is intentionally at-least-once with durable exact idempotent receipts and due-first backoff; no correctness gap justifies a separate claim protocol here.
- CLI Review 7 CompletedRuntime 9m 06sFound: 3 Accepted: 0/1/0 Routed: 0
- Major
Update the account_join_operations key from globally unique request_id to the composite key (account_id, request_id): make request_id non-primary-key and add the composite primary-key constraint. Update find, findForUpdate, and the onConflict target to use both account_id and request_id.
- Rejected Conflicts with accepted ADR 0025 and explicit human direction: reuse of JOIN requestId by a different account must conflict without disclosing the original outcome. Account-scoped uniqueness would allow reuse and weaken that invariant.
- Minor
Update admissionPointerUnavailableFailure to use a dedicated localization key for ADMISSION_POINTER_UNAVAILABLE, and add the corresponding entries to the message bundles so localized output matches the failure. Move the code and message literals into GameplayStageCommandConstants only if consistent with the existing failure-code constants.
- Accepted Valid #2847-owned localization mismatch: pointer-unavailable failure uses generic authority text. Dedicated bundle key and focused localized-output proof remain pending for resume; no edit started after human pause.
- Major
Update listBootstrapRealms so each public-realm discovery does not persist a connect-scope record; defer retention until JOIN first uses the scope, while preserving JWT claim verification. Avoid adding unrelated rate-limiting or cleanup changes.
- Rejected Canonical Authentication requires discovery scope record retention; missing retained evidence fails closed. Deferring persistence to JOIN changes that contract. Existing bounded expiry cleanup deletes unreferenced scope rows, preserving receipt references.
- CLI Review 8 CompletedRuntime 4m 11sFound: 3 Accepted: 0/0/0 Routed: 1
- Trivial
Update mintAndRetainConnectScope to reuse an unexpired connect scope for the same account, realm, and pointer version before minting and inserting a new VerifiedJoinScope; retain the existing mint-and-insert behavior when no matching scope exists.
- Rejected Reusing by only account/realm/pointer omits catalog, namespace, scope, evaluation time and expiry from the canonical immutable snapshot. Fresh verified discovery retains exact evaluation evidence; bounded expired-scope cleanup already exists. No partial-key reuse.
- Major
Add an explicit route_status to the IssueDirectTextConnectScope YAML entry that matches the Markdown seed row’s implementation status, so readers and validators can determine whether it is a current contract.
- Rejected YAML route_status is deliberately optional (test_route_status_may_be_omitted_without_implying_routability). Its vocabulary only covers OpenAPI operator surfaces and unroutable targets; neither truthfully labels this implemented internal RPC. Known end-to-end drift is already explicit.
- Major
Update LoggingAdminClient.logPayment to append the payment audit event through AccountAuditOutboxRepository, reusing the outbox path used for registration and JOIN events instead of calling deliver.
Route · PR #2847 → PR #2848 RejectedRoute deferred-payment audit substrate cleanup/convergence to #2848 Account containment owner for independent judgment. Registration/JOIN already use transactional outbox; this legacy best-effort helper has no live caller and does not establish supported commerce. View routed finding
- Hosted Review 4 CompletedRuntime 11m 09sFound: 4 Accepted: 0/3/0 Routed: 0
- Return
UNAVAILABLEas the gRPC status.MinorAfter
AdminRoleGuard.requireAdminRole()succeeds,createLogEventplacesUNAVAILABLEinCreateLogEventResponse.error, then callsonNextandonCompleted. The transport therefore reports success, so status-based clients can treat delivery without a receipt as successful. The Logging Admin contract requires receiver unavailability to use non-OK gRPCUNAVAILABLE. Return that status with the bounded message and update the receiver test to assertonError.- CreateLogEventResponse response = - CreateLogEventResponse.newBuilder() - .setError( - GrpcAppErrors.error( - meterRegistry, - logger, - "CreateLogEvent", - "UNAVAILABLE", - ACCOUNT_AUDIT_RECEIVER_UNAVAILABLE_MESSAGE)) - .build(); - responseObserver.onNext(response); - responseObserver.onCompleted(); + var error = + GrpcAppErrors.error( + meterRegistry, + logger, + "CreateLogEvent", + "UNAVAILABLE", + ACCOUNT_AUDIT_RECEIVER_UNAVAILABLE_MESSAGE); + responseObserver.onError( + io.grpc.Status.UNAVAILABLE.withDescription(error.getMessage()).asRuntimeException());- Accepted Logging audit-ingress contract requires non-OK gRPC UNAVAILABLE for an unavailable receiver. Fix authorized transport and observer proof in #2847, preserving auth precedence, bounded errors/metrics and no dispatch.
- Record the incomplete target-validation gate.Minor
design/architecture/microservices/account-service/runtime-and-data.md, Line 275, states that Account rereads Game Session routing evidence but does not ensure that the exact target remains valid through the Account commit. These API status entries describe the local JOIN operation and policy-digest revalidation but omit that separate gap. State that strict target validation through commit remains incomplete; policy-digest revalidation does not establish it.As per path instructions, “Review docs for canonical-current-state consistency.”
Proposed status text
+ The exact routing target is reread, but its validity is not guaranteed through the Account commit; the strict target-validation gate remains incomplete.Also applies to: 81-81, 109-109, 193-193
- Accepted Account runtime-and-data.md documents the incomplete ADR0025 exact-target-through-commit gate; qualify the secondary API implementation status and link its owner. Policy-digest revalidation is not that proof. Pending focused documentation fix in #2847.
- Limit the public-production pointer check to public-production PLAY.Major
If a tenant has an admissible non-public realm but no public-production realm, this guard returns
ADMISSION_POINTER_UNAVAILABLEbeforevalidateRuntimeAdmissioncan check membership and the realm-access grant. The non-public admission path already uses those checks. Apply this cardinality check only whenisPublicProductionRealm(selectedRealm)is true. Update the zero-pointer tests, which currently assert the denial for a non-public realm.- Rejected Contradicts system-architecture-multi-tenancy.md: zero/multiple publicProduction realms invalidate the tenant catalog and all PLAY must fail closed, including private realms. Keep the whole-tenant guard and existing denial proof.
- Align the
POST /auth/bootstrap/joinrow with the YAML route status.MinorThe markdown row says "Implemented locally". The YAML entry for the same route still declares
route_status: target_not_currently_routable, and itscanonical_errorsomitIDEMPOTENCY_CONFLICT,ENTITLEMENT_UNAVAILABLE, andAUTH_UNAVAILABLE. The siblingJoinPublicProductionMembershipentry lists all three.AuthControllerTestasserts that the public OpenAPI omits/auth/bootstrap/join. Readers therefore get two different statuses for one route. Pick one canonical status. Then update the markdown row or the YAML entry, and addknown_driftthat records the Gateway guard.As per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs".
- Accepted Retain target_not_currently_routable as external status; align local implementation status, Gateway guard drift and implemented JOIN error vocabulary in the Markdown/YAML matrix. Pending #2847 documentation fix; no route activation.
- CLI Review 9 CompletedRuntime 4m 15sFound: 1 Accepted: 1/0/0 Routed: 0
- Major
Update the account deletion flow around accountJoinOperationRepository.hasRetainedOperation so JOIN operation rows do not block deletion indefinitely: define and apply the required receipt retention and minimization step, then allow deletion once that requirement is satisfied. If that behavior cannot be implemented here, record the blocker with an owner in the implementation tracker.
- Accepted Record the real Account-owned gap in runtime status and tracker: retained JOIN rows block deletion; safe finite receipt minimization/cleanup and deletion reconciliation remain unimplemented. Preserve fail-closed guard; no invented TTL or unsafe row removal.
Routed Findings
Route 1 · PR #2840 → PR #2847 Accepted/FixedMajorPrevent public registration from granting tenant membership.
POST /accountsaccepts a caller-suppliedtenantId. Account creation persists an admission-enabled membership for that tenant. Connect-token issuance checksallowPublicJoinonly when membership is absent, so this membership grants access even when public joining is disabled. Use global-only registration and require the explicit JOIN flow, or authorize the tenant before creating the membership. Keep deployment gated until this path is removed.Outcome: Published #2847 90cad5cb7: global-only registration cannot select tenant/create membership. 346 Account and 317 focused Game Session cases passed. Gateway JOIN stays denied; PostgreSQL and end-to-end proof remain open.
Earlier routing and proof
Earlier decisions
- Accepted Global-only registration must not grant caller-selected tenant membership. Preserved2847 core removes that unsafe writer and requires explicitJOIN/outbox proof. Final parent reconciliation/testing is underway; not yet published or resolved.
Route 2 · PR #2847 → PR #2848 Accepted/FixedMajorPublic Account runtime gRPC reads lack exact caller binding
Outcome: Published0b2b4ee71002bbc339638573234578184b7ee0bf: AccountGrpcService and application.yml deny before data access; AccountGrpcServiceTest missing/wrong/exact/cross-target negatives executed in composed localcheck. Live typed authority stays gated; source counts unchanged.
Earlier routing and proof
- Target history: PR #2848: Current #2848 8f7243577 removes public bypass and denies runtime reads before data access pending typed authority. Proof/owner note: https://github.com/benhook1013/FireMUD/pull/2848#issuecomment-5893038820. #2840 does not claim this descendant fix.
Earlier decisions
- Accepted Published0b2 retains exact Game Session peer guard and unconditional typed-context FAILED_PRECONDITION before runtime reads; public bypass removed. Correctly contained, not enabled Unit1B authority.
- Routed Existing Account identity and entitlement seam belongs to #2840; observation posted there at issuecomment-5872080209. No #2847 fix claimed.
Route 3 · PR #2847 → PR #2848 RejectedMajorUpdate LoggingAdminClient.logPayment to append the payment audit event through AccountAuditOutboxRepository, reusing the outbox path used for registration and JOIN events instead o
Update LoggingAdminClient.logPayment to append the payment audit event through AccountAuditOutboxRepository, reusing the outbox path used for registration and JOIN events instead of calling deliver.
Outcome: At5422b63: logPayment has only unsupported PurchaseWorkflow caller, itself without production calls. PaymentGrpc denies generic commerce. Stripe V1/Implementation Status defers it (ADR0143/0179). Static proof only; negative tests not rerun.
Earlier routing and proof
Earlier decisions
- Rejected Reject current-PR expansion: only unsupported PurchaseWorkflow calls logPayment; it has no production caller. PaymentGrpc denies generic commerce before dispatch. Stripe owner V1 scope/ADR0143/0179 defer this path; registration/JOIN outbox remains required. No source-count change.
- Routed Route deferred-payment audit substrate cleanup/convergence to #2848 Account containment owner for independent judgment. Registration/JOIN already use transactional outbox; this legacy best-effort helper has no live caller and does not establish supported commerce.
Route 4 · PR #2847 → Unassigned target OpenMinorUpdate LoggingAdminClient.logPayment to append the payment audit event through AccountAuditOutboxRepository instead of calling deliver synchronously, so payment callers do not wait
Update LoggingAdminClient.logPayment to append the payment audit event through AccountAuditOutboxRepository instead of calling deliver synchronously, so payment callers do not wait on remote delivery and the event is queued for outbox processing.
Outcome: Deferred commerce payment audit convergence is outside the registration/JOIN core; route unassigned to the commerce owner for independent transaction/outbox policy. Existing best-effort denial diagnostics stay unchanged.
Unlinked items
no items unlinked