fix(runtime-host): publish admission before execution imports #5325
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 332 lines diff across 4 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.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5325"
general
weight: 0.35
M4n5ter
Summary
Runtime Host candidates load the entire execution composition before owner election and Local IPC admission. Slow imports therefore leave the candidate undiscoverable, losing candidates load execution dependencies unnecessarily, and import failures escape candidate startup handling. Defer that import until the kernel has published its listener; preserve a bounded failure phase and errno in election diagnostics, and make the connection-timeout message describe an unavailable endpoint.
Fixes #5324. The issue includes the triggering Windows nightly report and a controlled reproduction; this PR does not claim to establish the sole cause of that historical 45-second timeout or increase the default deadline.
Verification
main; the affected package sources and manifests are identical to the validated checkout.owned connection keeps a fresh Host alive for its full election windowtimes out under its 6-second budget on this machine, with both the original and changed factory. Its timeout was not relaxed. Full repository build/test/typecheck and desktop/UI Knip were not run; the all-suites checklist remains unchecked..cmdspawn returns EINVAL.AI use
Tool(s) and scope: OpenAI Codex investigated the report, implemented the changes and regression tests, ran local validation, and prepared this submission. The commit includes a
Generated-by: OpenAI Codextrailer.Checklist
Does this PR entail a change in behavior?