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, 10:36 AM ET / 14:36 UTC (Revision 4). ClawSweeper reviewWhat this changesCorrects Memory Core tests to measure search responsiveness separately from maintenance and count SQLite results even when statements are cached. Merge readiness⛔ Blocked before merge - 2 items remain The payload repair and stronger held-writer assertion remain useful. Current main only partially overlaps this work, and no introduced correctness defect was found. Priority: P3 Review scores
Verification
How this fits togetherMemory Core indexes notes and sessions for search and removes selected derived memories. These tests check that searches remain responsive during database maintenance and that forgetting sessions avoids loading unrelated bodies. flowchart TD
A[Notes and sessions] --> B[Memory index]
B --> C[Search during writer contention]
C --> D[Results and heartbeat timing]
B --> E[Forget preview and deletion]
E --> F[SQLite result observation]
F --> G[Row and payload limits]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +32. Total +32 across 2 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one responsiveness fixture that checks search under the held writer, alongside execution-time payload accounting that covers cached statements. Do we have a high-confidence way to reproduce the issue? Yes, from source: the existing payload observer misses all() executions selected by the SQLite adapter on newer Node versions. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes. Observing native result execution and separating search timing from maintenance completion address the measurement defects without changing runtime behavior or weakening limits. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 62334b06ce97. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
|
Superseded by two verified changes on The canonical responsiveness fix retains the existing 100 ms writer-release timer. This PR's stronger held-writer alternative was not landed; the implementations are not patch-equivalent. Its original failures and combined-fixture proof remain recorded in this PR and the retained run history. The separate earlier 3-second indexing failure is not claimed fixed by this closure. Final canonical CI passed the payload case and all five canonical responsiveness scenarios together (1,929 tests passed, four skipped in the memory shard). Closing this PR without merging because both canonical fixes are now on |
What Problem This Solves
Two memory test measurements can report failures despite correct results: the responsiveness fixture times the whole maintenance operation, and the forget payload guard misses SQLite result methods and previously cached statements.
User Impact
Test-only repair. Runtime behavior is unchanged. Preserve the existing 1-second responsiveness budget, 100 ms heartbeat, all search/maintenance content assertions, exactly 68 observed payload rows, and the 16 KiB byte ceiling.
Why This Change Was Made
Require search and the heartbeat to finish within the existing budget while the external writer is still held, then release the writer and verify maintenance separately. Cleanup releases the owned writer and joins search and maintenance even on failure. Observe both SQLite
all()anditerate()at execution, after warming the real statement cache, and restore both observers during cleanup.Evidence
The five revised held-writer scenarios passed in both hosted attempts on the original responsiveness head. Those runs failed separately on a full-indexing 3-second bound and then the old payload observer; the initial combined timings do not establish whether search or maintenance was slow.
For the payload fixture, the unchanged ordinary case reproduces zero observed rows on Node 24.21; the warmed-cache repair passes with all data and row/byte assertions intact. Its separate hosted run also passed the repaired case, but failed the old combined responsiveness stopwatch. This PR consolidates that exact reviewed fix from #150090; that PR stays open until verified supersession after landing.
Seven pure responsiveness controls and the ordinary payload proof are retained at their original source. The two candidate files are byte-identical to those reviewed versions. No local held-writer, fault, PID, provider, or container replay was performed. The ordinary runtime proof exercised
all();iterate()was source-reviewed only. Fresh combined P0–P2 review is scoped-clean; affected extension-test types, scoped lint, formatting, and diff checks pass. The combined head passed CI run 35106517244: all five revised responsiveness scenarios and the payload case passed together, with 1,929 passing tests and four skips in the memory shard. Native preparation completed successfully at the same head.