Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 1:45 PM ET / 17:45 UTC. ClawSweeper reviewWhat this changesThe PR freezes time only during the oversized multi-page MCP tool-catalog byte-ceiling regression so runner load cannot turn that assertion into an unrelated catalog-timeout failure. Merge readinessThe patch is a focused, correct stabilization of a flaky MCP regression test: it freezes the test-local clock and restores it reliably, while current source keeps the real 50 ms catalog deadline and its dedicated timeout coverage intact. Keep this PR open for the protected maintainer review path and exact-head CI resolution; the current failed build-artifacts gate is not evidence of a defect in this one-file test diff. Priority: P3 Review scores
Verification
How this fits togetherThe node-host MCP manager connects configured local MCP servers, paginates their tool catalogs under a deadline and byte budget, then exposes retained descriptors to the agent runtime. This test verifies that an oversized catalog is isolated while a healthy server remains usable. flowchart LR
A[Configured MCP servers] --> B[Node-host MCP manager]
B --> C[Paginated tool catalogs]
C --> D[Deadline and byte budgets]
D --> E[Retained tool descriptors]
D --> F[Warning and server isolation]
E --> G[Agent tool runtime]
Decision needed
Why: The patch has no source-level correctness finding and has credible focused proof, but the protected Before merge
Agent review detailsSecurityNone. PR surfaceTests +8. Total +8 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the narrowly scoped fake-clock test isolation once the exact-head CI gate is green or an authorized maintainer confirms the unrelated failure, while retaining the existing strict 50 ms deadline regression as the production contract. Do we have a high-confidence way to reproduce the issue? Yes, by source and supplied terminal proof: a 6 MiB first page is synchronously byte-counted between the collector's deadline checks, so advancing Date.now past 50 ms before page two reproduces the wrong timeout outcome. This read-only checkout did not execute the test itself. Is this the best way to solve the issue? Yes. Freezing only this byte-ceiling test and restoring real timers is the narrowest maintainable solution because the adjacent test continues to prove the real 50 ms deadline separately. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 10b0b7b7c473. 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
HistoryReview history (1 earlier review cycle)
|
Summary
Reproduced production-adjacent CI failure
The test allocates and measures a 6 MiB first catalog page while inheriting a 50 ms request deadline. Under a loaded runner, synchronous byte counting can consume the deadline before requesting page two, so the byte-ceiling assertion fails for the unrelated timeout reason. An actual owner preload advancing Date.now by 75 ms only after the 6 MiB Buffer.byteLength reproduced the exact hosted failure before the fix and passed unchanged afterward.
Verification
Inspectable exact owner regression proof
The actual owner test was executed with an ephemeral preload that advances Date.now by 75 ms only after Buffer.byteLength measures the real 6 MiB tool page.
Production timeout/deadline behavior and the dedicated strict 50 ms pagination tests are unchanged. A currently failing hosted build-artifacts check concerns an unrelated existing TUI/Gateway PTY test and is under separate owner investigation. Moving-main drift alone is advisory under repo policy; no branch refresh is necessary unless a relevant integration conflict exists.