feat(runtime-host): enable ShellRun event waits #6206
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.43) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 393 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.358
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6206"
general
weight: 0.35
me2seeks
Summary
Enables an active Goal using AI SDK direct tools to wait for managed background Bash without repeated work-model or Goal-evaluator calls. The source Turn yields, and persisted terminal facts resume the same Goal through existing Root admission.
Refs #5926 (PR4 implementation plan).
Refs the original discussion #5920.
Verification
format:checkincludes unrelated untracked local investigation scripts and fails on those files; they are excluded from this PR. Fullnpm test, Windows/Linux runs and Electron E2E were not run.<img width="1280" height="900" alt="image" src="https://github.com/user-attachments/assets/73fc02d7-1d33-4837-b2b3-0fa2f6800053" />
<img width="1280" height="900" alt="image" src="https://github.com/user-attachments/assets/1bb16219-c6f6-4c6c-982b-179aa57f859c" />
Protocol compatibility
The new Goal projection and cancellation operation advance Runtime Host compatibility epoch 226→ 227. Snapshot preflight reserves the wait summary within the existing frame limit, reducing the remaining capacity for queued content. No storage schema migration is required.
AI use
Select exactly one:
Tool(s) and scope: OpenAI Codex contributed implementation, tests, documentation and review assistance. The commit retains
Generated-by: OpenAI Codex.Checklist
The second item remains unchecked because of the root format-command limitation above; tracked-file formatting and the other listed checks passed.
Does this PR entail a change in behavior?