FireMUD Delivery Status

PR data refreshed

PR #2939 review history

Owner-fenced initial admission bootstrap foundation

Unit 1A · identity, Account and public JOIN

Review rounds

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

Hosted CodeRabbit3 completed
10/10/07/7/00/0/0
CLI CodeRabbit4 completed
8/8/09/9/03/3/01/1/0
Subagent Review11 completed
1/0/00/0/00/0/00/0/00/0/0

Recorded review history

Reviews and findings

  1. CLI Review 1 CompletedRuntime 3m 26s
    Found: 8 Accepted: 2/5/1 Routed: 0
    1. Minor

      Update findNonterminal and the reconciliation-attempt flow in InitialAdmissionBindHoldServiceImpl so every pass records an attempt even when the status and error code are unchanged, then order nonterminal holds by that attempt timestamp so later holds are not starved.

      • Accepted Accepted: repeated identical reconciliation errors currently leave oldest holds unchanged, starving later batches. Touch attempt timestamp on each nonterminal pass; retain blocking and terminal guards.
    2. Minor

      The paragraph describing AcquireInitialAdmissionBindHold mixes current wiring status with run-specific test results in the normative contract. Keep the sentences about what is and is not wired, remove the test counts and skipped-case details, and direct readers to the implementation tracker and validation-and-runtime-proof documentation for execution evidence.

      • Accepted Accepted: keep execution counts/skipped proof in owning implementation tracker; normative World API retains short linked implementation limit.
    3. Minor

      Update the realm-routing/admission row in Capability Status and the corresponding Active Gaps entry to match the Current Status paragraph: include the durable owner service, migration, and focused unit and PostgreSQL integration tests as implementation and validation anchors, and list the unwired owner-read adapter, fixture delivery/coordinator, and durable StartSession retry integration as gaps.

      • Accepted Accepted: align Game Session capability and Active Gaps anchors with implemented owner ledger and explicitly unwired integration; no capability completion claim.
    4. Major

      Update run in GameplayAdmissionPointerBootstrapInitializer to skip validateSeeds while bootstrap remains disabled, since the configured seeds are unused and must not prevent startup. Preserve the warning that admission remains closed, and allow an empty pointers list as an explicit opt-out.

      • Accepted Partially accepted: allow an explicitly empty seed list to opt out without startup failure or mutation. Reject blanket suppression of malformed nonempty configured seeds; strict validation remains. No enabled mode or raw pointer seed added.
    5. Trivial

      Update the denial cases in WorldManagementGrpcServiceTest to include a game-session-service peer in a namespace other than TEST_NAMESPACE. Assert that the request returns PERMISSION_DENIED and that the hold service is not interacted with.

      • Accepted Accepted: add wrong-namespace Game Session mTLS denial proof; hold service must not be called. Delegated locally while Hosted runs.
    6. Minor

      Align the GR-2.1 capability row with the initial-bind hold implementation by listing InitialAdmissionBindHoldServiceImpl.java, InitialAdmissionBindHoldReconciler.java, and V23__initial_admission_bind_hold.sql as production anchors, plus InitialAdmissionBindHoldServiceImplTest.java and InitialAdmissionBindHoldPostgresIntegrationTest.java as proof anchors. Update Active Gaps to include the unwired authenticated owner-read adapter, keeping the status and implementation record consistent.

      • Accepted Accepted: align World capability and Active Gaps anchors with durable initial bind hold and focused proof, preserving unavailable live database proof.
    7. Major

      Update visibleWorldsFromAuthoritySnapshot to validate authority-pointer completeness and exactly-one-visible-public-production-realm per tenant, excluding only pointers belonging to invalid tenants instead of failing the entire list. Convert and return worlds from the remaining valid tenants, preserving the existing unavailable behavior when the authority pointer list itself is unavailable.

      • Accepted Accepted: isolate malformed catalog/cardinality for positively identified tenants in world discovery without suppressing healthy tenants. Null or unassignable tenant identity and unavailable source remain globally fail closed; per-target admission checks unchanged.
    8. Minor

      Update InitialAdmissionBindHoldRepository.markReconciliationRequired to check the UPDATE row count and return the locked hold only when exactly one row was updated; return Optional.empty() when the optimistic version guard matches no rows, so callers can detect the lost update.

      • Accepted Accepted: return empty when optimistic reconciliation UPDATE affects zero rows so existing stale-update error is reliable. Add regression.
  2. Hosted Review 1 CompletedRuntime 9m 36s
    Found: 10 Accepted: 4/4/2 Routed: 0
    1. Startup now fails on bootstrap seeds that are never used.Major

      run no longer writes any pointers. It still calls validateSeeds, which throws IllegalArgumentException from an ApplicationRunner. Spring Boot then aborts startup whenever the pointer store is empty.

      This is reachable with a plausible environment override:

      • In application.yml, the sandbox seed is now public-production-realm: false. Its tenant comes from FIREMUD_BOOTSTRAP_SANDBOX_TENANT_ID.
      • If an operator points the sandbox at a different tenant from the demo, that tenant has zero visible public realms.
      • Lines 95-100 then throw, and the service exits at boot on a fresh database.
      • Before this change, sandbox was public, so separate tenants started cleanly.

      pointers: [] now fails at startup in the same way. Previously an operator could set that to turn bootstrap off.

      The seeds have no effect on authority, so invalid seeds should not affect availability. Pick one fix:

      • Log validation failures as warnings and keep the "admission remains closed" outcome.
      • Or keep the strict validation only on the future path that actually writes pointers from seeds.

      🐛 Proposed fix

      -    validateSeeds(pointers);
      -    LOGGER.warn(
      -        "Skipping configured gameplay admission pointer bootstrap because owner-validated "
      -            + "World ACTIVE lifecycle and epoch proof is unavailable; admission remains closed");
      +    try {
      +      validateSeeds(pointers);
      +    } catch (IllegalArgumentException ex) {
      +      LOGGER.warn("Configured gameplay admission pointer seeds are invalid: {}", ex.getMessage());
      +    }
      +    LOGGER.warn(
      +        "Skipping configured gameplay admission pointer bootstrap because owner-validated "
      +            + "World ACTIVE lifecycle and epoch proof is unavailable; admission remains closed");
      

      Also applies to: 95-100

      • Accepted Partially accepted: empty seed list is explicit non-activating opt-out and will warn without mutation (CLI finding 6). Reject blanket warning-only handling of malformed nonempty seed configuration: retain canonical fail-fast validation and unchanged closed admission.
    2. Fix reconciler starvation and isolate failures per hold.Major

      findNonterminal(32) orders by updated_at, hold_id. Once a hold is RECONCILIATION_REQUIRED with the same error code, markReconciliationRequired returns early and does not touch updated_at. This happens on every GS_OWNER_READ_UNAVAILABLE pass and on every repeated GS_OWNER_PENDING readback. The same 32 oldest holds are therefore selected on every run. If more than 32 holds are unresolved, the remaining holds never get an owner readback. Each of those holds keeps blocking termination of its instance indefinitely, even after Game Session has committed or aborted.

      A second problem: the requireReconciliation calls at Line 53 and Line 70 are not guarded. They can throw IllegalStateException("...reconciliation update lost") on a concurrent row_version change, for example when two World replicas run this scheduler. One throw aborts the rest of the batch.

      Fix both:

      • Advance a scan cursor between runs, or bump updated_at (a "last checked" column) on every reconciliation attempt.
      • Wrap each hold's processing in its own try/catch.

      🔧 Proposed per-hold isolation (cursor/updated_at change goes in the repository)

           for (var hold : holds) {
      -      if (proofClient == null) {
      -        holdService.requireReconciliation(hold.holdId(), "GS_OWNER_READ_UNAVAILABLE");
      -        continue;
      -      }
      -      ...
      -      try {
      -        holdService.reconcileOwnerProof(hold.holdId(), proofClient.readOwnerProof(hold));
      -      } catch (RuntimeException exception) {
      -        ...
      -        holdService.requireReconciliation(hold.holdId(), "GS_OWNER_READ_FAILED");
      -      }
      +      try {
      +        reconcileOne(hold, proofClient);
      +      } catch (RuntimeException exception) {
      +        logger.warn(
      +            "Initial admission bind reconciliation failed holdId={} errorType={}",
      +            hold.holdId(),
      +            exception.getClass().getSimpleName());
      +      }
           }
      
      // InitialAdmissionBindHoldRepository: record each attempt so the oldest-first scan rotates.
      // e.g. add last_reconciled_at and ORDER BY last_reconciled_at NULLS FIRST, hold_id,
      // updating it on every requireReconciliation / reconcileOwnerProof pass.
      
      • Accepted Accepted: rotate repeated reconciliation attempts and isolate each hold's processing including stale CAS failures; timestamp fix overlaps CLI finding 2.
    3. Restore a static check for the workload namespace in the mTLS overlay.Minor

      This change removes the static rg -Fq 'FIREMUD_GRPC_WORKLOAD_NAMESPACE: dev' assertion. The only remaining namespace checks are at Lines 182-185, and they run only when Docker Compose is available. Docker was unavailable for this PR, so nothing verified the namespace. InitialAdmissionBindWorkloadGuard fails closed when trustedNamespace is empty. If someone removes Line 80 of the overlay, hold acquisition silently returns PERMISSION_DENIED, and this contract test still passes on a host without Docker.

      🧪 Proposed static assertion

       rg -Fq 'firemud.grpc.workload-namespace' "$world_grpc"
      +python3 - "$mtls_compose" <<'PY'
      +import re, sys, pathlib
      +text = pathlib.Path(sys.argv[1]).read_text(encoding="utf-8")
      +for name in ("entity-management-service", "world-management-service"):
      +    block = re.search(rf"^  {name}:\n((?:    .*\n|\n)*)", text, re.M)
      +    assert block and "FIREMUD_GRPC_WORKLOAD_NAMESPACE: dev" in block.group(1), name
      +PY
      
      • Accepted Accepted: add unconditional per-service Compose namespace assertions before Docker-dependent checks; focused shell contract regression.
    4. Use one shared catalog-policy comparison for both layers.Major

      catalogPolicyMatches appears twice, field for field:

      • In this repository, it decides the expected catalogRevision for the compare-and-set update.
      • In DatabaseGameplayAdmissionPointerAuthorityService.java (Lines 210-221), it decides nextCatalogRevision.

      The compare-and-set only works while both copies compare the same fields. Suppose a later change adds a catalog field to one copy only. The service would then compute a revision that the repository rejects with AdmissionPointerVersionMismatchException. That would block every update that touches the new field.

      Move the comparison into one package-visible helper that both layers call. For example, take a GameplayAdmissionPointer and a small policy record built from the mutation.

      • Accepted Accepted: share exact catalog-policy comparison across repository/service revision calculation; preserve separate runtime-target identity semantics.
    5. Move the test-run counts out of the architecture contract.Minor

      Line 272 records a point-in-time proof result ("The 27 World focused tests passed; the three PostgreSQL race/restart integration cases were skipped"). Architecture documents own the technical target state. Implementation status and proof evidence belong in the implementation tracker, and world-runtime-and-movement.md already records the same counts. When the tests change, this copy will drift. Keep the sentence about the unwired owner-read adapter as a short status note, then link to the tracker for proof status.

      📝 Proposed wording

      -The current slice implements the typed `AcquireInitialAdmissionBindHold` RPC restricted to the authenticated Game Session workload, a separate durable World hold record, lifecycle-row serialization that blocks termination while the hold is unresolved, and scheduled fail-closed reconciliation. The authenticated Game Session owner-read adapter is not wired, so owner proof cannot yet resolve holds end to end. The 27 World focused tests passed; the three PostgreSQL race/restart integration cases were skipped without Docker and remain unproven here. The replacement hold contract above remains separate.
      +The current slice implements the typed `AcquireInitialAdmissionBindHold` RPC restricted to the authenticated Game Session workload, a separate durable World hold record, lifecycle-row serialization that blocks termination while the hold is unresolved, and scheduled fail-closed reconciliation. The authenticated Game Session owner-read adapter is not wired, so owner proof cannot yet resolve holds end-to-end. Proof status is tracked in [World Runtime and Movement](../../../project-management/implementation-tracking/world-runtime-and-movement.md). The replacement hold contract above remains separate.
      

      As per path instructions, "Architecture owns technical target state".

      • Accepted Accepted: move point-in-time execution counts from normative World API to owning tracker; same pending correction as CLI finding 8.
    6. Prevent one tenant from blocking global discovery.Major

      visibleWorldsFromAuthoritySnapshot() validates the complete authority snapshot before projection. listGameplayWorlds and listGameplayRealms use this path and convert AuthorityPointerUnavailableException into discovery errors. One incomplete pointer or invalid public-realm count can therefore block unrelated tenants. V6 retains unresolved legacy rows that fail the completeness check.

      Partition validation by tenant. Preserve fail-closed behavior for null pointers because they have no tenant identity.

      -    for (GameplayAdmissionPointerSnapshot pointer : pointers) {
      -      if (!hasCompleteAuthorityPointer(pointer)) {
      -        throw new AuthorityPointerUnavailableException(
      -            "Authoritative gameplay pointer is incomplete");
      -      }
      -    }
      -    requireExactlyOneVisiblePublicProductionRealmPerTenant(pointers);
      -    return toWorlds(pointers).stream().filter(this::hasVisibleRealmEntries).toList();
      +    if (pointers.stream().anyMatch(Objects::isNull)) {
      +      throw new AuthorityPointerUnavailableException(
      +          "Authoritative gameplay pointer is incomplete");
      +    }
      +    Map<Long, List<GameplayAdmissionPointerSnapshot>> byTenant =
      +        pointers.stream()
      +            .collect(Collectors.groupingBy(GameplayAdmissionPointerSnapshot::tenantId));
      +    List<GameplayAdmissionPointerSnapshot> valid =
      +        byTenant.values().stream()
      +            .filter(
      +                tenantPointers ->
      +                    tenantPointers.stream()
      +                        .allMatch(GameplayWorldCatalog::hasCompleteAuthorityPointer))
      +            .filter(
      +                tenantPointers ->
      +                    tenantPointers.stream()
      +                            .filter(
      +                                pointer ->
      +                                    pointer.visible() && pointer.publicProductionRealm())
      +                            .count()
      +                        == 1L)
      +            .flatMap(List::stream)
      +            .toList();
      +    return toWorlds(valid).stream().filter(this::hasVisibleRealmEntries).toList();
      
      • Accepted Accepted: tenant-local invalid pointer/cardinality suppression with global fail-closed behavior for unidentifiable/null pointers; same pending correction as CLI finding 7.
    7. Update the capability row and Active Gaps for the new hold, not only Current Status.Minor

      The tracker guideline says the status, implementation record, validation, gaps, and service-map sections must stay aligned when a domain boundary changes. This change adds production code: InitialAdmissionBindHoldServiceImpl, InitialAdmissionBindHoldReconciler, the V23 migration, and the termination fence in WorldLifecycleCommandServiceImpl. It also adds proof: InitialAdmissionBindHoldServiceImplTest and the PostgreSQL integration test. Only the Current Status paragraph mentions them.

      • The GR-2.1 row (Line 29) lists none of the new implementation or proof anchors.
      • Active Gaps (Lines 110-136) does not record the unwired owner-read adapter or the skipped PostgreSQL race/restart proof.

      Add the anchors to the GR-2.1 row. Add an Active Gaps entry for the owner-read adapter and the missing PostgreSQL proof.

      As per coding guidelines, "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes" and "implemented and partial rows name concrete production anchors."

      • Accepted Accepted: align GR-2.1 production/proof anchors and explicit adapter/PostgreSQL proof gaps; same pending correction as CLI finding 5.
    8. Add a guard to the attachHold update so it can only set an empty hold.Trivial

      The attachHold update filters only on ATTEMPT_ID, so it can overwrite an existing HOLD_ID/HOLD_FENCE. Today only the service caller prevents this: it holds the row lock and checks first. The hold identity/fence is the World-issued equality authority. Add the guard to the query itself. Then an attached fence cannot be replaced even if a future caller skips the check.

      🛡️ Proposed guard

      -            .where(GAMEPLAY_INITIAL_ADMISSION_BIND_ATTEMPT.ATTEMPT_ID.eq(attempt.attemptId()))
      +            .where(
      +                GAMEPLAY_INITIAL_ADMISSION_BIND_ATTEMPT
      +                    .ATTEMPT_ID
      +                    .eq(attempt.attemptId())
      +                    .and(GAMEPLAY_INITIAL_ADMISSION_BIND_ATTEMPT.HOLD_ID.isNull())
      +                    .and(GAMEPLAY_INITIAL_ADMISSION_BIND_ATTEMPT.HOLD_FENCE.isNull())
      +                    .and(GAMEPLAY_INITIAL_ADMISSION_BIND_ATTEMPT.STATUS.eq(Status.PENDING.name())))
      
      • Accepted Accepted: constrain attachHold UPDATE to pending attempts with both hold fields null; prove existing/terminal hold cannot be replaced.
    9. Require complete first-bind proof before finalizing a COMMITTED hold.Minor

      hasDefinitiveTerminalEvidence does not check priorPointerStillAbsent(). A positive pointerVersion also accepts versions other than the version created by the initial bind. This can finalize a hold without proof of the no-prior-pointer transition.

           if (proof.outcome() == InitialAdmissionBindOwnerProof.Outcome.COMMITTED) {
             return proof.expectedNoPriorPointer()
      -          && proof.pointerVersion() > 0L
      +          && proof.priorPointerStillAbsent()
      +          && proof.pointerVersion() == 1L
                 && proof.pointerAuditId() != null
                 && !proof.pointerAuditId().isBlank()
                 && hold.requestDigest().equals(proof.pointerAuditRequestDigest());
      
      • Accepted Partially accepted: require initial pointerVersion 1 with regression. Reject priorPointerStillAbsent on COMMITTED: the pointer now exists; exact atomic attempt/pointer/audit readback proves prior absence. Obsolete boolean removed from wire DTO.
    10. Remove the duplicate nonterminal-hold query.Trivial

      hasNonterminalForGameInstance repeats the SQL in WorldInstanceRepository.hasNonterminalInitialAdmissionBindHold. The termination fence uses the WorldInstanceRepository copy, so if the set of nonterminal statuses changes, the two queries can drift apart. Keep one owner for this predicate. Either delete this method or have WorldLifecycleCommandServiceImpl call it and remove the copy.

      ♻️ Proposed removal

      -  public boolean hasNonterminalForGameInstance(long tenantId, long gameInstanceId) {
      -    return Boolean.TRUE.equals(
      -        dsl.fetchValue(
      -            "SELECT EXISTS (SELECT 1 FROM initial_admission_bind_hold "
      -                + "WHERE tenant_id = ? AND game_instance_id = ? "
      -                + "AND status IN ('PENDING', 'RECONCILIATION_REQUIRED'))",
      -            Boolean.class,
      -            tenantId,
      -            gameInstanceId));
      -  }
      
      • Accepted Accepted: remove unused duplicated nonterminal-hold predicate, retaining WorldInstanceRepository canonical termination fence.
  3. Subagent Review 1 CompletedModel not recorded
    Found: 2 Accepted: 0 Routed: 0
    1. Legacy pointer rows prevent initial bindingMajor
      • Rejected Same unsupported pre-candidate volume premise. Fresh candidate bootstrap and same-capability restart contain no legacy raw pointers. No authority migration is required; actual runtime proof remains pending.
    2. Retained legacy template room IDs reject startupMajor
      • Rejected Unsupported pre-candidate volume upgrade: canonical restart requires an existing candidate capability before Compose mutation; fresh bootstrap resets explicitly run-owned volumes. Mismatched legacy IDs remain fail-closed.
  4. Subagent Review 2 CompletedModel not recorded
    Found: 2 Accepted: 2 Routed: 0
    1. Reject contradictory audit digest in World abort proofMajor
      • Accepted World must retain its termination fence for contradictory abort evidence; add absent-digest check and focused regression in #2939.
    2. Migrate recognized retained Compose WMS leaf safelyMinor
      • Accepted Claimed fixture retains its certificate directory across fresh bootstrap; safely replace only an exact legacy generic WMS leaf, preserving host CA and other leaves.
  5. Subagent Review 3 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. Run-owned coordinator exhaustion leaves safe nonterminal hold requiring restartMinor

      RunOwnedInitialAdmissionFixtureCoordinator114-129 stops after12 attempts; World proof reader remains failclosed. No confirmed unsafe regression; improve the focused failure-path proof and acknowledge operational recovery gap.

      • Accepted Partially accepted: add meaningful bounded-exhaustion and same-claim process-restart regression plus explicit tracker limit. No unsafe hold release or generalized abort/recovery API; cross-database live proof remains open.
  6. Subagent Review 4 CompletedModel not recorded
    Found: 1 Accepted: 0 Routed: 0
    1. Interrupted local leaf migration cannot automatically repair a mismatched pairMinor
      • Rejected This is intentional fail-closed handling already covered by compose-grpc-mtls-contract lines121-135. A mismatched pair is not the exact validated legacy shape and cannot be silently rewritten. No owner-boundary regression or automatic recovery guarantee; manual fixture recovery remains a limitation.
  7. Subagent Review 5 CompletedModel not recorded
    Found: 1 Accepted: 0 Routed: 0
    1. Parent-seeded claimed volumes and fixed demo template room IDsMinor
      • Rejected Reviewer withdrew reproduction: reuse-only initial-admission capability is required before Compose mutation; parent has no capability. Fresh wrappers reset only claimed volumes. No supported cross-version retained-volume path reaches seeder.
  8. Subagent Review 6 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  9. CLI Review 2 CompletedRuntime 3m 32s
    Found: 9 Accepted: 0/4/5 Routed: 0
    1. Trivial

      Rename v8LedgerCommitsPointerAuditAndAttemptTogetherAndReadbackFailsClosed to a version-neutral name such as ledgerCommitsPointerAuditAndAttemptTogetherAndReadbackFailsClosed so the test name does not imply the ledger belongs to migration V8.

      • Accepted Accepted: version-neutral ledger test name avoids stale V8 attribution after owner migrations moved to V9/V10.
    2. Minor

      Update the “Initial-admission owner boundary” status entry to remove the 35-path foundation validation claim, since it does not cover this slice’s coordinator, migration, launch path, owner-proof RPC, or shell tooling. Include a validation command and result only if they cover this change set.

      • Accepted Accepted: replace unrelated 35-path proof claim with attributable whole85-path owner/bootstrap unit/source-compilation proof and honest live limits.
    3. Minor

      Update the Javadoc on GameSessionInitialAdmissionBindProofClient to remove the stale claim that no implementation is wired and describe its use by World hold reconciliation. Also correct the stale fail-closed claim in InitialAdmissionBindHoldReconciler’s class Javadoc to reflect that the gRPC client is wired and the unavailable branch applies only when its bean is absent.

      • Accepted Accepted: owner-read interface/reconciler Javadocs falsely say no gRPC adapter is wired; document actual optional-bean fail-closed behavior.
    4. Trivial

      Update rejectsWritableCapabilityFile so its assertion specifically verifies the writable-file check: provide valid gRPC properties to load and add a read-only-file positive control that gets past file validation, or test readCapability directly if exposed package-private. Avoid using null properties, since their pin-validation failure can make the writable-file assertion pass independently.

      • Accepted Accepted: writable-file rejection test can pass from null TLS config; add positive read-only control and isolate intended file validation.
    5. Minor

      Update the initial-admission capability row to include an ID aligned with the Capability Allocation ledger, replace “in progress” with a verification state defined by the Capability Status Contract, and name the missing PostgreSQL race/restart proof in the gap cell.

      • Accepted Accepted: map GS owner-boundary row to existing capability allocation and use defined verification vocabulary; keep PG race/restart gap explicit.
    6. Minor

      Assign the initial-admission hold row a distinct capability ID, or a documented sub-ID, that matches the Capability Allocation ledger; keep GR-2.1 reserved for the topology, rooms, regions, and runtime instances capability so each tracker row unambiguously represents one owned capability.

      • Accepted Partially accepted: label World hold row as a documented GR-2.1 lifecycle sub-boundary and align owning AR-3.1 context, without inventing a new capability ID.
    7. Trivial

      Update the duplicate-identity assertion in RunOwnedInitialLaunchPostgresIntegrationTest to verify SQLState 23505 and the game_instances_run_owned_start_request_unique constraint name, rather than accepting any DataAccessException. Also assert run-owned request IDs on the entities returned by repository.save, not on the input objects ordinaryOne and ordinaryTwo.

      • Accepted Accepted: prove duplicate identity fails specifically with PostgreSQL23505 and named unique index; assert returned persisted ordinary rows.
    8. Trivial

      Remove the duplicate private findPointerById(Long) overload from InitialAdmissionBindAttemptRepository and keep the public findPointerById(long) as the single lookup method. Ensure insertPointer continues to use that method when passing record.getId().

      • Accepted Accepted: remove duplicate boxed findPointerById implementation and retain existing public primitive lookup.
    9. Trivial

      Remove the unused gameInstanceRepository mock from TestDataSeederTest and delete its verifyNoInteractions assertion, since TestDataSeeder no longer receives that repository. Keep the remaining mocks and interaction checks unchanged.

      • Accepted Accepted: detached GameInstanceRepository mock cannot prove the removed seeder dependency; remove dead mock and assertion.
  10. Hosted Review 2 CompletedRuntime 9m 45s
    Found: 7 Accepted: 0/5/2 Routed: 0
    1. Assert the specific unique-constraint violation.Trivial

      The assertion accepts any DataAccessException. Other failures would also satisfy it, for example a rejected explicit id on an identity column or a CHECK constraint failure. In those cases, the test passes but does not prove that game_instances_run_owned_start_request_unique rejects the duplicate.

      Assert the constraint name or SQLSTATE 23505.

      🧪 Proposed assertion

             assertThatThrownBy(() -> insertDuplicateIdentity(dsl, firstId + 1L))
      -          .isInstanceOf(DataAccessException.class);
      +          .isInstanceOf(DataAccessException.class)
      +          .hasMessageContaining("game_instances_run_owned_start_request_unique");
      
      • Accepted Accepted: duplicate CLI specific PostgreSQL uniqueness proof, not broad DataAccessException.
    2. Make the World proof claim match the actual run.Minor

      Line 11 says "All 144 World unit tests pass", and the GR-2.1 hold row at Line 30 repeats that count. The PR objectives say something different: World's 145-case proof was "retained from prior validation, not rerun" at the current head. The tracker presents a carried-over number as if it were current proof, and the number does not match.

      Do one of the following:

      • Record the actual count, the commit, and the fact that the run was not repeated at this head.
      • Remove the count and name the focused proof anchors that already appear in the row.

      The row also pairs drift-found with a passing-test claim. If no drift is recorded, use the defined status that matches the claim.

      As per coding guidelines, "implemented does not imply proven, and a historical broad test run does not substitute for focused proof."

      Also applies to: 30-30

      • Accepted Accepted: World144-case claim is stale carried evidence; state actual retained focused proof and unrun PG/Compose limits.
    3. Fix the status paragraph so it matches the Game Session contract and tracker.Minor

      The rewritten Implementation Status drops these current-state facts:

      • Game Session persists catalogRevision and stable realmId/playableStateNamespaceId.
      • Repository updates compare both pointer version and catalog revision.
      • Player-facing projections fail closed on incomplete identity.

      The paragraph now says only "pointer updates still use a read-then-write check with separate pointer/audit/prepared-execution writes".

      Two other documents in this PR state the opposite:

      • design/architecture/microservices/game-session-service/api-contracts.md Line 13 says pointer and audit rows persist catalogRevision and stable UUID identity.
      • design/project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md Lines 13 and 89 say repository updates check pointer version and catalog revision, and that existing pointer updates use expected-version CAS.

      The paragraph also no longer says that the initial bind exists only as an opt-in local Compose fixture path. Do one of the following:

      • Restore the removed identity and CAS facts and add one sentence that links to the initial-admission status.
      • Replace the paragraph with a link to the Game Session tracker as the status owner.

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

      • Accepted Accepted: multi-tenancy implementation status lost current identity/CAS and opt-in owner-bootstrap facts; link canonical GS status owner.
    4. Resolve the sequence name in one place.Trivial

      setval gets its target from pg_get_serial_sequence('room', 'id'). The GREATEST argument reads last_value from the hardcoded room_id_seq. If the sequence is renamed or recreated under another name, this method fails or reads the wrong sequence. Use the resolved sequence for both operations. For example, read last_value through a pg_sequences lookup keyed on the resolved name, or get the name once in Java and quote it.

      ♻️ Proposed refactor

         private void advanceRoomIdSequence() {
      -    dsl.fetchValue(
      -        "SELECT setval(pg_get_serial_sequence('room', 'id'), "
      -            + "GREATEST(COALESCE((SELECT MAX(id) FROM room), 1), "
      -            + "COALESCE((SELECT last_value FROM room_id_seq), 1)), true)",
      -        Long.class);
      +    String sequence =
      +        dsl.fetchValue("SELECT pg_get_serial_sequence('room', 'id')", String.class);
      +    dsl.fetchValue(
      +        "SELECT setval(?::regclass, GREATEST(COALESCE((SELECT MAX(id) FROM room), 1), "
      +            + "COALESCE((SELECT last_value FROM pg_sequences "
      +            + "WHERE format('%I.%I', schemaname, sequencename)::regclass = ?::regclass), 1)), true)",
      +        Long.class,
      +        sequence,
      +        sequence);
         }
      
      • Accepted Accepted: room sequence repair must resolve and use same actual owned sequence for last_value and setval; prove rename and nondecrease.
    5. Preserve the database-disabled harness path.Minor

      When firemud.database.enabled=false, this override no longer replaces gameInstanceServiceImpl. Spring creates the real GameInstanceServiceImpl, which requires GameInstanceRepository and PlatformTransactionManager. The repository requires DSLContext, but the database configuration does not provide the required infrastructure. Context startup can therefore fail even when startRunOwnedInitialLaunch is never called.

      Keep the previous stub for database-disabled contexts. Register the delegating wrapper only when the database is enabled.

      • Accepted Accepted: database-disabled harness must retain stub without requiring real repository/transaction infrastructure; test both modes.
    6. Use a defined verification status and record validation for this capability.Minor

      The Verification cell at line 49 uses in progress, which is not a defined status. Set it to proven only if the listed tests are focused proof for this capability. Otherwise, use unverified and add No focused executable proof: to the proof cell.

      Line 15 repeats the 35-path foundation run already recorded at line 13. Replace it with the validation run that covers the initial-admission owner boundary, or remove the sentence. Do not use a broad historical run as focused proof.

      • Accepted Accepted: duplicate CLI proof correction; replace unrelated foundation claim and undefined verification status, retain live-proof gaps.
    7. Do not add the fallback for an occupied selector.Minor

      GameplayWorldCatalog resolves world and realm selectors without tenant context. If another tenant already owns demo/production, adding the fallback creates two entries in the same fixture group and fromPointers throws. Do not group same-slug realms by tenant. Keep the selector unique across tenants.

                     .noneMatch(
                         pointer ->
      -                      pointer.tenantId() == fallback.tenantId()
      -                          && pointer.worldSlug().equals(fallback.worldSlug())
      +                      pointer.worldSlug().equals(fallback.worldSlug())
                                 && pointer.realmSlug().equals(fallback.realmSlug()))) {
      
      • Accepted Accepted: fallback occupancy must consider selector ownership across tenants; prove nondefaulttenant demo/production excludes fallback.
  11. Subagent Review 7 CompletedModel not recorded
    Found: 1 Accepted: 0 Routed: 0
    1. Termination before hold can leave the fixture intent pendingMinor
      • Rejected Reviewer withdrew new-attempt consequence: retained restart keeps one immutable claim/capability/operation and cannot mint another target. Fresh bootstrap resets claimed volumes. Pending pre-hold intent is a documented bounded abort/operator limitation; automatic recovery is not claimed.
  12. Subagent Review 8 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  13. CLI Review 3 CompletedRuntime 4m 21s
    Found: 3 Accepted: 0/0/3 Routed: 0
    1. Trivial

      Update the catch block in RunOwnedInitialAdmissionFixtureCoordinator to include the caught exception’s simple class name and message in both the retry warning and exhaustion error logs. Do not log capability bytes or other sensitive data.

      • Accepted Accepted diagnostic improvement with secret-safe boundary: add caught exception type and allowlisted error detail to retry and exhaustion logs. Do not emit arbitrary exception messages, capability bytes or grpc metadata.
    2. Trivial

      Update InitialAdmissionBindHoldReconciler and the hold-state monitoring flow to expose a metric for nonterminal holds past diagnosticExpiresAt, tagged by tenant and error code, and add an alert based on that metric. Document an operator procedure for resolving holds that remain unresolved; preserve the existing fail-closed behavior.

      • Accepted Accepted with bounded diagnostics: overdue observation metric and alert plus safe exact-owner reconciliation procedure. Reject raw tenant metric labels per cardinality policy; retain tenant identity only in scoped logs. No TTL release or operator bypass.
    3. Trivial

      Update holdAcquireWinsConcurrentTerminationAndExactRetrySurvivesServiceRecreation to wait until pg_stat_activity shows a backend waiting on a lock before releasing allowAcquireCommit. Keep the wait bounded so the test fails if termination never blocks, and preserve the existing latch and termination assertions.

      • Accepted Accepted: current latch only proves task entry, not PostgreSQL lock wait; bound an exact competing-backend wait before release and retain termination/retry assertions.
  14. Hosted Review 3 Completed
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  15. CLI Review 4 CompletedRuntime 3m 52s
    Found: 1 Accepted: 0/1/0 Routed: 0
    1. Minor

      Update the admission-catalog status paragraph to align with current bootstrap behavior: GameplayAdmissionPointerBootstrapInitializer validates seed shape without writing pointer rows, and GS/WMS raw runtime seeds have been removed. Retain the distinction that neither provides World lifecycle proof.

      • Accepted Accepted direct tracker correction: current initializer validates configured seed shape without inserting pointers, raw GS/WMS runtime seeds removed. Neither is lifecycle authority; update only that stale status sentence.
  16. Subagent Review 9 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  17. Subagent Review 10 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  18. Subagent Review 11 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run

Routed Findings

0 Open0 Accepted/Fixed0 Rejected

No routes recorded

Unlinked items

no items unlinked