claw-code/rust/crates/runtime/src
bellman 557ab8a9dd surface required MCP server semantics
Expose MCP server requiredness through config parsing, inventory reports, config hashes, and degraded startup failure context so orchestrators can distinguish optional degradation from required startup breakage.

Constraint: G007-plugin-mcp Task 3 requires required vs optional MCP behavior and must not mutate .omx/ultragoal.

Rejected: Treating all MCP failures as equivalent | it preserves the existing opacity that prevents required-server failures from being escalated differently.

Confidence: high

Scope-risk: moderate

Directive: Preserve required=false as the backward-compatible default; keep required surfaced in JSON/text inventory and degraded failure context when extending MCP lifecycle states.

Tested: cargo test -p runtime parses_typed_mcp_and_oauth_config -- --nocapture; cargo test -p runtime manager_discovery_report_keeps_healthy_servers_when_one_server_fails -- --nocapture; cargo test -p runtime manager_records_unsupported_non_stdio_servers_without_panicking -- --nocapture; cargo test -p commands renders_mcp_reports -- --nocapture; cargo check --workspace; cargo fmt --all -- --check

Not-tested: cargo clippy -p runtime -p commands -- -D warnings is blocked by pre-existing runtime/src/policy_engine.rs LaneContext clippy::struct_excessive_bools.

Co-authored-by: OmX <omx@oh-my-codex.dev>
2026-05-15 10:06:39 +09:00
..
approval_tokens.rs task: approval token chain 2026-05-14 18:07:03 +09:00
bash.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-14 18:28:21 +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
branch_lock.rs Close the clawability backlog with deterministic CLI output and lane lineage 2026-04-05 18:41:02 +00:00
compact.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-14 18:11:53 +09:00
config.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-15 10:05:42 +09:00
config_validate.rs feat(config): add trustedRoots to RuntimeConfig 2026-04-08 02:35:19 +09:00
conversation.rs fix: REPL display, /compact panic, identity leak, DeepSeek reasoning, thinking blocks 2026-05-06 15:32:34 +09:00
file_ops.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-14 18:11:53 +09:00
g004_conformance.rs Prove G004 contract bundles are machine-checkable 2026-05-14 18:07:11 +09:00
git_context.rs feat: b5-git-aware — batch 5 wave 2 2026-04-07 15:19:45 +09:00
green_contract.rs require provenance for green contracts 2026-05-14 18:33:51 +09:00
hooks.rs Improve malformed hook failures so operators can diagnose broken JSON 2026-04-13 12:44:52 +00:00
json.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
lane_events.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-14 18:05:26 +09:00
lib.rs Make G006 task policy state machine executable 2026-05-15 09:29:26 +09:00
lsp_client.rs Restore a fully green workspace verification baseline 2026-04-05 18:46:06 +00:00
mcp.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-15 10:05:42 +09:00
mcp_client.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-15 10:00:40 +09:00
mcp_lifecycle_hardened.rs Restore a fully green workspace verification baseline 2026-04-05 18:46:06 +00:00
mcp_server.rs style: cargo fmt — fix CI formatting failures 2026-04-08 11:21:13 +09:00
mcp_stdio.rs surface required MCP server semantics 2026-05-15 10:06:39 +09:00
mcp_tool_bridge.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-15 10:00:40 +09:00
oauth.rs fix(startup): fall back to USERPROFILE when HOME is not set (Windows) 2026-04-10 08:33:35 +09:00
permission_enforcer.rs feat: ultraclaw droid batch — ROADMAP #41 test isolation + #50 PowerShell permissions 2026-04-12 03:06:24 +09:00
permissions.rs Keep approval token contracts in their own runtime module 2026-05-14 18:11:20 +09:00
plugin_lifecycle.rs omx(team): auto-checkpoint worker-2 [2] 2026-05-15 09:45:29 +09:00
policy_engine.rs Make G006 task policy state machine executable 2026-05-15 09:29:26 +09:00
prompt.rs fix: REPL display, /compact panic, identity leak, DeepSeek reasoning, thinking blocks 2026-05-06 15:32:34 +09:00
recovery_recipes.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-14 18:28:21 +09:00
remote.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
report_schema.rs harden report contract projection identity 2026-05-14 18:09:36 +09:00
sandbox.rs omx(team): auto-checkpoint worker-1 [1] 2026-05-14 18:11:53 +09:00
session.rs Make G006 task policy state machine executable 2026-05-15 09:29:26 +09:00
session_control.rs Preserve trust boundaries during pulled follow-up 2026-04-27 09:05:50 +00:00
sse.rs feat(runtime): add tests and improve error handling across runtime crate 2026-04-02 18:10:12 +09:00
stale_base.rs feat: bridge directory metadata + stale-base preflight check 2026-04-07 15:55:38 +09:00
stale_branch.rs Restore a fully green workspace verification baseline 2026-04-05 18:46:06 +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 Keep G006 packet regressions aligned with shipped schema 2026-05-15 09:41:38 +09:00
task_registry.rs Make G006 task policy state machine executable 2026-05-15 09:29:26 +09:00
team_cron_registry.rs Restore a fully green workspace verification baseline 2026-04-05 18:46:06 +00:00
trust_resolver.rs Preserve trust boundaries during pulled follow-up 2026-04-27 09:05:50 +00:00
usage.rs docs: describe the runtime public API surface 2026-04-04 15:23:29 +00:00
worker_boot.rs task: preserve startup no-evidence timestamp evidence 2026-05-14 17:50:33 +09:00