Repository navigation
test(active-memory): control zero-hit recall polling - #149661
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: needs maintainer review before merge. Reviewed September 16, 2026, 12:03 AM ET / 04:03 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR controls the clock and transcript-read ordering in an Active Memory regression test so slow filesystem operations do not exhaust its recall deadline. Merge readiness✅ Ready for maintainer review The repair remains useful on current main, and no actionable patch defect was found. The protected maintainer PR should remain open for normal landing. Priority: P3 Review scores
Verification
How this fits togetherActive Memory searches stored memories before a conversational reply and adds relevant context to the main agent’s prompt. This test exercises the recall watcher’s handling of usable results whose diagnostic hit count is zero. flowchart LR
A[Conversation prompt] --> B[Active Memory recall]
B --> C[Memory search transcript]
C --> D[Recall watcher]
D --> E[Usable summary]
E --> F[Main agent context]
G[Controlled test clock and read ordering] --> D
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +19. Total +19 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing regression assertions while separating the simulated recall deadline from filesystem scheduling and ensuring the watcher processes results before summary completion. Do we have a high-confidence way to reproduce the issue? Yes: current main starts a real 100 ms watchdog before asynchronous transcript work, so delayed I/O can consume the test budget. The PR reports a controlled failing reproduction; this read-only review did not execute it. Is this the best way to solve the issue? Yes: controlling time and waiting for transcript consumption repairs the existing fixture without widening deadlines, weakening assertions, or adding production seams. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0263e93ce860. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
The recall test for usable search results with zero debug hits couples its 100 ms deadline to real filesystem scheduling. Slow I/O can exhaust that deadline before the test exercises the intended watcher behavior.
User Impact
More reliable Active Memory regression coverage. No production behavior, timeout, configuration, or dependency changes.
Why This Change Was Made
Use the neighboring tests' fake-clock pattern and wait for the real transcript read to reach the watcher before the model summary settles. The existing 100 ms deadline, 35 ms summary delay, and assertions remain unchanged. Controlling timers alone is insufficient: it can let the summary finish before the watcher consumes its read and hide an early-zero-hit regression.
Evidence
The patch changes one test file. Hosted exact-head CI remains required before landing.