Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 16, 2026, 1:36 AM ET / 05:36 UTC. ClawSweeper reviewWhat this changesGoal management reuses the session entry already read inside its transaction, removes redundant identity snapshots, and strengthens database-read and identity-preservation regression checks. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: this is a focused, useful optimization that remains absent from the pinned main revision. No introduced correctness defect was found, and the protected draft explicitly coordinates with an active related repair. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway sends Goal edits and status changes to the session persistence owner, which commits the updated Goal and its retry receipt together. The shared writer maintains cache freshness, while the Gateway separately announces Goal changes. flowchart TD
A[Goal management request] --> B[Gateway authorization]
B --> C[Queued transaction and current checks]
C --> D[Read existing session]
D --> E[Write Goal and retry receipt]
E --> F[Shared cache publication]
E --> G[Gateway Goal notification]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -18, Tests +12. Total -6 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one Goal mutation path that reuses its fresh canonical entry while preserving atomic receipts, identity invariants, cache publication, and mixed-case session-key coverage. Do we have a high-confidence way to reproduce the issue? Yes, source inspection identifies both redundant full-entry snapshots on pinned main, and the existing SQLite regression provides a focused measurement path; no tests were executed during this read-only review. Is this the best way to solve the issue? Yes, reusing the exact entry already read inside the synchronous transaction is narrower than retaining unnecessary identity comparisons and preserves the existing writer owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against db1d5d2dccbc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Refresh against the canonical pre-write reuse from #149697 and retain Vincent Koc's case-distinct Matrix sibling identity regression from #149722. Management-only Goal mutations still preserve identity without taking identity snapshots; shared writer certification and receipt atomicity stay. The current-main64KiB fixture drops3 session-row SELECTs/132942bytes to 2 SELECTs/66771bytes. All23 focused owner/Gateway tests, scoped types, typed lint, formatting and independent P2 review pass. These are local database-read measurements, not production CPU or latency claims. Co-authored-by: Vincent Koc <[email protected]>
Superseded by #149765, merged as b80fe68. This draft was not merged.
Goal management decoded full session rows to compare identities even though it only changes the Goal. The merged implementation removes those redundant identity snapshots and reuses the authoritative entry already read inside write admission. Stored-row certification, cache invalidation, Goal receipts, and the existing transaction remain owned by the shared writer. I compared both production implementations; their remaining difference is comment placement. The superseding PR's CI has 120 successful and 17 skipped checks, with no failed or pending CI checks.
The refreshed branch at 6ac0019 remains available as additional regression evidence. Against main e2d3d80, the synthetic 64 KiB prompt case dropped from 3 session-row reads / 132,942 returned text bytes to 2 reads / 66,771 bytes. All 23 focused persistence and registered Gateway RPC tests passed, along with production/test types, targeted typed lint, formatting, and independent P0–P2 review.
This branch also preserves Vincent Koc's distinct Matrix room-key regression from #149722, with his verified co-author credit. That additional case and this branch's tighter read/byte budgets have not landed; closing this duplicate does not claim otherwise. The merged PR has its own identity, certification, returned-entry, and Goal behavior coverage.
These are isolated database-read measurements, not production latency or CPU results. No schema, configuration, retention, durability, or permission change is involved. Update behavior is unchanged.
Related: #149537, #149388, #149697, #149722, #149726, #149765.