PR #2940 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
- Subagent Review 1 CompletedModel not recordedFound: 2 Accepted: 2 Routed: 0
- 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.
- 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.
- Subagent Review 2 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- 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.
- Subagent Review 3 CompletedModel not recordedFound: 3 Accepted: 1 Routed: 0
- 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.
- 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.
- 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.
- Subagent Review 4 CompletedModel not recordedFound: 2 Accepted: 1 Routed: 0
- 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.
- 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.
- Subagent Review 5 CompletedModel not recordedFound: 1 Accepted: 0 Routed: 0
- 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.
- Subagent Review 6 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- 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.
- Subagent Review 7 CompletedModel not recordedFound: 2 Accepted: 2 Routed: 0
- 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.
- 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.
- Subagent Review 8 CompletedModel not recordedFound: 0 Accepted: 0 Routed: 0
- No findings recorded for this run
- Subagent Review 9 CompletedModel not recordedFound: 2 Accepted: 1 Routed: 0
- 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.
- 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.
- Subagent Review 10 CompletedModel not recordedFound: 1 Accepted: 1 Routed: 0
- 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.
- CLI Review 1 CompletedRuntime 2m 48sFound: 2 Accepted: 0/2/0 Routed: 0
- 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.
- 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.
- CLI Review 2 CompletedRuntime 2m 05sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- CLI Review 3 CompletedRuntime 2m 11sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- Manual pre-review 1 CompletedFound: 1 Accepted: 1 Routed: 0
- 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.
- CLI Review 4 CompletedRuntime 3m 49sFound: 0 Accepted: 0/0/0 Routed: 0
- No findings recorded for this run
- Hosted Review 1 CompletedRuntime 6m 07sFound: 2 Accepted: 0/2/0 Routed: 0
- Clarify the
logPaymentownership phrase.MinorLine 126 uses “Account logPayment substrate,” which reads as an unjoined modifier. Rephrase it as “Account-owned
logPaymentsubstrate.”- Accepted Minor cheap ownership-clarity correction: use Account-owned logPayment substrate, preserving deferred best-effort status and all surrounding behavior.
- 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
CreateLogEventreturnsUNAVAILABLE, 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.
- Hosted Review 2 CompletedRuntime 5m 10sFound: 1 Accepted: 1/0/0 Routed: 0
- Look up the projection with
TENANT_KEYso the unique index applies.MajorThe only index that covers
log_events.audit_event_idisuq_log_events_account_audit_identity. That index is on(scope, tenant_key, audit_event_id)(V3, Lines 23-24). This lookup filters onscope,tenant_id, andaudit_event_id, and it does not filter ontenant_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 hasscope = 'tenant', so the scan reads every tenantlog_eventsentry. Legacy rows get that value from the V3 default. As a result, everycreateLogEventcall does an O(n) scan oflog_eventsinside the write transaction. The cost grows with ordinary log volume.The V3 check
chk_log_events_scope_tenantmakestenant_key = tenant_idfor audit rows andtenant_key = 0for platform rows. Filtering ontenant_keytherefore returns the same row and matches the conflict target of the precedingON CONFLICT DO NOTHINGinsert.⚡ 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
No routes recorded
Unlinked items
no items unlinked