PR #3136 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
- Subagent Review 1 CompletedModel: gpt-6-luna · XhighFound: 1 Accepted: 1 Routed: 0
- Redemption transport lacks exact Account server identityMajor
Whole98path pass1 on962289c87 vsdevelop9b2ad7e; client103-109/130-144. Nootherhighconfidence findings, no executedtests; gpt-6-luna XHigh.
- Accepted Verified CA-trusted buildStub lacks exact same-namespace Account authentication before rawreference dispatch. Inactive activation blocker; bounded peerpin and socketregression fix delegated.
- CLI Review 1 CompletedRuntime 3m 30sFound: 5 Accepted: 0/5/0 Routed: 0
- Align the producer status with the Game Session runtime tracker.Minor
These two lines conflict with the other tracker:
- Line 9 says the "authenticated World/Account original-owner producer remains incomplete".
- Line 15 says "An authenticated World-facing original-owner producer ... remain unimplemented".
game-session-runtime-and-tick-coordination.mdLine 11 says that producer code exists. It describes an unregistered historical original-StartSession evidence read for exact same-namespace World or Account workloads.HistoricalOriginalStartSessionOwnerEvidenceReadGrpcServiceis in this change.
A reader cannot tell whether the producer is absent or present but unregistered. Use one status in both trackers, for example "implemented locally, unregistered and undeployed". Keep the separate statement that live hold validation and cross-owner reconciliation are not implemented.
As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes". As per path instructions: "Review docs for canonical-current-state consistency".
Also applies to: 15-15
- Accepted Historical producer exists locally and unregistered; align player tracker while retaining continuous protection/recovery proof gaps.
- Fix the unclear attribution "Document's published
2cb445617".Minor"Document's" does not identify an owner or a repository. The sentence names the source of the canonical World hold request and immutable identity, so a reader needs to know which change or service published it. Replace "Document's" with the correct owner, for example "World Management's published change
2cb445617".- Accepted Replace private worker-name attribution with World Management source ownership while preserving exact commit.
- Bind the descriptor pin to the full association owner tuple.Minor
V37 binds the association pin to the attempt with a composite foreign key. That key covers
owner_attempt_id,owner_fenceandcanonical_tenant_id. V38 references the association pin only through(target_namespace, control_plane_request_id). The database therefore accepts a descriptor pin with anowner_attempt_id,owner_fenceorcanonical_tenant_idthat differs from the association pin. Only repository code prevents this mismatch. This migration is not published yet, so the fix is inexpensive now.Proposed change
+CREATE UNIQUE INDEX uq_gs_start_session_template_association_pin_binding + ON game_session_start_session_template_association_pin + (target_namespace, control_plane_request_id, owner_attempt_id, owner_fence, canonical_tenant_id); + CREATE TABLE game_session_start_session_launch_descriptor_pin ( ... CONSTRAINT fk_gs_start_session_launch_descriptor_association - FOREIGN KEY (target_namespace, control_plane_request_id) + FOREIGN KEY (target_namespace, control_plane_request_id, owner_attempt_id, + owner_fence, canonical_tenant_id) REFERENCES game_session_start_session_template_association_pin - (target_namespace, control_plane_request_id), + (target_namespace, control_plane_request_id, owner_attempt_id, + owner_fence, canonical_tenant_id),- Accepted Descriptor FK lacks attempt/fence/tenant tuple already fixed by its association owner; add composite FK and direct insertion negatives.
- Remove the transitional wording and replace the opaque decision reference.Minor
- Line 138 calls the historical read "The new local, unregistered historical read". The word "new" describes the change, not the current state. It becomes stale after merge.
- Line 134 cites decision
ae27ed99with no repository link. A reader cannot resolve this reference from the architecture document.
Describe the read in current-state terms. Link the decision through its ADR or decision record path.
Proposed wording
-Historical original-operation reconciliation is separate from that live continuation. The new local, unregistered historical read returns +Historical original-operation reconciliation is separate from that live continuation. The local, unregistered historical read returnsAs per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs, broken repo links".
- Accepted Remove stale new wording and private decision ID; link governing owner contract/ADR without inventing human acceptance metadata.
- Use fixed status descriptions, and do not report storage corruption as a precondition failure.Minor
Each error branch copies
getMessage()into the gRPC status description. Internal repository text then reaches remote callers. Examples are "historical original StartSession owner evidence is malformed" and the ambient-transaction error. The repository also signals corrupted stored evidence withIllegalStateException, which this handler maps toFAILED_PRECONDITION. A caller then reads corrupted owner storage as "evidence not available yet" and not as an internal failure.The sibling
CanonicalInitialAdmissionOwnerReadGrpcServiceuses fixed descriptions. Apply the same pattern here. Report the explicit "unavailable" and "echo changed" cases asFAILED_PRECONDITION. Report otherIllegalStateExceptioncases asINTERNAL.Proposed change
- .orElseThrow( - () -> - new IllegalStateException( - "Exact historical StartSession evidence is unavailable")); - if (!decodedRequest.equals(evidence.request())) { - throw new IllegalStateException( - "Retained historical StartSession evidence changed the exact read request echo"); - } + .orElse(null); + if (evidence == null || !decodedRequest.equals(evidence.request())) { + responseObserver.onError( + Status.FAILED_PRECONDITION + .withDescription("Exact historical StartSession evidence is unavailable") + .asRuntimeException()); + return; + } ... } catch (AdminAuthorizationException denied) { responseObserver.onError( - Status.PERMISSION_DENIED.withDescription(denied.getMessage()).asRuntimeException()); + Status.PERMISSION_DENIED + .withDescription("Historical evidence caller is not authorized") + .asRuntimeException()); } catch (IllegalArgumentException invalid) { responseObserver.onError( - Status.INVALID_ARGUMENT.withDescription(invalid.getMessage()).asRuntimeException()); - } catch (IllegalStateException unavailable) { - responseObserver.onError( - Status.FAILED_PRECONDITION - .withDescription(unavailable.getMessage()) - .asRuntimeException()); + Status.INVALID_ARGUMENT + .withDescription("Historical evidence request is malformed") + .asRuntimeException()); } catch (RuntimeException failure) {As per path instructions: "Flag changes that violate documented FireMUD invariants, especially gRPC application-error handling".
- Accepted Handler forwards exception messages and conflates corrupt storage with ordinary missing evidence; fixed status text and INTERNAL distinction are warranted.
- CLI Review 2 CompletedRuntime 3m 59sFound: 3 Accepted: 0/3/0 Routed: 0
- Remove
finalor the@Transactionalannotations from this repository.MinorThe class is
final, butreserve,attach, andreadcarry@Transactional. Spring cannot create a CGLIB subclass of afinalclass. The class implements no interface, so no JDK proxy is possible either. Two outcomes follow if this type is registered as a bean with transaction management enabled:- Startup fails with "Cannot subclass final class".
- The annotations have no effect, so callers that rely on them get no transaction.
Today the only caller,
CanonicalInitialAdmissionHoldPreparation, opens its ownTransactionTemplate. The annotations are therefore misleading. Also,readdeclaresNOT_SUPPORTED, butrequireCommittedReadrejects any active transaction anyway.Choose one model. Either remove the annotations and keep the explicit caller-owned transaction contract, or make the class non-final, as
CanonicalInitialAdmissionRepositoryis.Also applies to: 47-48, 94-95, 171-172
- Accepted Final intent repository has impossible CGLIB transaction annotations despite explicit caller-owned transaction model. Remove misleading annotations/imports, retain READ_COMMITTED writable mutation guards and outside-transaction committed reads; prove caller boundaries.
- Open owner transactions explicitly instead of depending on a Spring proxy.Minor
bindandabortcallrepository.reserve,repository.commit, andrepository.abortfrom a context thatrequireNoAmbientTransaction()guarantees has no transaction. Each repository method callsrequireWritableReadCommittedOwnerTransaction(), and that check throws if no transaction is active. These calls work only whenrepositoryis a Spring transactional proxy.The other inactive seams in this PR are documented as "directly constructible", for example
HistoricalOriginalStartSessionOwnerEvidenceReadGrpcService.CanonicalInitialAdmissionHoldPreparationuses its ownPROPAGATION_REQUIRES_NEW/READ_COMMITTEDTransactionTemplate. If this service is wired the same way, with a directly constructed repository, everybindandabortthrowsIllegalStateException.Inject a
PlatformTransactionManagerand wrap each mutation in aTransactionTemplate, asCanonicalInitialAdmissionHoldPreparationdoes. This matches that class and removes the hidden dependency on proxying.Also applies to: 52-52, 69-69, 76-76
- Accepted Valid owner-transaction composition gap: directly constructed service calls guarded repository mutations without explicit transaction, relying on proxy annotations. Add REQUIRES_NEW READ_COMMITTED owner transaction boundaries, keeping remote verification and committed readback outside SQL.
- Add the new owner-read producer anchors to the
GR-1.1Capability Status row.MinorThe narrative now describes the World-only
GetCanonicalInitialAdmissionOwnerProofproducer and the historical evidence read. TheGR-1.1row still lists only the older initial-admission anchors. It does not list these:CanonicalInitialAdmissionOwnerReadGrpcServiceCanonicalInitialAdmissionOwnerReadWorkloadGuardCanonicalInitialAdmissionRepositoryV39__canonical_initial_admission_fresh_scope_guard.sqlGetCanonicalInitialAdmissionOwnerProofingame_session_service.proto
The row also lists none of the new focused proof anchors. Two examples are
CanonicalInitialAdmissionOwnerReadGrpcServiceTestandCanonicalInitialAdmissionRepositoryIntegrationTest. The row text should also state that the PostgreSQL cases have compiled but have not executed.The repository guideline names capability rows as the complete scan-first status surface. Fix this by adding the anchors to the
GR-1.1implementation and proof cells. Keep the verification status ataudited.As per coding guidelines: "Each tracker contains one
Capability Statusrow for every capability it primarily owns… the capability rows are the complete scan-first status surface" and "implementedandpartialrows name concrete production anchors."- Accepted Useful tracker omission: GR-1.1 must expose new owner-read implementation and focused proof anchors. Correct proof status using now-executed exact6785 CI evidence; do not repeat stale unexecuted-PG claim.
- Hosted Review 1 CompletedRuntime 9m 33sFound: 5 Accepted: 2/2/0 Routed: 0
- Use the same text validation for catalog creation and the current-OPEN snapshot.Major
Catalog creation accepts a non-canonical
realmSlug, untrimmedrealmDisplayNameandcharacterCreationPolicyvalues, and acharacterCreationPolicyof up to 64 code points.CanonicalCurrentOpenPointerSnapshotDigest.Projectionrejects all of these values.CanonicalInitialAdmissionRepository.commitwrites the OPEN pointer without building aProjection. Every laterreadCurrentOpenSnapshotForRealmcall for that realm then fails with a rawIllegalArgumentException. The catalog and the pointer are immutable, so the realm cannot recover.services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/dto/CreateCanonicalRealmCatalogRequest.java#L42-L66: requireRealmEntryPolicy.isCanonicalSlug(realmSlug). Reject leading or trailing whitespace inrealmDisplayNameandcharacterCreationPolicy. LimitcharacterCreationPolicyto the snapshot bound of 32 characters, or use a shared validator.services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalCurrentOpenPointerSnapshotDigest.java#L187-L227: keep these bounds in the shared validator. As a fallback, translate constructor failures toCanonicalInitialAdmissionReconciliationRequiredExceptioninCurrentOpenPointer.snapshotDigest.
📍 Affects 2 files
services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/dto/CreateCanonicalRealmCatalogRequest.java#L42-L66(this comment)services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalCurrentOpenPointerSnapshotDigest.java#L187-L227
- Accepted Accepted correctness defect: immutable catalog creation admits slug/text/policy values rejected by CurrentOpenPointerSnapshotDigest. Align ingress with canonical slug and readback text bounds; add rejection and readable-boundary regression proof.
- Add an explicit transaction boundary before registering this service.Minor
CanonicalInitialAdmissionRepositorydeclares@Transactional, but the repository is a directly constructed concrete class in the integration setup and has no Spring bean registration in the inspected main source. In that binding, the annotations do not intercept calls. BecauseDatabaseCanonicalInitialAdmissionServicerejects ambient transactions,reserve,commit, andabortcan reach their writable-transaction guard without an active transaction and throw.Wrap each mutation in a
TransactionTemplate, or inject the repository only as a Spring-managed transactional proxy.- Accepted Accepted transaction-composition gap, same obligation as CLI run.25d76646aa914c10b5de68ca399c5bf8 finding2. One shared explicit writable REQUIRES_NEW READ_COMMITTED batch; remote reads outside SQL, direct-construction proof. No duplicate fix.
- Remove the PR-stack wording from the canonical docs.Minor
Both paragraphs describe how this PR was split, using terms such as "prerequisite stage", "prerequisite's CI", and "separated ... without changing the composed production implementation". They do not state the current implementation status. This wording becomes stale transitional guidance after merge. As per path instructions: "Flag obsolete transitional guidance".
design/architecture/microservices/game-session-service/api-contracts.md#L11-L11: state the inactive original-claim preparation, its fixture coverage, and the unproved physical PostgreSQL execution. Do not refer to the prerequisite stage.design/project-management/implementation-tracking/player-access-and-session.md#L19-L19: replace the split narrative with the current status. The classes are unregistered and default-denied, the V34.3 upgrade fixture exists, and physical PostgreSQL proof is pending.
📍 Affects 2 files
design/architecture/microservices/game-session-service/api-contracts.md#L11-L11(this comment)design/project-management/implementation-tracking/player-access-and-session.md#L19-L19
- Accepted Accepted current-PR documentation convergence: remove obsolete PR-stack narrative; retain inactive/default-denied status and cite actual physical PostgreSQL CI proof rather than the suggested stale blanket unrun claim.
- Do not bind hold attachment to the mutable current row version.Major
preparecommitsreserve, callsworldClient.acquire, then callsattach.sourceBindingstorescurrentRowVersion, andrequireExactRetrycompares the complete binding. If a Game Instance update incrementsrow_versionafter World issues the hold,attachconflicts. The intent remainsPENDING_HOLD, and a retry also conflicts whilefindPendingRealmIntentblocks another intent for the realm. This can strand a non-expiring World hold.Compare immutable source fields and
capturedStartingRowVersionexactly, but acceptcurrentRowVersion >= capturedStartingRowVersion. Preserve the other exact-binding checks.- Accepted Accepted hold liveness bug: immutable source equality includes mutable currentRowVersion, stranding attachment on benign advance. Keep immutable fields/start version exact; permit only monotonic live advance, reject regression or changed authority, retain original snapshot/hold.
- Reconcile Line 19 with the new unregistered-endpoint status.Minor
Line 11 states that the World-only initial-admission owner read is unregistered and not deployed. The unchanged Line 19 in the same tracker says something different:
- It says the method-specific Game Session owner-proof read is "connected to World's hold reconciler".
- It says the run-owned Compose coordinator is "wired".
The Game Session API contract and the PR scope both state that the owner-read preparations are inactive and unregistered. The tracker now gives two conflicting statuses for one capability. Change Line 19 to say that the owner read and coordinator are prepared but unregistered. Alternatively, remove the "connected"/"wired" claim.
As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes". As per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs".
- Rejected Rejected conflation: existing disabled-default RunOwnedInitialAdmissionFixtureCoordinator is @Component; InitialAdmissionBindOwnerProof read is wired. New CanonicalInitialAdmissionOwnerReadGrpcService is distinct and unregistered. Clarify distinction, do not erase actual wiring.
- Hosted Review 2 CompletedRuntime 7m 33sFound: 2 Accepted: 0/1/1 Routed: 0
- Compare the boxed pointer versions by value, not by reference.Trivial
Attempt.pointerVersion()is aLong, andevidence.get("pointer_version", Long.class)returns aLong. In Java,!=between twoLongobjects compares references. The JVM cachesLongvalues only from -128 to 127. For a committed pointer version above 127, the comparison is true even when the values are equal.verifyCommittedReadbackthen throwsCanonicalInitialAdmissionReconciliationRequiredExceptionfor a valid COMMITTED result.The current code cannot reach this case:
verifyOriginalClosedOriginlimitsEXPECT_CLOSEDto a prior version of 1, so the committed version is at most 2. The defect becomes live when that constraint is relaxed. The neighboring checks unbox correctly because one side is a primitive. Make these two checks safe in the same way.♻️ Proposed fix
--- "a/services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalInitialAdmissionRepository.java" +++ "b/services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/repository/CanonicalInitialAdmissionRepository.java" @@ -687,8 +687,9 @@ || attempt.gameSessionTenantId() != evidence.get("audit_game_session_tenant_id", Long.class) || attempt.gameInstanceId() != evidence.get("game_instance_id", Long.class) || attempt.gameInstanceId() != evidence.get("audit_game_instance_id", Long.class) - || attempt.pointerVersion() != evidence.get("pointer_version", Long.class) - || attempt.pointerVersion() != evidence.get("audit_pointer_version", Long.class) + || !Objects.equals(attempt.pointerVersion(), evidence.get("pointer_version", Long.class)) + || !Objects.equals( + attempt.pointerVersion(), evidence.get("audit_pointer_version", Long.class)) || attempt.expectedCatalogRevision() != evidence.get("catalog_revision", Long.class) || attempt.expectedCatalogRevision() != evidence.get("audit_catalog_revision", Long.class) || !"OPEN".equals(evidence.get("admission_state", String.class))- Accepted Accepted local boxed Long value-equality defect; retain allowed pointer-version constraints and test distinct >127 objects without broadening admission.
- Align the proof statements in this tracker with the new physical CI record.Minor
Line 17 now says that exact-head run 38041747105 executed the "request-ID migration 1" case and the V34.3-to-V39 upgrade. The unchanged
AA-2.1capability row (Line 80) still says "The V34.3 PostgreSQL fixture is unrun". It linksCanonicalGameplayInitialAdmissionIntentRequestIdMigrationIntegrationTest.javaas its proof anchor. The two statements conflict.Line 21 also says that job
114071452179failed 21 of 218 cases and that "Replacement physical proof remains required". It does not say whether the 68-case run on6785bcc2covers those 21 corrected cases.Make these changes:
- At Line 80, update the
AA-2.1gap text to record the bounded physical execution of the V34.3 fixture. Keep the verification status unchanged unless focused proof supports a change. - At Line 21, state whether the 21 failed cases are included in the 68 executed cases, or whether they still wait for physical execution.
As per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs". As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned".
- Accepted Accepted stale AA2.1 physical-proof gap and conflicting historical failure narrative; align attributable current CI artifacts while retaining activation/continuous-authority gaps.
- At Line 80, update the
- CLI Review 3 CompletedRuntime 3m 51sFound: 5 Accepted: 2/2/1 Routed: 0
- Reject a stale origin at reserve time. If you do not, the attempt can never reach a terminal state.Major
reservechecks only for anotherPENDINGattempt. It does not check the tagged origin against current pointer state. After request A commits the firstOPENpointer, a newNO_PRIOR_POINTERrequest B for the same realm still reserves asPENDING. Request B then has no way to finish:commitfails inrequireNoAdmissionPointerRepresentations.abortcalls the same check (Line 277-286) and also throwsCanonicalClosedPointerConflictException.
B stays
PENDINGpermanently.findPendingForRealmthen blocks every later reservation for the realm. World also cannot get a positive durableABORTEDresult for B's hold, so its termination stays fenced. The same gap applies to anEXPECT_CLOSEDrequest after the CLOSED route has opened.For new attempts, validate the origin before the insert. For
NO_PRIOR_POINTER, call the representation-absence check under the target lock. ForEXPECT_CLOSED, check that the original CLOSED row is still current.- Accepted Accepted: reject stale tagged origin before creating PENDING under existing locks; prevent unterminalizable reservations and prove both origin variants.
- Put the World-only owner-proof read in its own gRPC service.Major
The new RPC belongs to
GameSessionControlPlaneService. Its only producer extendsGameSessionControlPlaneServiceImplBase. gRPC routes each service name to one definition. If the producer is registered, it collides with the live control-plane implementation, and every other control-plane RPC returnsUNIMPLEMENTEDfrom this class. The historical read already uses a dedicated service.services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/impl/CanonicalInitialAdmissionOwnerReadGrpcService.java#L25-L26: extend the new dedicated service's ImplBase. Update the method-name check inCanonicalInitialAdmissionOwnerReadWorkloadGuard.protos/game-session/v1/game_session_service.proto#L45-L48: moveGetCanonicalInitialAdmissionOwnerProofinto a separate service, for exampleCanonicalInitialAdmissionOwnerProofReadService.
- Accepted Accepted: separate unregistered World-only owner-proof service from live control-plane service identity, preserving workload authorization and proving distinct descriptors.
- Add anchors for the World-only owner read to the
GR-1.1row.MinorLine 11 describes a new unregistered World-only initial-admission owner read. The
GR-1.1row does not nameCanonicalInitialAdmissionOwnerReadGrpcService.java,CanonicalInitialAdmissionOwnerReadWorkloadGuard.java, orGetCanonicalInitialAdmissionOwnerProofas implementation anchors. It also omitsCanonicalInitialAdmissionOwnerReadGrpcServiceTest.javaandHistoricalOriginalStartSessionOwnerEvidenceReadWorkloadGuardTest.javaas proof anchors. The coding guideline requirespartialrows to "name concrete production anchors." The guideline also requires each tracker to "keep its status, implementation record, validation... sections aligned."- Accepted Accepted: add missing concrete World-only owner-reader, guard, RPC and test anchors to the owning capability row, without claiming activation.
- Make the package declarations match the
unit/source directory.TrivialTwo tests under
src/test/java/unit/...declarenet.firedevops...packages. The sibling tests in the same directory declareunit.net.firedevops.... Tests filtered by theunit.prefix can miss these two files, and some tools flag the package/directory mismatch.services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/impl/CanonicalInitialAdmissionOwnerReadGrpcServiceTest.java#L1-L1: change the package tounit.net.firedevops.firemud.gamesession.service.impl, or move the file to the non-unitdirectory if it needs package-private access.services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/impl/DatabaseCanonicalInitialAdmissionServiceTest.java#L1-L1: apply the same package or directory fix.
- Accepted Accepted package/directory consistency correction; both public-only tests can use unit.net packages without visibility changes. Test execution is not assumed missed.
- Report the failed physical job
114071452179consistently in all three documents.Minordesign/project-management/implementation-tracking/player-access-and-session.mdLine 21 records that physical Game Session job114071452179onc79103014c1b991f4caaa3f1fef04652ec1adda8failed 21 of 218 integration cases. One failure is a fresh source-bound tenant guard rejecting a canonical pointer insert. The other documents still describe the later regressions as unexecuted, and the narrative paragraphs contradict each other.design/architecture/microservices/game-session-service/api-contracts.md#L11-L11: replace "remain unexecuted until a later physical run" with the failed job reference, and state that replacement physical proof is still required.design/project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md#L11-L11: replace "compiled but require execution" with the failed job outcome.design/project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md#L52-L52: in theGR-1.1verification cell, change "remains physically unrun" to cite job114071452179and the canonical pointer guard failure.design/project-management/implementation-tracking/player-access-and-session.md#L17-L27: collapse the repeated snapshots (271/1,992, 283/2,006, 287/2,010) into one current proof statement. Correct the stale "not executed" claim at Line 29 against run38041747105.
As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned."
- Accepted Accepted limited proof-status correction: reconcile historical failures and bounded physical execution across the three current documents; no runtime proof inflation.
- CLI Review 4 CompletedRuntime 3m 35sFound: 4 Accepted: 0/3/1 Routed: 0
- Name test proof, not a production class, and add the historical-read tests.Minor
The
GR-1.1Verification cell citesCanonicalInitialAdmissionOwnerReadWorkloadGuard.javaundersrc/mainas the source of the "same-namespace caller checks". That file is production code, not executable proof. Cite the test that exercises the guard instead.The row also claims the historical original-owner evidence reads ("Historical original-owner evidence reads are read-only"), but its Proof anchors list neither of the matching tests that this PR adds:
HistoricalOriginalStartSessionOwnerEvidenceReadGrpcServiceTest.javaHistoricalOriginalStartSessionOwnerEvidenceReadWorkloadGuardTest.java
Add both to the Proof anchors column, and replace the guard link in the Verification cell with its test.
As per coding guidelines: "executable proof anchors target tests or canonical validation/CI/smoke tooling" and "production anchors stay outside test-only and documentation-only surfaces".
- Accepted Accepted current PR documentation proof gap: cite executable owner-read guard coverage and the two existing historical-read test anchors, not production classes as test proof.
- Use one shared helper for file-backed mTLS validation.Trivial
Three new clients each contain their own copy of the plaintext, classpath and readable-file checks on
CommonGrpcClientProperties. If one security-boundary check changes and the others do not, a client can accept weaker transport material without anyone noticing.services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/AuthoredWorldLaunchDescriptorClient.java#L165-L200: replacerequireFileBackedMtlsandrequireReadableFilewith a call to a sharedcommon.grpchelper that takes an error label.services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamesession/HistoricalOriginalStartSessionOwnerEvidenceReadClient.java#L133-L165: replace the local copies with the same shared helper call.services/common-platform-core/src/main/java/net/firedevops/firemud/common/world/WorldCanonicalInstanceLifecycleClient.java#L122-L155: replace the local copies with the same shared helper call.
- Accepted Accepted bounded current-PR maintainability correction: the three read clients duplicate equivalent fail-closed file-backed mTLS checks. Consolidate only these checks with focused denial regressions; do not broaden transport policy.
- Move validation-run evidence out of the architecture contract.Minor
Line 11 puts CI run IDs, commit SHAs, and exact test counts (2,051 unit, 232 integration, 39 cross-service) in the canonical architecture document. That content is implementation proof evidence, so it belongs in the implementation tracker. The trackers already have it, in
game-session-runtime-and-tick-coordination.md(Line 11 and theGR-1.1row) and inplayer-access-and-session.md(theAA-2.1row).Keeping copies in several documents has already caused drift:
player-access-and-session.mdLine 21 still says physical proof "remains required". Keep the technical boundary statements here, and link to the tracker for proof status.📝 Proposed edit
-The original-claim preparation remains inactive and default-denied: the exact owner repositories, authenticated Account-projection read/pin clients, and descriptor evidence are not registered for runtime admission. Earlier exact-head [Validation run 38041747105](...) ... These are code and database test results, not runtime activation: production composition, World-backed playable admission, continuous owner authority through commit, and historical-owner reconciliation remain unproved. +The original-claim preparation remains inactive and default-denied: the exact owner repositories, authenticated Account-projection read/pin clients, and descriptor evidence are not registered for runtime admission. Production composition, World-backed playable admission, continuous owner authority through commit, and historical-owner reconciliation remain unproved. Current validation evidence is recorded in the [Game Session runtime tracker](../../../project-management/implementation-tracking/game-session-runtime-and-tick-coordination.md#capability-status).As per path instructions: "Architecture owns technical target state". As per coding guidelines: keep "technical contracts in the canonical architecture documents".
- Accepted Accepted canonical-owner cleanup: remove copied CI IDs/counts from architecture implementation-status prose, preserve inactive technical boundary and link to existing tracker proof.
- Update the stale physical-proof statements in Current Status.Minor
The
AA-2.1row (Line 80) records exact-head Validation run 38046952247 with 232 integration cases, zero skips and zero failures. The narrative still says the opposite:- Line 17: regressions added after run 38041747105 "remain unexecuted until a later physical run".
- Line 19: "new or changed PostgreSQL regressions still require physical execution".
- Line 21: job
114071452179failed 21 of 218 cases, and "Replacement physical proof remains required after the corrections". - Lines 23–27: the PostgreSQL fixtures "remain unexecuted" or "have not physically executed".
A reader cannot tell which statement is current.
Do one of the following:
- If run 38046952247 covers these fixtures, state that it supersedes job
114071452179, and mark the earlier local-only paragraphs as historical. - If it does not cover them, add that limitation to the
AA-2.1row.
As per path instructions: "Flag obsolete transitional guidance". As per coding guidelines: "Keep its status, implementation record, validation, gaps … aligned".
- Accepted Accepted current-PR stale proof narrative: align historical local/failed runs with attributable later green full physical suite, retain unproved runtime/continuous/restart guarantees and avoid pretending case-by-case historical mapping.
- Hosted Review 3 CompletedRuntime 7m 38sFound: 3 Accepted: 1/2/0 Routed: 0
- Reject invalid
worldDisplayNamevalues before committing an OPEN pointer.MajorAuthoredWorldSourceEvidenceandvalidateSourcedo not enforce a nonblank, trimmed, 200-character bound. Catalog creation persists the source value, andwriteOpenPointercopies it into the OPEN pointer. TheProjectionconstructor rejects that value whenreadCurrentOpenSnapshotForRealmcomputessnapshotDigest, so the read throws rawIllegalArgumentExceptioninstead ofCanonicalInitialAdmissionReconciliationRequiredException.Apply the same bound during source or catalog validation before the pointer insert. Also translate projection-construction failures into
CanonicalInitialAdmissionReconciliationRequiredExceptionso malformed persisted state follows the reconciliation contract.- Accepted Partially accepted Major: shared digest already denies blank/overlong names, but padded names reach GS OPEN writes and fail snapshot validation. Reject padding at intake; translate malformed persisted snapshots to reconciliation. No shared-contract expansion.
- Reconcile the physical-proof status in Line 21 with the newer exact-head run.Minor
Line 21 says that physical job
114071452179failed 21 of 218 integration cases. It also says "Replacement physical proof remains required after the corrections." Line 80 now cites exact-head run 38046952247 with 232 integration cases and zero skips or failures. The tracker does not state whether that run includes the 21 corrected cases. The open requirement in Line 21 therefore conflicts with the zero-failure record in Line 80. Update Line 21 so that it either cites run 38046952247 as the replacement physical proof or names the cases that still wait for execution. Line 67 also still links an "unrun" V34.3 fixture. Line 80 now records that the same fixture passed.As per coding guidelines: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned". As per path instructions: "Flag obsolete transitional guidance".
- Accepted Partially accepted: the obsolete earlier-run claim is already corrected in local b4b58953fd using exact efcd physical evidence; the V34.3 unrun label remains stale and will be corrected without implying complete live admission proof.
- Release the client monitor before closing the watcher.Minor
initReloadingClient()registersthis::safeReload, andsafeReload()calls synchronizedreloadChannel(). This override holds the client monitor whilesuper.close()closes the watcher. During an active certificate reload, watcher shutdown can wait up to five seconds while the callback waits for the client monitor. The watcher bounds this wait, so the result is a shutdown delay rather than an indefinite hang.--- "a/services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/AuthoredWorldLaunchDescriptorClient.java" +++ "b/services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/AuthoredWorldLaunchDescriptorClient.java" @@ -139,12 +139,14 @@ .withCompression("gzip"); } @Override - public synchronized void close() throws IOException { - closed = true; - initialized = false; + public void close() throws IOException { + synchronized (this) { + closed = true; + initialized = false; + } super.close(); } private GameDesignServiceGrpc.GameDesignServiceBlockingStub requireStub() { GameDesignServiceGrpc.GameDesignServiceBlockingStub currentStub = stub();- Accepted Verified source-owned bounded shutdown delay: subclass synchronized close retains the monitor while watcher callback waits for synchronized reload. Release the monitor before base close and add deterministic concurrent shutdown proof.
- CLI Review 5 CompletedRuntime 2m 38sFound: 6 Accepted: 0/3/2 Routed: 0
- Replace the reflective access to private members with a package-private seam.Trivial
The test uses reflection to call
snapshotDigestOrReconciliationand to construct$CurrentOpenPointer. A rename or signature change in the repository breaks these tests at runtime only, with anAssertionErrorthat wrapsNoSuchMethodException. The test is already in the repository's package. Make the method and the record constructor package-private, annotate them@VisibleForTesting, and call them directly. The compiler then checks the contract.- Accepted Accepted compiler-checked package test seam for snapshot digest and immutable pointer; replace reflection without widening public API. Local bounded fix pending.
- Release the client monitor before
super.close().Minorclose()issynchronizedand callssuper.close()while it holds the client monitor.super.close()closes the TLS certificate watcher.AuthoredWorldLaunchDescriptorClientTest.closeReleasesClientMonitorBeforeClosingCertificateWatchershows the risk. A watcher callback thread must acquire the client monitor, andwatcher.close()can wait for that callback. In that caseclose()deadlocks during shutdown.AuthoredWorldLaunchDescriptorClientalready avoids this. It updates its flags in a shortsynchronizedblock and callssuper.close()outside that block.🔒 Proposed fix
@Override - public synchronized void close() throws IOException { - closed = true; - initialized = false; + public void close() throws IOException { + synchronized (this) { + closed = true; + initialized = false; + } super.close(); }- Accepted Accepted real certificate-watcher shutdown deadlock: release Historical client monitor before watcher close and add deterministic regression. Fix pending Hosted-safe publication.
- Release the client monitor before
super.close().MinorThis
synchronized close()holds the client monitor whilesuper.close()closes the certificate watcher. A watcher callback that needs the same monitor can block, and the shutdown can deadlock.AuthoredWorldLaunchDescriptorClientand its test already guard against this case. Apply the same pattern here.🔒 Proposed fix
@Override - public synchronized void close() throws IOException { - closed = true; - initialized = false; + public void close() throws IOException { + synchronized (this) { + closed = true; + initialized = false; + } super.close(); }- Accepted Accepted same real certificate-watcher shutdown deadlock in World lifecycle client, with deterministic regression. Fix pending Hosted-safe publication.
- Add front-door proof anchors to support the
provenverification state.MinorThe Verification cell claims
provenfor front-door routing "through the existing WebSocket, normalization, and gRPC tests." This change removed the earlier front-door test list. The Proof anchors cell now lists only owner-proof, historical-owner, initial-admission, and migration tests. No WebSocket handler test, handshake test,SessionRoutingNormalizationServicetest, orGameSessionGrpcServicetest is linked.The tracker contract requires named proof for a
provenrow. A reader cannot resolve the front-door claim to a repository-local test. Ifdev-tools/tests/architecture-doc-contracts.shchecks proof anchors against claims, this row may also fail it.Restore the focused front-door test links in the Proof anchors cell. If those links are not restored, change the verification state for that sub-claim to a value the listed proof supports.
As per coding guidelines: "A
provenrow must also name focused executable proof" and "executable proof anchors target tests or canonical validation/CI/smoke tooling."- Accepted Accepted missing executable front-door proof links for existing proven tracker subclaim. Restore canonical focused test anchors; no new runtime proof claim. Local fix pending.
- Use one implementation of the Account projection encoding.Trivial
expectedAccountProjectionrebuilds the canonical Account redemption projection bytes with a localMapand RFC 8785 JSON.CanonicalGameInstanceLaunchAssociationRepositorychecks the same bytes throughGameSessionStartSessionOperatorAttemptRepository.AccountRedemptionProjection.canonicalBytes(). The two encodings must stay byte-identical. If one changes alone, for example in a field name or a numeric type forissuanceFence,Resultrejects every valid historical read, and both producer and client fail closed.Move the projection encoder into
common-platform-core. Make the Game Session repository call the shared encoder, or delegate to it. If you keep two encoders, add a unit test that compares both encodings on the same tuple.- Rejected Already proved: HistoricalOriginalStartSessionOwnerEvidenceReadGrpcServiceTest.fixture passes real repository AccountRedemptionProjection.canonicalBytes into Common Result, whose constructor independently validates the encoding. The exact World/Account positive test executes this cross-layer parity.
- Isolate the overflow case in this test.Trivial
This test supplies
expectedPriorPointerVersion = Long.MAX_VALUEand a committed pointer version of1L. Two different checks can cause theFAILED_PRECONDITIONresult:- The
Math.addExactoverflow guard. - A plain
committed != prior + 1mismatch.
If a later change removes the overflow guard, the mismatch still fails the request, and this test still passes. To prove the overflow path, assert the specific status description. Alternatively, add a case where the overflow is the only failing condition.
- Accepted Accepted focused proof improvement: assert the codec overflow-specific exception/cause directly; the service intentionally gives the same ambiguous status for other malformed proof. Local bounded fix pending.
- The
- CLI Review 6 CompletedRuntime 3m 40sFound: 1 Accepted: 0/0/1 Routed: 0
- Record the exact-head run totals once and link to that record from the other locations.Trivial
This tracker repeats the same Validation run 38049505627 facts in several places: Lines 17, 21, 23, 27, and 29, Line 67, and the
AA-2.1row at Line 80. These facts are the 2,054/234/39 case counts, the 2,327 total, and the "not a one-to-one audit of the 21 failures" qualifier. The Game Session runtime tracker (GR-1.1, Current Status) already records the same run.Each copy must change whenever the run is superseded, so the copies are likely to drift apart. Put the run, its totals, and the per-suite counts in one paragraph. Change the other paragraphs to point to that paragraph, or to the
GR-1.1row that owns the initial-admission sub-boundary. Keep only the player-access consequences in this file, for example thatAA-2.1stayspartial/drift-found.This follows the tracker rule: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes." It also follows a retrieved learning: implementation-tracking docs must "use this documentation only to track implementation-specific status, decisions, or links to the canonical definitions."
- Accepted Verified repeated exact-run totals and qualifiers in the Player Access tracker. Consolidate one proof paragraph and link player-access consequences; no runtime change.
- CLI Review 7 CompletedRuntime 2m 36sFound: 1 Accepted: 0/0/1 Routed: 0
- The hold-binding distinctness assertion cannot fail.Trivial
initialAdmissionRequestDigest()already uses thesha256:<hex>form. The fixtures and the forged-digest case at Line 333 use this form. With an extra"sha256:"prefix, the expected value becomessha256:sha256:.... That value can never equalholdBindingDigest(). As a result, the assertion does not check that the hold binding digest differs from the request digest. Compare the two digests without the extra prefix.♻️ Proposed fix
- assertNotEquals( - "sha256:" + request.initialAdmissionRequestDigest(), identity.holdBindingDigest()); + assertNotEquals(request.initialAdmissionRequestDigest(), identity.holdBindingDigest());- Accepted Trivial test-proof correction: the request digest already has its sha256 prefix; adding it again makes the distinct hold-binding digest assertion tautological. Compare the two canonical digests directly.
Routed Findings
No routes recorded
Unlinked items
no items unlinked