Add opt-in planned, durable MCP run control

Author: jmaglyCreated Sep 22, 2026Updated Sep 22, 2026

Parent: #208.

Depends on: #210.

Outcome

With execution explicitly enabled at server startup, an operator can review a run plan, launch a durable obliteration job, then query or cancel it after an MCP client disconnects. Default startup exposes no execution tools.

Tool contracts

  • plan_run takes typed model reference, method, output destination, and resource settings. Validate against configured roots, ceilings, supported methods, and network/download policy. Return the actual destination, expected side effects, known or unknown resource/download estimate, and a short-lived plan token.
  • launch_run accepts that token, revalidates the plan and current policy, builds an allowlisted argument vector, calls RunArchive.launch, and returns a durable run ID promptly. Never accept raw CLI args or a shell command.
  • cancel_run uses RunArchive.cancel; show clearly that it changes state. Query tools from #210 expose progress and bounded results.

Safety and acceptance

  • Server-side enablement and token expiry are mandatory even if a host shows its own confirmation UI. Enforce concurrent-job, resource, path, subprocess, and output limits. Downloads and remote model IDs require a separate explicit operator setting.
  • Preserve RunArchive redaction and provenance. Do not return raw subprocess stderr, credentials, or untrusted checkpoint paths as executable guidance.
  • Synthetic local tests cover plan validation, token replay/expiry, launch, status, result, cancel, reconnect, admission limits, and failure recovery. Live GPU/model tests remain conditional gates.
  • New code meets exact-head PR checks and the release workflow's conditional policy/risk-map requirements.

Source: elder-plinius/OBLITERATUS