PR #3251 review history
Unit 1A · identity, Account and public JOIN
Review rounds
Three-number pills mean: found (raw) / accepted here (useful) / routed
Recorded review history
Reviews and findings
- Hosted Review 1 CompletedRuntime 12m 03sFound: 10 Accepted: 2/4/4 Routed: 0
- Map Spring transaction failures to
UNAVAILABLE.MajorDataAccessExceptionisorg.jooq.exception.DataAccessException, butsnapshotis a SpringTransactionTemplate. Transaction acquisition and rollback failures can bypass the jOOQ catch and reach the genericRuntimeExceptioncatch, which reportsFAILED_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
failDefinitivelybecause the classifier does not treatFAILED_PRECONDITIONas 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.
- Return retained-read failures as non-OK gRPC statuses.Minor
When the retained read throws
FAILED_PRECONDITIONorUNAVAILABLE,GetDraftDesignDigestcannot produce a digest. The current catch puts that status inErrorDetailand completes the RPC with transportOK, which violates the documented gRPC contract.Use the same bounded code and description in
onError.GameLogicClientalready preserves embedded error codes, andUNAVAILABLEremains 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.
- 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 throughassertSelectedGatePassed. That selected gate is the oneVersionPublishCommandServiceImpluses.selectedFullVersionGateKeepsMissingReceiptPendingAndNeverUsesLegacyReadalready 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.
- Separate the test-result counts on Line 148.Minor
The text
passed66 unit and10 native casesomits spaces. Writepassed 66 unit and 10 native cases.- Accepted Verified missing spaces in existing dated observation; exact wording correction only, preserve prior record and proof scope.
- Recover reservations after issuance revocation.Major
account_control_ui_issuance_operations.statuscan transition fromCOMMITTEDtoREVOKINGand thenREVOKED. Therefore, the recovery query andabortExpiredPreliminarySourceReadcan 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.
- 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
awaitIssuerExpirydeadline 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.
- The request-independence check does not test request independence.Trivial
computetakes no publication request.firstRequestandretryRequestare never passed to it.first,replay, andotherRequestcome from three identical calls, soassertThat(first).isEqualTo(otherRequest)repeats the determinism check. Line 39 tests onlyPublicationDigestRequestBinding. Remove the unused request objects and rename the test to describe determinism. Alternatively, cover request exclusion atSelectedDraftPublicationDigestReadService: two differentpublishRequestIdvalues over the same sources must yield the samecontentDigest.- Accepted Unused request objects never enter compute; remove misleading identity-independent claim and redundant compute/assertion, retaining deterministic digest/source-vector proof.
- Stop one failing candidate from blocking every later recovery page.Minor
abortExpiredPreliminarySourceReadthrows in some cases:lockReservedSourcescannot find a source-lock row.requireReservationdetects 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.
- Assert the specific nil-identity rejection reason.Trivial
This assertion passes on any
DataAccessException. The nilcanonical_version_idcase should fail onchk_version_canonical_identity_shape. In V35.1, the BEFORE INSERT trigger accepts this row: every field is non-null and theownersource 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.
- Assert the specific rejection, not any
RuntimeException.TrivialThe 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:
PublishGateFailureExceptionwithUNSUPPORTED_DIGEST_SCHEMAfor the gate.IllegalArgumentExceptionwith 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.
- CLI Review 1 CompletedRuntime 3m 12sFound: 9 Accepted: 1/3/4 Routed: 0
- Make the test prove its name: a later valid row must still be decoded.Trivial
Both mocked rows fail.
firstreturns empty bytes andlaterthrows. The assertionisEmpty()therefore proves only that invalid rows are skipped. It does not prove that a valid row after an invalid one is returned.Make
latera 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 toexpiredRecoverySkipsEveryInvalidRow.- 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.
- 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 attemptFAILEDbefore staging, the tests still pass. Assertsnapshot.failureCode(), and if possible the failure message, so each test is tied to the participant-schema rejection. Apply the same change tofreshSelectedPublishRejectsLegacyOwnerVectorBeforeGateOrAssetEffectsat 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.
- This test repeats the producer test and does not exercise
StartSessionTemplateAssociationReadService.TrivialLines 55-61 make the same five assertions on
StartSessionLaunchDescriptorProducer.isSelectedReleaseBundleSchemaasStartSessionLaunchDescriptorProducerTestLines 71-77. The nameconfiguredReleaseSelectionRetainsV2AndAcceptsOnlyFullV4suggests 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 av3bundle 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.
- 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
nullappliedCommitIdand anullschema.assertSelectedCommit(Line 286) then throwsAPPLIED_COMMIT_MISMATCH. The newrequireFreshSelectedFullParticipantVectorthrowsIllegalArgumentException. Both run beforeassertSelectedGatePassed, which would reportPARTICIPANT_UNAVAILABLEwith the originalerrorCode. IfPublicationFailureClassifier.isRetryableParticipantDependencyFailuredoes not classify those two exceptions as retryable,failDefinitivelyseals the attempt asFAILED. 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_MISMATCHand the vectorIllegalArgumentExceptionin 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.
- 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 appliesLIMIT ?before Java validation. Some rows failrequireReservationorfromStoredand are only logged. Those rows stay unaborted and match the query again on the next page. Rows that fail every time inabortExpiredPreliminarySourceReadbehave the same way. One example is the "Original preliminary source lock is unavailable" failure.Consequence: if the first
limiteligible 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.
- 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.
- Move the
selectorEvidence(int digestSchemaVersion)helper intoPublishedWorldSelectorFixtures.TrivialThis PR adds the same request-rebuild helper three times:
- Here, at Lines 1038-1062.
- In
PublishedReleaseBundleContractTestat Lines 339-363. - In
PublishedReleaseBundleServiceImplTestat Lines 337-370.
Each copy lists all 13 positional
WorldPublishedStartLocationEvidence.Requestarguments. If that record gains or reorders a field, all three copies must change in the same way. Put one helper, such asPublishedWorldSelectorFixtures.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.
- 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 byContext,Observation, andExpected patternsub-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
Outcomesub-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.
- Log and count the source-read status before you replace its description.Minor
The other branches in this handler call
GrpcAppErrors.error(...)orGrpcAppErrors.internal(...). Those calls record a metric and log the failure. The newStatusRuntimeExceptionbranch does neither. It also drops the original description and cause.As a result,
FAILED_PRECONDITION,ALREADY_EXISTS, andUNAVAILABLEfailures fromGameLogicPublicationSourceReadServiceleave 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
ErrorDetailwithonCompleted(). Now these status codes are sent as transport errors throughonError. An unrelatedStatusRuntimeExceptionfrom the codec or another dependency, such asINTERNALorUNKNOWN, would also be sent as a transport error. The previous code mapped those to theINTERNALapplication 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.mddocuments transport-level statuses for this RPC.GameLogicClientin game-design-service classifies each forwarded code correctly, withUNAVAILABLEas retryable andFAILED_PRECONDITION/ALREADY_EXISTSas 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.
- CLI Review 2 CompletedRuntime 2m 36sFound: 4 Accepted: 0/3/0 Routed: 0
- 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 patternsub-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.
- Do not report corrupt retained selections as
UNAVAILABLE.MinorThe final
catch (RuntimeException unavailable)maps every non-status exception toUNAVAILABLE. That includes theIllegalStateExceptionthrown for a corrupt retained selection. The unit testcorruptOrUnavailableStorageReturnsNoEvidenceasserts this mapping.UNAVAILABLEis 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) toUNAVAILABLE. Map decode or integrity failures toFAILED_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.
- Return a failure observation for local configuration denials instead of throwing.Minor
requirePublicationReadStub()throwsIllegalStateExceptionin three cases: TLS is plaintext or not file-backed,workloadNamespaceis missing or invalid, or the client is not initialized.requireOutsideSql()throws the same exception type.PublishGateServiceImpl.observeSelectedGameLogicParticipantdoes not catch these exceptions. They propagate intoVersionPublishCommandServiceImpl.reconcileSelectedPublicationMechanicsLocal(Lines 269-284). That method sends every exception thatPublicationFailureClassifier.isRetryableParticipantDependencyFailuredoes not classify as retryable tofailDefinitively.Consequence: a deployment misconfiguration would mark the selected publication
FAILEDpermanently. The design documents say that a definitiveFAILEDselection is not released. Other unavailable paths in the same gate return aPARTICIPANT_UNAVAILABLEorUNAVAILABLEobservation instead: a missing receipt, a missing digest reader, or an invalid namespace incollectSelectedFullVersionParticipantDigests.Confirm that
PublicationFailureClassifiertreats theseIllegalStateExceptioncases 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.
- 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
GameLogicGrpcServicewithGameLogicDraftDesignDigestServiceImploverGameLogicPublicationSourceReadService(seeSelectedFullOwnerPublicationPostgresIntegrationTest, lines 398-413).version-control.mdLine 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.
- CLI Review 3 CompletedRuntime 5m 09sFound: 4 Accepted: 0/2/1 Routed: 0
- Centralize the selected release-schema predicate.Trivial
This change adds the "selected release is
v2orv4" rule in five separate places:- This helper.
VersionPublishCommandServiceImpl.isSelectedReleaseBundle.PublishedReleaseBundleDto, with string literals.PublishedReleaseBundleRepository.insertNewBundleandverifySelectorSource, with string literals.CompleteLaunchBindingServiceImpl.
The copies already differ: some use the
PublishedReleaseBundleContractconstants, 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.
- Record proof status for every new physical recovery case.Minor
This paragraph credits only "the one new physical PostgreSQL expiry/race case".
AccountSelectedOwnerIntakeAuthorizationPostgresIntegrationTestadds three more physical invocations:expiredPreliminaryRecoveryContinuesAcrossSameExpiryRowsByKeyset. This is the keyset-cursor behavior thatruntime-and-data.mdLine 11 describes.expiredPreliminaryRecoveryAcceptsRetainedExpiredIssuersAndKeepsFinalAuthorization, with theREVOKINGandREVOKEDparameters. These cover theREVOKING/REVOKEDeligibility 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.
- Use the required entry format for these two observations.Minor
The file defines one entry format: a backticked
YYYY-MM-DDdate, a short title, andContext,Observation, andExpected patternsub-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
Outcomesub-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.
- Increase the finalization latch timeout above the issuer-expiry wait.Minor
In
expiredRecoveryUsesDatabaseCutoffAndPreservesFinalizedOwnerUntilExactSettlement, the finalization thread starts its 30-secondawaitFinalizationCommitwait 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; andawaitRecoverySourceLockWait.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.
- CLI Review 4 CompletedRuntime 2m 30sFound: 3 Accepted: 0/0/1 Routed: 0
- Use the required date and field structure for this entry.Minor
This entry writes the date as
2026-10-15with no backticks, and the whole entry is one paragraph. The required format puts the date in backticks and splits the entry intoContext,ObservationandExpected patternsub-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.
- Use the required observation entry format.Minor
The file defines one entry format: a "
YYYY-MM-DD: short title" bullet withContext,ObservationandExpected patternsub-bullets. This entry is one long paragraph. It has no separate context, observation or expected-pattern bullets. The2026-10-18entries 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.
- 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 setsdigestSchemaVersionto the literal3. The changed participant now differs in two ways: the content digest and the schema. TheIllegalArgumentExceptioncan 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.
- CLI Review 5 CompletedRuntime 3m 34sFound: 3 Accepted: 0/0/1 Routed: 0
- 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 applyLIMIT. 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.
- Confirm that transient selected-digest failures stay retryable and do not become a definitive
FAILED.MajorThis 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
UNAVAILABLEwhenSelectedDraftPublicationDigestReadServicemaps a database or transaction failure, andPARTICIPANT_UNAVAILABLEwhen the reader is not configured.observeSelectedGameLogicParticipantdoes the same for receipt read failures (Lines 409–416).collectSelectedFullVersionParticipantDigeststhen returns normally insideVersionPublishCommandServiceImpl(Lines 269–276). The first exception is thePublishGateFailureException(PARTICIPANT_UNAVAILABLE, …, errorCode)fromassertSelectedGatePassedat Line 286. That exception reachesisRetryableParticipantDependencyFailure(ex). If that classifier does not treat theUNAVAILABLE/PARTICIPANT_UNAVAILABLEerror code as retryable,failDefinitivelyseals the attempt asFAILED. A short Game Design database outage or a missing namespace configuration would then end the selected publication permanently. The design docs say aFAILEDselection is retained and is not reopened.Verify how
PublicationFailureClassifier.isRetryableParticipantDependencyFailurehandles aPublishGateFailureExceptionthat carries these error codes. If it does not retry them, take one of these actions:- Rethrow
UNAVAILABLEandDEADLINE_EXCEEDEDfrom the reader asStatusRuntimeException. - 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.
- Rethrow
- 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, andExpected patternsub-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.
- CLI Review 6 CompletedRuntime 3m 54sFound: 3 Accepted: 1/0/0 Routed: 0
- Use the required entry format for the two new single-paragraph observations.Minor
The file defines one entry format: a backticked
YYYY-MM-DDdate with a short title, followed byContext,Observation, andExpected patternsub-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 patternfield. 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.
- 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
StatusRuntimeExceptionfromSelectedDraftPublicationDigestReadService.readbecomesfailureCode = "UNAVAILABLE"(orDEADLINE_EXCEEDED). That reader mapsDataAccessException,CannotCreateTransactionException, and similar exceptions toUNAVAILABLE. Any other runtime exception becomes"FAILED_PRECONDITION". - At Lines 409-416, a jOOQ
DataAccessExceptionfrom the receipt read becomes a failed observation with code"UNAVAILABLE".
collectSelectedFullVersionParticipantDigeststhen returns normally. InVersionPublishCommandServiceImpl.reconcileSelectedPublicationMechanicsLocal,assertSelectedGatePassedraisesPublishGateFailureException(PARTICIPANT_UNAVAILABLE, ..., errorCode). The flow callsfailDefinitivelyunlessPublicationFailureClassifier.isRetryableParticipantDependencyFailurerecognizes that exception and itserrorCode.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 definitiveFAILED/NO_PUBLICATION. The failure therefore cannot be recovered on the same selection. The Game Logic transport path propagatesUNAVAILABLEas an exception, so the classifier receives a different shape for the same transient class.Confirm that the classifier treats a
PublishGateFailureExceptionwithPARTICIPANT_UNAVAILABLEanderrorCodeUNAVAILABLE/DEADLINE_EXCEEDEDas retryable. If it does not, rethrow transientStatusRuntimeExceptions, or classify them explicitly, so that they reach thependingReconciliationbranch.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.
- At Lines 181-191, a
- Check that the real selected gate accepts retained v2 selector vectors on replay and reconciliation.Major
selectedSucceededReplayFixturebuilds its participants withAuthoredWorldReleaseAttestationEvidence.SELECTOR_SCHEMA_VERSIONand uses a"v2"bundle. Line 445 now verifies that replay callsassertSelectedGatePassedwith that vector. Line 2614 makes the same assertion for the retained v2 path inprivateMechanicsReconcilesPendingAttemptThroughCurrentGates.The
PublishGateServiceImplTesttests only show the realassertSelectedGatePassedaccepting the 4/3/1/6/2 vector:closureQualifiedSelectedGateRequiresWorldDigestSchemaFourrequires World schema 4.selectedFullGateRejectsEveryMixedParticipantProfilerejects 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
PendingReconciliationExceptionpermanently. These tests cannot detect that failure becausepublishGateServiceis a mock.The opposite combination has the same gap. At line 1626,
pendingAttemptStillReconcilesCompleteReadbackThroughCurrentGateschecks the legacyassertGatePassedwith the new 4/3/1/6/2participantDigests().fullVersionGateRejectsObsoleteAndUnknownWorldSchemasshows that the real legacy gate rejects World schema 4.Confirm these two points:
- Production
assertSelectedGatePassedaccepts 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
PublishGateServiceImplwith a retained v2 vector. Add one that uses a realPublishGateServiceImplwith 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.
- Hosted Review 2 CompletedRuntime 26m 29sFound: 4 Accepted: 4 Routed: 0
- 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 byContext,Observation, andExpected patternsub-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.
- Make server cleanup independent so a failure does not hide the test result.Minor
The
finallyblock callsstop(entityServer),stop(automationServer)andstop(gameLogicServer)one after another. Eachstopcall assertsawaitTermination(5, SECONDS). If the first assertion fails, the other two servers are never shut down. TheAssertionErrorfromfinallyalso 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.
- 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.
- Catch Spring-translated database failures as retryable receipt outages.Major
The Spring-managed
DSLContextuses Spring Boot 4.1.1’s default jOOQ exception translator. A translatable SQL failure fromreadForPublicationcan escape as a SpringDataAccessException, which the current catch does not handle.VersionPublishCommandServiceImplthen callsfailDefinitively, marks the attemptFAILED, 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.
- Hosted Review 3 CompletedRuntime 26m 44sFound: 3 Accepted: 3 Routed: 0
- 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 inrequireFreshSelectedFullParticipantVector, 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.
- 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.
- Join the retained receipt to the frozen Gameplay source before accepting Game Logic evidence.Major
observeSelectedGameLogicParticipantpasses the retained receipt directly toGameLogicClient, 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 whenSelectedGameplayRuleSourceJoin.matchesis 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.
- Hosted Review 4 CompletedRuntime 6m 54sFound: 2 Accepted: 0 Routed: 0
- Remove the duplicate branch in
requireSupportedSchemaForLaunchDescriptor.TrivialThe selected-schema branch and the fallback both call
requireSupportedSchemaForLaunch(bundle). TheisSelectedAttestationSchemacheck 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) { - Assert the specific selector-schema rejection reason for the fresh vector check.Trivial
This assertion passes for any
IllegalArgumentException.requireFreshSelectedFullParticipantVectorhas 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
mixedcase 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
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_pendingtreats a reservation as pending until a row exists inaccount_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
readSourceScoperejects expired reads, whileaccount_selected_owner_intake_source_read_is_pendingdoes 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