Repository navigation
Conversation
Wait for the existing index-state reader on the upgraded database before measuring candidate independence from a held provenance rebuild. Preserve the one-second deadline, provider gate, corpus, and repair drainage. The historical blocking-await control still fails with the reader prepared; the original 20-file group passes. Cold worker startup remains separately measured and is not claimed as a production performance fix.
|
🦞👀 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 22, 2026, 10:54 AM ET / 14:54 UTC. ClawSweeper reviewWhat this changesPrepares Memory Core’s retrieval worker before timing candidate lookups during legacy-index repair, excluding cold worker startup from the responsiveness assertion. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, narrowly scoped test repair absent from current main. Source inspection found no actionable defect, and the reported blocking-await control supports preserving regression sensitivity. Priority: P2 Review scores
Verification
How this fits togetherMemory Core retrieves indexed notes for automatic recall while legacy indexes can rebuild in the background. These tests check that foreground candidate requests finish without waiting for that rebuild and return classified results afterward. flowchart TD
A[Legacy memory index] --> B[Upgraded memory manager]
B --> C[Prepare retrieval reader]
C --> D[Timed candidate lookups]
B --> E[Background repair held]
D --> F[Prompt empty results]
E --> G[Release repair and verify results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep reader readiness outside the repair-independence deadline while preserving the held-rebuild regression and post-repair persistence checks. Do we have a high-confidence way to reproduce the issue? Yes for the reported test scenario: the body identifies the failing group and environment, and source confirms cold retrieval startup falls inside the original assertion window. The intermittent failure was not independently executed during this read-only review. Is this the best way to solve the issue? Yes. Preparing the existing read-only worker isolates the intended repair-independence contract without extending the deadline, bypassing candidate retrieval, or changing production code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fbc540f147e5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Superseded by the memory fixture repair in #155745 ( The landed fixture checks that both public candidate promises settle after a FIFO read barrier and before the held rebuild is released, with provider-entry and cancellation cleanup. It directly verifies repair independence; this PR's separate warmup is unnecessary, and the landed test does not claim a one-second cold-start guarantee. Verified the canonical source and Linux proof: all three cases passed, and restoring the historical blocking |
|
The fixture failure is now covered on main by #155745, merged as That change queues an index-state read behind both candidate lookups on the same retrieval worker, then checks that both public calls completed while the repair gate remains held. It also uses the existing provider-entry signal and releases the rendezvous on test cancellation. Memory production behavior is unchanged. The landed PR records a blocking-await negative control that fails both startup modes, followed by all three corrected cases passing. I verified the changed fixture and its ownership path in freshly fetched main |
Related: #155719
What Problem This Solves
Fixes intermittent CI failures where legacy-memory repair responsiveness checks include cold retrieval-worker startup in their one-second deadline.
User Impact
Test-only change. Production retrieval and repair behavior, the one-second candidate deadline, provider hold, corpus, and cleanup remain unchanged.
Why This Change Was Made
Read index state through the existing retrieval worker and the same upgraded database before measuring the two candidate calls. This establishes real reader readiness without querying candidates, starting repair, or releasing the provider gate. Cold-start latency is measured separately; this does not claim to improve it.
Evidence
784ef32c875: the original 20-file group had 227 passes and one failure on Linux Node 24.19.0 with two-CPU affinity. The host exposed four CPUs; this is an affinity diagnostic, not a claim of identical CI hardware.awaitstill failed both prepared-reader probes at zero of two completions. In the startup-catch-up variant, the provider gate was held before either call, and calls settled only after release. Exact production bytes were restored before the corrected group passed all 228 tests in 189.75 seconds.