PR #3122 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: 2 Accepted: 2 Routed: 0
- Asset storage status contradicts implemented durable mappings and export snapshotsMinor
- Accepted Correct the canonical owner document to distinguish implemented durable mappings/snapshots/content-addressed export from the missing authorized mapping producer and unavailable physical/runtime proof.
- Fresh publication can freeze an empty asset mapping set without an owner-authorized mapping producerMajor
- Accepted Current foundation owns immutable export selection but associateDraftAsset has no production caller. Preserve mapping ownership and fail closed at fresh publication ingress rather than invent association authority; exact guarded mechanics boundary requested from Overseer in 944df2ec.
- Subagent Review 2 CompletedModel: gpt-6-luna · XhighFound: 2 Accepted: 2 Routed: 0
- Published asset repair rejects the completed publication attemptMajor
- Accepted Composed repair calls the publication exporter which rejects the normal SUCCEEDED attempt. Implement exact immutable candidate readback and bundle validation before repair writes; do not relax fresh publication authority.
- Artifact lifecycle CAS status contradicts implementationTrivial
- Accepted Artifact repository implements epoch predicate and affected-row check; distinguish that from missing Version CAS and unavailable physical proof in the tracker and linked asset documentation.
- Subagent Review 3 CompletedModel: gpt-6-luna · XhighFound: 6 Accepted: 2 Routed: 4
- Asset docs still describe obsolete unconditional failure/delete compensationMinor
- Accepted Current private mechanics use exact publication readback and retain Version; correct owner status and linked proof limits.
- Artifact-state read trusts generic internal bearerMajorRoute · PR #3122 → Unassigned target OpenInherited launch/state read authorization needs exact workload and tenant binding at source/read owner. Preserve as target obligation, not source taper credit. View routed finding
- Version lifecycle CAS can assert unsafe states without durable fencingMajorRoute · PR #3122 → PR #3120 Accepted/FixedInherited Version lifecycle mutation is outside extracted storage implementation; source/lifecycle owner must contain unsafe transitions and prove real CAS, without fabricated release authority. View routed finding
- Hosted upload lacks Account-owned currentness gateMajorRoute · PR #3122 → Unassigned target OpenAccount/Game Design upload admission ownership needs fail-closed hosted containment or genuine Account gate; unchanged upload path not implemented by this extraction. Target owner unassigned pending coordination. View routed finding
- Release-bundle read lacks caller-to-tenant bindingMajorRoute · PR #3122 → Unassigned target OpenScope to Game Design source/read authorization owner; same-namespace workload is not tenant authority. Exact ingress containment/carrier ownership requires current source-boundary decision; no blanket proven-terminal denial. View routed finding
- Purge eligibility permits missing or wrong-tenant Version authorityMinor
- Accepted Require existing exact tenant Version in RETIRED before eligibility; add absence, wrong-tenant and positive-retired proof.
- Subagent Review 4 CompletedModel: gpt-6-luna · XhighFound: 2 Accepted: 1 Routed: 0
- Terminal owner reads retain incomplete tenant authority bindingMajor
Exact61-file5b3bd1475 review. Existing route IDs:fb1fcc76a6bea52a60df62f6324b13ba45d8323a137997e67805dac573a0d002;5398490ff5749354567edd8ed663b6d4c6f885e51c164f739fd6864c9156daf9. Full owner authority still required.
- Rejected Duplicate, not rejected on merit: existing3120 pass3 tenant-release/artifact-read routes own this gap. Earliest foundation containment remains authorized by Overseer944df2ec/fa64f8af; no new obligation or taper credit.
- Tracker claims mutable-key overwrite and cleanup races removed by immutable exportMinor
- Accepted Tracker line23 claims mutable-key overwrite and cleanup races despite immutable conditional writes/readback and denied physical deletion. Correct those claims; preserve genuine attempt-coordination and physical-proof limits. Fix pending.
- Hosted Review 1 CompletedRuntime 11m 03sFound: 9 Accepted: 8 Routed: 0
- Replace the reflection-only private seam with a package-private test seam.Trivial
reconcileFullVersionPublishMechanicshas no production caller; PMD reports it as an unused private method. Two tests reach it only throughgetDeclaredMethod("reconcileFullVersionPublishMechanics", ...)plussetAccessible(true):VersionPublishCommandServiceImplTestandPublishAttemptServiceTransactionIntegrationTest. If someone renames the method or changes its signature, compilation still passes and the tests fail only at runtime withAssertionError("... harness is unavailable").Make the method package-private and keep the comment that it is not an ingress. The tests are already in the same package (
...service.impl), so they can call it directly with compile-time checking. The publicreconcileFullVersionPublishguard stays the only production entrypoint.♻️ Proposed refactor
--- "a/services/game-design-service/src/main/java/net/firedevops/firemud/gamedesign/service/impl/VersionPublishCommandServiceImpl.java" +++ "b/services/game-design-service/src/main/java/net/firedevops/firemud/gamedesign/service/impl/VersionPublishCommandServiceImpl.java" @@ -107,11 +107,12 @@ return replayTerminalAttempt(request, attempt); } /** * Private non-ingress seam retained for mechanics proof until a production Draft source exists. + * Package-private for test access only; production ingress must use reconcileFullVersionPublish. */ - private PublishWorkflowSnapshot reconcileFullVersionPublishMechanics( + PublishWorkflowSnapshot reconcileFullVersionPublishMechanics( PublishWorkflowRequest request) { request = request.recoverMissingPublishRequestId(); validateRequestIdentity(request); logger.info(- Rejected Requested package-private seam would not reach the integration test, which is in service rather than service.impl. Keep the private proof-only mechanics seam and reflection; widening production reachability would bypass the shared public guard without solving the claimed package-access issue.
- CodeRabbit summary-only outside-diff finding 1 of 1 (aggregate; no individual detail)
summary-only aggregate; provider supplied no individual detail
- Accepted Outside-diff api-contracts PublishVersion paragraph contradicts the public fail-closed guard; document fresh/PENDING denial, exact terminal replay and incomplete Temporal target. Assigned documentation fix pending.
- Configure the Game Design namespace in the canonical mTLS profile.Major
getPublishedReleaseBundleinvokesrequirePublishedReleaseBundleReadAccess. The canonical mTLS profile setsFIREMUD_GRPC_WORKLOAD_NAMESPACE=devfor Game Session and World Management, but not Game Design. Game Design therefore keeps its blank default and returnsPERMISSION_DENIEDbefore serving every published-bundle read, even when the caller presents a valid mTLS identity.game-design-service: environment: <<: *grpc-mtls-environment + FIREMUD_GRPC_WORKLOAD_NAMESPACE: devThe plaintext profile provides no SSL peer identity because
GrpcPeerIdentityInterceptorderives the identity from the SSL session. Document published-bundle workflows as unsupported in plaintext mode, or run them with the mTLS profile.- Accepted Configure Game Design workload namespace in canonical Compose mTLS profile and focused proof; valid exact namespace calls currently fail closed without it. Assigned fix pending.
- Make the Game Design test counts consistent.Minor
Line 23 says the gate "passed 293 Game Design tests". Line 131 says validation "passed all 307 Game Design unit tests". These two counts in the same tracker describe the current publication proof differently. Use one current count, or state which run each number belongs to.
- Accepted Remove unanchored contradictory 293/307 test counts or attribute their exact historical scopes; do not invent a current execution count. Assigned fix pending.
- Complete the
launch_descriptorimmutability guard.MinorLaunchDescriptorRepository.savehas an existing-ID update path. Any caller that saves a legacy descriptor through that path will receive the trigger exception. Keep that path insert-only, or prevent it from receiving persisted descriptors.The trigger also does not block
TRUNCATE, despite the migration declaring the history immutable. The jOOQ convention generates a DDLDatabase configuration without a custom ignore-marker setting, so use the standardstopmarker.🔧 Suggested migration fix
- RAISE EXCEPTION 'launch descriptors are immutable'; + RAISE EXCEPTION 'launch descriptors are immutable' + USING ERRCODE = 'check_violation'; END; $$; CREATE TRIGGER trg_launch_descriptor_immutable BEFORE UPDATE OR DELETE ON launch_descriptor FOR EACH ROW EXECUTE FUNCTION reject_launch_descriptor_history_mutation(); --- [jooq ignore end] + +CREATE TRIGGER trg_launch_descriptor_no_truncate + BEFORE TRUNCATE ON launch_descriptor + FOR EACH STATEMENT + EXECUTE FUNCTION reject_launch_descriptor_history_mutation(); +-- [jooq ignore stop]- Accepted Add statement BEFORE TRUNCATE immutable-history protection and correct jOOQ ignore markers, with regression proof. Assigned fix pending.
- The
AR-3.2row still claims proof for the launch-descriptor seam.MinorThe changed
AR-3.1row (Line 62) and Line 147 now state thatResolveLaunchDescriptoralways fails closed withAUTHORED_WORLD_LAUNCH_BINDING_REQUIRED. TheAR-3.2row still says it isprovenfor "launch-descriptor" seams. Remove launch-descriptor from the proven scope ofAR-3.2, or describe the current fail-closed state. As per path instructions, "Flag obsolete transitional guidance, conflicts between architecture docs".- Accepted Correct AR-3.2 positive launch proof claim: current public path refuses with AUTHORED_WORLD_LAUNCH_BINDING_REQUIRED. Assigned fix pending.
- Do not delete identity-bearing script-patch drafts during failure cleanup.Major
VersionRepository.saveassigns every newVersiona non-nullcanonical_version_id.failScriptPatchthen executesdraft.ifPresent(versionRepository::delete)beforemarkScriptPatchFailed. The DELETE trigger raisescheck_violation, so the failure receipt is not recorded and script-patch failure recovery cannot complete.Retain the draft and set its
VersionLifecycleStatetoFAILED, or allow deletion only when no bundle, artifact, or snapshot references the draft.- Accepted Retain identity-bearing script-patch drafts and transactionally record FAILED instead of DELETE rejected by V35.1; preserve terminal replay and conflict guarantees. Assigned fix pending.
- Bind
authored_world_source_operation_idto the immutable source-operation row.MinorV34.1 makes
game_design_authored_world_source_operationsthe immutable owner of authored-world source evidence. This migration storesauthored_world_source_operation_id,target_namespace,canonical_tenant_id,world_slug, andauthored_world_source_evidence_digestonlaunch_descriptor. No constraint ties these columns to that table.- A bound
SUCCESSorFAILEDrow can reference an operation that does not exist. - A bound row can also copy a
world_slug, tenant, namespace, or evidence digest that differs from the referenced operation. authored_world_source_evidence_digest,request_digest, andresult_digesthave no^sha256:[0-9a-f]{64}$shape check. V34.1 enforces that shape on the source table.- The new digest columns use
VARCHAR(72). V34.1 usesVARCHAR(71)for the same digest format.
No producer writes bound rows yet, because
resolveLaunchDescriptoralways refuses. Add the constraint now, before a writer exists, so the database enforces the binding instead of relying on application code. Add a composite unique key on the source table, then add a composite foreign key that covers all the copied tuple columns.🛡️ Proposed constraint additions
+ALTER TABLE game_design_authored_world_source_operations + ADD CONSTRAINT uq_gd_authored_world_launch_binding UNIQUE ( + operation_id, target_namespace, canonical_tenant_id, world_slug, evidence_digest); + +ALTER TABLE launch_descriptor + ADD CONSTRAINT fk_launch_descriptor_authored_world_source FOREIGN KEY ( + authored_world_source_operation_id, + target_namespace, + canonical_tenant_id, + world_slug, + authored_world_source_evidence_digest) + REFERENCES game_design_authored_world_source_operations ( + operation_id, target_namespace, canonical_tenant_id, world_slug, evidence_digest); + +ALTER TABLE launch_descriptor + ADD CONSTRAINT ck_launch_descriptor_digest_shape CHECK ( + (authored_world_source_evidence_digest IS NULL + OR authored_world_source_evidence_digest ~ '^sha256:[0-9a-f]{64}$') + AND (request_digest IS NULL OR request_digest ~ '^sha256:[0-9a-f]{64}$') + AND (result_digest IS NULL OR result_digest ~ '^sha256:[0-9a-f]{64}$'));For a composite foreign key, PostgreSQL skips the check when any referencing column is NULL (MATCH SIMPLE). Legacy rows, which have all of these columns NULL, therefore stay valid.
- Accepted Bind descriptor copied source tuple through composite uniqueness/FK and enforce canonical nullable SHA-256 digest constraints, preserving legacy/all-or-none semantics. Assigned migration/regression fix pending.
- A bound
- These unchanged sentences now contradict the updated status notes.Minor
The updated notes in this file make three claims:
- Line 13 and Line 380:
VersionAssetArtifactRepository.savehas an epoch predicate and an affected-row check. - Line 20: purge eligibility fails closed for an absent or wrong-tenant Version.
The following unchanged sentences still describe the old behavior:
- Line 314: "the current implementation's in-memory check followed by an unconditional row-ID update".
- Line 415: "The current repositories do not implement those predicates or affected-row checks."
- Line 495: "Missing-tenant-matching-version/no-bundle eligibility (including a wrong-tenant version row) also currently fails open".
Update these sentences so they agree with the notes: artifact CAS exists, Version CAS is absent, and absent or wrong-tenant eligibility fails closed. As per path instructions, "Review docs for canonical-current-state consistency. Flag obsolete transitional guidance".
Also applies to: 415-415, 495-495
- Accepted Correct asset storage documentation to match implemented artifact CAS and affected-row checks; preserve explicit missing Version CAS and fail-closed API boundaries. Assigned fix pending.
- Line 13 and Line 380:
- CLI Review 1 CompletedRuntime 2m 54sFound: 4 Accepted: 0/3/1 Routed: 0
- Use the shared PostgreSQL test image in the new Game Session integration tests.Trivial
Three new integration tests hard-code
postgres:16-alpine.GameSessionStartSessionOperatorAttemptRepositoryIntegrationTestusesTestContainerImages.postgres(). Because of this, these tests run the Game Session migrations against a server version that can differ from the canonical test image. Version-dependent migration or trigger behavior can pass here and fail elsewhere.services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/GameSessionCanonicalRealmCatalogRepositoryIntegrationTest.java#L54-L54: replace"postgres:16-alpine"withTestContainerImages.postgres().services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/GameSessionCanonicalStartingInstanceRepositoryIntegrationTest.java#L76-L76: replace"postgres:16-alpine"withTestContainerImages.postgres().services/game-session-service/src/test/java/integration/net/firedevops/firemud/gamesession/repository/GameSessionFreshTenantAssociationRepositoryIntegrationTest.java#L49-L49: replace"postgres:16-alpine"withTestContainerImages.postgres().
Proposed fix (same at each site)
- static PostgreSQLContainer<?> postgres = new PostgreSQLContainer<>("postgres:16-alpine"); + static PostgreSQLContainer<?> postgres = + new PostgreSQLContainer<>(TestContainerImages.postgres());- Accepted Three new GS physical PG fixtures hardcode postgres16 instead of shared canonical image; use existing TestContainerImages.postgres for coherent proof.
- Remove the duplicate
FIREMUDGRPCWORKLOADNAMESPACErow.MinorRemove the duplicate `FIREMUD_GRPC_WORKLOAD_NAMESPACE` row.
Line 26 already defines
FIREMUD_GRPC_WORKLOAD_NAMESPACE. That row also states that blank configuration denies the reservation evidence RPC. Line 30 adds a second row for the same variable with a different purpose. Two rows for one variable make the table ambiguous. Merge the purposes into the existing row.Proposed fix
-| `FIREMUD_GRPC_WORKLOAD_NAMESPACE` | Canonical workload namespace for internal gRPC identity checks | *(none)* | | `FIREMUD_LOGGING_ADMIN_START_SESSION_OPERATOR_AUTHORIZATION_ENABLED` | Explicitly enables the local StartSession authorization coordinator composition | `false` |Also extend the Line 26 description: "Canonical workload namespace for internal gRPC identity checks, including the exact Account identity on the StartSession reservation evidence RPC and the enabled StartSession coordinator composition; blank configuration denies that method".
As per path instructions: "Review docs for canonical-current-state consistency."
- Accepted Duplicate workload-namespace configuration row verified; merge both purposes into one canonical row preserving blank-deny behavior.
- Make the accepted reservation phases consistent for
ReadCurrentClaimEvidence.MinorLine 9 states: "Only an exact, unexpired, active
ACCOUNT_AUTHORIZATION/AUTHORIZATION_PENDINGrow can supply evidence."The existing gRPC entry for the same RPC (Line 149) states a different rule. It accepts "an active, unexpired
AUTHORIZATION_PENDINGorAUTHORIZEDrow". It also describes recovery fromAUTHORIZEDas a lookup path.The two sections now give different acceptance rules for one RPC. Update one section so that both state the same phase set. If recovery from
AUTHORIZEDis supported, addAUTHORIZEDto Line 9 and state which purpose it applies to (RECOVERonly).As per path instructions: "Review docs for canonical-current-state consistency. Flag ... conflicts between architecture docs".
- Accepted Existing canonical phase gates support ISSUE pending only, RECOVER pending or AUTHORIZED lookup. Align contradictory same-owner implementation description; no authority expansion.
- Name the owning capability for the original-ACK storage preparation and add its anchors to that row.Minor
The other preparation subsections in this tracker name their owner, for example "owned by AA-1.3". The new "Account fresh original-ACK storage preparation" subsection names no capability. The changed
AA-1.3row (Line 105) also does not list the new production anchors:- the V140–V146 migrations
AccountGameplayAdmissionLeaseRepositoryAccountGameplayAdmissionOriginalCommitExecutorAccountGameplayAdmissionOriginalAckReceiptRepositoryAccountGameplayAdmissionOriginalAckReceiptCommitExecutor
The row also does not list the new
AccountGameplayAdmissionProtectedEntryPrototypeIntegrationTestproof anchor.The status row is the required scan-first status surface, so this work is currently not visible there. Add one sentence that names the owning capability (for example,
AA-1.3orAA-2.1). Then add the anchors to that row. Record in its gap cell that receiving-side physical PostgreSQL proof is pending.As per coding guidelines: "Each tracker contains one
Capability Statusrow for every capability it primarily owns. Existing narrative records remain useful context, but the capability rows are the complete scan-first status surface" and "implementedandpartialrows name concrete production anchors."- Accepted OriginalACK passive Account source belongs AA1.3; add actual V140-146 repositories/proof anchors and current physical receiving proof gap without activation claim.
- CLI Review 2 CompletedRuntime 2m 33sFound: 1 Accepted: 0/1/0 Routed: 0
- Name the owner of the redeemed-operation projection consumer.Minor
ADR 0047 Line 102 allows
ReadRedeemedOperationProjectiononly for the exact same-namespacegame-design-servicepeer.start-session-action-schema.mdLine 5 and Line 52 assign the template selector and the current-Account-projection consumer to Game Design.Line 137 sits in the Game Session operator-write status and starts with "Source-level Game Session code". The sentence then lists "the current-read consumer for Account's redeemed-operation projection" as unwired. A reader can conclude that Game Session consumes this projection, which conflicts with the ADR peer restriction. State that the consumer is Game Design-owned. Keep only the descriptor-commit transaction and runtime bootstrap/activation as Game Session gaps.
📝 Proposed wording
-Source-level Game Session code now contains the StartSession claim, Account redemption, and prepared-action binding. The current-read consumer for Account's [redeemed-operation projection](../../decisions/adr-0047-logging-admin-as-external-operator-write-ingress.md#redeemed-startsession-projection-read), the owner transaction that commits the selected descriptor, and runtime bootstrap/activation remain unwired. +Source-level Game Session code now contains the StartSession claim, Account redemption, and prepared-action binding. Game Design's consumer of Account's [redeemed-operation projection](../../decisions/adr-0047-logging-admin-as-external-operator-write-ingress.md#redeemed-startsession-projection-read) remains unwired; the Game Session owner transaction that commits the selected descriptor and runtime bootstrap/activation also remain unwired.As per path instructions: "Flag obsolete transitional guidance, conflicts between architecture docs".
- Accepted Verified ADR0047 exact GameDesign peer and action-schema ownership; clarify GameDesign-owned projection consumer while retaining GameSession commit/runtime gaps.
- Hosted Review 2 CompletedRuntime 9m 03sFound: 3 Accepted: 0/1/2 Routed: 0
- Extract the duplicated file-backed mTLS gate into one shared helper.Trivial
Three sites contain the same gate. Each copy resolves
GrpcTlsMaterialResolver, rejects plaintext, rejects classpath resources by checking for a nullwatchPath(), and checks each file withFiles.isRegularFileandFiles.isReadable. If one copy changes, the Account path and the Game Session handoff path can enforce different transport requirements. Put one static helper (for example,FileBackedMtlsRequirement.require(properties, resolver, purpose)) incommon-platform-core, next toGrpcTlsMaterialResolver.services/logging-admin-service/src/main/java/net/firedevops/firemud/loggingadmin/client/GameSessionClient.java#L143-L166: replacerequireFileBackedMtlsandisReadableFilewith a call to the shared helper, with purpose "StartSession owner handoff".services/logging-admin-service/src/main/java/net/firedevops/firemud/loggingadmin/client/StartSessionOperatorAuthorizationClient.java#L216-L239: replacerequireFileBackedMtlsandisReadableFilewith a call to the shared helper, with purpose "Account authorization".services/logging-admin-service/src/main/java/net/firedevops/firemud/loggingadmin/config/StartSessionOperatorAuthorizationConfiguration.java#L64-L89: replace the private static pair with a call to the shared helper, using the injected resolver and purpose "StartSession authorization".
📍 Affects 3 files
services/logging-admin-service/src/main/java/net/firedevops/firemud/loggingadmin/client/GameSessionClient.java#L143-L166(this comment)services/logging-admin-service/src/main/java/net/firedevops/firemud/loggingadmin/client/StartSessionOperatorAuthorizationClient.java#L216-L239services/logging-admin-service/src/main/java/net/firedevops/firemud/loggingadmin/config/StartSessionOperatorAuthorizationConfiguration.java#L64-L89
- Accepted Three verified equivalent file-backed mTLS gates should share existing canonical TLS owner helper; preserve purpose-specific errors and plaintext/classpath/unreadable rejection, focused call-site proof.
- Correct the PostgreSQL prototype case count.Minor
Line 37 says the prototype has 14 cases.
AccountGameplayAdmissionProtectedEntryPrototypeIntegrationTestactually declares 18@Testmethods:coldGenuine…,catalogChurn…,concurrent…,staleSerializable…,restrictedCaller…,ownFinalization…,historicalDurableRead…,staleSnapshot…,changedCaller…,originalLockWait…,originalUpdateBefore…,lostOriginal…,acknowledgementFromAnother…,lostReceipt…,returnedCommitFault…,retainedCommittedRetry…,rolledBack…, andgenuineAckSql….The tracker is the canonical proof inventory. A wrong count will make it harder to match the pending physical run against this record. Change "14-case" to "18-case", or name the subset if 14 was intentional.
The tracker guideline requires the status and validation sections to stay accurate: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned".
- Accepted Verified18 actual Test methods, tracker14 is stale; correct declared count and preserve physical proof limitation.
- Contract doc conflicts with the denial path; the
CreateCharacterbullet needs an update.TrivialThe handler now always returns
FAILED_PRECONDITIONfor valid requests. It keeps the tenant, account, and scope validation and never callsCharacterService. The denial matches the updated owner-protection section indesign/architecture/microservices/entity-management-service/api-contracts.md.The
CreateCharacterbullet in the gRPC list (Line 42 of that file) still describes the full allocation flow. Its last sentence calls the current path an "implementation/proof gap" and does not mention the denial. This can mislead readers into thinking allocation is live. Add a short note to that bullet that the RPC is currently denied before allocation.The
characterServiceconstructor parameter is now unused bycreateCharacter. Other methods still use it, so no code change is needed.The PMD duplicate-literal hint for "CreateCharacter" is low value and does not need a fix.
- Accepted Verified validCreateCharacter returns FAILED_PRECONDITION beforeCharacterService allocation; align existing owner API bullet with implemented denial while preserving canonical future contract.
- CLI Review 3 CompletedRuntime 2m 51sFound: 4 Accepted: 0/1/1 Routed: 1
- Verify that the handoff binds the Logging peer namespace to the tuple target namespace.Major
AuthorizeStartSessionis inpublic-methods, so the JWT interceptor does not check it. The transport accepts anylogging-admin-servicepeer with a syntactically valid namespace. The transport does not comparepeer.namespace()with the configuredfiremud.grpc.workload-namespace. It also does not compare the peer namespace withtuple.preAuthorizationTuple().action().scope().targetNamespace(). Without that binding, a Logging workload in another namespace could submit a tuple for this namespace. The comparison is safe only ifGameSessionStartSessionOperatorAuthorizationCoordinator.authorizeenforces it. That class receivesworkloadNamespace, but its source is not in the supplied context.Confirm that
authorizerejects the call withSecurityExceptionin two cases:- The current peer namespace differs from the configured workload namespace.
- The tuple target namespace differs from the configured workload namespace.
If
authorizedoes not enforce both checks, add a transport-level check here beforecoordinator.authorize. Also add a test with alogging-admin-servicepeer from another namespace.- Rejected Already enforced in coordinator.requireAuthenticatedLoggingPeer137–147 beforeowneraccess: exactpeer/configurednamespace, tuple/configurednamespace andpeerURI binding. Existingwrongnamespace test170–192 proves refusal/noowneraccess; no duplicatedtransportcheck needed.
- Log unexpected failures in the new StartSession owner RPCs.Minor
Both new RPCs map unexpected
RuntimeExceptionfailures toINTERNALand discard the cause. Existing RPCs inGameSessionGrpcServiceuseGrpcAppErrors.internal(meterRegistry, LOG, ...), which records the failure. These new paths are silent, so operators cannot diagnose redemption, persistence, or repository contract failures. Log only secret-free metadata, such as the operation name and the exception class. These payloads can carry the opaque operator reference.services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/impl/GameSessionGrpcService.java#L355-L358: beforerespondOperatorAuthorizationError(..., "INTERNAL", ...), add aLOG.warncall that records the exception class forauthorizeStartSession.services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/impl/OriginalStartSessionCurrentAttemptReadGrpcService.java#L103-L108: add a logger, and record the exception class at warn level beforeonError(Status.INTERNAL ...).
- Accepted Verified both unexpectedfailure handlers silentlydrop cause; add only operation/exceptionclassname warn logs, neverpayload/opaque reference/message/throwable; security-focused log proof.
- Confirm that every Account database runs PostgreSQL 18 before V146 is applied.Major
The migration's
DOblock raises an exception whenserver_version_numis outside[180000, 190000). Flyway therefore fails the whole Account migration chain on any PostgreSQL 16 or 17 server. This affects deployments and integration fixtures that do not use the PostgreSQL 18 path. A failed Flyway migration blocks Account startup. Account owns the authentication and gameplay-admission paths.Earlier evidence points to non-18 environments:
- V144 originally fenced inserts to PostgreSQL 16.
- The new integration test explicitly opts into
AccountPostgresIntegrationFixture(true).
Confirm the following facts:
- Every Account Flyway target uses PostgreSQL 18: local Compose, Helm/preview/production database images, and every
AccountPostgresIntegrationFixtureinstance, including the default no-argument orfalseconstructor. - If any target is not PostgreSQL 18, decide how to handle it. Option 1: make the version gate a no-op on other versions and keep the runtime guard as the enforcement point. Option 2: document and enforce a PostgreSQL 18 upgrade before this migration.
Route · PR #3122 → Unassigned target OpenOverseer26113a9c: preserve V146 PG18 fail-closed. Existing production-readiness-followup owns PostgreSQL18 rollout/HA16 packaging gap; route unassigned, no receiver PR or readiness claim. View routed finding - Reuse
FileBackedGrpcMtlsPolicy.requireinstead of copying its file checks.TrivialrequireFileBackedMtlsandrequireReadableFilere-implement the existingFileBackedGrpcMtlsPolicy.require(CommonGrpcClientProperties, String, String, String)almost line for line. That method is in the same module. Two copies of a security-relevant TLS validation can diverge, for example when a future change tightens the shared policy. Delegate to the shared policy and keep the current messages.♻️ Proposed refactor
private static CommonGrpcClientProperties requireFileBackedMtls( CommonGrpcClientProperties tlsProperties) { - if (tlsProperties == null || tlsProperties.isPlaintext()) { - throw new IllegalArgumentException( - "Current original StartSession attempt reads require workload mTLS"); - } - requireReadableFile(tlsProperties.getCertChain(), "certificate chain"); - requireReadableFile(tlsProperties.getPrivateKey(), "private key"); - requireReadableFile(tlsProperties.getCaCert(), "CA certificate"); - return tlsProperties; + return FileBackedGrpcMtlsPolicy.require( + tlsProperties, + "Current original StartSession attempt reads", + "Current original StartSession attempt reads require workload mTLS", + "Current original StartSession attempt reads require workload mTLS"); } - - private static void requireReadableFile(String configuredPath, String label) { - ... - }- Accepted Verified duplicated original-attempt file gate in sameCommonCore module; use existing4argFileBackedGrpcMtlsPolicy, preserve refusal classification and meaningful safe message context.
- Hosted Review 3 CompletedRuntime 7m 26sFound: 1 Accepted: 0/1/0 Routed: 0
- Add a reconsideration trigger for this note.Minor
Line 141 records pending proof and assigns follow-up, but it does not state when to revisit or close the observation. Add a concrete trigger, such as completion of fresh-source CI and physical PostgreSQL proof.
As per coding guidelines, “Retain an entry only when a genuine blocker or deliberate postponement remains, recording the reason and reconsideration trigger.”
- Accepted Minor valid: current proof/infrastructure observation needs explicit revisit trigger and reason for retention. Add fresh-source physical PG completion/recurrence trigger without claiming pending proof or deleting other notes.
- CLI Review 4 CompletedRuntime 2m 34sFound: 6 Accepted: 0/3/0 Routed: 0
- Correct the
@Testcount attribution.MinorThe sentence says "The copied unit proof sources and
AccountGameplayAdmissionProtectedEntryPrototypeIntegrationTestPostgreSQL prototype contain 18@Testcases." The PostgreSQL prototype alone declares 18@Testmethods. The copied unit sources add more cases, for exampleAccountGameplayAdmissionLeaseRepositoryTestandAccountGameplayAdmissionOriginalAckReceiptCommitExecutorTest. The current text understates the proof inventory. It also mixes skipped PostgreSQL cases with unit cases that ran. Attribute the 18 cases to the prototype only. Report the unit cases separately.The tracker contract requires the validation sections to be accurate: "Keep its status, implementation record, validation, gaps, decisions, and service-map sections aligned when a domain boundary changes."
📝 Proposed fix
-The copied unit proof sources and `AccountGameplayAdmissionProtectedEntryPrototypeIntegrationTest` PostgreSQL prototype contain 18 `@Test` cases and use the receiving canonical `AccountPostgresIntegrationFixture(true)` without importing another fixture or build dependencies. +The `AccountGameplayAdmissionProtectedEntryPrototypeIntegrationTest` PostgreSQL prototype contains 18 `@Test` cases and uses the receiving canonical `AccountPostgresIntegrationFixture(true)` without importing another fixture or build dependencies; the copied unit proof sources are separate mocked-JDBC cases.- Accepted Minor valid inventory attribution: eighteen @Test cases belong to PostgreSQL prototype alone; copied mocked-JDBC unit proof is separate. Preserve honest physical-proof status.
- Qualify the injected
PlatformTransactionManager.MinorCanonicalInitialAdmissionOwnerConfigurationinjects@Qualifier("transactionManager") PlatformTransactionManager. That qualifier suggests that Game Session has more than one transaction manager bean. This coordinator bean injects an unqualifiedPlatformTransactionManager. If two candidates exist, context startup fails withNoUniqueBeanDefinitionExceptionwhenfiremud.start-session-operator-authorization.enabled=true. If one candidate is a JPA manager and the other is the jOOQ/DataSource manager, Spring could also bind the wrong one. The unit test uses a single mock, so it does not cover this case.Confirm how many
PlatformTransactionManagerbeans the Game Session runtime context registers. Apply the same qualifier that the owner-admission configuration uses.Proposed fix
StartSessionOperatorRedemptionClient redemptionClient, - PlatformTransactionManager transactionManager, + @Qualifier("transactionManager") PlatformTransactionManager transactionManager, @Value("${firemud.grpc.workload-namespace}") String workloadNamespace) {Add
import org.springframework.beans.factory.annotation.Qualifier;.- Accepted Minor worthwhile: bind coordinator to canonical transactionManager like existing initial-admission owner. Add two-manager context proof; preserve default-off/mTLS/lease behavior.
- Verify that every Flyway target for Account runs PostgreSQL 18.x.Major
The
DO $migration$block raises an exception whenserver_version_numis outside[180000, 190000). Flyway therefore fails at V146 on PostgreSQL 16, PostgreSQL 17, and any later PostgreSQL 19 upgrade. Because of that, every later Account migration is also blocked on those versions.Several facts suggest that some environments may not run PostgreSQL 18:
- V144 and the retained historical reader are fenced to PostgreSQL 16.
- The new prototype test explicitly selects
AccountPostgresIntegrationFixture(true).
If the default
AccountPostgresIntegrationFixture, local Compose, a hosted deployment profile, or a production cluster uses another major version, then:- every Account integration suite that migrates the full schema fails;
- service startup fails;
Please confirm these points:
- Which PostgreSQL image the default
AccountPostgresIntegrationFixtureuses, and what thetrueargument selects. - Which PostgreSQL major version the Compose and Helm Account database profiles pin.
- Whether a retained PostgreSQL 16 deployment must still migrate past V146.
If any of these is not PostgreSQL 18, change the migration so it does not abort. Install the PostgreSQL 18 guard without a migration-time version check, and keep the runtime fence inside the trigger. A trigger fence denies only fresh receipt inserts and does not block the schema chain.
- Rejected Duplicate of OPEN unassigned route b6731d4826f505bdf66533b0bc24b7f167547234d223bb0c232122731c64baf0. Root26113a9c preserves V146PG18 failclosed; existing production-readiness-followup owns rollout/HA16 gap. No fix claim or duplicate route.
- Fix the malformed head reference in the Context line.Minor
The text "posted on unchanged head24ee" is missing a separator. It also does not mark the commit identifier as code. Readers cannot tell whether
24eeis a commit prefix. Write the head as a code-formatted commit identifier.📝 Proposed fix
- - Context: #3122's final Hosted request posted on unchanged head24ee while parent #3172 merged during admission. + - Context: #3122's final Hosted request posted on unchanged head `24ee…` while parent #3172 merged during admission.- Accepted Minor valid clarity: format the existing24ee head reference with a separator and exact code-formatted SHA; no source semantics change.
- Confirm that the test can call the package-private setter.Major
setOperatorCoordinatoris package-private.GameSessionGrpcServiceTest.operatorServicecallsservice.setOperatorCoordinator(coordinator)directly. Other tests in the same directory, for exampleOriginalStartSessionCurrentAttemptReadGrpcServiceTest, declare the packageunit.net.firedevops.firemud.gamesession.service.impl. IfGameSessionGrpcServiceTestuses that package too, the test source does not compile.Check the package declaration of
GameSessionGrpcServiceTest. If the packages differ, make the setterpublic. Spring setter injection works with either visibility.- Rejected Conditional false: GameSessionGrpcServiceTest declares net.firedevops.firemud.gamesession.service.impl, same package as setter. Current canonical GS compilation passed; no public setter needed.
- Bind the JWT-exempt
AuthorizeStartSessionpeer to the configured namespace and to the tuple identity.MajorThe method is listed in
public-methods, so the peer check is its only transport gate. The check acceptslogging-admin-servicefrom any valid namespace. It does not compare the peer withfiremud.grpc.workload-namespace, with the tupletargetNamespace, or withtuple.authenticatedWorkloadIdentity(). The sibling current-attempt read guard enforces an exact same-namespace URI. If the mTLS CA trusts more than one namespace, a foreign-namespace Logging workload can drive owner reservation and Account redemption, unless the coordinator rejects the mismatch.Confirm whether
GameSessionStartSessionOperatorAuthorizationCoordinator.authorizealready performs this check.services/game-session-service/src/main/java/net/firedevops/firemud/gamesession/service/impl/GameSessionGrpcService.java#L262-L269: Requirepeer.namespace()to equal the configured workload namespace. After decoding, requirepeer.uri()to equaltuple.authenticatedWorkloadIdentity()and require the tupletargetNamespaceto equalpeer.namespace().services/game-session-service/src/test/java/unit/net/firedevops/firemud/gamesession/service/impl/GameSessionGrpcServiceTest.java#L3236-L3593: Add a case that sendslogging-admin-servicefrom another namespace and expectsPERMISSION_DENIEDwith no coordinator interaction.
- Rejected Duplicate/conditional false: coordinator requireAuthenticatedLoggingPeer binds configured namespace, tuple namespace and exact peer URI before owner reservation/redemption; existing wrongnamespace tests deny before owner access.
Routed Findings
Route 1 · PR #3122 → Unassigned target OpenMajorHosted upload lacks Account-owned currentness gate
Outcome: Account/Game Design upload admission ownership needs fail-closed hosted containment or genuine Account gate; unchanged upload path not implemented by this extraction. Target owner unassigned pending coordination.
Route 2 · PR #3122 → Unassigned target OpenMajorArtifact-state read trusts generic internal bearer
Outcome: Inherited launch/state read authorization needs exact workload and tenant binding at source/read owner. Preserve as target obligation, not source taper credit.
Earlier routing and proof
- Target history: Unassigned: Default-denied containment verified at3120/06d51941 per ff8807a0. Positive operation-receipt authority remains OPEN/accepted; owner: production-readiness-followup decision1222. No receiving implementation PR yet; no fix/activation credit.
Earlier decisions
- Accepted Confirmed generic internal-service context bypass and missing authorized tenant/scope on state/artifact reads. Exact workload guard and independent tenant evidence required; clarification sent to Overseer; preserve valid terminal reads.
Route 3 · PR #3122 → PR #3120 Accepted/FixedMajorVersion lifecycle CAS can assert unsafe states without durable fencing
Outcome: Published5fe03e2f4: changing CAS denied before writes; same-state read-only. VersionServiceImplTest no-save/no-mutation cases passed in44-case focused gate. Secondary stale status fixed; linkCheck/lintMarkdown pass. DB-CAS/activation remain incomplete.
Earlier routing and proof
Earlier decisions
- Accepted Unsafe arbitrary lifecycle writes are already contained in published24e291cc: state changes deny before persistence; same-state remains read-only. Full legal transition/DB epoch-CAS capability is not implemented; stale cross-document status correction still needed.
- Routed Inherited Version lifecycle mutation is outside extracted storage implementation; source/lifecycle owner must contain unsafe transitions and prove real CAS, without fabricated release authority.
Route 4 · PR #3122 → Unassigned target OpenMajorConfirm that every Account database runs PostgreSQL 18 before V146 is applied.
The migration's
DOblock raises an exception whenserver_version_numis outside[180000, 190000). Flyway therefore fails the whole Account migration chain on any PostgreSQL 16 or 17 server. This affects deployments and integration fixtures that do not use the PostgreSQL 18 path. A failed Flyway migration blocks Account startup. Account owns the authentication and gameplay-admission paths.Earlier evidence points to non-18 environments:
- V144 originally fenced inserts to PostgreSQL 16.
- The new integration test explicitly opts into
AccountPostgresIntegrationFixture(true).
Confirm the following facts:
- Every Account Flyway target uses PostgreSQL 18: local Compose, Helm/preview/production database images, and every
AccountPostgresIntegrationFixtureinstance, including the default no-argument orfalseconstructor. - If any target is not PostgreSQL 18, decide how to handle it. Option 1: make the version gate a no-op on other versions and keep the runtime guard as the enforcement point. Option 2: document and enforce a PostgreSQL 18 upgrade before this migration.
Outcome: Overseer26113a9c: preserve V146 PG18 fail-closed. Existing production-readiness-followup owns PostgreSQL18 rollout/HA16 packaging gap; route unassigned, no receiver PR or readiness claim.
Route 5 · PR #3122 → Unassigned target OpenMajorRelease-bundle read lacks caller-to-tenant binding
Outcome: Scope to Game Design source/read authorization owner; same-namespace workload is not tenant authority. Exact ingress containment/carrier ownership requires current source-boundary decision; no blanket proven-terminal denial.
Earlier routing and proof
- Target history: Unassigned: Default-denied containment verified at3120/06d51941 per ff8807a0. Positive operation-receipt authority remains OPEN/accepted; owner: production-readiness-followup decision1222. No receiving implementation PR yet; no fix/activation credit.
Earlier decisions
- Accepted Exact same-namespace mTLS method allowlist exists, but request tenant/version only scope lookup and do not prove caller authority. Need canonical owner evidence under ADR0038; preserve legitimate immutable/retired reads.
Unlinked items
no items unlinked