PR #3217 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 6m 19sFound: 7 Accepted: 1/3/3 Routed: 0
close()holds the client monitor while it drains the certificate watcher. A concurrent close and certificate reload can deadlock.Majorclose()issynchronizedand callssuper.close()while it holds the monitor onthis.AbstractReloadingBlockingGrpcClient.close()callswatcherToClose.close(), which waits for active reload callbacks to finish. A reload callback runssafeReload()→reloadChannel(), andreloadChannel()issynchronizedon the same monitor. Consider this sequence: TLS reload is enabled, a certificate rotation fires, andclose()already holds the monitor. The callback then blocks onreloadChannel(), andclose()blocks while it drains the callback. Service shutdown hangs.WorldOriginalDraftGraphApplyClient.close()in the same PR avoids this. It updates its flags inside a shortsynchronizedblock and callssuper.close()outside the monitor.WorldOriginalDraftGraphApplyClientTest.closeReleasesClientMonitorBeforeDrainingCertificateCallbacktests that exact hazard. Use the same pattern here and add the same regression test toDraftCommitOrderReadClientTest.The two clients also copy
requireFileBackedMtlsandrequireReadableFile. 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.
- Move the file-backed mTLS checks into one shared helper.Trivial
Three clients contain copies of
requireFileBackedMtlsandrequireReadableFile. 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 exampleFileBackedMtls.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-L165services/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.
- Test the synchronization-active guard for the Account client too.Trivial
AccountPublicationAuthorizationReadClient.readLine 63 rejects a call whenisSynchronizationActive()is true. This test covers onlysetActualTransactionActive(true). The selection client test also coversinitSynchronization(), 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.
- Add response cases for a changed schema version and an unknown status value.Trivial
AccountPublicationAuthorizationReadGrpcCodec.fromResponseLine 71 rejects a changedschemaVersion. No test exercises this branch. The selection codec test also coverssetStatusValue(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.
- Wrap
fromStoredfailures inIllegalArgumentException, as the sibling decoders do.MinorElsewhere in this layer, the code assumes that
GameDesignPublicationTerminalEvidence.fromStoredcan throw anyRuntimeException. Those call sites wrap the failure intoIllegalArgumentException:Requestconstructor: Lines 101-107.WorldPublicationTerminalCompletionGrpcCodec.requireExactTerminal.WorldPublicationTerminalCompletionGrpcCodec.Request.
The owner-read constructor calls
fromStoredonworldTerminalEvidencewithout a wrap. These bytes come straight from the World response. The trigger is a malformedworld_terminal_evidencethat makesfromStoredthrow some other runtime type, such asIllegalStateException,NullPointerException, or a parser exception. In that case,WorldPublicationTerminalReadGrpcCodec.fromResponselets the exception through.WorldPublicationTerminalReadClient.read(Lines 75-80) then misses it, because that method catches onlyIllegalArgumentException. 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.
- Update the stale REST generation-rule entry.Minor
Line 9 states that the legacy generation-rule DTO requires an explicit positive
versionIdand does not default to Version 1. The unchanged REST entry at Line 60 still states thatPOST /generation/rules"defaultsversionIdto1".runtime-and-data.mdLine 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.
- Set an explicit inbound size limit. Large bindings otherwise fail on gRPC's default 4 MiB response limit.Minor
The response echoes
original_account_bindingin full.WorldOriginalDraftGraphApplyEvidence.MAX_BINDING_BYTESdocuments a 4 MiB original-binding boundary. This stub does not callwithMaxInboundMessageSize, 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 getsRESOURCE_EXHAUSTEDeven when Account returns HELD.WorldOriginalDraftGraphApplyClientavoids this withMAX_RESPONSE_WIRE_BYTES. Add the same limit to this codec, and bound the binding size inDraftCommitOrderReadEvidence.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.
- Hosted Review 2 CompletedRuntime 9m 35sFound: 5 Accepted: 1/3/1 Routed: 0
- 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 ofrequireFileBackedMtlsandrequireReadableFile, and those copies differ only in label text. These checks protect the workload-identity transport boundary, so the copies must not drift apart.FileBackedMtlsis package-private, so move it to a public shared package (for examplenet.firedevops.firemud.common.grpc). Then thecommon.worldclient can use it too.services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldSelectedDraftPublicationFreezeClient.java#L125-L158: replace the private methods withFileBackedMtls.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 withFileBackedMtls.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 withFileBackedMtls.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 withFileBackedMtls.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-L159services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/WorldPublicationTerminalReadClient.java#L121-L153services/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.
- 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.
readhere 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.TransactionSynchronizationManagerimport. InWorldPublishedStartLocationClientTest, add the samesetActualTransactionActiveandinitSynchronizationcases 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.
- Validate
GenerationRuleDtobefore saving.MinorFor a request with a valid tenant and no
versionId,savecallssaveRule, whose fence guard throwsConflictException.GlobalExceptionHandlermaps that exception to500 INTERNAL_ERRORinstead of the400 INVALID_ARGUMENTresponse 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.
- Set the terminal-read stub's inbound message limit.Major
WorldPublicationTerminalReadGrpcCodec.toResponserepeats 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 receiveRESOURCE_EXHAUSTEDinstead 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
WorldPublicationTerminalCompletionGrpcCodectoWorldPublicationTerminalReadEvidence.RequestandWorldPublicationTerminalReadGrpcCodec.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.
- 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.
- CLI Review 1 CompletedRuntime 3m 05sFound: 3 Accepted: 1/1/1 Routed: 0
- Replace the local copies of mTLS validation with
FileBackedMtls.require.TrivialTwo clients keep their own copy of the file-backed mTLS checks, while the shared
FileBackedMtlshelper in the same change does the same work.services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java#L112-L144: callFileBackedMtls.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: callFileBackedMtls.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.
- Correct the Version Control fragment to the actual heading slug.Minor
The target heading is
#### Publication freeze and owner handoff (Target State). Its slug ispublication-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.
- Release the client monitor before
super.close()drains the TLS watcher in all seven new clients.MajorEach client declares
public synchronized void close()and callssuper.close()while it holds the client monitor.DraftCommitOrderReadClientTestandWorldOriginalDraftGraphApplyClientTestshow that a certificate-reload callback blocks on that monitor inAbstractReloadingBlockingGrpcClient.reloadChannel, and thatsuper.close()waits for active callbacks. If a certificate rotation fires during shutdown,close()deadlocks.DraftCommitOrderReadClientandWorldOriginalDraftGraphApplyClientalready use the safe pattern: set the flags insynchronized (this) { ... }, then callsuper.close()outside it.services/common-platform-core/src/main/java/net/firedevops/firemud/common/publication/AccountPublicationAuthorizationReadClient.java#L105-L110: removesynchronizedfrom the method, setclosedandinitializedin asynchronized (this)block, then callsuper.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, andcloselifecycle 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.
- Hosted Review 3 CompletedRuntime 6m 14sFound: 1 Accepted: 1/0/0 Routed: 0
- Replace the copied mTLS file validation with
FileBackedMtls.require.MajorThis PR adds
FileBackedMtls.requireas 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: callFileBackedMtls.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: callFileBackedMtls.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.
- CLI Review 2 CompletedRuntime 3m 08sFound: 2 Accepted: 0/1/1 Routed: 0
- Verify the HTTP status for the new owner-row refusal.Minor
lockExistingOpenByPrivateKeysthrowsWorldDesignPublicationFenceRepository.ConflictExceptionwhenever 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 legacyPOST /generation/rulescall now reaches this refusal.RegionServiceImpl.moveRegionbehaves the same way.ConflictExceptionextendsIllegalStateException. If the REST exception handler does not map that type, clients receive HTTP 500 instead of a 4xx conflict. Confirm that the controller advice mapsConflictExceptionto a 409 orFAILED_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.
- Extract the repeated exact-peer client lifecycle into one base class.Trivial
Nine new clients repeat the same code:
- the
initialized/closedflags; - the
synchronized init()method; close(), which releases the monitor beforesuper.close();requireStub();- the namespace check;
- the transaction guard;
- the SPIFFE
buildStubsetup.
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 exampleAbstractExactPeerMtlsClient<S>. Its parameters can be the service account name, the client label, the maximum inbound size and the transaction-guard policy. TheparseCanonicalUuidandrequireNoUnknownFieldshelpers 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.
- the
- CLI Review 3 CompletedRuntime 3m 33sFound: 2 Accepted: 0/1/1 Routed: 0
- 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_NUMERICclaim, the allocation-coordinated transaction, and the rule that(1, 1), fixture mode, or a missing V25 row do not prove ownership.runtime-and-data.mdLines 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.
- 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 theapplyOriginalDraftGraphcall, throwIllegalStateExceptionwhenTransactionSynchronizationManager.isActualTransactionActive()orisSynchronizationActive()is true.services/common-platform-core/src/main/java/net/firedevops/firemud/common/authoring/DraftCommitOrderReadClient.java#L48-L57: add the same guard before thereadHeldOriginalCommitOrdercall.
🛡️ 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.
- CLI Review 4 CompletedRuntime 3m 01sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- CLI Review 5 CompletedRuntime 2m 51sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- CLI Review 6 CompletedRuntime 3m 04sFound: 2 Accepted: 1/1/0 Routed: 0
- Verify that the two legacy REST writers can still succeed for any tenant.Major
lockExistingOpenByPrivateKeysrequires an existing V25 owner row. Only the canonicallockOpenandclaimFreezepaths create owner rows. Legacy numeric tenants, such as demo tenant1, 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 legacyUPDATE/INSERTthen reaches the V24/V1004 guard triggers. The current-frontier test shows these triggers reject that write with SQLSTATE23514. 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 tomoveRegion. 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.
- Bound the binding size before canonical parsing.Minor
DraftCommitOrderReadEvidence.Requestrejects bindings larger thanMAX_BINDING_BYTESbefore it callsfromStored. This constructor clones and parsesoriginalPublicationAuthorizationBindingwith no size limit. The Account server decodes this request throughfromRequest, 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
No routes recorded
Unlinked items
no items unlinked