claw-code/rust/crates/runtime/src
Yeachan-Heo 784f07abfa Harden worker boot recovery before task dispatch
The worker boot registry now exposes the requested lifecycle states, emits structured trust and prompt-delivery events, and recovers from shell or wrong-target prompt delivery by replaying the last prompt. Supporting fixes keep MCP remote config parsing backwards-compatible and make CLI argument parsing less dependent on ambient config and cwd state so the workspace stays green under full parallel test runs.

Constraint: Worker prompts must not be dispatched before a confirmed ready_for_prompt handshake
Constraint: Prompt misdelivery recovery must stay minimal and avoid new dependencies
Rejected: Keep prompt_accepted and blocked as public lifecycle states | user requested the narrower explicit state set
Rejected: Treat url-only MCP server configs as invalid | existing CLI/runtime tests still rely on that shorthand
Confidence: high
Scope-risk: moderate
Reversibility: clean
Directive: Preserve prompt_in_flight semantics when extending worker boot; misdelivery detection depends on it
Tested: cargo build --workspace; cargo test --workspace
Not-tested: Live tmux worker delivery against a real external coding agent pane
2026-04-04 14:50:43 +00:00
..
bash.rs feat: bash validation module + output truncation parity 2026-04-03 19:31:49 +09:00
bash_validation.rs feat: bash validation module + output truncation parity 2026-04-03 19:31:49 +09:00
bootstrap.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
compact.rs fix: align session tests with jsonl persistence 2026-04-02 11:31:53 +09:00
config.rs Harden worker boot recovery before task dispatch 2026-04-04 14:50:43 +00:00
conversation.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
file_ops.rs feat(file_ops): add edge-case guards — binary detection, size limits, workspace boundary, symlink escape 2026-04-03 17:09:54 +09:00
green_contract.rs feat(runtime): green-ness contract 2026-04-04 00:42:41 +09:00
hooks.rs feat(hooks): add PostToolUseFailure propagation, validation, and tests 2026-04-02 18:24:12 +09:00
json.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
lane_events.rs feat(mcp+lifecycle): MCP degraded-startup reporting, lane event schema, lane completion hardening 2026-04-04 14:31:56 +00:00
lib.rs Harden worker boot recovery before task dispatch 2026-04-04 14:50:43 +00:00
lsp_client.rs chore: additional AI slop cleanup and enforcer wiring from sessions 1/5 2026-04-03 18:35:27 +09:00
mcp.rs feat(mcp): add toolCallTimeoutMs, timeout/reconnect/error handling 2026-04-02 18:24:30 +09:00
mcp_client.rs feat(mcp): add toolCallTimeoutMs, timeout/reconnect/error handling 2026-04-02 18:24:30 +09:00
mcp_lifecycle_hardened.rs feat(mcp+lifecycle): MCP degraded-startup reporting, lane event schema, lane completion hardening 2026-04-04 14:31:56 +00:00
mcp_stdio.rs Harden worker boot recovery before task dispatch 2026-04-04 14:50:43 +00:00
mcp_tool_bridge.rs feat(runtime): hardened MCP lifecycle with phase tracking and degraded-mode reporting 2026-04-04 00:42:43 +09:00
oauth.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
permission_enforcer.rs fix(enforcer): defer to caller prompt flow when active mode is Prompt 2026-04-03 18:39:14 +09:00
permissions.rs wip: hook-pipeline progress 2026-04-01 04:30:25 +00:00
plugin_lifecycle.rs feat(runtime): first-class plugin lifecycle contract with degraded-mode support 2026-04-04 00:41:51 +09:00
policy_engine.rs feat(policy): add lane reconciliation events and policy support 2026-04-04 16:12:06 +09:00
prompt.rs fix: stabilize merge fallout test fixtures 2026-04-02 11:31:53 +09:00
recovery_recipes.rs feat(recovery): bridge WorkerFailureKind to FailureScenario (P2.8/P2.13) 2026-04-04 20:07:36 +09:00
remote.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
sandbox.rs fix(sandbox): probe unshare capability instead of binary existence 2026-04-03 16:24:02 +09:00
session.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
session_control.rs feat(runtime): structured session control API for claw-native worker management 2026-04-04 00:43:30 +09:00
sse.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
stale_branch.rs Stop stale branches from polluting workspace test signals 2026-04-04 14:01:31 +00:00
summary_compression.rs feat(runtime): actionable summary compression for lane event streams 2026-04-04 00:43:30 +09:00
task_packet.rs feat(runtime): typed task packet format for structured claw dispatch 2026-04-04 00:40:20 +09:00
task_registry.rs chore: additional AI slop cleanup and enforcer wiring from sessions 1/5 2026-04-03 18:35:27 +09:00
team_cron_registry.rs feat: ultraclaw session outputs — registry tests, MCP bridge, PARITY.md, cleanup 2026-04-03 18:23:03 +09:00
trust_resolver.rs feat(runtime): trust prompt resolver 2026-04-04 00:44:08 +09:00
usage.rs wip: jsonl-session progress 2026-04-01 04:30:27 +00:00
worker_boot.rs Harden worker boot recovery before task dispatch 2026-04-04 14:50:43 +00:00