PR #3158 review history
Unit 1A · identity, Account and public JOIN
Review rounds
Three-number pills mean: found (raw) / accepted here (useful) / routed
Recorded review history
Reviews and findings
- Hosted Review 1 CompletedRuntime 8m 27sFound: 6 Accepted: 0/4/1 Routed: 0
- Make DELETE match the existing reference's role. Reject a DELETE when no reference exists.Minor
A DELETE revision carries both
usageKeyandrole.replayremoves the reference byusageKeyonly. As a result,DELETE role=LOGO usageKey=xsilently removes an existingFAVICONreference with the sameusageKey. A DELETE for an absent key also succeeds without effect.GameplayRuleSource.replay(Lines 182-184) rejects a DELETE for an absent key. The two source codecs therefore apply different DELETE rules. Reject a DELETE when no reference exists or when the existing reference's role differs.Proposed fix
--- "a/services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/BrandingSource.java" +++ "b/services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/BrandingSource.java" @@ -244,9 +244,13 @@ for (Reference reference : baseline.references()) effective.put(reference.usageKey(), reference); for (Mutation mutation : mutations(binding)) { if (mutation.operation() == OperationKind.DELETE) { - effective.remove(mutation.usageKey()); + Reference removed = effective.remove(mutation.usageKey()); + if (removed == null || removed.role() != mutation.role()) { + throw new IllegalArgumentException( + "Branding DELETE requires an existing reference with the same role"); + } } else { Reference reference = new Reference( mutation.usageKey(),- Accepted Verified DELETE silently removes mismatched roles and absent keys. Bounded role/existence guard plus positive and negative regression tests assigned.
- Use one shared helper for the inventory-declaration validation.Trivial
The two owner parsers duplicate the strict
JsonMapper, the bounded-UTF-8 check, and the closed-field check. If one copy changes and the other does not, the two owners will enforce different input boundaries.services/common-platform-core/src/main/java/net/firedevops/firemud/common/automation/AutomationAuthoredSourceInventoryDeclaration.java#L113-L144: MovevalidateBoundedUtf8,requireObjectFields, and the mapper setup into a package-private helper. The helper takes the owner label, the schema, the root fields, and the family order.services/common-platform-core/src/main/java/net/firedevops/firemud/common/entity/EntityAuthoredSourceInventoryDeclaration.java#L143-L173: Call the same helper. Keep only theequipmentApplicabilitycheck in this class.
📍 Affects 2 files
services/common-platform-core/src/main/java/net/firedevops/firemud/common/automation/AutomationAuthoredSourceInventoryDeclaration.java#L113-L144(this comment)services/common-platform-core/src/main/java/net/firedevops/firemud/common/entity/EntityAuthoredSourceInventoryDeclaration.java#L143-L173
- Rejected Both parsers already enforce strict bounds with focused tests. Different packages make proposed package-private sharing inaccessible; introducing a public generic API and owner coupling is disproportionate to a speculative drift nit.
- Require
schemaVersionto be an integer node.MinorasInt()coerces the string"1"and the float1.0to1. As a result,validateCommandDefinitionaccepts a non-integer schema version. Every other schema check in this file usesisInt(). Add the same check here.Proposed fix
--- "a/services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/CommandSource.java" +++ "b/services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/CommandSource.java" @@ -489,7 +489,9 @@ /** Mirrors the currently accepted revision and release schema while preserving the raw JSON. */ private static void validateCommandDefinition(String json) { JsonNode definition = tree(json); - if (!definition.isObject() || definition.path("schemaVersion").asInt() != SCHEMA_VERSION) { + if (!definition.isObject() + || !definition.path("schemaVersion").isInt() + || definition.path("schemaVersion").intValue() != SCHEMA_VERSION) { throw new IllegalArgumentException("Unsupported command definition schema"); } fields(- Accepted Verified asInt coerces textual and floating schema versions. Require actual integer schema and meaningful malformed-input negatives.
- Throw
IllegalArgumentExceptionwhen the revision lookup fails.MinorBoth constructors copy the same
GAME_DESIGN_CONTROL_PLANErevision lookup. Both end in a bareorElseThrow(). A missing or mismatched revision therefore throwsNoSuchElementExceptioninstead of theIllegalArgumentExceptionthat every other validation in these types throws.services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/TemplateConfigOwnerSourceInventoryDeclaration.java#L52-L58: Replace the lookup with a shared helper, for exampleTemplateConfigSourceValues.boundRevision(binding, revisionOrder, revisionId). The helper throwsIllegalArgumentExceptionwhen no revision matches.services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/TemplateConfigSourceValues.java#L216-L222: Define that helper here and use it in theMutationconstructor.
📍 Affects 2 files
services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/TemplateConfigOwnerSourceInventoryDeclaration.java#L52-L58(this comment)services/common-platform-core/src/main/java/net/firedevops/firemud/common/gamedesign/TemplateConfigSourceValues.java#L216-L222
- Accepted Verified bare lookups throw NoSuchElementException on malformed source provenance. Shared package-local exact revision lookup now raises IllegalArgumentException; regression cases prepared.
- Add focused tests for the owner-inventory branch.Trivial
The existing declaration tests cover the inventory parsers, but no test exercises
TemplateConfigSourceValues.mutations(). Add coverage for:- round trips using both
ownerInventoryPayloadoverloads - the wrong schema version for Automation and Entity
- duplicate declarations for one owner
- an unsupported owner
[suggestion? no]
- Accepted Verified parser tests do not exercise owner inventory mutation branch. Added both owner payload/stored round trips, wrong schemas, duplicate/unsupported owners and exact provenance negatives.
- round trips using both
- Reconcile validation evidence for the current boundary.Minor
The tracker records 360 tests for commit
ec16942d236053494b4a8d94d94ef8a5a8be0d08, while the related architecture documents record 372 tests in a 233-task check. Mark the 360-test result as historical or update the tracker with the current validation result.- Accepted Verified conflicting counts duplicate CLI1. Keep verified standalone 360 result in owning tracker; stale 372 result is not current proof. Local three-doc consolidation prepared.
- CLI Review 1 CompletedRuntime 1m 43sFound: 1 Accepted: 0/1/0 Routed: 0
- Reconcile the local proof counts and move the proof into the tracker's status surfaces.Minor
This paragraph and the two canonical documents describe different validation runs:
- This tracker says the run passed on develop
ec16942d…with 559 tasks and 360 common-platform-core tests. design/architecture/microservices/entity-management-service/character-create-action-schema.mdLine 7 anddesign/architecture/microservices/game-design-service/game-templates.mdLine 24 say 233 tasks and 372 core tests.
A reader cannot tell which run supports the new codec, so the proof claim is inconsistent. Record one run, with its head and counts, in this tracker only. Replace the run details in the architecture documents with a link to the tracker. The tracker owns implementation and proof evidence. Architecture documents own contracts.
The tracker contract also requires the status, validation, and gap sections to stay aligned. This evidence is currently only in the "Current Status" narrative:
- The
GR-3.1row in "Capability Status" does not listCharacterCreateOperatorActionCodec.javaorAuthoredInitialActorCoreProjection.javaas partial-implementation anchors. - The row does not list
CharacterCreateOperatorActionCodecTest.javaas a proof anchor. - "Validation and Proof" has no entry for this local run.
Add these anchors and the validation entry. Keep the existing limit that this is local receiver support only.
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." Based on learnings: tracker docs should "track implementation-specific status ... and links to the canonical definitions" and should not duplicate them.
- Accepted Verified conflicting historical counts in two architecture docs and missing tracker anchors. Keep current run proof in tracker, link from owners, preserve passive-only limits.
- This tracker says the run passed on develop
- Subagent Review 1 CompletedModel: gpt-6-luna · XhighFound: 1 Accepted: 1 Routed: 0
- Realm policy conversion labels an unbound revision as selected-commit provenanceMinor
Full 40-path independent read-only pass at 4c3318/ec169. No validation. Immutable line evidence and full coverage in /tmp/gameplay3158-commissioned-broad-pass1-4c3318.md; no provider taper credit.
- Accepted Main verified revision conversion omits exact binding.revisions membership; schema requires original policy provenance. Focused implementation and negative tests assigned.
- Subagent Review 2 CompletedModel: gpt-6-luna · XhighFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 3 CompletedModel: gpt-6-luna · XhighFound: 1 Accepted: 1 Routed: 0
- Continuous effects admit bounded-resource current VALUEMinor
Complete 40-path pass at 4c3318/ec169; main verified unchanged defect at f7e927/b95. Manifest numericStats includes resources and incorrectly permits derived VALUE modifiers. Focused reject/positive grammar proof assigned; passive slice, no runtime activation.
- Accepted Canonical continuous resource changes affect MAXIMUM; current-value healing/draining requires INSTANT mutation. Separate numeric STATS effect validation while retaining resource values for predicates and comparators.
- Subagent Review 4 CompletedModel: gpt-6-luna · XhighFound: 1 Accepted: 1 Routed: 0
- Template config accepts blank Automation binding identity and scope typeMinor
Complete fresh independent 44-path pass at f7e927/b95, clean detached checkout, no executable validation. Main verified owner normalizeBindingId/normalizeBinding and parser. Minimal two-path implementation and negative/positive tests assigned locally.
- Accepted Owner Automation validation requires nonblank bindingId and targetScopeType; source parser only checks text. Require both nonblank while retaining empty textual targetScopeId support.
Routed Findings
No routes recorded
Unlinked items
no items unlinked