FireMUD Delivery Status

PR data refreshed

PR #3251 review history

Complete selected-full owner publication and immutable readback

Unit 1A · identity, Account and public JOIN

Review rounds

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

Hosted CodeRabbitNext3 completed
Progress: Pending adjudicationRule: Max 2 remaining
10/10/04/4/03/3/02/?/?
CLI CodeRabbit6 completed
Progress: Max 6 reachedRule: Min 0 remaining · Max 6 reached
4/3/04/3/03/1/03/1/03/1/0

Recorded review history

Reviews and findings

  1. Hosted Review 1 CompletedRuntime 12m 03s
    Found: 10 Accepted: 2/4/4 Routed: 0
    1. Map Spring transaction failures to UNAVAILABLE.Major

      DataAccessException is org.jooq.exception.DataAccessException, but snapshot is a Spring TransactionTemplate. Transaction acquisition and rollback failures can bypass the jOOQ catch and reach the generic RuntimeException catch, which reports FAILED_PRECONDITION.

      The selected publication gate records that status in failed participant observations. The participant-vector validation then rejects those observations, and the publish command calls failDefinitively because the classifier does not treat FAILED_PRECONDITION as retryable.

      Apply the same Spring exception mapping used by StartSessionTemplateAssociationReadService.

      --- "a/services/game-design-service/src/main/java/net/firedevops/firemud/gamedesign/publication/SelectedDraftPublicationDigestReadService.java"
      +++ "b/services/game-design-service/src/main/java/net/firedevops/firemud/gamedesign/publication/SelectedDraftPublicationDigestReadService.java"
      @@ -71,13 +71,17 @@
             return Objects.requireNonNull(
                 snapshot.execute(ignored -> readSnapshot(publicationRequest)),
                 "Selected publication digest snapshot returned no result");
           } catch (StatusRuntimeException failure) {
             throw failure;
      -    } catch (DataAccessException unavailable) {
      +    } catch (DataAccessException
      +        | org.springframework.dao.TransientDataAccessException
      +        | org.springframework.dao.DataAccessResourceFailureException
      +        | org.springframework.transaction.CannotCreateTransactionException
      +        | org.springframework.transaction.TransactionSystemException unavailable) {
             throw Status.UNAVAILABLE
                 .withDescription("Selected publication source readback unavailable")
                 .withCause(unavailable)
                 .asRuntimeException();
           } catch (RuntimeException invalid) {
             throw Status.FAILED_PRECONDITION
                 .withDescription("Exact selected publication source evidence unavailable")
      
      • Accepted Spring transaction acquisition/rollback errors currently fall through to FAILED_PRECONDITION. Match canonical sibling transient-storage mapping to UNAVAILABLE and prove errors still sanitize and retain non-retryable contract failures.
    2. Return retained-read failures as non-OK gRPC statuses.Minor

      When the retained read throws FAILED_PRECONDITION or UNAVAILABLE, GetDraftDesignDigest cannot produce a digest. The current catch puts that status in ErrorDetail and completes the RPC with transport OK, which violates the documented gRPC contract.

      Use the same bounded code and description in onError. GameLogicClient already preserves embedded error codes, and UNAVAILABLE remains retryable in both the embedded-result and transport-status paths.

      --- "a/services/game-logic-service/src/main/java/net/firedevops/firemud/gamelogic/service/impl/GameLogicGrpcService.java"
      +++ "b/services/game-logic-service/src/main/java/net/firedevops/firemud/gamelogic/service/impl/GameLogicGrpcService.java"
      @@ -216,17 +216,7 @@
                 status.getDescription() == null
                     ? "Exact retained publication source read was denied"
                     : status.getDescription();
      -      responseObserver.onNext(
      -          GetDraftDesignDigestResponse.newBuilder()
      -              .setError(
      -                  GrpcAppErrors.error(
      -                      meterRegistry,
      -                      logger,
      -                      "GetDraftDesignDigest",
      -                      status.getCode().name(),
      -                      description))
      -              .build());
      -      responseObserver.onCompleted();
      +      responseObserver.onError(status.withDescription(description).asRuntimeException());
           } catch (Exception ex) {
             responseObserver.onNext(
                 GetDraftDesignDigestResponse.newBuilder()
      
      • Accepted Canonical gRPC contract requires non-OK transport when digest cannot be produced. Return bounded sanitized caught status via onError; retain authorization and verify server/client retryable behavior.
    3. Exercise the selected gate in the receipt-storage interruption test.Trivial

      This test collects digests through the selected path, but it asserts with service.assertGatePassed, which is the legacy gate. The participant-availability check runs first, so the test passes, but it never checks the retryable failure through assertSelectedGatePassed. That selected gate is the one VersionPublishCommandServiceImpl uses. selectedFullVersionGateKeepsMissingReceiptPendingAndNeverUsesLegacyRead already uses the selected gate.

      ♻️ Proposed fix

           PublishGateFailureException thrown =
               assertThrows(
      -            PublishGateFailureException.class, () -> service.assertGatePassed(version, digests));
      +            PublishGateFailureException.class,
      +            () -> service.assertSelectedGatePassed(version, digests));
      
      • Accepted Storage interruption test calls legacy gate despite selected participant vector. Use selected assertion and preserve retryable classification.
    4. Separate the test-result counts on Line 148.Minor

      The text passed66 unit and10 native cases omits spaces. Write passed 66 unit and 10 native cases.

      • Accepted Verified missing spaces in existing dated observation; exact wording correction only, preserve prior record and proof scope.
    5. Recover reservations after issuance revocation.Major

      account_control_ui_issuance_operations.status can transition from COMMITTED to REVOKING and then REVOKED. Therefore, the recovery query and abortExpiredPreliminarySourceRead can skip expired preliminary reservations after revocation. Their source-writer exclusion can remain held until an explicit abort with the original credential.

      Update the recovery path to handle expired preliminary reservations whose issuer is no longer COMMITTED, while preserving the required scope, issuer identity, and terminal-state checks.

      • Accepted Current query and locked abort require COMMITTED although canonical issuer may become REVOKING/REVOKED. Permit expired original retained issuer states while keeping exact identity, scope locks and finalized/terminal exclusion; prove actual storage.
    6. Widen the expiry margin to make the test less timing-sensitive.Minor

      The service clock is offset by -290 seconds and the credential TTL is 300 seconds. The issuance therefore expires about 10 seconds after issueCreator() runs. Before Line 405 asserts that the issuance has not yet expired, the test runs a lot of setup:

      • settleOriginal
      • three reservations
      • a full Entity finalization through Redis
      • a second concurrent finalization up to its insert

      On a slow or contended CI runner, this can take more than 10 seconds. The assertions at Line 364 or Line 405 then fail. The failure says nothing about recovery behavior. This PR already records unrelated PostgreSQL connection problems in CI, so a timing-sensitive gate makes qualification harder.

      Use a larger margin, for example an offset of -270 seconds. Then raise the awaitIssuerExpiry deadline so it still covers the remaining time.

      🧪 Proposed margin change

      -            Clock.offset(Clock.systemUTC(), Duration.ofSeconds(-290)))) {
      +            Clock.offset(Clock.systemUTC(), Duration.ofSeconds(-270)))) {
      
      -    long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(10);
      +    long deadline = System.nanoTime() + TimeUnit.SECONDS.toNanos(45);
           do {
             if (issuerExpiryReached(dsl, issuanceOperationId)) return;
      

      Also applies to: 364-364, 405-405

      • Accepted Actual fixture leaves about10seconds for substantial setup before cutoff assertions. Widen setup margin and bounded expiry wait; retain real database expiry, lock/race and finalized-owner guards.
    7. The request-independence check does not test request independence.Trivial

      compute takes no publication request. firstRequest and retryRequest are never passed to it. first, replay, and otherRequest come from three identical calls, so assertThat(first).isEqualTo(otherRequest) repeats the determinism check. Line 39 tests only PublicationDigestRequestBinding. Remove the unused request objects and rename the test to describe determinism. Alternatively, cover request exclusion at SelectedDraftPublicationDigestReadService: two different publishRequestId values over the same sources must yield the same contentDigest.

      • Accepted Unused request objects never enter compute; remove misleading identity-independent claim and redundant compute/assertion, retaining deterministic digest/source-vector proof.
    8. Stop one failing candidate from blocking every later recovery page.Minor

      abortExpiredPreliminarySourceRead throws in some cases:

      • lockReservedSources cannot find a source-lock row.
      • requireReservation detects changed evidence.
      • A transaction fails.

      The exception leaves this loop. Later candidates in the page are never tried. Aborts that already committed are not counted in a returned value. The repository orders candidates deterministically by expires_at_epoch_second, operation_id. The same failing candidate therefore stays at the front of every later page. As a result, recovery stops for every other expired reservation in the namespace.

      Skipping a failed candidate is safe because the skip releases nothing. Isolate each candidate's failure, keep processing the page, and report the failures. Apply the same per-row isolation to findExpiredPreliminarySourceReadScopes, which currently throws for the whole page when one row fails validation.

      ♻️ Proposed per-candidate isolation

      --- "a/services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/session/AccountSelectedOwnerIntakeSourceReservationService.java"
      +++ "b/services/account-service/src/main/java/net/firedevops/firemud/accountservice/service/session/AccountSelectedOwnerIntakeSourceReservationService.java"
      @@ -163,16 +163,23 @@
                           repository.findExpiredPreliminarySourceReadScopes(
                               boundedCandidates, namespace)),
                   "Expired source-read candidate lookup returned no result");
           int aborted = 0;
      +    RuntimeException firstFailure = null;
           for (SelectedOwnerIntakeSourceReadScope scope : candidates) {
      -      if (Objects.requireNonNull(
      -          ownerTransaction.execute(
      -              ignored -> repository.abortExpiredPreliminarySourceRead(scope, namespace)),
      -          "Expired source-read recovery returned no result")) {
      -        aborted++;
      -      }
      +      try {
      +        if (Objects.requireNonNull(
      +            ownerTransaction.execute(
      +                ignored -> repository.abortExpiredPreliminarySourceRead(scope, namespace)),
      +            "Expired source-read recovery returned no result")) {
      +          aborted++;
      +        }
      +      } catch (RuntimeException failure) {
      +        if (firstFailure == null) firstFailure = failure;
      +        else firstFailure.addSuppressed(failure);
      +      }
           }
      +    if (firstFailure != null && aborted == 0) throw firstFailure;
           return aborted;
         }
       
         private Optional<SelectedOwnerIntakeSourceReadScope> findScope(
      
      • Accepted One candidate exception aborts later page attempts; one invalid retained row aborts decoding whole page. Isolate per row/candidate with bounded sanitized diagnostics; preserve committed abort count, per-owner transactions, max128 and no global completion claim.
    9. Assert the specific nil-identity rejection reason.Trivial

      This assertion passes on any DataAccessException. The nil canonical_version_id case should fail on chk_version_canonical_identity_shape. In V35.1, the BEFORE INSERT trigger accepts this row: every field is non-null and the owner source row matches. The CHECK constraint is therefore the only guard that this case proves.

      The insert can also fail for an unrelated reason. Examples are a NOT NULL column without a default, a unique (tenant_id, version_number) collision, or SQL drift. In each of these cases, the test still passes, but it no longer proves the nil-UUID guard. Line 322 already checks the message for the mismatched-source case. Match that check here and assert the constraint name.

      💚 Proposed assertion

                               owner.getTenantId(),
                               "NEW_GAME_ROW"))
      -        .isInstanceOf(DataAccessException.class);
      +        .isInstanceOf(DataAccessException.class)
      +        .hasMessageContaining("chk_version_canonical_identity_shape");
      
      • Accepted Nil identity case accepts any jOOQ failure. Assert exact canonical identity shape constraint to rule out unrelated SQL errors; retain storage guard.
    10. Assert the specific rejection, not any RuntimeException.Trivial

      The mixed-schema proof can pass for the wrong reason. isInstanceOf(RuntimeException.class) also accepts an NPE, a fixture failure, or an unrelated validation failure before the schema check. Line 489 also repeats the successful assertion from line 472.

      Assert these rejections instead:

      • PublishGateFailureException with UNSUPPORTED_DIGEST_SCHEMA for the gate.
      • IllegalArgumentException with the "Selected-full release requires the exact 4/3/1/6/2" message for the bundle write.

      ♻️ Proposed fix

      -        gate.assertSelectedGatePassed(versionDto, participantDigests);
               assertThatThrownBy(() -> gate.assertSelectedGatePassed(versionDto, altered))
      -            .isInstanceOf(RuntimeException.class);
      +            .isInstanceOfSatisfying(
      +                net.firedevops.firemud.gamedesign.service.PublishGateFailureException.class,
      +                failure ->
      +                    assertThat(failure.failureCode())
      +                        .isEqualTo(
      +                            net.firedevops.firemud.gamedesign.model.PublishGateFailureCode
      +                                .UNSUPPORTED_DIGEST_SCHEMA));
      
      -            .isInstanceOf(RuntimeException.class);
      +            .isInstanceOf(IllegalArgumentException.class)
      +            .hasMessageContaining("Selected-full release requires the exact 4/3/1/6/2");
      

      Also applies to: 556-568

      • Accepted Actual mixed-schema checks use broad RuntimeException and duplicate success assertion. Require exact schema failure code/bundle rejection while preserving no-write proof and actual five-store exercise.
  2. CLI Review 1 CompletedRuntime 3m 12s
    Found: 9 Accepted: 1/3/4 Routed: 0
    1. Make the test prove its name: a later valid row must still be decoded.Trivial

      Both mocked rows fail. first returns empty bytes and later throws. The assertion isEmpty() therefore proves only that invalid rows are skipped. It does not prove that a valid row after an invalid one is returned.

      Make later a valid row and assert that the result contains its scope. If building a valid row in a mocked unit test is too costly, rename the test to expiredRecoverySkipsEveryInvalidRow.

      • Accepted Both mocked rows fail, so current name overclaims successful later decode. Align name/proof and cover continuation beyond skipped candidates with the pagination correction.
    2. Assert the failure code, and correct the comment.Trivial

      The comment at Lines 2172-2173 says the validator "must reject every downgrade". Line 2185 does the opposite: it increments each schema (digestSchemaVersion() + 1). The test therefore checks upgrades, for example World 4→5 and control plane 2→3.

      Both new tests check only status() == "FAILED". They do not show that the selected-full participant-vector validator caused the rejection. If a different typed failure marks the attempt FAILED before staging, the tests still pass. Assert snapshot.failureCode(), and if possible the failure message, so each test is tied to the participant-schema rejection. Apply the same change to freshSelectedPublishRejectsLegacyOwnerVectorBeforeGateOrAssetEffects at Lines 2131-2166.

      ♻️ Proposed change

      -    // These unit carriers are controlled; the actual contract validator must reject every
      -    // downgrade.
      +    // These unit carriers are controlled; the actual contract validator must reject every
      +    // noncanonical (here: incremented) participant schema.
       ...
           assertEquals("FAILED", result.status());
      +    assertEquals(
      +        PublishGateFailureCode.UNSUPPORTED_DIGEST_SCHEMA.name(), result.failureCode());
      

      Replace the expected code with the code that the selected-full validator actually emits.

      • Accepted Incremented schema comment is wrong; assert actual PUBLISH_FAILED and exact vector-validator message, preserving no-asset-effect proof.
    3. This test repeats the producer test and does not exercise StartSessionTemplateAssociationReadService.Trivial

      Lines 55-61 make the same five assertions on StartSessionLaunchDescriptorProducer.isSelectedReleaseBundleSchema as StartSessionLaunchDescriptorProducerTest Lines 71-77. The name configuredReleaseSelectionRetainsV2AndAcceptsOnlyFullV4 suggests coverage of the association reader's own release selection, but the test never builds or calls that service.

      Two cases:

      • If the association reader delegates to the producer's static predicate, remove this copy. The producer test already covers the predicate.
      • If the association reader has its own schema gate, test that gate through StartSessionTemplateAssociationReadService, for example by reading a v3 bundle and expecting denial. With the current test, the two gates can drift apart and no test fails.

      Confirm which case applies.

      • Accepted Association reader delegates to the producer predicate. Remove the duplicate static-predicate test that falsely suggests association-reader behavior coverage.
    4. Make sure transient participant failures stay retryable before the structural checks run.Major

      The new selected collector returns failed observations for conditions that can clear on retry:

      • "PARTICIPANT_UNAVAILABLE" when the Game Logic receipt "is not available yet".
      • "UNAVAILABLE" when receipt readback is temporarily unavailable.
      • The gRPC status code when the World/GD snapshot read is UNAVAILABLE.

      These observations have a null appliedCommitId and a null schema. assertSelectedCommit (Line 286) then throws APPLIED_COMMIT_MISMATCH. The new requireFreshSelectedFullParticipantVector throws IllegalArgumentException. Both run before assertSelectedGatePassed, which would report PARTICIPANT_UNAVAILABLE with the original errorCode. If PublicationFailureClassifier.isRetryableParticipantDependencyFailure does not classify those two exceptions as retryable, failDefinitively seals the attempt as FAILED. A transient outage, or a receipt that has not arrived yet, then ends the selected publication permanently. The current containment does not reopen a failed selection.

      Verify how the classifier handles APPLIED_COMMIT_MISMATCH and the vector IllegalArgumentException in this situation. If it treats them as definitive, check participant success first, before the commit and vector checks.

      🔧 Possible ordering fix

           try {
      +      publishGateService.assertSelectedGatePassed(dto, participantDigests);
             assertSelectedCommit(request, participantDigests);
             PublishedReleaseBundleContract.requireFreshSelectedFullParticipantVector(
                 dto.id(),
                 requireSelectedIntent(request).selectedCommit().commitId().toString(),
                 participantDigests);
      -      publishGateService.assertSelectedGatePassed(dto, participantDigests);
           } catch (RuntimeException ex) {
      
      • Accepted Real collector returns transient failures with null evidence, but structural checks seal FAILED first. Preserve existing transient classification before schema/commit checks in selected gate and command; add joined collector-command regression.
    5. Prevent skipped candidates from blocking recovery permanently.Minor

      The query orders candidates by a fixed key, issuer.expires_at_epoch_second, reservation.operation_id, and applies LIMIT ? before Java validation. Some rows fail requireReservation or fromStored and are only logged. Those rows stay unaborted and match the query again on the next page. Rows that fail every time in abortExpiredPreliminarySourceRead behave the same way. One example is the "Original preliminary source lock is unavailable" failure.

      Consequence: if the first limit eligible rows fail permanently, every later page returns the same rows. Valid expired reservations behind them are never aborted. Their source-writer exclusions stay in place with no signal to the caller, and the returned count is zero.

      Add a keyset cursor, for example (expires_at_epoch_second, operation_id) > (?, ?), so a caller can move past skipped rows. Alternatively, return the last examined key or a skipped count with the result, so the caller can tell starvation apart from a finished queue.

      • Accepted LIMIT precedes row validation; a persistent bad prefix can starve later eligible reservations. Return caller-owned keyset continuation past every examined row while retaining bounded independent transactions and exact abort protections.
    6. Fix the subject-verb agreement in the tracker sentence.Minor

      The sentence has two subjects: the selected intake tracker and the authoring tracker. The verb is "records", but a plural subject needs "record".

      ✏️ Proposed fix

      -... and [authoring tracker](../../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#current-status) records unregistered transport, bounded-message and physical proof gates.
      +... and [authoring tracker](../../../project-management/implementation-tracking/game-authoring-publishing-and-activation.md#current-status) record unregistered transport, bounded-message and physical proof gates.
      
      • Accepted The two linked trackers form a plural subject; correct records to record in their contract sentence.
    7. Move the selectorEvidence(int digestSchemaVersion) helper into PublishedWorldSelectorFixtures.Trivial

      This PR adds the same request-rebuild helper three times:

      • Here, at Lines 1038-1062.
      • In PublishedReleaseBundleContractTest at Lines 339-363.
      • In PublishedReleaseBundleServiceImplTest at Lines 337-370.

      Each copy lists all 13 positional WorldPublishedStartLocationEvidence.Request arguments. If that record gains or reorders a field, all three copies must change in the same way. Put one helper, such as PublishedWorldSelectorFixtures.withDigestSchemaVersion(evidence, version), in the shared fixture, and call it from all three tests.

      ♻️ Proposed shared helper

      // PublishedWorldSelectorFixtures (sharedTest)
      public static WorldPublishedStartLocationEvidence withDigestSchemaVersion(
          WorldPublishedStartLocationEvidence base, int digestSchemaVersion) {
        var o = base.request();
        return new WorldPublishedStartLocationEvidence(
            new WorldPublishedStartLocationEvidence.Request(
                o.targetNamespace(), o.canonicalTenantId(), o.canonicalVersionId(),
                o.intakeRequestId(), o.publicationFence(), o.publicationRequestId(),
                o.requestDigest(), o.versionStateEpoch(), o.publishWorkflowId(),
                o.appliedCommitId(), o.contentDigest(), digestSchemaVersion,
                o.worldAffectedTuples()),
            base.selectorReceiptBytes(),
            base.originalAccountBindingBytes(),
            base.appliedResultBytes());
      }
      
      -  private WorldPublishedStartLocationEvidence selectorEvidence(int digestSchemaVersion)
      -      throws Exception {
      -    var base = selectorEvidence();
      -    ...
      -  }
      +  private WorldPublishedStartLocationEvidence selectorEvidence(int digestSchemaVersion)
      +      throws Exception {
      +    return PublishedWorldSelectorFixtures.withDigestSchemaVersion(
      +        selectorEvidence(), digestSchemaVersion);
      +  }
      
      • Accepted Three positional evidence rebuilds duplicate one fixture transformation; centralize it in the existing shared fixture without changing evidence semantics.
    8. Use the required entry format for these observations.Minor

      The entries at Line 148 and Line 258 are single prose paragraphs. Line 258 also writes its date without backticks. The file defines one entry format: "YYYY-MM-DD: short title" followed by Context, Observation, and Expected pattern sub-bullets. The entries at Lines 200–210 already use that format.

      Change both entries to the canonical structure. Keep the recorded outcomes, such as the 66/10 passing cases and the R44/R45 agreement, as an Outcome sub-bullet. Do not change the meaning of either entry.

      As per coding guidelines, the file requires "Entry format: - YYYY-MM-DD: short title - Context: … - Observation: … - Expected pattern: …".

      Also applies to: 258-258

      • Rejected AGENTS and this file require append-only historical observations during ordinary work. Reformatting retained past entries is not authorized or needed for correctness; their outcomes remain intact and new entries use the structured format.
    9. Log and count the source-read status before you replace its description.Minor

      The other branches in this handler call GrpcAppErrors.error(...) or GrpcAppErrors.internal(...). Those calls record a metric and log the failure. The new StatusRuntimeException branch does neither. It also drops the original description and cause.

      As a result, FAILED_PRECONDITION, ALREADY_EXISTS, and UNAVAILABLE failures from GameLogicPublicationSourceReadService leave no trace on the Game Logic side. Operators cannot tell a missing retained terminal from a binding conflict or a storage outage. Sanitizing the description sent to the caller is correct. Keep the diagnostic server-side: log the code and the original status, and increment a counter.

      This branch also changes the RPC's error contract. Before this change, every failure was sent as an application ErrorDetail with onCompleted(). Now these status codes are sent as transport errors through onError. An unrelated StatusRuntimeException from the codec or another dependency, such as INTERNAL or UNKNOWN, would also be sent as a transport error. The previous code mapped those to the INTERNAL application error. The path instructions require "gRPC application-error handling" to match documented FireMUD invariants. Confirm two points:

      • design/architecture/microservices/game-logic-service/api-contracts.md documents transport-level statuses for this RPC.
      • GameLogicClient in game-design-service classifies each forwarded code correctly, with UNAVAILABLE as retryable and FAILED_PRECONDITION/ALREADY_EXISTS as terminal or pending as intended.

      🔍 Proposed observability fix

           } catch (StatusRuntimeException ex) {
             Status status = Status.fromThrowable(ex);
      +      logger.warn(
      +          "GetDraftDesignDigest retained publication source read failed: code={}",
      +          status.getCode(),
      +          ex);
      +      meterRegistry
      +          .counter("gamelogicGrpc.getDraftDesignDigest.sourceReadFailure",
      +              "code", status.getCode().name())
      +          .increment();
             responseObserver.onError(
                 Status.fromCode(status.getCode())
                     .withDescription(PUBLICATION_READ_FAILURE_DESCRIPTION)
                     .asRuntimeException());
      

      As per path instructions: "Flag changes that violate documented FireMUD invariants, especially gRPC application-error handling, ownership boundaries, and failure-mode expectations."

      • Accepted Preserve canonical sanitized non-OK transport; add bounded grpc.app_error code metric and server diagnostic, document RPC/client classification. Do not restore legacy application-error transport or log raw secrets.
  3. CLI Review 2 CompletedRuntime 2m 36s
    Found: 4 Accepted: 0/3/0 Routed: 0
    1. Use the required entry format for the new observations.Minor

      The new entries at Line 148 and Line 258 are single paragraphs. They do not have the Context / Observation / Expected pattern sub-bullets. The entry at Line 258 also has no backticks around its date (2026-10-15). The entries at Lines 200-210 use the correct structure.

      Convert both entries to the same structure as those entries:

      - `2026-10-16`: Check existing successor repairs before reworking a failed fixture
        - Context: ...
        - Observation: ...
        - Expected pattern: ...
      

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title - Context: where it appeared - Observation: what was surprising or wasteful - Expected pattern: what should happen instead".

      Also applies to: 258-258

      • Rejected Historical observation formatting repeats CLI1finding9. AGENTS and fileheader require append-only ordinary work; no authorized history rewrite/correctness defect. Preserve dates/facts, structure future entries.
    2. Do not report corrupt retained selections as UNAVAILABLE.Minor

      The final catch (RuntimeException unavailable) maps every non-status exception to UNAVAILABLE. That includes the IllegalStateException thrown for a corrupt retained selection. The unit test corruptOrUnavailableStorageReturnsNoEvidence asserts this mapping.

      UNAVAILABLE is the transient code that callers retry. The Game Logic contract in the same PR (api-contracts.md, Line 64) says that only explicit transient dependency failures are retried. It also says that semantic precondition failures "do not become transient retries". A corrupt immutable selection cannot recover through retry. Account and World callers would therefore retry it indefinitely.

      Map storage exceptions (org.jooq.exception.DataAccessException, Spring transient/resource failures) to UNAVAILABLE. Map decode or integrity failures to FAILED_PRECONDITION. Update the test so that it covers both cases.

      Proposed change

      -    } catch (RuntimeException unavailable) {
      +    } catch (org.jooq.exception.DataAccessException
      +        | org.springframework.dao.TransientDataAccessException unavailable) {
             observer.onError(
                 Status.UNAVAILABLE
                     .withDescription("Game Design selection storage unavailable")
                     .asRuntimeException());
             return;
      +    } catch (RuntimeException invalid) {
      +      observer.onError(
      +          Status.FAILED_PRECONDITION
      +              .withDescription("Selected Draft publication read denied or unavailable")
      +              .asRuntimeException());
      +      return;
           }
      
      • Accepted Catch-all RuntimeException maps corrupt retained selection IllegalState/IllegalArgument to transient UNAVAILABLE. Keep explicit storage failures unavailable and status sanitization; classify integrity/decode failure FAILED_PRECONDITION.
    3. Return a failure observation for local configuration denials instead of throwing.Minor

      requirePublicationReadStub() throws IllegalStateException in three cases: TLS is plaintext or not file-backed, workloadNamespace is missing or invalid, or the client is not initialized. requireOutsideSql() throws the same exception type. PublishGateServiceImpl.observeSelectedGameLogicParticipant does not catch these exceptions. They propagate into VersionPublishCommandServiceImpl.reconcileSelectedPublicationMechanicsLocal (Lines 269-284). That method sends every exception that PublicationFailureClassifier.isRetryableParticipantDependencyFailure does not classify as retryable to failDefinitively.

      Consequence: a deployment misconfiguration would mark the selected publication FAILED permanently. The design documents say that a definitive FAILED selection is not released. Other unavailable paths in the same gate return a PARTICIPANT_UNAVAILABLE or UNAVAILABLE observation instead: a missing receipt, a missing digest reader, or an invalid namespace in collectSelectedFullVersionParticipantDigests.

      Confirm that PublicationFailureClassifier treats these IllegalStateException cases as non-definitive. If it does not, map them to a failure DTO with a non-terminal code.

      Proposed change

      -    var response =
      -        requirePublicationReadStub()
      -            .withDeadlineAfter(CALL_DEADLINE_SECONDS, TimeUnit.SECONDS)
      -            .getDraftDesignDigest(request);
      +    GameLogicServiceGrpc.GameLogicServiceBlockingStub publicationStub;
      +    try {
      +      publicationStub = requirePublicationReadStub();
      +    } catch (IllegalStateException unavailable) {
      +      return failure(
      +          versionId,
      +          "PARTICIPANT_UNAVAILABLE",
      +          "Game Logic publication source read is not configured");
      +    }
      +    var response =
      +        publicationStub
      +            .withDeadlineAfter(CALL_DEADLINE_SECONDS, TimeUnit.SECONDS)
      +            .getDraftDesignDigest(request);
      
      • Accepted Receipt-backed local TLS/namespace/uninitialized stub IllegalStateException escapes collector and is definitive. Map only local requirePublicationReadStub configuration denial to PARTICIPANT_UNAVAILABLE; retain ambient-SQL/binding guards.
    4. Align the Game Logic adapter qualification status with the R45 composition record.Minor

      Line 9 says that "the standalone adapter and focused proof are unqualified". The R45 five-store composition runs this adapter through GameLogicGrpcService with GameLogicDraftDesignDigestServiceImpl over GameLogicPublicationSourceReadService (see SelectedFullOwnerPublicationPostgresIntegrationTest, lines 398-413). version-control.md Line 9 and the selected-full owner tracker both say that R45 qualifies that controlled composition. As a result, the two architecture documents give different qualification status for the same adapter.

      To fix this, state that the adapter is exercised in the R45 controlled owner composition. Keep the remaining denials and authority limits. Link to the tracker for the exact proof scope.

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

      • Accepted Actual R45 cross-service fixture composes GameLogicGrpcService with owner-backed digest reader; tracker/version-control record bounded proof. Correct stale unqualified wording, retain controlled-input/default-denied/activation limits.
  4. CLI Review 3 CompletedRuntime 5m 09s
    Found: 4 Accepted: 0/2/1 Routed: 0
    1. Centralize the selected release-schema predicate.Trivial

      This change adds the "selected release is v2 or v4" rule in five separate places:

      • This helper.
      • VersionPublishCommandServiceImpl.isSelectedReleaseBundle.
      • PublishedReleaseBundleDto, with string literals.
      • PublishedReleaseBundleRepository.insertNewBundle and verifySelectorSource, with string literals.
      • CompleteLaunchBindingServiceImpl.

      The copies already differ: some use the PublishedReleaseBundleContract constants, and others use the literals "v2"/"v4". A later schema addition can update one copy and miss another. Expose one public predicate, for example on the DTO or a shared contract type, and call it from every site.

      • Accepted Selected v2/v4 membership is duplicated across DTO, producer, repository and command/binding paths. One DTO predicate preserves exact membership and schema-specific checks while preventing drift; no schema broadening.
    2. Record proof status for every new physical recovery case.Minor

      This paragraph credits only "the one new physical PostgreSQL expiry/race case". AccountSelectedOwnerIntakeAuthorizationPostgresIntegrationTest adds three more physical invocations:

      • expiredPreliminaryRecoveryContinuesAcrossSameExpiryRowsByKeyset. This is the keyset-cursor behavior that runtime-and-data.md Line 11 describes.
      • expiredPreliminaryRecoveryAcceptsRetainedExpiredIssuersAndKeepsFinalAuthorization, with the REVOKING and REVOKED parameters. These cover the REVOKING/REVOKED eligibility claim on Line 13.

      The tracker gives no executed or unexecuted status for these cases. Line 13 claims behavior that only these cases cover. State their attribution, or mark them as not yet executed.

      As per coding guidelines: "Keep its status, implementation record, validation, gaps … aligned when a domain boundary changes".

      • Accepted Saved exact Account XML proves keyset case plus both REVOKING/REVOKED parameters among12passing native cases. Tracker omits that separate attribution. Record source-qualified proof and preserve failed aggregate/runtime limits.
    3. Use the required entry format for these two observations.Minor

      The file defines one entry format: a backticked YYYY-MM-DD date, a short title, and Context, Observation, and Expected pattern sub-bullets. The 2026-10-18 entries in this change follow that format. These two entries do not:

      • Line 148 is one long paragraph. It has no title and no sub-bullets.
      • Line 258 uses an unquoted date (- 2026-10-15:) and puts all content in one paragraph.

      Split each entry into the canonical sub-bullets. Keep the outcome sentences, such as "R44 and the fresh R45 JVM agree", as an Outcome sub-bullet, as in the endpoint-refusal entry.

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title - Context: … - Observation: … - Expected pattern: …".

      Also applies to: 258-258

      • Rejected Repeats historical observation-format requests from CLI1/CLI2. AGENTS and fileheader make ordinary work append-only; no authorized history rewrite or correctness defect. Preserve existing facts and format future entries.
    4. Increase the finalization latch timeout above the issuer-expiry wait.Minor

      In expiredRecoveryUsesDatabaseCutoffAndPreservesFinalizedOwnerUntilExactSettlement, the finalization thread starts its 30-second awaitFinalizationCommit wait shortly after issuance. The issuer expires about 30 seconds after issuance, because the service clock offset is -270 seconds and the lifetime is 300 seconds. The main thread releases the latch only after three steps: awaitIssuerExpiry, which allows up to 45 seconds; the recovery submission; and awaitRecoverySourceLockWait.

      The safety margin is therefore only the setup time between issuance and the latch wait, which is about 1–3 seconds. On a fast host or a slow CI host, the latch can time out first. The thread then throws "Finalization commit was not released". The root-cause assertion on Line 437 fails with that message instead of the expected creator-evidence message, so the test fails intermittently.

      Proposed fix

         private static void awaitFinalizationCommit(CountDownLatch latch) {
           try {
      -      if (!latch.await(30, TimeUnit.SECONDS)) {
      +      if (!latch.await(90, TimeUnit.SECONDS)) {
               throw new IllegalStateException("Finalization commit was not released");
             }
      
      • Accepted Latch30s races issuer expiry about30s plus expiry/lock waits. Increase only the test latch bound to90s, preserving immutable DB cutoff, source-lock exclusion and all negative assertions.
  5. CLI Review 4 CompletedRuntime 2m 30s
    Found: 3 Accepted: 0/0/1 Routed: 0
    1. Use the required date and field structure for this entry.Minor

      This entry writes the date as 2026-10-15 with no backticks, and the whole entry is one paragraph. The required format puts the date in backticks and splits the entry into Context, Observation and Expected pattern sub-bullets. Restructure the entry. Keep the R44/R45 result as an outcome line.

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title — Context — Observation — Expected pattern".

      • Rejected Historical R41/R42 formatting repeats the same append-only conflict. Preserve the accurate retained observation and its R44/R45 outcome; no useful semantic correction or permission to rewrite history.
    2. Use the required observation entry format.Minor

      The file defines one entry format: a "YYYY-MM-DD: short title" bullet with Context, Observation and Expected pattern sub-bullets. This entry is one long paragraph. It has no separate context, observation or expected-pattern bullets. The 2026-10-18 entries at Lines 200-210 use the correct structure. Split this entry into the same shape so readers can scan it.

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title — Context: where it appeared — Observation: what was surprising or wasteful — Expected pattern: what should happen instead".

      📝 Proposed structure

      -- `2026-10-16`: Check existing successor repairs before reworking a failed fixture. While fixing ...
      +- `2026-10-16`: Check existing successor repairs before reworking a failed fixture
      +  - Context: three #3251 publication transaction failures; two focused local gates failed before the already-reconciled #2967 schema-4 fixture repair was noticed.
      +  - Observation: the first attempts corrected stale collector stubs but missed the dependent fixture profile.
      +  - Expected pattern: compare the bounded failing test and its called helpers against known receiving successors before changing or rerunning it; reuse the complete canonical repair without removing assertions.
      +  - Outcome: the exact four-path backport at `4265a81f008d0dbd343cd9adf6413bd3ac5c8904` passed 66 unit and 10 native cases; the failed attempts retain their original outcomes and establish no general infrastructure cause.
      
      • Rejected Historical observation formatting repeats earlier rejected findings. AGENTS requires append-only ordinary observations, no silent historical rewrite; content is accurate and this adds no correctness or authority improvement.
    3. Keep the World schema unchanged in the changed-digest case.Trivial

      This test now builds selected-full participants from selectorEvidence(). That evidence uses World digest schema 4. The changed-world case at the unchanged line 208 still sets digestSchemaVersion to the literal 3. The changed participant now differs in two ways: the content digest and the schema. The IllegalArgumentException can therefore come from the schema-vector check. The test does not prove that a changed World digest alone is rejected.

      Keep the original World schema. Change only contentDigest.

      💚 Proposed test fix

               new PublishParticipantDigestDto(
                   world.participantKey(),
                   world.scopeValue(),
                   null,
                   world.appliedCommitId(),
                   "e".repeat(64),
      -            3,
      +            world.digestSchemaVersion(),
                   null,
                   null,
                   null));
      
      • Accepted The World evidence is schema4; hardcoded3 changes schema as well as digest, allowing a false-positive refusal. Preserve world.digestSchemaVersion so the existing assertion isolates changed content digest.
  6. CLI Review 5 CompletedRuntime 3m 34s
    Found: 3 Accepted: 0/0/1 Routed: 0
    1. Plan the index and stored-column support for the expired-recovery scan before it is scheduled.Trivial

      Reservation and abort rows are immutable and retained, so the table only grows. This query runs the frame functions on every reservation/issuer row and anti-joins against authorizations and aborts. Only then does it filter, order by (issuer.expires_at_epoch_second, reservation.operation_id) across the join, and apply LIMIT. No index can serve that ordering, so the cost of each page grows with all retained history. Before a scheduler is added, consider two changes:

      • Persist the target namespace as a column.
      • Add an index that supports the keyset predicate on expiry and operation ID, for example a denormalized expiry column on the reservation row.
      • Accepted Useful operational proof gap:128 returned candidates does not qualify retained-history scan/frame-decode/sort cost. Record missing cost/query-plan/index qualification and reconsideration on authorized production scheduling; no speculative schema/index/scheduler change.
    2. Confirm that transient selected-digest failures stay retryable and do not become a definitive FAILED.Major

      This block does not throw. It converts every reader failure into a failed observation whose error code is the gRPC code name. For example, the code is UNAVAILABLE when SelectedDraftPublicationDigestReadService maps a database or transaction failure, and PARTICIPANT_UNAVAILABLE when the reader is not configured. observeSelectedGameLogicParticipant does the same for receipt read failures (Lines 409–416).

      collectSelectedFullVersionParticipantDigests then returns normally inside VersionPublishCommandServiceImpl (Lines 269–276). The first exception is the PublishGateFailureException(PARTICIPANT_UNAVAILABLE, …, errorCode) from assertSelectedGatePassed at Line 286. That exception reaches isRetryableParticipantDependencyFailure(ex). If that classifier does not treat the UNAVAILABLE / PARTICIPANT_UNAVAILABLE error code as retryable, failDefinitively seals the attempt as FAILED. A short Game Design database outage or a missing namespace configuration would then end the selected publication permanently. The design docs say a FAILED selection is retained and is not reopened.

      Verify how PublicationFailureClassifier.isRetryableParticipantDependencyFailure handles a PublishGateFailureException that carries these error codes. If it does not retry them, take one of these actions:

      • Rethrow UNAVAILABLE and DEADLINE_EXCEEDED from the reader as StatusRuntimeException.
      • Extend the classifier to treat those codes as retryable.

      The canonical Game Logic contract states that only explicit transient failures retry. The same distinction must hold here.

      • Rejected Already handled: PublicationFailureClassifier explicitly retries gate codes UNAVAILABLE/DEADLINE_EXCEEDED/PARTICIPANT_UNAVAILABLE. Real-gate command regression asserts these observations retain PENDING/no definitive failure or effects; qualified in prior focused unit gates.
    3. Use the required entry format for the two new observations.Minor

      The file defines one entry format: a backticked date, a short title, then Context, Observation, and Expected pattern sub-bullets. The entry at Line 148 is a single paragraph. The entry at Line 258 is also a single paragraph, and its date is not in backticks (2026-10-15). The new entries at Lines 200–210 follow the format correctly. Reformat these two entries the same way. An agent that scans for the reusable expected pattern cannot find it when it is buried in a paragraph.

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title — Context / Observation / Expected pattern".

      Also applies to: 258-258

      • Rejected Historical observation-format repeat conflicts with AGENTS append-only ordinary upkeep; both accurate retained lessons were already adjudicated. No useful correctness/authority change or historical rewrite permission.
  7. CLI Review 6 CompletedRuntime 3m 54s
    Found: 3 Accepted: 1/0/0 Routed: 0
    1. Use the required entry format for the two new single-paragraph observations.Minor

      The file defines one entry format: a backticked YYYY-MM-DD date with a short title, followed by Context, Observation, and Expected pattern sub-bullets. The entries on Line 200 and Line 207 use this format. The entries on Line 148 and Line 258 are single paragraphs. The entry on Line 258 also uses an unquoted date and has no title.

      The entry on Line 258 also describes a fixture correction that was completed in the same work. Keep only the reusable lesson ("normalize inner payloads before golden binding") in the Expected pattern field. Put the R44/R45 counts in the review record instead.

      Proposed restructure

      -- `2026-10-16`: Check existing successor repairs before reworking a failed fixture. While fixing ...
      +- `2026-10-16`: Check existing successor repairs before reworking a failed fixture
      +  - Context: three #3251 publication transaction failures; the reconciled #2967 tree already held the selected-full schema-4 fixture repair.
      +  - Observation: two focused gates failed before the existing repair was noticed; the first attempts missed the dependent fixture profile.
      +  - Expected pattern: compare the failing test and its helpers against known receiving successors before changing or rerunning it; reuse the complete canonical repair without removing assertions.
      
      -- 2026-10-15: Selected-full digest fixture R41/R42 produced different fixed-golden values ...
      +- `2026-10-15`: Normalize inner fixture payloads before binding golden digests
      +  - Context: selected-full digest fixture R41/R42.
      +  - Observation: `Map.of` payloads serialized into strings inside a canonical binding produced unstable golden values; outer canonicalization does not normalize string contents.
      +  - Expected pattern: apply RFC 8785 normalization to each inner payload before binding creation; do not update a golden from one failing run.
      

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title - Context ... - Observation ... - Expected pattern ..." and "Do not use this file as a bug log for ordinary fixes that were completed in the same piece of work."

      Also applies to: 258-258

      • Rejected Historical observation-format/removal repeat conflicts with AGENTS append-only ordinary upkeep. Preserve accurate retained lessons/outcomes; no semantic correction or authorization to rewrite/delete history.
    2. Verify that transient selected-reader failures stay retryable after conversion to failed observations.Major

      The selected path changes transient storage failures into failed participant observations. It does not propagate them as exceptions:

      • At Lines 181-191, a StatusRuntimeException from SelectedDraftPublicationDigestReadService.read becomes failureCode = "UNAVAILABLE" (or DEADLINE_EXCEEDED). That reader maps DataAccessException, CannotCreateTransactionException, and similar exceptions to UNAVAILABLE. Any other runtime exception becomes "FAILED_PRECONDITION".
      • At Lines 409-416, a jOOQ DataAccessException from the receipt read becomes a failed observation with code "UNAVAILABLE".

      collectSelectedFullVersionParticipantDigests then returns normally. In VersionPublishCommandServiceImpl.reconcileSelectedPublicationMechanicsLocal, assertSelectedGatePassed raises PublishGateFailureException(PARTICIPANT_UNAVAILABLE, ..., errorCode). The flow calls failDefinitively unless PublicationFailureClassifier.isRetryableParticipantDependencyFailure recognizes that exception and its errorCode.

      Impact: a short GDS database outage during the digest read could seal the selected publication as FAILED. The architecture states that the first selection is retained and its reservation is not released after a definitive FAILED/NO_PUBLICATION. The failure therefore cannot be recovered on the same selection. The Game Logic transport path propagates UNAVAILABLE as an exception, so the classifier receives a different shape for the same transient class.

      Confirm that the classifier treats a PublishGateFailureException with PARTICIPANT_UNAVAILABLE and errorCode UNAVAILABLE/DEADLINE_EXCEEDED as retryable. If it does not, rethrow transient StatusRuntimeExceptions, or classify them explicitly, so that they reach the pendingReconciliation branch.

      Also applies to: 404-416

      • Rejected Same already-fixed classifier hypothesis as CLI5: explicit gate codes UNAVAILABLE/DEADLINE_EXCEEDED/PARTICIPANT_UNAVAILABLE are retryable. Existing real-gate command regression proves PENDING/no definitive failure or effects; no production patch needed.
    3. Check that the real selected gate accepts retained v2 selector vectors on replay and reconciliation.Major

      selectedSucceededReplayFixture builds its participants with AuthoredWorldReleaseAttestationEvidence.SELECTOR_SCHEMA_VERSION and uses a "v2" bundle. Line 445 now verifies that replay calls assertSelectedGatePassed with that vector. Line 2614 makes the same assertion for the retained v2 path in privateMechanicsReconcilesPendingAttemptThroughCurrentGates.

      The PublishGateServiceImplTest tests only show the real assertSelectedGatePassed accepting the 4/3/1/6/2 vector:

      • closureQualifiedSelectedGateRequiresWorldDigestSchemaFour requires World schema 4.
      • selectedFullGateRejectsEveryMixedParticipantProfile rejects any vector that differs from 4/3/1/6/2.

      Suppose the real gate rejects a complete v2 selector vector, for example World schema 3. Then every retained v2 succeeded replay and every v2 pending reconciliation stays in PendingReconciliationException permanently. These tests cannot detect that failure because publishGateService is a mock.

      The opposite combination has the same gap. At line 1626, pendingAttemptStillReconcilesCompleteReadbackThroughCurrentGates checks the legacy assertGatePassed with the new 4/3/1/6/2 participantDigests(). fullVersionGateRejectsObsoleteAndUnknownWorldSchemas shows that the real legacy gate rejects World schema 4.

      Confirm these two points:

      • Production assertSelectedGatePassed accepts a complete v2 selector vector for retained v2 bundles.
      • The v1-bundle readback path never reaches the legacy gate with a selected-full vector.

      Add one test that uses a real PublishGateServiceImpl with a retained v2 vector. Add one that uses a real PublishGateServiceImpl with a v1 bundle.

      • Accepted Useful fixture/proof correction: v1 positive readback incorrectly pairs4/3/1/6/2 with legacy gate3/1/1/5/1. Correct fixture and route three existing v1/v2 command tests through real gate assertions. Real selected gate already supports World3/v2; no production widening.
  8. Hosted Review 2 CompletedRuntime 26m 29s
    Found: 4 Accepted: 4 Routed: 0
    1. Restructure the 2026-10-16 and 2026-10-15 entries to use the required entry format.Minor

      The file defines this entry format: "- YYYY-MM-DD: short title", followed by Context, Observation, and Expected pattern sub-bullets. Two entries do not follow it:

      • Line 148 is one long paragraph with no sub-bullets.
      • Line 258 is one long paragraph with no sub-bullets. Its date, 2026-10-15, is also not in backticks.

      The new entries at Lines 200-210 already use the structured format. Apply the same structure to Lines 148 and 258. This keeps the inbox easy to scan and keeps it consistent for Overseer stewardship and health-check passes. Keep the existing semantics and outcomes unchanged. This edit is a format restructure only; it does not rewrite the history.

      📝 Proposed restructure for Line 258

      -- 2026-10-15: Selected-full digest fixture R41/R42 produced different fixed-golden values from otherwise unchanged source. The fixture serialized ...
      +- `2026-10-15`: Normalize nested fixture payloads before computing a digest golden
      +  - Context: selected-full digest fixture runs R41/R42 produced different fixed-golden values from otherwise unchanged source.
      +  - Observation: the fixture serialized `Map.of` payloads into strings inside a canonical binding. Outer canonicalization preserves string contents and does not normalize the inner map order. A golden updated from one failing run did not establish a stable vector.
      +  - Expected pattern: apply explicit RFC 8785 normalization to each fixture payload before binding creation. Retain equality/mutation checks. Verify the normalized vector across fresh JVMs before claiming deterministic proof.
      +  - Outcome: no production digest or retained bytes changed. R44 and the fresh R45 JVM agree on the normalized vector; all 686 GDS unit cases pass in R45.
      

      As per coding guidelines: "Entry format: - YYYY-MM-DD: short title - Context: where it appeared - Observation: what was surprising or wasteful - Expected pattern: what should happen instead".

      Also applies to: 258-258

      • Accepted Format-only correction of two entries introduced by this unmerged PR; retain every historical sentence, outcome and source attribution. Distinct from #2967 request to consolidate/delete outcomes, which remains rejected.
    2. Make server cleanup independent so a failure does not hide the test result.Minor

      The finally block calls stop(entityServer), stop(automationServer) and stop(gameLogicServer) one after another. Each stop call asserts awaitTermination(5, SECONDS). If the first assertion fails, the other two servers are never shut down. The AssertionError from finally also replaces any exception from the test body. The test report then shows a teardown timeout instead of the actual composition failure. This is the same kind of teardown-attribution problem that the tracker already records for this test.

      Shut down all servers first. Then await each server and collect failures, so that cleanup errors are added as suppressed exceptions on the primary failure.

      ♻️ Proposed fix

           } finally {
      -      stop(entityServer);
      -      stop(automationServer);
      -      stop(gameLogicServer);
      +      stopAll(entityServer, automationServer, gameLogicServer);
           }
      
      -  private static void stop(Server server) throws InterruptedException {
      -    if (server == null) return;
      -    server.shutdownNow();
      -    assertThat(server.awaitTermination(5, TimeUnit.SECONDS)).isTrue();
      -  }
      +  private static void stopAll(Server... servers) throws InterruptedException {
      +    for (Server server : servers) if (server != null) server.shutdownNow();
      +    List<String> stuck = new ArrayList<>();
      +    for (Server server : servers) {
      +      if (server != null && !server.awaitTermination(5, TimeUnit.SECONDS)) {
      +        stuck.add(String.valueOf(server.getPort()));
      +      }
      +    }
      +    assertThat(stuck).as("servers that did not terminate").isEmpty();
      +  }
      

      Also applies to: 1138-1142

      • Accepted Verified first cleanup timeout skips later shutdown and masks body failure. Shut all servers before independent bounded waits; suppress failures on primary and restore interrupts, with focused failure-path proof.
    3. CodeRabbit summary-only outside-diff finding 1 of 1 (aggregate; no individual detail)

      summary-only aggregate; provider supplied no individual detail

      • Accepted Opening status and AR-1.5 row contradict already-recorded controlled five-store/v4/World4 proof. Align status, anchors and gap text while preserving retained v2/World3, unregistered/controlled and public-denial limits.
    4. Catch Spring-translated database failures as retryable receipt outages.Major

      The Spring-managed DSLContext uses Spring Boot 4.1.1’s default jOOQ exception translator. A translatable SQL failure from readForPublication can escape as a Spring DataAccessException, which the current catch does not handle. VersionPublishCommandServiceImpl then calls failDefinitively, marks the attempt FAILED, and seals it instead of preserving it for retry.

      -    } catch (org.jooq.exception.DataAccessException unavailable) {
      +    } catch (org.springframework.dao.DataAccessException
      +        | org.jooq.exception.DataAccessException unavailable) {
      
      • Accepted Verified selected receipt read handles only jOOQ failures. Catch Spring-translated DataAccessException at same read, preserving retryable UNAVAILABLE; focused public gate assertion covers both families.
  9. Hosted Review 3 CompletedRuntime 26m 44s
    Found: 3 Accepted: 3 Routed: 0
    1. Check for the exact vector-rejection message in the mixed-schema loop.Trivial

      The loop checks only the exception type, IllegalArgumentException. All five mixed vectors should fail in requireFreshSelectedFullParticipantVector, and that failure has a specific message. With the current check, the test also passes if an unrelated validation fails first, such as the World digest/schema binding or a workflow check. This is the same issue that was fixed in the composition test, which now checks for the exact "Selected-full release requires the exact 4/3/1/6/2" text.

      ♻️ Proposed change

                 .as("mixed profile for %s", participant.participantKey())
      -          .isInstanceOf(IllegalArgumentException.class);
      +          .isInstanceOf(IllegalArgumentException.class)
      +          .hasMessageContaining("Selected-full release requires the exact 4/3/1/6/2");
      
      • Accepted Valid test gap: exception-only mixed-profile loop can pass for unrelated rejection. Require existing exact selected-full 4/3/1/6/2 refusal message while preserving all five vectors and no-save assertion.
    2. CodeRabbit summary-only outside-diff finding 1 of 1 (aggregate; no individual detail)

      summary-only aggregate; provider supplied no individual detail

      • Accepted Verified two stale tracker paragraphs: configured StartSession supports v2/v4 and controlled selected-full uses World4/retained GameLogic receipts. Distinguish retained v2/World3 from controlled current support, preserving public denial and genuine-authority limits.
    3. Join the retained receipt to the frozen Gameplay source before accepting Game Logic evidence.Major

      observeSelectedGameLogicParticipant passes the retained receipt directly to GameLogicClient, and the selected gate checks only participant metadata and commit IDs. It does not compare the receipt source bytes with the frozen Gameplay snapshot. Reject the participant when SelectedGameplayRuleSourceJoin.matches is false before persisting or accepting the selected publication evidence.

      • Accepted Verified retained receipt is sent to GameLogicClient without frozen/synchronized canonical source join. Reuse existing read-only selected owner snapshot and SelectedGameplayRuleSourceJoin before participant acceptance; no producer or authority expansion.
  10. Hosted Review 4 CompletedRuntime 6m 54s
    Found: 2 Accepted: 0 Routed: 0
    1. Remove the duplicate branch in requireSupportedSchemaForLaunchDescriptor.Trivial

      The selected-schema branch and the fallback both call requireSupportedSchemaForLaunch(bundle). The isSelectedAttestationSchema check therefore has no effect. A reader can assume that descriptor resolution handles selected schemas differently, but it does not. Use a single delegation.

      ♻️ Proposed refactor

      --- "a/services/game-design-service/src/main/java/net/firedevops/firemud/gamedesign/service/impl/PublishedReleaseBundleContract.java"
      +++ "b/services/game-design-service/src/main/java/net/firedevops/firemud/gamedesign/service/impl/PublishedReleaseBundleContract.java"
      @@ -237,13 +237,9 @@
         /**
          * Descriptor resolution only; descriptor/v1 remains separate from the complete release carrier.
          */
         static void requireSupportedSchemaForLaunchDescriptor(PublishedReleaseBundleDto bundle) {
      -    if (PublishedReleaseBundleDto.isSelectedAttestationSchema(bundle.attestationSchemaVersion())) {
      -      requireSupportedSchemaForLaunch(bundle);
      -      return;
      -    }
           requireSupportedSchemaForLaunch(bundle);
         }
       
         static void requireExactRepairMatch(
             PublishedReleaseBundleDto bundle, ExportedAssetManifest exportedManifest) {
      
    2. Assert the specific selector-schema rejection reason for the fresh vector check.Trivial

      This assertion passes for any IllegalArgumentException. requireFreshSelectedFullParticipantVector has three rejection messages:

      • "Selected-full participant scope is invalid"
      • "Selected-full release requires all five exact participants"
      • "Selected-full release requires the exact 4/3/1/6/2 successful participant vector"

      The test intends to prove that the gate rejects selector-schema digest versions. If the fixture changes, the scope or count guard can throw first. In that case, the test still passes but does not prove the schema guard. The mixed case above already asserts the exact message. Apply the same check here.

      💚 Proposed assertion

      --- "a/services/game-design-service/src/test/java/unit/net/firedevops/firemud/gamedesign/service/impl/PublishedReleaseBundleContractTest.java"
      +++ "b/services/game-design-service/src/test/java/unit/net/firedevops/firemud/gamedesign/service/impl/PublishedReleaseBundleContractTest.java"
      @@ -67,16 +67,20 @@
           assertSelectorRepairRejected(
               bundle("v4", selector, mixed),
               "Selected-full release requires all exact successful ordered release participants");
      -    assertThrows(
      -        IllegalArgumentException.class,
      -        () ->
      -            PublishedReleaseBundleContract.requireFreshSelectedFullParticipantVector(
      -                VERSION_ID,
      -                selector.request().appliedCommitId(),
      -                PublishedWorldSelectorFixtures.participants(
      -                    VERSION_ID,
      -                    selector,
      -                    AuthoredWorldReleaseAttestationEvidence.SELECTOR_SCHEMA_VERSION)));
      +    IllegalArgumentException selectorVector =
      +        assertThrows(
      +            IllegalArgumentException.class,
      +            () ->
      +                PublishedReleaseBundleContract.requireFreshSelectedFullParticipantVector(
      +                    VERSION_ID,
      +                    selector.request().appliedCommitId(),
      +                    PublishedWorldSelectorFixtures.participants(
      +                        VERSION_ID,
      +                        selector,
      +                        AuthoredWorldReleaseAttestationEvidence.SELECTOR_SCHEMA_VERSION)));
      +    assertEquals(
      +        "Selected-full release requires the exact 4/3/1/6/2 successful participant vector",
      +        selectorVector.getMessage());
         }
       
         @Test
      

Routed Findings

0 Open1 Accepted/Fixed0 Rejected
  1. Route 1 · PR #3248 → PR #3251 Accepted/FixedMajorGive every reservation a terminal state other than an explicit abort.

    account_selected_owner_intake_source_read_is_pending treats a reservation as pending until a row exists in account_selected_owner_intake_source_read_aborts. The reservation has no completion, finalization, or expiry path.

    V1007 uses this predicate in the source-writer, source-change completion, and hosted-terms dispatch guards. The Java authorization paths also depend on it. A successful read therefore continues to block the affected Account source vector until Game Design calls abortSourceRead.

    If Game Design crashes, loses its state, or does not send the abort, source changes remain blocked without a bound. Issuer credential expiry does not release the reservation because readSourceScope rejects expired reads, while account_selected_owner_intake_source_read_is_pending does not check expiry.

    Before registering these endpoints, add an Account-owned completion or expiry terminal and a recovery path. Preserve the reservation until the Account-owned recovery logic has sufficient evidence to release it.

    Outcome: Published ae830dbf96cdce32394c3d3fa42d828c2fd80888: bounded original-scope expiry recovery; finalized owners excluded.8units cda9+actual expiry/late-lock PG case7ff2+checks PASS; own code unchanged. Fresh five-store case ae830 PASS,5DockerIDsabsent; docs79914de. Internal/unregistered; no activation.

    Earlier routing and proof

    Earlier decisions

    • Accepted Own selected-recipient finalization/terminal lifecycle here in V1008–1010. Implement and prove Account-owned abandoned-preliminary recovery without releasing finalized reservations from credential expiry or missing owner terminal evidence.

Unlinked items

no items unlinked