FireMUD Delivery Status

PR data refreshed

PR #2873 review history

Unit 1B: tighten public admission and connect-token issuance

Unit 1B · Account admission and runtime authority

Review rounds

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

Hosted CodeRabbit0 completed
Progress: Progress not checkedRule: Min 2 configured · Max 3 configured
None yet
CLI CodeRabbit0 completed
Progress: Progress not checkedRule: Min 3 configured · Max 6 configured
None yet
Subagent Review13 completed
6/3/0age n/a3/2/02/2/04/4/01/1/0

Recorded review history

Reviews and findings

  1. Subagent Review 1 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. Account migration Job starts unrelated scheduled mutatorsMajor

      The opt-in Job disables web and gRPC listeners but boots AccountServiceApplication with EnableScheduling, allowing audit delivery, JOIN reconciliation and credential cleanup during an evidence/import run.

      • Accepted Verified the Job args, unconditional Account @EnableScheduling, scheduled mutators and runner guard. A scoped conditional scheduler plus fail-closed runner guard and focused proof is assigned to #2873.
  2. Subagent Review 2 CompletedModel not recorded
    Found: 3 Accepted: 2 Routed: 1
    1. Account migration owner read cannot use its declared mTLS-only authorizationMajor

      The migration client applies generic JWT customization while Game Design's global interceptor rejects a missing JWT before the dedicated mTLS guard.

      • Accepted The dedicated tenant-migrator method requires exact peer identity, no shared JWT material, and no generic JWT fallback. #2873 owns the exact migration-only caller and server path with negative proof.
    2. Opt-in tenant-association Jobs fail before migration runnerMajor

      Both listener-disabled Jobs omit JWT material but boot ordinary Spring security configuration, which rejects absent JWT material before their migration runner can act.

      • Accepted Job templates, application entrypoints, and non-test JwtUtil creation confirm the startup contradiction. #2873 owns a migration-only bootstrap without mounting the shared JWT signing secret.
    3. PLAY lacks complete malformed-success authority evidence rejectionMajor

      Successful entitlement evidence is not checked for selected-tenant binding, positive version and billing sequence, and valid evaluation time; membership evidence lacks a positive authority-generation check and the complete authenticated checkpoint carrier.

      Route · PR #2873 → PR #2880 OpenAccount runtime reads still deny before data access. This is the #2876 Account authority/consumer activation and proof gate rather than an enabled #2873 bypass. Routed visibly at https://github.com/benhook1013/FireMUD/pull/2876#issuecomment-5874768542. View routed finding
  3. Subagent Review 3 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  4. Subagent Review 4 CompletedModel not recorded
    Found: 2 Accepted: 2 Routed: 0
    1. Entitlement consumer ignores target and freshness evidenceMajor

      Game Session checks gameplayAvailable but not tenant, entitlement version, billing sequence, evaluated time or complete same-snapshot evidence.

      • Accepted Fail closed on malformed or target-mismatched evidence and keep the RPC activation gate until complete producer and consumer proof exists.
    2. Contradictory MISSING membership can yield JOIN_REQUIREDMajor

      Game Session accepts MISSING with membershipVersion=5 and a test explicitly expects JOIN_REQUIRED despite no authenticated never-joined absence evidence.

      • Accepted Reject positive-version MISSING as contradictory and add negative consumer proof while the Account runtime RPC stays denied.
  5. Subagent Review 5 CompletedModel not recorded
    Found: 4 Accepted: 2 Routed: 0
    1. MISSING membership with retained version can yield JOIN_REQUIREDMajor

      Independent reviewer confirmed the contradictory MISSING version and explicit positive test.

      • Rejected Duplicate of accepted semantic pass finding missing-membership-positive-version; one correction owns both observations.
    2. Runtime status text says lifecycle field absent after partial consumer validationMinor

      Account runtime-and-data and multi-tenancy implementation-status prose predates the lifecycle field and partial consumer checks in this patch.

      • Accepted Correct current-status wording while keeping complete generation and same-snapshot evidence explicitly open.
    3. Entitlement response target and freshness are uncheckedMajor

      Independent reviewer confirmed ignored tenant, evaluated time, entitlement version and billing sequence fields.

      • Rejected Duplicate of accepted semantic pass entitlement-evidence-unvalidated; one correction owns both observations.
    4. Admitting membership can omit positive authority generationMajor

      Game Session does not require membershipAuthorityGeneration above zero before downstream roster and binding; positive fixtures omit it.

      • Accepted Require positive generation and negative consumer proof, without enabling the denied Account producer RPC.
  6. Subagent Review 6 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  7. Subagent Review 7 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. P2 Account non-public REST paths accept a four-field grant from a prior lifecycleMajor

      Account uses a grant keyed only by account, tenant, world slug and realm slug to authorize current-scope connect-token issuance, private realm discovery and character listing. The selected pointer/scope and legacy V17 grant row omit playtestLifecycleId, so a reused selector in a new lifecycle can pass a stale grant. Runtime gRPC grant reads deny before data access, but separate Account REST paths are reachable.

      • Accepted Verified three reachable Account REST callsites and absence of lifecycle-bound grant evidence against canonical Account API/Authentication rules. Fail closed for non-public reads and issuance until exact lifecycle-qualified grant authority exists; no gameplay entry bypass is claimed.
  8. Subagent Review 8 CompletedModel not recorded
    Found: 4 Accepted: 0 Routed: 1
    1. Game Session membership response accepts stale or future evaluation timeMajor

      The held-back consumer parses evaluatedAt without a freshness or future bound, unlike the entitlement response.

      Route · PR #2873 → PR #2880 Accepted/FixedConfirmed independently by #2880's own fresh review; #2880 owns the typed consumer and a focused future/stale timestamp correction is in progress. Its Account RPC remains denied. View routed finding
    2. Read-only retained association lookup does not rehash source rowsMinor

      The import verifies Account source evidence before storing an association, while a later lookup returns the stored mapping without rehashing.

      • Rejected Import and exact retry recheck source evidence; this lookup currently has no runtime consumer. Before activation a consumer must prove current mapping/source readback, as the tracker states. No present unsafe use or false completion was shown.
    3. Cached REST connect-token retry lacks full current authority rereadMajor

      Existing Account exact-request replay checks target/public status but not fresh membership and entitlement authority before returning a cached token.

      • Rejected An explicit existing Account issuance activation gap, not introduced by this 88-file bridge patch. Game Session runtime admission is denied, so cached token return cannot alone enter gameplay. Keep the Account successor gate open.
    4. Direct SQL identity inserts can select UUID and provenanceMajor

      Account and Game Design migrations enforce source row, uniqueness and immutability, but do not forbid a trusted SQL writer from supplying the UUID at insert.

      • Rejected A database writer is the identity authority; Account's repository intentionally assigns and reads back a UUID. The source row, uniqueness and immutability are constrained, and no untrusted insert path is shown. Not an unsafe #2873 regression.
  9. Subagent Review 9 CompletedModel not recorded
    Found: 6 Accepted: 3 Routed: 0
    1. P1 positive runtime proof fixtures carry stale time and missing generationMinor

      Shared Account stub uses a fixed March evaluation time and omits positive membership generation; some positive Game Session fixtures use that stale entitlement time. Docker-backed intended success cases would fail or test the wrong guard.

      • Accepted This is #2873-unique proof drift. Refresh only intended positive fixtures with current evaluation and positive generation while preserving deliberate stale negatives.
    2. P1 incomplete entitlement authority in conditional PLAYMajor

      Conditional PLAY validates only the old entitlement subset; complete billing, target, tuple and checkpoint proof is absent. The live Account entitlement RPC denies before data access.

      • Rejected Valid named Unit 1B activation obligation, not a new current bypass or false completion claim in this denied #2873 candidate. Preserve as explicit open owner work; do not pretend a partial consumer check enables the RPC.
    3. P1 stale membership freshness in held-back PLAY consumerMajor

      The earlier PLAY consumer parses but does not bound membership evaluatedAt. This is the same observation already routed from the first requested pass to the downstream typed snapshot child, where the timestamp guard is published.

      • Rejected Duplicate of the existing source route to #2880 and corrected there at d62abd550; no additional #2873-local fix is needed. Account RPC remains denied.
    4. P1 incomplete private-realm grant authority in conditional PLAYMajor

      Conditional PLAY accepts a mocked granted response without the lifecycle-qualified fresh grant evidence required for activation. The live Account grant RPC denies before reads.

      • Rejected Valid named grant activation gap, but no live positive Account response and no claim of completed private admission. Keep open in owner tracker rather than implement a speculative partial grant validator in this pre-review fix.
    5. P2 Account API status misstates current non-public grant useMinor

      API status still says connect-token issuance checks the legacy four-field non-public grant, while current code fails that authority closed pending lifecycle-qualified proof.

      • Accepted Correct the Account-owned implementation-status text to match the current fail-closed boundary without changing target grant contract.
    6. P2 duplicate legacy Game Design tenant key yields INTERNALMinor

      Game Design owner lookup can raise a multiple-row repository exception on retained duplicate source keys; its gRPC handler catches only invalid-provenance exceptions and otherwise returns INTERNAL.

      • Accepted Ambiguous retained mapping must fail deterministically as a precondition, never choose a row or surface an unclassified internal error; add exact negative proof.
  10. Subagent Review 10 CompletedModel not recorded
    Found: 3 Accepted: 2 Routed: 0
    1. Restrict approved tenant association manifests to retained V30 rowsMinor

      RETAINED_GAME_V30-only would invent a new migration eligibility decision. Owner approval remains mandatory and cannot activate membership; exact readback and the V30 immutable provenance trigger preserve source identity.

      • Rejected Canonical signed owner assertion binds exact persisted source/UUID, not an issuance-age enum. V30 constrains and immutably fences both provenance kinds; the approved integration fixture deliberately uses a newly issued row.
    2. Reject contradictory positive-version MISSING membership evidenceMinor

      Current published parent already implements both zero checks. Preserve that stronger behavior and negative proof through reconciliation, rather than duplicating the helper or relaxing it.

      • Accepted Published child accepts MISSING with positive version/generation and its fixture expects JOIN_REQUIRED; exact missing-row evidence must have zero version/generation.
    3. Align connect-token tracker with fail-closed private grant behaviorMinor

      Check the modern parent before editing: stronger parent wording may supply the correction during the already-authorized parent reconciliation.

      • Accepted AA-1.2 claims a live private grant check although hasRealmAccessGrant deliberately returns false; update current capability wording while retaining the private-access gate.
  11. Subagent Review 11 CompletedModel not recorded
    Found: 2 Accepted: 2 Routed: 0
    1. Tenant-association Jobs can mutate schema before read-only modes runMajor

      Whole88 paths/tests at4aff2c6d68. GameDesign/Account tenant-association templates omit disabling Flyway; retained Account V29 can backfill before evidence mode. Static review, validation NONE.

      • Accepted Both normal app configs enable Flyway before ApplicationRunner mode selection; read-only preflight/evidence Jobs must force it off and require schema deployment separately. Add rendered contract proof for both modes/owners.
    2. Route matrix overstates legacy non-public grant supportMinor

      Whole88 path round at4aff2c6d68; route matrix261 vs AccountServiceImpl2049. Main verified grant denial and current operations contract; no new activation.

      • Accepted Actual four-field grant check returns false; update the matrix current-status text to match lifecycle-qualified private issuance containment, not restore old authority.
  12. Subagent Review 12 CompletedModel not recorded
    Found: 4 Accepted: 4 Routed: 0
    1. One-shot tenant migration startup can run Flyway before its operationMajor

      Both Account and Game Design launchers must reject enabled/missing effective Flyway configuration before context refresh. Keep chart flag/render negatives and normal service migration behavior unchanged.

      • Accepted Helm disables Flyway, but direct one-shot startup lacks a before-refresh guard. Enforce the effective disabled property before bean initialization; runner-time checks alone are too late.
    2. Public cached connect-token success skips current admission checksMinor

      Add state-change negatives for missing/INACTIVE/non-admitting membership and unavailable/blocked entitlement, and exact eligible retry. This focused guard does not implement full durable issuer or generation-fence proof.

      • Accepted Known issuer gap remains reachable in the edited cache branch. Revalidate current target, entitlement and membership eligibility before replay; preserve exact token/no remint and keep complete issuance/fence activation unproved.
    3. Transition receipt history has no UPDATE/DELETE guardMinor

      Guard receipt rows only; receipt stream heads must retain legitimate sequence advancement. Preserve existing retained receipt bytes, schema history and source evidence.

      • Accepted Exact JOIN recovery trusts retained receipt history. Add a forward immutability migration without modifying published V40, and prove mutation refusal plus ordinary append/head advance.
    4. Game Design startup permits simultaneous one-shot migration modesTrivial

      The trusted chart already enables only one mode. Prove launcher rejection and single-mode selection without changing migration workload identity or broadening admission.

      • Accepted Both conditional runners can act before the other's guard fails. Reject both enabled before context startup, with no operation side effects; retain normal and single-mode behavior.
  13. Subagent Review 13 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. Tenant association Jobs consume shared privileged database credentialsMajor

      Full independent read-only coverage of all 92 unique paths and surrounding Account/Game Design/Game Session/common/Helm/CI/protocol/docs context at efb6e943398059fb180096624dddcf68bbd7f8cb versus513ead19624af3fa371af7172c760bace964e8d9. No validation authorized or run. No other distinct findings.

      • Accepted Both optional owner migration Jobs consume firemud-secret; hosted-shared provisions the same role as PostgreSQL bootstrap superuser. Replace with dedicated mode-specific minimal credentials, fail closed without provisioning, and preserve offline/local proof limits.

Routed Findings

3 Open1 Accepted/Fixed0 Rejected
  1. Route 1 · PR #2873 → PR #2880 OpenMajorPLAY lacks complete malformed-success authority evidence rejection

    Successful entitlement evidence is not checked for selected-tenant binding, positive version and billing sequence, and valid evaluation time; membership evidence lacks a positive authority-generation check and the complete authenticated checkpoint carrier.

    Outcome: Verified #2923 610ea7b7b: tenant/version/time and membership event/tuple/checkpoint checks now exist. PLAY still omits entitlement billing-sequence/full authenticated snapshot binding. Route remains open; RPC/UUID carrier denied paths and mocked negatives do not prove complete live evidence.

    Earlier routing and proof
    • Target history: PR #2880: Published #2880 owns the typed Account snapshot and Game Session consumer; #2876 owns producer authority state. Runtime read still denies. Routed visibly: https://github.com/benhook1013/FireMUD/pull/2880#issuecomment-5875456156

    Earlier decisions

    • Routed Account runtime reads still deny before data access. This is the #2876 Account authority/consumer activation and proof gate rather than an enabled #2873 bypass. Routed visibly at https://github.com/benhook1013/FireMUD/pull/2876#issuecomment-5874768542.
  2. Route 2 · PR #2873 → PR #2880 Accepted/FixedMajorGame Session membership response accepts stale or future evaluation time

    The held-back consumer parses evaluatedAt without a freshness or future bound, unlike the entitlement response.

    Outcome: Fixed at #2880 c3a0ff179: malformed/future/stale evaluatedAt denies. All 76 PlayCommandHandlerTest cases freshly pass on composed #2881 29e96ef76 (no cache/rerun), with no mutation negatives. Details: private pr-2880 ledger 2026-09-30; no RPC activation claim.

    Earlier routing and proof

    Earlier decisions

    • Routed Confirmed independently by #2880's own fresh review; #2880 owns the typed consumer and a focused future/stale timestamp correction is in progress. Its Account RPC remains denied.
  3. Route 3 · PR #2876 → PR #2873 OpenMajorDemo Account seeder lacks the canonical tenant and membership-authority handoff

    Outcome: Verified #2923 610ea7b7b: seeder still writes tenantId=1 ACTIVE/SEEDED_DEMO without canonical mapping/pair/event/receipt/role authority. Call-based tests are not proof. #2915 source is a prerequisite, not completion; remains open. No inferred mapping.

  4. Route 4 · PR #2880 → PR #2873 OpenMajorLive REST connect issuance is separate from canonical snapshot authority

    Outcome: Verified #2923 610ea7b7b: REST issuance uses legacy scalar DTO/replay, denies missing complete tuple/map/fence/target and cached success. V35 serves recovery reads, not live issuance. Positive issuance remains open; #2880/#2915 supply prerequisites. Guard proof is not completion.

Unlinked items

no items unlinked