feat(runtime-host): bridge event waits to Goal continuation #6147
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 559 lines diff across 6 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.379
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6147"
general
weight: 0.35
me2seeks
Summary
PR2 persists event-wait observations but does not resume Goal execution. This implements the PR3 execution-bridge plan: a Turn registers a wait, ends normally and releases execution resources; bounded observation makes no work-model or Goal-evaluator calls; a result or timeout can then admit at most one effective successor through existing Root admission.
WaitForEventremains internal and absent from production catalogs; production adapters, the ShellRun entry point and UI remain in PR4.Refs #5926 and #5920. Builds on #6057 and #6113.
Verification
Final source:
7fe6963f6da7fd9964536978dbf7056c74efbe29. The latest follow-up changes only recovery documentation and protocol comments; executable behavior and tests are unchanged from5386b1dfc.git diff --check, and the protocol epoch guard against main21f1cc1c2(224 → 225). Normal commit hooks passed.5386b1dfcpassed 1,053/1,053 focused Node 24 tests and 47/47 Goal Root tests on Node 22. CI 39218667755 passed on that earlier head; this is not a claim about CI on the new head.The first sandboxed 483-test run could not initialize storage authority locks; the unchanged command passed outside the sandbox. No fresh full-workspace test run, full Electron run, production-adapter test or exhaustive Host-process crash test was performed for this follow-up. SQLite kill/reopen and consistent-snapshot tests establish their respective storage/recovery boundaries, not full Host-process crash coverage.
Migration and recovery
turn.startpermissions remain unchanged. Re-check the epoch against main before merging if another incompatible protocol change lands first.app_restartedand pauses the Goal; explicit user resume starts a fresh continuation without redelivering the old wait. This is not transparent retry of an uncertain execution. The internal bridge README now documents this procedure.AI use
Tool(s) and scope: OpenAI Codex assisted with implementation, regression tests, review and documentation. Both commits retain
Generated-by: OpenAI Codex; retain attribution in the final squash commit.Checklist
Does this PR entail a change in behavior?