test(runtime-host): attribute Windows startup stalls #3454
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.50) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.50 · 588 lines diff across 7 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.382
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3454"
general
weight: 0.35
liugddx
Summary
Preserves bounded structured evidence for Runtime Host election timeout failures.
The diagnostic records the observed startup cut with the exact Candidate PID/attempt identity and exit state, final election elapsed time, endpoint-connected observation, reconcilable election result counters, and the last safe registration summary. Desktop and CLI startup errors include the same bounded JSON.
This PR is diagnostic-only. The Candidate single-flight behavior fix from #3512 is already merged into
main; this PR does not change that behavior, the 45-second election deadline, retry/respawn policy, candidate backoff, endpoint behavior, public wire protocol, failure classification, or cleanup ownership.Refs #3279.
Diagnostic contract
false; draining, incompatible, and post-connect handshake failures recordtrue. The internal phase field is stripped from the existing public connection result.totalResultsis reconciled bynotRegistered + connectFailed + handshakeFailed + connected + deadlineElapsed + otherResults.readyWaitFailedis a separate post-connection phase counter and is intentionally outside that sum.Release Windows checklane.Scope decisions
The merged #3512 behavior fix owns per-election Candidate single-flight. This PR retains only its diagnostic observation and regression evidence; it does not reimplement or broaden the behavior fix. Cross-client coalescing, full LaunchLease architecture, detailed phase timestamps, and retry/deadline policy changes remain deferred to #2142 or #3279 follow-up work.
Verification
Exact head
8a5a275926f7abef0109b496acd84dc86cae535a, rebased ontomainf19eede03a829c226be39f001b2684860a3aa1d5:npm run lint: 2,583 files, 0 errors.npm run format:check: 1,591 files, 0 changes.git diff --checkpassed.Local limitations:
read_eoftiming noise; the new root-mismatch writer tests pass 2/2.L3 gate
Fresh exact-head L3 evidence is green. The remaining gate is normal human review.
AI use
Select exactly one:
Tool(s) and scope: Codex implemented the bounded diagnostic, addressed review findings, rebased it after the #3512 behavior fix, removed the exploratory Node stress harness, ran local validation, and used independent author-gate reviews. The commits include
Generated-by: Codextrailers.Checklist
Does this PR entail a change in behavior?