PR #3142 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
- CLI Review 1 CompletedRuntime 1m 21sFound: 2 Accepted: 0/0/2 Routed: 0
- Merge the two identical target-binding checks into one method.Trivial
requireLifecycleRequestMatchesandrequireLifecycleStateReadRequestMatchesrun the same seven-field target comparison. The only difference is the text of thepublicProductionerror message. If one copy changes and the other does not,acquireandreadStatewill bind different target scopes. Use one method with an operation label.♻️ Proposed refactor
- private void requireLifecycleRequestMatches( - Request holdRequest, WorldCanonicalInstanceLifecycleEvidence.Request lifecycleRequest) { + private void requireLifecycleRequestMatches( + Request holdRequest, + WorldCanonicalInstanceLifecycleEvidence.Request lifecycleRequest, + String operation) { Objects.requireNonNull(lifecycleRequest, "lifecycleRequest"); if (!lifecycleRequest.publicProduction()) { throw new IllegalArgumentException( - "World initial-admission hold acquisition requires public-production lifecycle evidence"); + "World initial-admission hold " + operation + + " requires public-production lifecycle evidence"); } ... } - - private void requireLifecycleStateReadRequestMatches(...) { ... }Call it with
"acquisition"fromacquireand with"state read"fromreadState.- Accepted Accepted current-PR Trivial consolidation: acquire and readState duplicate the same complete lifecycle target check. Share predicate with an operation-specific label, preserving exact errors and all denial behavior. Fix prepared locally and publish only after active Hosted terminal.
- Use
AuthoringFixtures.lifecycleEvidenceinstead of a second copy of the fixture.Trivialevidence()repeats the same steps asAuthoringFixtures.lifecycleEvidence: the descriptor request, the descriptor, the participants, the v2 release, the receipt, the lifecycle request, and the evidence values. The only difference is the status and epoch, which are"PREPARING"and3Lhere. When the attestation contract changes, both copies must change together. This PR already changed the participant-schema selection in both copies.♻️ Proposed refactor
private static WorldCanonicalInstanceLifecycleEvidence evidence() throws Exception { - WorldPublishedStartLocationEvidence selector = - WorldPublishedStartLocationGrpcCodecTest.evidence(); - ... - return new WorldCanonicalInstanceLifecycleEvidence( - ...); + return net.firedevops.firemud.common.testing.AuthoringFixtures.lifecycleEvidence( + "PREPARING", 3L); }- Accepted Accepted current-PR Trivial fixture reuse: lifecycle evidence test repeats AuthoringFixtures construction with PREPARING/3. Reuse canonical fixture preserving complete tuple and field values; focused Common proof required before publication. No change to runtime authority.
- Subagent Review 1 CompletedModel: gpt-6-luna · XhighFound: 2 Accepted: 2 Routed: 0
- New launch descriptor RPC codec lacks direct wire-closure regression proofMinor
- Accepted Add canonical-fixture-backed exact request/response, optional presence, correlation/digest and malformed/unknown nested-field tests across supported release selections. Focused implementation assigned; no runtime activation or playable closure claim.
- Present blank launch identifiers pass domain validationMinor
- Accepted Current foundation owner correction: reject blank optional patch/remap identifiers with focused domain negatives; preserve optional JSON semantics. Local bounded implementation assigned, resolution pending.
- Hosted Review 1 CompletedRuntime 4m 41sFound: 2 Accepted: 0/0/2 Routed: 0
- Merge the two identical lifecycle-target checks into one method.Trivial
requireLifecycleRequestMatchesandrequireLifecycleStateReadRequestMatchesrun the same eight comparisons. Only the text of the public-production error message differs. If someone adds a field to the target scope later, they must update both methods. If they update only one,acquireandreadStatewill accept different target scopes.Use one method and pass the operation label as a parameter.
♻️ Proposed refactor
- private void requireLifecycleRequestMatches( - Request holdRequest, WorldCanonicalInstanceLifecycleEvidence.Request lifecycleRequest) { + private void requireLifecycleTargetMatches( + Request holdRequest, + WorldCanonicalInstanceLifecycleEvidence.Request lifecycleRequest, + String operation) { Objects.requireNonNull(lifecycleRequest, "lifecycleRequest"); if (!lifecycleRequest.publicProduction()) { throw new IllegalArgumentException( - "World initial-admission hold acquisition requires public-production lifecycle evidence"); + "World initial-admission " + operation + " requires public-production lifecycle evidence"); } ... } - - private void requireLifecycleStateReadRequestMatches(...) { ... }Then call it as
requireLifecycleTargetMatches(holdRequest, lifecycleRequest, "hold acquisition")inacquire, and asrequireLifecycleTargetMatches(holdRequest, lifecycleRequest, "hold-state read")inreadState.- Accepted Valid current-PR consolidation; duplicates accepted CLI finding1. Shared exact lifecycle-target predicates and both operation-specific error messages will be preserved in the coherent local batch; focused physical client regression proof pending.
- Replace the private
evidence()builder withAuthoringFixtures.lifecycleEvidence.TrivialLines 740-846 copy the body of
AuthoringFixtures.lifecycleEvidence(String, long)almost line for line. The only difference is that the fixed status"PREPARING"and epoch3Lare written in place. This PR applies thejava-test-fixturesplugin tocommon-platform-core, so this test source set can already useAuthoringFixtures.WorldCanonicalInitialAdmissionHoldStateTestin the same package already uses it.If the descriptor, release, or selector fixture changes later, someone must update both copies. If they drift, the lifecycle tests and the hold-state tests will check different evidence shapes.
♻️ Proposed refactor
private static WorldCanonicalInstanceLifecycleEvidence evidence() throws Exception { - WorldPublishedStartLocationEvidence selector = - WorldPublishedStartLocationGrpcCodecTest.evidence(); - var descriptorRequest = - ... - return new WorldCanonicalInstanceLifecycleEvidence( - request, - binding, - startLocation, - 1042L, - "PREPARING", - 3L, - ...); + return net.firedevops.firemud.common.testing.AuthoringFixtures.lifecycleEvidence( + "PREPARING", 3L); }- Accepted Valid current-PR canonical fixture reuse; duplicates accepted CLI finding2. AuthoringFixtures PREPARING/3L matches existing tuple; local correction prepared, consolidated lifecycle regression proof pending.
- CLI Review 2 CompletedRuntime 1m 28sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- Subagent Review 2 CompletedModel: gpt-6-luna · XhighFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- CLI Review 3 CompletedRuntime 1m 41sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- Subagent Review 3 CompletedModel: gpt-6-luna · XhighFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- CLI Review 4 CompletedRuntime 1m 59sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- Subagent Review 4 CompletedModel: gpt-6-luna · XhighFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Hosted Review 2 CompletedRuntime 3m 21sFound: 1 Accepted: 0/0/1 Routed: 0
- Retain the overload or document its v1 scope.Trivial
supportedParticipantDigestSchema(String)always usesSCHEMA_VERSIONand returns v1 schemas. No current caller uses this overload, so the reported v2/v3 rejection is not an active caller defect. The overload remains misleading because its Javadoc describes a general supported schema while versioned validation now uses the attestation version. Deprecate it or rename it to state its v1 scope.+ @Deprecated public static int supportedParticipantDigestSchema(String participantKey) {- Accepted Accepted current-PR Trivial clarification: unused single-argument helper implicitly selects retained-v1 schema. Mark deprecated and document explicit-version overload; preserve behavior and versioned validation. Fix current candidate, no downstream route.
Routed Findings
No routes recorded
Unlinked items
no items unlinked