test: make route idle-wait expiry independent of runner speed #2027
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 292 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.340
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2027"
general
weight: 0.35
openrig-review
What a user gets
Required CI no longer depends on a mocked pane observation completing within one millisecond. The transport route test now freezes the deadline clock and timeout timer, advancing them only at the injected poll. It still requires HTTP 409,
wait_for_idle_timeout, confirmed running activity, the one-millisecond budget, and no input write.The route case covers both zero and five milliseconds of real capture CPU cost, following the existing domain-test pattern. Production code is unchanged.
How you verified it
target_activity_unknowninstead of the expected busy timeout.git diff --checkpassed. No install, build, native or provider run.waitForIdleMs: 1call sites on base54bd48511. The three in session-transport.test.ts already freeze the deadline clock and race timer: running-pane and Claude-thinking cases also cover 0/5ms capture costs; the UserPromptSubmit case advances only at the poll. They remain unchanged and their five cases passed. The sixth selected check preserves the separate perpetual-unknown outcome. OtherwaitForIdlePollMs: 1uses set a polling interval, not a one-millisecond overall deadline, and were left alone.Anything you were unsure about
This tests route mapping after an observed busy sample. A sample that genuinely misses the production deadline must still report unknown; no assertions were weakened and no production deadline was extended. Fake timers are restored in
finally, and the full route file passed with its other tests afterward.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Tests
Expanded timeout test coverage for zero and nonzero capture costs, including response details, polling behavior, and confirmation that no text is sent.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->