FireMUD Delivery Status

PR data refreshed

PR #2940 review history

Review rounds

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

Hosted CodeRabbit2 completed
Progress: Waiting turnRule: Min 2 remaining · Max 3 remaining
2/2/01/1/0
CLI CodeRabbit4 completed
Progress: Waiting turnRule: Min 3 remaining · Max 6 remaining
2/2/00/0/00/0/00/0/0
Subagent Review10 completed
1/1/02/2/00/0/02/1/01/1/0

Recorded review history

Reviews and findings

  1. Subagent Review 1 CompletedModel not recorded
    Found: 2 Accepted: 2 Routed: 0
    1. Canonical mTLS Compose profile rejects Account audit deliveryMajor
      • Accepted P2 exact namespace mismatch: Account dev SPIFFE leaf meets inherited local receiver expectation. Set Logging mTLS namespace dev and prove effective layer behavior without weakening admission.
    2. Receipt minimization lifecycle is absent and local capability status unclearMinor
      • Accepted P3 status/proof correction: retention is already gated before long-running activation; make absent watermark/hold/reference cleanup and fixture-only MINIMIZED transition explicit, without inventing TTL or authority.
  2. Subagent Review 2 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. Scope-qualified audit identity and changed-field contract conflictMajor
      • Accepted P3 docs/proof consistency: owner explicitly defines scoped identity (scope, tenant-or-zero, eventId). Clarify conflicts within that key, no global event-ID fence or producer retarget permission; prove separate scopes/tenants and exact in-key conflicts.
  3. Subagent Review 3 CompletedModel not recorded
    Found: 3 Accepted: 1 Routed: 0
    1. Account accepts nonblank receiver IDs without database-format validationMinor
      • Rejected No canonical UUID/decimal wire-validation rule: receiver IDs are trusted opaque receipt identities; syntactic validation cannot prove record existence. Exact tuple/projection marker and readback remain required, not inferred from format.
    2. Tracker names obsolete separate payment LogEvent RPCMinor
      • Accepted Current deferred logPayment calls typed deliver/CreateLogEvent with PAYMENT_TXN and fresh ID, no durable commerce outbox. Correct local status without exposing or adopting unsupported commerce.
    3. Receiver payload retention remains an activation blockerMajor
      • Rejected Duplicate of recorded scan1 long-running activation gap; no cleanup/fixed claim. Enforcement versus deployment gate escalated to Overseer; no invented finite policy or cleanup authority.
  4. Subagent Review 4 CompletedModel not recorded
    Found: 2 Accepted: 1 Routed: 0
    1. Account receipt readback status overclaims current deliveryMinor
      • Accepted Logging implements receipt readback but Account currently only verifies CreateLogEvent response; correct the status sentence and retain guarded Account readback/retained-data activation gaps.
    2. Pointer CAS current-status documents conflictMinor
      • Rejected Duplicate of accepted2897 scan9 obligation already published5cbea7012 with all five status documents aligned; propagate owned parent correction, no second accepted source fix.
  5. Subagent Review 5 CompletedModel not recorded
    Found: 1 Accepted: 0 Routed: 0
    1. Executable receiver has no finite retention or enforced activation fenceMajor
      • Rejected Duplicate of the recorded scan1/scan3 real long-running activation blocker; not newly fixed or dismissed. Exact current execution evidence corroborates the pending Overseer staged-deployment versus enforced-fence decision. No invented finite policy, cleanup proof or accepted fix credit.
  6. Subagent Review 6 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. Minimized receipt readback incorrectly requires pruned payload bytesMajor

      Allow digest-only reads only for minimized retained receipts, preserve full-payload validation/equality for retained payload and Create, add RPC and mismatch negatives. PostgreSQL/live historical-row proof remains unavailable.

      • Accepted Contract promises exact identity/metadata/digest MINIMIZED readback; shared create validation hashes omitted payload before receipt lookup. No current Account read caller; live writes stay gated.
  7. Subagent Review 7 CompletedModel not recorded
    Found: 2 Accepted: 2 Routed: 0
    1. Describe producer response validation as retained offline fixture behaviorMinor
      • Accepted Current status implies live delivery verification despite code-enforced unavailable ingestion and unscheduled delivery; qualify actual fixture behavior and keep activation gate.
    2. Strengthen persisted audit digest format without rewriting retained migration historyTrivial
      • Accepted Useful DB/application invariant hardening, not a reachable bypass: sole writer validates strictly and live writes are closed. Add only a forward NOT VALID constraint with retained-invalid preservation/new-write negatives; V2/V3 immutable, inventory/validation/live proof separate.
  8. Subagent Review 8 CompletedModel not recorded
    Found: 0 Accepted: 0 Routed: 0
    1. No findings recorded for this run
  9. Subagent Review 9 CompletedModel not recorded
    Found: 2 Accepted: 1 Routed: 0
    1. Audit projection constraint permits non-positive tenant identitiesTrivial

      V3 chk_log_events_scope_tenant audit branch checks equality but not positivity. Correct via additive forward migration, not rewriting accepted/applied V3. Existing invalid retained audit rows remain preserved/blocked pending inventory; no runtime activation or new retention policy.

      • Accepted Useful DB defense in depth: V3 projection admits zero/negative tenant IDs even though normal paired writer is protected by V2. Add a forward NOT VALID constraint and retained-row/negative proof; preserve V2-V4 and legacy non-audit rows.
    2. ReadLogEventReceipt route status looks like an operator surfaceMinor

      Reviewer cited YAML3697 and validator fixture2810. Root checked canonical matrix Markdown63 and validator ROUTE_STATUS_VALUES: supported route meaning is broader than the historical spelling. No semantic mismatch or useful in-scope vocabulary expansion established.

      • Rejected Matrix owner line63 explicitly defines this historical value as any current supported route, including non-operators; the closed vocabulary is intentional. Exact Account mTLS/internal classification remains explicit. Omission would erase current-capability status, not repair behavior.
  10. Subagent Review 10 CompletedModel not recorded
    Found: 1 Accepted: 1 Routed: 0
    1. Document required Account audit workload namespaceMinor

      Add the service-local variable/default and fail-closed consequence, linking rather than duplicating the shared workload identity contract. Runtime gate and deployment state remain unchanged.

      • Accepted Exact Account audit mTLS guard rejects blank/mismatched namespace; Logging configuration omitted the required variable despite non-template deployment guidance.
  11. CLI Review 1 CompletedRuntime 2m 48s
    Found: 2 Accepted: 0/2/0 Routed: 0
    1. Minor

      Update the ReadLogEventReceipt row in the route matrix to describe reads using the scope-qualified identity and immutable metadata, requiring exact payload bytes only while the payload is retained. Keep the wording consistent with the canonical current-state API contract.

      • Accepted Accepted Minor current-contract drift: readback supports scope-qualified identity plus immutable metadata and digest-only MINIMIZED evidence; exact payload bytes are required only while retained. Bounded matrix wording fix pending.
    2. Minor

      Update the exception handling in createLogEvent and readLogEventReceipt to catch both Spring and jOOQ DataAccessException types, preserving the existing warning and AuditStorageUnavailableException behavior for either type.

      • Accepted Accepted Minor failure-mapping gap: service catches jOOQ DataAccessException but Spring-translated database exceptions can also escape. Preserve bounded warning and AuditStorageUnavailableException for both families, with read/write regressions; fix pending.
  12. CLI Review 2 CompletedRuntime 2m 05s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  13. CLI Review 3 CompletedRuntime 2m 11s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  14. Manual pre-review 1 Completed
    Found: 1 Accepted: 1 Routed: 0
    1. Verified HTTPS and mutual-TLS examples; disposable loopback HTTP credentials

      Preserved source refs/firemud/preserved-source/logging-mtls-23465aff344d clarifies CA-verified environment-owned HTTPS, mutual-TLS grpcurl transport and disposable non-production HTTP/JWT examples.

      • Accepted Already implemented at 5bccdb6ac via fbbec3bad8. Recovered HTTPS and gRPC example blocks are byte-identical to current API contract (two cmp checks exit0). Preserve newer receipt/projection/CAS details; no new runtime or review-cycle obligation.
  15. CLI Review 4 CompletedRuntime 3m 49s
    Found: 0 Accepted: 0/0/0 Routed: 0
    1. No findings recorded for this run
  16. Hosted Review 1 CompletedRuntime 6m 07s
    Found: 2 Accepted: 0/2/0 Routed: 0
    1. Clarify the logPayment ownership phrase.Minor

      Line 126 uses “Account logPayment substrate,” which reads as an unjoined modifier. Rephrase it as “Account-owned logPayment substrate.”

      • Accepted Minor cheap ownership-clarity correction: use Account-owned logPayment substrate, preserving deferred best-effort status and all surrounding behavior.
    2. Remove the stale "delivery client checks returned receipt evidence" claim.Minor

      Line 13 says Account's delivery client checks returned receipt evidence before it marks delivery complete. Lines 19 and 33 say a different thing: live CreateLogEvent returns UNAVAILABLE, Account scheduling is disabled, and outbox rows stay pending. A reader of Line 13 can conclude that live delivery is verified. Change the sentence to state that the delivery client check exists only in offline fixtures, and that live delivery is unavailable.

      The path instructions require me to flag "obsolete transitional guidance" and conflicts in design docs.

      • Accepted Minor current-PR API status overclaim: receipt-validation code has offline fixture proof; live ingestion returns UNAVAILABLE and scheduling is off. Correct status without enabling delivery; preserve all normative receipt semantics.
  17. Hosted Review 2 CompletedRuntime 5m 10s
    Found: 1 Accepted: 1/0/0 Routed: 0
    1. Look up the projection with TENANT_KEY so the unique index applies.Major

      The only index that covers log_events.audit_event_id is uq_log_events_account_audit_identity. That index is on (scope, tenant_key, audit_event_id) (V3, Lines 23-24). This lookup filters on scope, tenant_id, and audit_event_id, and it does not filter on tenant_key.

      Without a predicate on the second index column, a PostgreSQL 16 B-tree scan can bound the scan only by scope. Nearly every row has scope = 'tenant', so the scan reads every tenant log_events entry. Legacy rows get that value from the V3 default. As a result, every createLogEvent call does an O(n) scan of log_events inside the write transaction. The cost grows with ordinary log volume.

      The V3 check chk_log_events_scope_tenant makes tenant_key = tenant_id for audit rows and tenant_key = 0 for platform rows. Filtering on tenant_key therefore returns the same row and matches the conflict target of the preceding ON CONFLICT DO NOTHING insert.

      ⚡ Proposed fix

      -    var tenantCondition =
      -        request.tenantId() == null
      -            ? LOG_EVENTS.TENANT_ID.isNull()
      -            : LOG_EVENTS.TENANT_ID.eq(request.tenantId());
           Long logEventId =
               dsl.select(LOG_EVENTS.ID)
                   .from(LOG_EVENTS)
                   .where(
                       LOG_EVENTS
                           .SCOPE
                           .eq(request.scope().databaseValue())
      -                    .and(tenantCondition)
      +                    .and(LOG_EVENTS.TENANT_KEY.eq(tenantKey))
                           .and(LOG_EVENTS.AUDIT_EVENT_ID.eq(request.auditEventId())))
                   .fetchOne(LOG_EVENTS.ID);
      
      • Accepted Major provider finding accepted: projection lookup must match its scope/tenant_key/audit_event_id unique index. V3 constraints make tenant_key equivalent for valid audit rows. Use identical insert/lookup identity; preserve receipt transaction and conflict behavior.

Routed Findings

0 Open0 Accepted/Fixed0 Rejected

No routes recorded

Unlinked items

no items unlinked