FireMUD Delivery Status

PR data refreshed

PR #3158 review history

feat(common): add passive CHARACTER_CREATE codec and source parsing

Unit 1A · identity, Account and public JOIN

Review rounds

Three-number pills mean: found (raw) / accepted here (useful) / routed

Hosted CodeRabbit1 completed
6/5/0
CLI CodeRabbit1 completed
1/1/0
Subagent Review4 completed
1/1/00/0/01/1/01/1/0

Recorded review history

Reviews and findings

  1. Hosted Review 1 CompletedRuntime 8m 27s
    Found: 6 Accepted: 0/4/1 Routed: 0
    1. Make DELETE match the existing reference's role. Reject a DELETE when no reference exists.Minor

      A DELETE revision carries both usageKey and role. replay removes the reference by usageKey only. As a result, DELETE role=LOGO usageKey=x silently removes an existing FAVICON reference with the same usageKey. 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.
    2. 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: Move validateBoundedUtf8, 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 the equipmentApplicability check 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.
    3. Require schemaVersion to be an integer node.Minor

      asInt() coerces the string "1" and the float 1.0 to 1. As a result, validateCommandDefinition accepts a non-integer schema version. Every other schema check in this file uses isInt(). 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.
    4. Throw IllegalArgumentException when the revision lookup fails.Minor

      Both constructors copy the same GAME_DESIGN_CONTROL_PLANE revision lookup. Both end in a bare orElseThrow(). A missing or mismatched revision therefore throws NoSuchElementException instead of the IllegalArgumentException that 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 example TemplateConfigSourceValues.boundRevision(binding, revisionOrder, revisionId). The helper throws IllegalArgumentException when 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 the Mutation constructor.

      📍 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.
    5. 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 ownerInventoryPayload overloads
      • 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.
    6. 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.
  2. CLI Review 1 CompletedRuntime 1m 43s
    Found: 1 Accepted: 0/1/0 Routed: 0
    1. 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.md Line 7 and design/architecture/microservices/game-design-service/game-templates.md Line 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.1 row in "Capability Status" does not list CharacterCreateOperatorActionCodec.java or AuthoredInitialActorCoreProjection.java as partial-implementation anchors.
      • The row does not list CharacterCreateOperatorActionCodecTest.java as 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.
  3. Subagent Review 1 CompletedModel: gpt-6-luna · Xhigh
    Found: 1 Accepted: 1 Routed: 0
    1. 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.
  4. Subagent Review 2 CompletedModel: gpt-6-luna · Xhigh
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  5. Subagent Review 3 CompletedModel: gpt-6-luna · Xhigh
    Found: 1 Accepted: 1 Routed: 0
    1. 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.
  6. Subagent Review 4 CompletedModel: gpt-6-luna · Xhigh
    Found: 1 Accepted: 1 Routed: 0
    1. 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

0 Open0 Accepted/Fixed0 Rejected

No routes recorded

Unlinked items

no items unlinked