FireMUD Delivery Status

PR data refreshed

PR #3217 review history

Fence World Draft writes and add strict publication contracts

Unit 1A · identity, Account and public JOIN

Review rounds

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

Hosted CodeRabbit3 completed
7/7/05/5/01/1/0
CLI CodeRabbit6 completed
2/2/02/2/00/0/00/0/02/2/0

Recorded review history

Reviews and findings

  1. Hosted Review 1 CompletedRuntime 6m 19s
    Found: 7 Accepted: 1/3/3 Routed: 0
    1. close() holds the client monitor while it drains the certificate watcher. A concurrent close and certificate reload can deadlock.Major

      close() is synchronized and calls super.close() while it holds the monitor on this. AbstractReloadingBlockingGrpcClient.close() calls watcherToClose.close(), which waits for active reload callbacks to finish. A reload callback runs safeReload() → reloadChannel(), and reloadChannel() is synchronized on the same monitor. Consider this sequence: TLS reload is enabled, a certificate rotation fires, and close() already holds the monitor. The callback then blocks on reloadChannel(), and close() blocks while it drains the callback. Service shutdown hangs.

      WorldOriginalDraftGraphApplyClient.close() in the same PR avoids this. It updates its flags inside a short synchronized block and calls super.close() outside the monitor. WorldOriginalDraftGraphApplyClientTest.closeReleasesClientMonitorBeforeDrainingCertificateCallback tests that exact hazard. Use the same pattern here and add the same regression test to DraftCommitOrderReadClientTest.

      The two clients also copy requireFileBackedMtls and requireReadableFile. Their lifecycle code has already diverged. A shared helper would keep these guards consistent.

      🔒️ Proposed fix

      --- "a/services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java"
      +++ "b/services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java"
      @@ -89,12 +89,14 @@
               .withCompression("gzip");
         }
       
         @Override
      -  public synchronized void close() throws IOException {
      -    closed = true;
      -    initialized = false;
      -    super.close();
      +  public void close() throws IOException {
      +    synchronized (this) {
      +      closed = true;
      +      initialized = false;
      +    }
      +    super.close();
         }
       
         private AccountDraftCommitOrderReadServiceGrpc.AccountDraftCommitOrderReadServiceBlockingStub
             requireStub() {
      
      • Accepted Synchronized close holds client monitor during watcher callback drain while reloadChannel needs same monitor. Use existing sibling short synchronized flags then super.close outside monitor; add deterministic callback regression.
    2. Move the file-backed mTLS checks into one shared helper.Trivial

      Three clients contain copies of requireFileBackedMtls and requireReadableFile. The copies differ only in the label text. These checks protect the transport boundary, so they must not diverge. Create one package-level helper, for example FileBackedMtls.require(CommonGrpcClientProperties, String label).

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AccountPublicationAuthorizationReadClient.java#L124-L158: replace both private methods with a call to the helper, using the label "Account publication authorization read".
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AuthoredDraftPublishSelectionReadClient.java#L129-L165: replace both private methods with a call to the helper, using the label "Game Design selected Draft publication read".
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalCompletionClient.java#L126-L158: replace both private methods with a call to the helper, using the label "World publication completion".

      📍 Affects 3 files

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AccountPublicationAuthorizationReadClient.java#L124-L158 (this comment)
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AuthoredDraftPublishSelectionReadClient.java#L129-L165
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalCompletionClient.java#L126-L158
      • Accepted Three publication clients duplicate identical file-backed mTLS guards. Extract one package-private helper retaining exactvalidation/errorlabels and existing clienttests; no transportpolicy or lifecycle expansion.
    3. Test the synchronization-active guard for the Account client too.Trivial

      AccountPublicationAuthorizationReadClient.read Line 63 rejects a call when isSynchronizationActive() is true. This test covers only setActualTransactionActive(true). The selection client test also covers initSynchronization(), a closed client, and invalid file material. The Account client test has none of these cases. Add the same cases here.

      🧪 Proposed addition

             } finally {
               TransactionSynchronizationManager.setActualTransactionActive(false);
             }
      +      TransactionSynchronizationManager.initSynchronization();
      +      try {
      +        assertThatThrownBy(() -> client.read(request))
      +            .isInstanceOf(IllegalStateException.class)
      +            .hasMessageContaining("requires no owner transaction");
      +      } finally {
      +        TransactionSynchronizationManager.clearSynchronization();
      +      }
             verifyNoInteractions(stub);
      
      • Accepted Account client transaction-boundary test omits synchronization-active guard. Add explicit initSynchronization/finallyclear/noRPC regression in existingtest.
    4. Add response cases for a changed schema version and an unknown status value.Trivial

      AccountPublicationAuthorizationReadGrpcCodec.fromResponse Line 71 rejects a changed schemaVersion. No test exercises this branch. The selection codec test also covers setStatusValue(99). Add both cases.

      🧪 Proposed addition

               List.of(
      +            held.toBuilder().setSchemaVersion(2).build(),
                   held.toBuilder().setTargetNamespace("other").build(),
      @@
      +            held.toBuilder().setStatusValue(99).build(),
                   held.toBuilder().setUnknownFields(unknown).build())) {
      
      • Accepted Account held-response codec rejects schema/status drift but existing changed-response matrix omits schema2 and unknownstatus99. Add both exactnegativecases.
    5. Wrap fromStored failures in IllegalArgumentException, as the sibling decoders do.Minor

      Elsewhere in this layer, the code assumes that GameDesignPublicationTerminalEvidence.fromStored can throw any RuntimeException. Those call sites wrap the failure into IllegalArgumentException:

      • Request constructor: Lines 101-107.
      • WorldPublicationTerminalCompletionGrpcCodec.requireExactTerminal.
      • WorldPublicationTerminalCompletionGrpcCodec.Request.

      The owner-read constructor calls fromStored on worldTerminalEvidence without a wrap. These bytes come straight from the World response. The trigger is a malformed world_terminal_evidence that makes fromStored throw some other runtime type, such as IllegalStateException, NullPointerException, or a parser exception. In that case, WorldPublicationTerminalReadGrpcCodec.fromResponse lets the exception through. WorldPublicationTerminalReadClient.read (Lines 75-80) then misses it, because that method catches only IllegalArgumentException. Callers get a raw exception instead of the documented "World returned invalid publication terminal evidence" failure. As a result, they can misclassify bad producer evidence.

      🛡️ Proposed fix

      --- "a/services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalReadEvidence.java"
      +++ "b/services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalReadEvidence.java"
      @@ -20,7 +20,12 @@
             Request request, WorldOutcome worldOutcome, byte[] worldTerminalEvidence) {
           this.request = Objects.requireNonNull(request, "request");
           this.worldOutcome = Objects.requireNonNull(worldOutcome, "worldOutcome");
      -    this.terminal = GameDesignPublicationTerminalEvidence.fromStored(worldTerminalEvidence);
      +    try {
      +      this.terminal = GameDesignPublicationTerminalEvidence.fromStored(worldTerminalEvidence);
      +    } catch (RuntimeException malformed) {
      +      throw new IllegalArgumentException(
      +          "Complete canonical World terminal evidence required", malformed);
      +    }
           if (!Arrays.equals(request.originalOperation(), terminal.operationBytes())
               || !Arrays.equals(request.expectedGameDesignTerminalEvidence(), terminal.canonicalBytes())
               || worldOutcome != worldOutcome(terminal.outcome())) {
      
      • Accepted Owner-read terminal decode lacks sibling RuntimeException-to-IllegalArgumentException normalization, while client catches IllegalArgumentException for invalid evidence. Normalize only fromStored call and focused malformed-input regression.
    6. Update the stale REST generation-rule entry.Minor

      Line 9 states that the legacy generation-rule DTO requires an explicit positive versionId and does not default to Version 1. The unchanged REST entry at Line 60 still states that POST /generation/rules "defaults versionId to 1". runtime-and-data.md Line 50 makes the same stale claim. The service now also locks the V25 owner first, so the claim "accepts only tenant access" is also out of date. Update both entries so the documents do not contradict each other.

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

      • Accepted World REST docs still claim default Version1/tenant-only writes despite explicit positiveversion/V25owner lock. Align exacttwoentries with implementedguard; preserve closed publication/admissionlimits.
    7. Set an explicit inbound size limit. Large bindings otherwise fail on gRPC's default 4 MiB response limit.Minor

      The response echoes original_account_binding in full. WorldOriginalDraftGraphApplyEvidence.MAX_BINDING_BYTES documents a 4 MiB original-binding boundary. This stub does not call withMaxInboundMessageSize, so gRPC's default 4 MiB limit applies. That limit applies to the decompressed message, so gzip does not help. A binding close to 4 MiB plus the protobuf envelope exceeds the limit, and the client gets RESOURCE_EXHAUSTED even when Account returns HELD. WorldOriginalDraftGraphApplyClient avoids this with MAX_RESPONSE_WIRE_BYTES. Add the same limit to this codec, and bound the binding size in DraftCommitOrderReadEvidence.Request.

      🐛 Proposed fix

           return AccountDraftCommitOrderReadServiceGrpc.newBlockingStub(channel)
      +        .withMaxInboundMessageSize(DraftCommitOrderReadGrpcCodec.MAX_RESPONSE_WIRE_BYTES)
               .withCallCredentials(new GrpcServerPeerIdentityCallCredentials(expectedPeerUri))
      
      // DraftCommitOrderReadGrpcCodec
      public static final int MAX_RESPONSE_WIRE_BYTES =
          WorldOriginalDraftGraphApplyEvidence.MAX_BINDING_BYTES + 1024;
      
      • Accepted DraftCommitOrderReadClient lacks explicit inbound cap while echoing bounded4MiB binding plus protobuf envelope; Request also lacks bound. Add canonical4MiB request and envelope-sized cap with regression.
  2. Hosted Review 2 CompletedRuntime 9m 35s
    Found: 5 Accepted: 1/3/1 Routed: 0
    1. Use one shared file-backed mTLS validator in every new client.Trivial

      This PR adds FileBackedMtls.require. Three clients use it. Four clients still keep private copies of requireFileBackedMtls and requireReadableFile, and those copies differ only in label text. These checks protect the workload-identity transport boundary, so the copies must not drift apart. FileBackedMtls is package-private, so move it to a public shared package (for example net.firedevops.firemud.common.grpc). Then the common.world client can use it too.

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedDraftPublicationFreezeClient.java#L125-L158: replace the private methods with FileBackedMtls.require(tlsProperties, "World selected-publication freeze").
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedPublicationArtifactInventoryClient.java#L126-L159: replace the private methods with FileBackedMtls.require(tlsProperties, "World selected-publication inventory read").
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalReadClient.java#L121-L153: replace the private methods with FileBackedMtls.require(tlsProperties, "World publication terminal read").
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/world/WorldPublishedStartLocationClient.java#L118-L150: after you make the helper public, replace the private methods with FileBackedMtls.require(tlsProperties, "World selector read").

      📍 Affects 4 files

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedDraftPublicationFreezeClient.java#L125-L158 (this comment)
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedPublicationArtifactInventoryClient.java#L126-L159
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalReadClient.java#L121-L153
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/world/WorldPublishedStartLocationClient.java#L118-L150
      • Accepted Seven same-boundary clients duplicate identical file-backed mTLS policy. Move existing helper public/common.grpc and preserve labels/check semantics across exactly seven.
    2. Add the ambient-transaction guard that the sibling clients enforce.Minor

      Six other new clients reject a call before transport if a transaction or synchronization is active. These are the Account authorization client, the selection client, the freeze client, the inventory client, the terminal completion client, and the terminal read client. read here has no such check. A Game Design caller can make this blocking 5-second RPC while it holds an owner transaction. The DB locks then stay held across the remote call. The project transaction guidance requires local owner transactions and no cross-service coupling.

      🛡️ Proposed fix

      --- "a/services/common-platform-core/src/main/java/net/firedevops/firemud/common/world/WorldPublishedStartLocationClient.java"
      +++ "b/services/common-platform-core/src/main/java/net/firedevops/firemud/common/world/WorldPublishedStartLocationClient.java"
      @@ -55,9 +55,13 @@
         }
       
         /** Reads immutable selector evidence for this complete frozen selection. */
         public WorldPublishedStartLocationEvidence read(
             WorldPublishedStartLocationEvidence.Request request) {
      +    if (TransactionSynchronizationManager.isActualTransactionActive()
      +        || TransactionSynchronizationManager.isSynchronizationActive()) {
      +      throw new IllegalStateException("World selector read requires no owner transaction");
      +    }
           Objects.requireNonNull(request, "request");
           if (!workloadNamespace.equals(request.targetNamespace())) {
             throw new IllegalArgumentException(
                 "World selector read request must use the configured workload namespace");
      

      Add the org.springframework.transaction.support.TransactionSynchronizationManager import. In WorldPublishedStartLocationClientTest, add the same setActualTransactionActive and initSynchronization cases that the sibling client tests have.

      As per path instructions, services/** reviews must flag "architecture mismatches" and "failure-mode expectations".

      • Accepted Selector blocking read omits actual transaction/synchronization guard present on sibling owner clients; reject before request or transport.
    3. Validate GenerationRuleDto before saving.Minor

      For a request with a valid tenant and no versionId, save calls saveRule, whose fence guard throws ConflictException. GlobalExceptionHandler maps that exception to 500 INTERNAL_ERROR instead of the 400 INVALID_ARGUMENT response used for request validation.

      +import jakarta.validation.Valid;
      +
      ...
      -  public ResponseEntity<ApiResponse<GenerationRuleDto>> save(@RequestBody GenerationRuleDto dto) {
      +  public ResponseEntity<ApiResponse<GenerationRuleDto>> save(
      +      @Valid @RequestBody GenerationRuleDto dto) {
      
      • Accepted DTO@NotNull/Positive is not invoked by REST handler; use@Valid and actualMVC400 INVALID_ARGUMENT/no dispatch proof, preserving valid tenant enforcement.
    4. Set the terminal-read stub's inbound message limit.Major

      WorldPublicationTerminalReadGrpcCodec.toResponse repeats the operation in the original operation, expected terminal, and World terminal fields. A valid response can exceed gRPC Java's default 4 MiB inbound limit. The caller can then receive RESOURCE_EXHAUSTED instead of the terminal.

           return WorldPublicationTerminalReadServiceGrpc.newBlockingStub(channel)
               .withCallCredentials(new GrpcServerPeerIdentityCallCredentials(expectedPeerUri))
               .withInterceptors(new GrpcServerPeerIdentityClientInterceptor(expectedPeerUri))
      -        .withCompression("gzip");
      +        .withCompression("gzip")
      +        .withMaxInboundMessageSize(WorldPublicationTerminalCompletionGrpcCodec.MAX_MESSAGE_BYTES);
      

      Apply the same total-size budget used by WorldPublicationTerminalCompletionGrpcCodec to WorldPublicationTerminalReadEvidence.Request and WorldPublicationTerminalReadGrpcCodec.toResponse. This bounds both the request and response payloads.

      • Accepted Terminal read lacks completion channel inbound and total wire budget; apply existing32MiB policy before allocation/decoding and both wire directions.
    5. Fix the inconsistent Common test counts.Minor

      Line 13 cites "archived 552 Common tests" for the current receiving source. Line 19 cites 542 freshly passed Common cases for the same combined candidate. The PR objectives report 555 fresh Common tests. Readers cannot tell which count applies to the current source. Use one current count and attribute each historical count to its revision. The tracker README requires the status, implementation record and validation sections to stay aligned.

      As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes."

      Also applies to: 19-19

      • Accepted Historical 552/542 counts are presented as current despite current12fc7 Common555; clarify source attribution and retain historical proof limits.
  3. CLI Review 1 CompletedRuntime 3m 05s
    Found: 3 Accepted: 1/1/1 Routed: 0
    1. Replace the local copies of mTLS validation with FileBackedMtls.require.Trivial

      Two clients keep their own copy of the file-backed mTLS checks, while the shared FileBackedMtls helper in the same change does the same work.

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java#L112-L144: call FileBackedMtls.require(tlsProperties, "Account COMMIT_ORDER read") in the constructor and delete the private helpers.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/WorldOriginalDraftGraphApplyClient.java#L127-L160: call FileBackedMtls.require(tlsProperties, "World original graph apply") and delete the private helpers.
      • Accepted Both authoring clients retain identical readable-file mTLS checks; existing public FileBackedMtls.require preserves validation policy. Delegate those two copies with original labels, no new API.
    2. Correct the Version Control fragment to the actual heading slug.Minor

      The target heading is #### Publication freeze and owner handoff (Target State). Its slug is publication-freeze-and-owner-handoff-target-state. The links below use #publication-freeze-and-owner-handoff, which does not resolve unless an explicit anchor exists. Please also confirm that the repository link checker validates fragments.

      • design/architecture/microservices/world-management-service/runtime-and-data.md#L12-L12: change the fragment to #publication-freeze-and-owner-handoff-target-state.
      • design/project-management/implementation-tracking/world-runtime-and-movement.md#L124-L124: change the fragment to #publication-freeze-and-owner-handoff-target-state.
      • design/project-management/implementation-tracking/world-runtime-and-movement.md#L196-L196: change the fragment to #publication-freeze-and-owner-handoff-target-state.

      As per path instructions: "Flag ... broken repo links".

      • Accepted Canonical version-control heading includes (Target State) and has no explicit legacy anchor. Repair all four directly affected references to its actual slug; retain owner links and local consequences.
    3. Release the client monitor before super.close() drains the TLS watcher in all seven new clients.Major

      Each client declares public synchronized void close() and calls super.close() while it holds the client monitor. DraftCommitOrderReadClientTest and WorldOriginalDraftGraphApplyClientTest show that a certificate-reload callback blocks on that monitor in AbstractReloadingBlockingGrpcClient.reloadChannel, and that super.close() waits for active callbacks. If a certificate rotation fires during shutdown, close() deadlocks. DraftCommitOrderReadClient and WorldOriginalDraftGraphApplyClient already use the safe pattern: set the flags in synchronized (this) { ... }, then call super.close() outside it.

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AccountPublicationAuthorizationReadClient.java#L105-L110: remove synchronized from the method, set closed and initialized in a synchronized (this) block, then call super.close() outside it.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AuthoredDraftPublishSelectionReadClient.java#L110-L115: apply the same restructuring.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalCompletionClient.java#L107-L112: apply the same restructuring.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalReadClient.java#L104-L109: apply the same restructuring.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedDraftPublicationFreezeClient.java#L106-L111: apply the same restructuring.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedPublicationArtifactInventoryClient.java#L107-L112: apply the same restructuring.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/world/WorldPublishedStartLocationClient.java#L104-L109: apply the same restructuring.

      The nine new clients share the same init, requireStub, and close lifecycle code. An intermediate base class would let one tested implementation enforce this ordering.

      🔒️ Proposed fix (same at every site)

         @Override
      -  public synchronized void close() throws IOException {
      -    closed = true;
      -    initialized = false;
      -    super.close();
      +  public void close() throws IOException {
      +    synchronized (this) {
      +      closed = true;
      +      initialized = false;
      +    }
      +    super.close();
         }
      
      • Accepted Seven clients hold their monitor through super.close while watcher drains callbacks needing synchronized reloadChannel. Use existing two authoring-client pattern: flags under monitor, superclass close outside; focused deterministic lifecycle proof.
  4. Hosted Review 3 CompletedRuntime 6m 14s
    Found: 1 Accepted: 1/0/0 Routed: 0
    1. Replace the copied mTLS file validation with FileBackedMtls.require.Major

      This PR adds FileBackedMtls.require as the shared validator. Each of the two authoring clients still keeps a private copy. Their messages have already drifted. If one copy changes, the clients will enforce different rules.

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java#L112-L144: call FileBackedMtls.require(tlsProperties, "Account COMMIT_ORDER read") in the constructor and delete the local methods.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/WorldOriginalDraftGraphApplyClient.java#L127-L160: call FileBackedMtls.require(tlsProperties, "World original graph apply") and delete the local methods.

      📍 Affects 2 files

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java#L112-L144 (this comment)
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/WorldOriginalDraftGraphApplyClient.java#L127-L160
      • Accepted Verified both authoring clients retain duplicate readable-file mTLS checks. Existing FileBackedMtls.require preserves policy; same two-file correction already being prepared for firstCLI finding1, still unpublished.
  5. CLI Review 2 CompletedRuntime 3m 08s
    Found: 2 Accepted: 0/1/1 Routed: 0
    1. Verify the HTTP status for the new owner-row refusal.Minor

      lockExistingOpenByPrivateKeys throws WorldDesignPublicationFenceRepository.ConflictException whenever the tenant/Version pair has no V25 owner row. Ordinary legacy data, such as the demo tenant (1, 1), never creates that row. As a result, every legacy POST /generation/rules call now reaches this refusal. RegionServiceImpl.moveRegion behaves the same way. ConflictException extends IllegalStateException. If the REST exception handler does not map that type, clients receive HTTP 500 instead of a 4xx conflict. Confirm that the controller advice maps ConflictException to a 409 or FAILED_PRECONDITION-style response with a safe message. If no mapping exists, add one.

      • Accepted Verified exact World owner ConflictException has no REST mapping: shared advice falls to INTERNAL_ERROR500. Map this owner conflict at World HTTP boundary to safe409CONFLICT; keep existing owner locks and refusal/no-effects.
    2. Extract the repeated exact-peer client lifecycle into one base class.Trivial

      Nine new clients repeat the same code:

      • the initialized/closed flags;
      • the synchronized init() method;
      • close(), which releases the monitor before super.close();
      • requireStub();
      • the namespace check;
      • the transaction guard;
      • the SPIFFE buildStub setup.

      These copies already drift apart. The close-monitor correction had to change all seven publication and start-location clients. Two authoring clients have no transaction guard, and only some clients set withMaxInboundMessageSize. Move the lifecycle and stub configuration into one abstract class, for example AbstractExactPeerMtlsClient<S>. Its parameters can be the service account name, the client label, the maximum inbound size and the transaction-guard policy. The parseCanonicalUuid and requireNoUnknownFields helpers in the codecs are also duplicated, and a shared helper can replace them.

      • Accepted Nine clients repeat explicit init/closed/stub lifecycle and already drifted. Centralize that invariant in existing gRPC base, preserve each peer/namespace/transaction/wire policy. No configurable policy framework or unrelated codec schema expansion.
  6. CLI Review 3 CompletedRuntime 3m 33s
    Found: 2 Accepted: 0/1/1 Routed: 0
    1. Link to the canonical legacy-claim rule instead of restating it.Trivial

      Line 11 restates the full legacy demo-seeding contract. This includes the immutable LEGACY_NUMERIC claim, the allocation-coordinated transaction, and the rule that (1, 1), fixture mode, or a missing V25 row do not prove ownership. runtime-and-data.md Lines 42-43 already own that contract. If the tracker keeps its own copy, the two texts can drift. Keep only the status sentence and the proof attribution here. Link to the storage contract for the rule.

      ♻️ Proposed wording

      -... Ordinary legacy demo seeding instead must establish or verify an immutable `LEGACY_NUMERIC` tenant claim under the allocation-coordinated transaction before any topology read or effect. It cannot infer legacy ownership from `(1, 1)`, fixture mode being off, or a missing V25 row, because canonical allocation can also assign key `1`. Canonical manifests and SQL legacy UPDATE fastpaths remain unchanged.
      +... Ordinary legacy demo seeding uses the immutable legacy tenant claim defined in [World runtime and data](../../architecture/microservices/world-management-service/runtime-and-data.md#authored-world-source-retention). Canonical manifests and SQL legacy UPDATE fastpaths remain unchanged.
      

      Based on learnings: "do not duplicate canonical technical contracts that are already defined by the owning ADRs or architecture contracts."

      • Accepted Tracker duplicates the canonical immutable legacy tenant-claim contract already owned in World runtime-and-data authored-world source retention. Replace only repeated normative sentences with an owner link, preserving status, canonical manifests/SQL statement and all proof attribution.
    2. Add the no-owner-transaction guard to both authoring clients.Minor

      The seven publication and start-location clients reject an active transaction or synchronization scope before their blocking gRPC call. The two authoring clients do not. If a caller invokes either client inside an owner transaction, that transaction holds its database locks for up to the 5-second deadline. This breaks the documented no-open-transaction-across-blocking-gRPC invariant.

      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/WorldOriginalDraftGraphApplyClient.java#L52-L62: before the applyOriginalDraftGraph call, throw IllegalStateException when TransactionSynchronizationManager.isActualTransactionActive() or isSynchronizationActive() is true.
      • services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java#L48-L57: add the same guard before the readHeldOriginalCommitOrder call.

      🛡️ Proposed guard

      +    if (TransactionSynchronizationManager.isActualTransactionActive()
      +        || TransactionSynchronizationManager.isSynchronizationActive()) {
      +      throw new IllegalStateException("World original graph apply requires no owner transaction");
      +    }
           Objects.requireNonNull(request, "request");
      
      • Accepted Both authoring clients currently enter blocking gRPC without rejecting actual owner SQL or synchronization scopes. Existing owner ordering requires remote work outside the transaction. Add local pre-transport guards and direct no-RPC regression proof; preserve transport policy.
  7. CLI Review 4 CompletedRuntime 3m 01s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  8. CLI Review 5 CompletedRuntime 2m 51s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  9. CLI Review 6 CompletedRuntime 3m 04s
    Found: 2 Accepted: 1/1/0 Routed: 0
    1. Verify that the two legacy REST writers can still succeed for any tenant.Major

      lockExistingOpenByPrivateKeys requires an existing V25 owner row. Only the canonical lockOpen and claimFreeze paths create owner rows. Legacy numeric tenants, such as demo tenant 1, never get one. Ordinary demo seeding, by design, does not require a V25 owner row. As a result, every legacy-tenant request now returns 409. A canonical tenant passes the lock, but the plain legacy UPDATE/INSERT then reaches the V24/V1004 guard triggers. The current-frontier test shows these triggers reject that write with SQLSTATE 23514. If both statements are correct, neither route can succeed for any tenant. Confirm that this is intended, and identify any tooling or smoke workflow that calls these routes.

      • services/world-management-service/src/main/java/net/firedevops/firemud/worldmanagement/service/impl/GenerationRuleServiceImpl.java#L27-L27: confirm that the always-denied save is intended. If it is not intended, give legacy tenants a separate serialization path that does not require a V25 owner row.
      • services/world-management-service/src/main/java/net/firedevops/firemud/worldmanagement/service/impl/RegionServiceImpl.java#L39-L39: apply the same decision to moveRegion. Confirm that no shard-rebalance caller depends on this route.
      • design/architecture/microservices/world-management-service/api-contracts.md#L60-L62: if the containment is intended, document both routes as fail-closed. Do not describe 409 as an exceptional owner conflict.
      • Accepted Current guards deny both legacy writers, and canonical design requires authenticated Draft authority. Docs still describe successful legacy persistence. Clarify contained unsupported behavior and actual caller search; do not add a legacy bypass.
    2. Bound the binding size before canonical parsing.Minor

      DraftCommitOrderReadEvidence.Request rejects bindings larger than MAX_BINDING_BYTES before it calls fromStored. This constructor clones and parses originalPublicationAuthorizationBinding with no size limit. The Account server decodes this request through fromRequest, so the server parses whatever size the transport accepts. Add an explicit maximum and check it before the clone and the parse. The client inbound limit can then use the same constant.

      Proposed fix

             if (originalPublicationAuthorizationBinding == null
                 || originalPublicationAuthorizationBinding.length == 0) {
               throw new IllegalArgumentException(
                   "Complete original Account publication authorization binding is required");
             }
      +      if (originalPublicationAuthorizationBinding.length > MAX_BINDING_BYTES) {
      +        throw new IllegalArgumentException(
      +            "Account publication authorization binding exceeds size limit");
      +      }
             originalPublicationAuthorizationBinding = originalPublicationAuthorizationBinding.clone();
      
      • Accepted HELD read clones/parses unbounded binding while sibling original-order read already caps it at4MiB. Add local preparse/wire bounds and matching response envelope/client ceiling, preserving complete valid evidence and peer/lifecycle guards.

Routed Findings

0 Open0 Accepted/Fixed0 Rejected

No routes recorded

Unlinked items

no items unlinked