{"at":"2026-11-23T01:08:22.729Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:08:23.916Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"harflow","version":""}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"Dispatch coding tasks to headless coding agents on this machine — currently Claude Code, Codex, opencode, vibe and Antigravity (binary `agy`). start_task returns immediately with a task_id; poll it with get_task_status or await it with wait_for_task, then continue the same session with resume_task. Anywhere a task id or workflow run id is accepted, a unique prefix of at least 8 characters also works: the reply carries resolved_from, and a prefix that is too short, unmatched or ambiguous is refused with data.code (unknown_task, ambiguous_task_id, unknown_workflow_run, ambiguous_workflow_run_id), up to 5 candidates when ambiguous. See docs/contracts.md, Id prefixes.\n\nCall list_backends first if you are unsure which to use: it reports what is installed and what each one can actually do. Backends differ in ways that matter — Claude and vibe support a turn cap (though a breach on vibe reads as a plain failure, not a distinct status), only Claude and opencode report a dollar cost, only Codex offers restrictions with a real OS sandbox, only vibe has no model-selection flag at all, and Antigravity accepts reasoning_effort only at low/medium/high (its CLI refuses xhigh before the run starts). Every task reports an `enforcement` block describing what was actually enforced, which is the honest answer rather than what `freedom` implies.\n\nA `publish` freedom level sits between `write_in_repo` and `unrestricted`: it authorizes remote publishing attempts, including commits, pushes, PRs and reviews; command approvals stay in harness settings. It is NOT a promise that publishing succeeds — credentials, remote permissions, branch protection, repo hooks, or an unauthenticated `gh` can all still stop it, and the agent may not even try — and it is authorization only: with network=True a lower freedom can mechanically reach a remote without having been authorized to publish. Check `enforcement.publish_attempts_allowed`, `enforcement.local_commit` and `enforcement.network_access` on the returned task rather than assuming from the freedom name alone. `local_commit` is denied, allowed, or not_enforced. On Claude Code, write_in_repo denies a direct git commit and publish authorizes committing; inherited harness rules can still restrict it. An optional `network` parameter on start_task and resume_task asks for network independently of the freedom: True asks harflow_mcp to impose no network barrier of its own, False asks it to impose one, and None keeps each freedom's historical behaviour. It governs harflow_mcp's own network setting only, never reachability. Ordinary Codex exec inherits allow rules that can bypass sandbox pins; effective OS/write guarantees are false and resolved disable requests report not_controlled.\n\nA wait_for_task that comes back still 'running' has not failed — the run is untouched, so call again or poll. wait_for_task, wait_for_tasks and wait_for_workflow share one contract: timeout_seconds 0..3600 is honoured as asked (never clamped), until='terminal' holds to a 6 hour server ceiling (omit timeout_seconds), and each reports stop_reason, timed_out, elapsed_seconds and polling_guidance. Your MCP client's own request deadline still applies; see docs/multi-task-waiting.md. Tasks outlive this server process: ones started by an earlier harflow_mcp server are still reported, marked 'recovered: true'.\n\nA claude task started without max_turns, and every antigravity task, has live input (`live_input: true`). Public send_message queues exact caller prose for the next explicit continuation, including live-input tasks; it never folds into the current turn by default. delivery=now starts a safely settled standalone continuation or returns a stable refusal while keeping the message queued. No backend currently certifies safe mid-turn interruption. Workflow and node messages route through their owning workflow and are consumed by the next matching issued dispatch, without changing authority. cancel_queued_message withdraws a still-queued message. Status exposes messages and queued_followups; send_workflow_message addresses a run directly.\n\nWorkflows are durable graphs owned by HarflowMCP. start_workflow gives the caller's original prompt and workflow context to an orchestrator harness. The orchestrator chooses valid next nodes and writes focused assignments; HarflowMCP validates those decisions, runs node harnesses, coordinates parallel branches, and persists results. Nodes receive their instructions, assignment, and relevant prior results, not the full request or global checklist. They return structured results and can ask the orchestrator for missing context. Only the orchestrator updates the checklist. Decisions and results come from harness final messages; harnesses may still use their own tools. Poll or wait using the workflow_run_id. For needs_input, the MCP caller answers through resume_workflow with instructions and the current input_decision_id; recover_workflow explicitly retries a settled failed run with a reason while preserving completed work.","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T01:08:23.916Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:08:23.919Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"harflow","version":""}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Report the available agent backends, what is installed, and what each can actually do.\n\nWorth calling before start_task if the choice is not already obvious. Each entry carries its\n`capabilities` (turn cap, cost reporting, OS sandbox, per-command deny, whether we can choose\nthe session id) and, for every `freedom` level, the enforcement it really delivers.\nOrdinary script entrypoints retain version discovery and native eligibility checks.\nExtra-path qualification separately rejects selected scripts before version execution.\ncapabilities.extra_writable_paths reports bounded support, certification and refusal reason;\ncapabilities.allowed_commands and caller_approval_support report their qualification gates.\nAt unrestricted freedom, extra_writable_paths is a validated, disclosed no-op, not a bounded grant.\n","inputSchema":{"properties":{},"title":"list_backendsArguments","type":"object"},"name":"list_backends","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_backendsOutput","type":"object"}},{"description":"Dispatch a coding task to a headless agent and return immediately.\n\n`conversation_profile` explicitly requests a qualified native control\ntransport (`native` or `shipped-medium35-high`). Missing runtime/profile\nqualification refuses before launch; this does not enable caller approvals.\n\nArgs:\n    prompt: Instructions for the agent. Be specific about the desired end state. Write it in\n        plain prose: preserve spaces and word boundaries, and never concatenate words or strip\n        whitespace to shrink the payload — harflow_mcp stores and delivers the text exactly as\n        submitted, so compressed text reaches the agent exactly as garbled. Blank or\n        all-whitespace prompts are rejected rather than trimmed into shape.\n    repo_path: Absolute path to a git repository; the agent's working directory.\n    backend: Which harness to use — \"claude\", \"codex\", \"opencode\", \"vibe\" or \"antigravity\". See\n        list_backends.\n    freedom: \"read_only\", \"write_in_repo\" (default), \"publish\", or \"unrestricted\". \"publish\"\n        sits between \"write_in_repo\" and \"unrestricted\": it authorizes an attempt to\n        remote publishing, including commit/push/PR creation/reviews, but that is not a promise the attempt succeeds — credentials,\n        remote permissions, branch protection and hooks are all\n        outside harflow_mcp's control. On Claude Code, write_in_repo denies a direct `git commit`\n        and `git push`; `publish` authorizes committing; inherited harness rules can still restrict it. `enforcement.local_commit`\n        reports that policy as denied, allowed, or not_enforced. How each level is enforced\n        depends on the backend; the returned `enforcement` says what actually applies, via\n        `local_commit`, `publish_attempts_allowed` and `network_access` among other fields.\n    model: Model for this run, in the backend's own naming. Rejected outright, rather than\n        silently ignored, when model selection is unsupported. Vibe accepts a configured\n        model alias through its qualified ACP transport and verifies the selected alias;\n        see list_backends' capabilities.supports_model_selection.\n    background_idle_seconds: Optional finite positive live-input background wait bound,\n        at most 21600 seconds. Capped/classic runs do not use live-input idle waiting.\n        Continuations inherit the saved effective bound unless overridden.\n    max_turns: Cap on agent turns. Only some backends support this; asking for it on one that\n        does not is an error rather than being silently ignored.\n    reasoning_effort: \"low\", \"medium\", \"high\" or \"xhigh\", passed to the backend verbatim.\n        Rejected up front when the chosen *backend* has no effort control at all (vibe is\n        config-only and has none), or is asked for a level outside the ones it declares (see\n        list_backends — antigravity accepts only low/medium/high, and its CLI would refuse\n        xhigh before the run starts, exit 1); harflow_mcp cannot tell whether the chosen\n        *model* honours it — on opencode in particular, a model with no declared variants\n        silently ignores an unsupported level rather than erroring, and on antigravity a model\n        id that encodes its own level makes the CLI refuse --effort at startup. See\n        list_backends' per-backend reasoning_effort caveats for what is and is not known there.\n    caller_approvals: Opt in to version-qualified exact-action caller decisions: Bash, plus Read\n        on Claude Code 2.1.310 (approving a Read can disclose files outside the repository).\n        Qualified Codex app-server and Vibe ACP transports also support exact-action decisions;\n        supported tools, freedoms, caps and platforms are in list_backends caller_approval_support.\n        Defaults off;\n        worker self-approval is prohibited. Decisions do not override saved policy or grant\n        reusable access. Inspect list_approval_requests and get_approval_request before responding.\n    caller_write_approvals: Additionally allow Write and Edit requests (including outside the\n        repository) to be approved one exact action at a time. Requires caller_approvals and a\n        version that qualifies it; defaults off, in which case Write and Edit requests are answered\n        with a delivered Harflow refusal. Harflow-protected paths are always refused.\n    interaction_owner: caller by default; monitor requires the verified human Monitor path.\n    network: Optional boolean asking for network access independently of `freedom`: True\n        asks harflow_mcp to impose no network barrier of its own, False asks it to impose one,\n        and None (the default) keeps each freedom's historical behaviour exactly. The\n        parameter governs harflow_mcp's own network barrier only — never reachability: a\n        corporate firewall or proxy defeats it too. Codex accepts sandbox network pins, whose effective barrier can be bypassed by inherited rules, and its support is non-rectangular (see\n        capabilities.network_control): enabling is refused at read_only and blocking at\n        unrestricted. On claude, opencode, vibe and antigravity, True is accepted — there is\n        nothing to impose — and False is an error rather than silently dropped;\n        enforcement.network_access stays \"not_controlled\" there. The established guarantee is\n        stated on the returned task's enforcement.network_access; requested pins alone are not proof.\n    group: Optional label (1-128 chars), inherited by any nested dispatch this task's own\n        agent makes through harflow_mcp (unless that dispatch gives its own). Useful for\n        tagging a family of dispatches you want to find together later via list_tasks. It\n        also names a scratch folder shared by every task in the group, exposed to the\n        agent as $HARFLOW_GROUP_SCRATCH and reported as `scratch.group` in task status\n        (see docs/shared-scratch.md); every task also gets $HARFLOW_CHAIN_SCRATCH, shared\n        with its resumes and continuations.\n    title: Optional short human-readable label (at most 90 characters after trimming, no\n        control characters) shown for this task in the Monitor. Purely informational. It is\n        never inherited from a calling task: a dispatch without a title has none. A\n        resume_task continuation carries the resumed task's title.\n    auto_continue: Integer 0–10 (default 0). Opt in to that many fresh successors after\n        backend-confirmed recoverable cutoffs and observed process/output settlement.\n        Supported cutoff profiles are backend-owned; missing answers alone never qualify.\n        Cancellation, permission denial, usage limits and workflow-owned tasks are excluded.\n        Detached task owners preserve automatic continuation across MCP server death.\n        Task-owner death retains uncertain reservations rather than duplicating execution.\n\n    notify: Configured destination alias, direct callers only. Intent is durable before spawn.\n        Receivers must deduplicate stable IDs; retries resume only while a server is active.\n\n    observe_repos: Optional list of up to seven absolute repository paths to observe alongside\n        the launch directory. Observation grants no filesystem or publishing authority.\n    extra_writable_paths: Optional bounded list of existing absolute local file or directory\n        paths. At most 16 paths, 4096 UTF-8 bytes each and 16384 bytes total. Relative paths,\n        missing/special paths, filesystem roots and canonical duplicates are errors. Only\n        version-qualified configurations in capabilities.extra_writable_paths are supported;\n        other harnesses/configurations reject the request. The certified bounded mode clears\n        ambient writable roots and excludes implicit temporary roots. Known external execution\n        configuration namespaces of all registered backends remain protected; existing unsupported\n        inputs reject requests. Inherited repository configuration authority gains no new exclusions. Grants permit reads\n        as well as writes, never publication. Omission inherits a detected owner's grants;\n        nested requests cannot widen them. Saved grants and path identities carry through\n        resume/continuation; replacement requires a new authorized task. Workflows and\n        native adapters do not accept these grants. Use preview_task_permissions before launch.\n        Keep qualified startup inputs stable: checks refuse observed changes but do not atomically\n        pin configuration or executables against independently authorized concurrent writers.\n    group_report_output: Opt in to a qualified read_only repository run with write access only\n        to its own nonempty group scratch folder. Defaults off; resumes/continuations inherit\n        unless overridden. Unsupported backends and conflicting grants are refused; see list_backends.\n        Prompt prose is preserved; use $HARFLOW_GROUP_SCRATCH/report-$HARFLOW_TASK_ID.md.\n    git_https_rewrite: Optional boolean overriding HARFLOW_GIT_HTTPS_REWRITE (default on).\n        Appends process-local GitHub SSH-to-HTTPS URL configuration; never changes Git files.\n        HTTPS credentials, sandbox access and reachability remain external requirements.\n    allowed_commands: Optional list of Bash command patterns granted for this run only, so a task can run\n        specific commands (a test runner, a build) without `unrestricted`. At most 16 patterns, 256 bytes\n        each and 2048 in total. Supported on qualified Claude Code and Vibe ACP at write_in_repo and publish\n        (see list_backends capabilities.allowed_commands); other backends and access levels refuse it. Each\n        pattern is a lowercase program followed by literal tokens, with at most one `*` as the final\n        token or the `:*` suffix (`pytest` style: `python3 -m pytest:*`), and a wildcard needs a literal\n        subcommand or target (`make test:*`). A pattern with no wildcard is exact and matches one command\n        line; `:*` or a final `*` is a prefix. A bare program name such as `swiftlint` is exact: it matches\n        only that command with no arguments, and the dispatch notice suggests `swiftlint:*` or\n        `swiftlint lint:*`. Options before a goal are literal and order-sensitive, so `mvn -o test:*`\n        does not match `mvn -q -o test`; `mvn -o:*` is refused because a goal must follow the options.\n        A launcher whose command has no subcommand, such as `npx tsc:*`, is refused; grant the exact\n        command, for example `npx tsc --noEmit -p .`. Programs whose arguments start with options, such\n        as `xcodebuild -workspace App.xcworkspace -scheme App test`, cannot take a wildcard: grant each\n        full command line exactly. Shells, wrappers, interpreter evaluation and gh below\n        `publish` are refused. Exact Git fetch, ff-only pull and non-force switch/create grants are\n        supported at write_in_repo and publish; wildcard/config/reset/force Git grants are refused.\n        Initial transition grants require clean checkouts; later dirty races remain Git controlled.\n        Commit/push authority is separate (`publish`); paths must stay inside the repository.\n        The grammar is a guard against mistakes, not a security boundary: grants are Claude permission-layer\n        approvals, not OS enforcement. An exact pattern matches one command line and a prefix matches that\n        command with further arguments. A granted program can run repository code, chained commands need every\n        part allowed, and the access level's git commit and push denies still win, except the exact\n        merge-conclusion grant (`git commit --no-edit` or `git merge --continue`) which omits the\n        broad commit deny and is gated on MERGE_HEAD. Ordinary commits stay refused.\n        Omitted or null grants\n        nothing. A nested dispatch may grant only exact patterns its caller holds (unless the caller is\n        unrestricted) and never inherits them. resume_task and continue_task inherit the saved list when\n        omitted and replace it when given. Status reports each grant's match as\n        enforcement.extra_allowed_command_matches. See docs/harness-permissions.md.\n    branch: Optional literal branch name, set together with base. Harflow fetches that base and\n        runs `git switch -c` before the agent starts, at any freedom except read_only. Refused\n        when the checkout is dirty, the branch exists, the base cannot be fetched, or a merge or\n        rebase is in progress. Never stashes, resets or forces. Resume and continuation reuse the\n        prepared branch and do not accept branch or base.\n    base: Remote-tracking base `<remote>/<branch>`, for example origin/develop. The first\n        component is the remote. Set together with branch.\n    fetch: true refreshes the default remote; a list of literal remote names refreshes those.\n        Harflow runs `git fetch --prune` before the agent, at every freedom and backend, including\n        read_only. A failure is recorded and the task still starts unless fetch_required is true.\n    fetch_required: When true, a fetch failure refuses dispatch and the agent does not start.\n        Requires fetch.\n    resources: Optional list of 1-16 resource names (lowercase letters, digits and `. _ : -`, at most\n        64 characters, starting with a letter or digit; for example `ios-simulator` or `repo:main`)\n        this task needs exclusively. Capacity is one per name: the task does not start until it\n        holds every name, strictly first come first served per name, all or none. While it waits\n        it has no task record: the call returns at once with `status: \"running\"` and\n        `launch_state: \"waiting_for_resources\"`, and get_task_status, wait_for_task, list_tasks and\n        cancel_task all work on it. Names are released when the run's exit is observed. Resources\n        grant no access and are accepted at every freedom; they need a supervised server or\n        `harflow-ctl`. A task started by a task that holds resources may only use names that parent\n        declared (they are borrowed, never queued); declare every resource at the outermost task.\n        A task started from inside a workflow attempt cannot request any in this release.\n        resume_task, continue_task and automatic continuation re-queue the same names. See\n        docs/resources-and-worktrees.md.\n    resource_wait_seconds: How long to wait for `resources`, 0..21600 (default 3600). 0 means grant\n        now or fail. A task that waits out the bound never starts and reports `not_started`.\n    worktree: Optional `{base_ref?, branch?, detach?}`: run the task in its own linked Git worktree,\n        `<HARFLOW_WORKTREE_ROOT>/<task_id>` (default root `~/.harflow-worktrees`), so it can write\n        without touching your checkout or index. `base_ref` (default the repository's HEAD) is\n        resolved to a commit after any resource wait; `branch` (default `harflow/<task_id>`) must\n        not exist yet, or `detach: true` checks out the commit with no branch. The task's\n        `repo_path` and working directory are the worktree, and `worktree.source_repo_path`\n        keeps the original. Refused at `read_only`, for nested dispatches and for a repository that\n        configures Git filter drivers (including LFS); repository hooks do not run while it is\n        created. Nothing removes a worktree or deletes its branch automatically: use\n        `harflow-ctl worktree-list` and `worktree-remove`. The call returns once the launch is\n        accepted, typically with `launch_state: \"granted\"` while the worktree is made. See\n        docs/resources-and-worktrees.md.\n\nReturns the new task_id and its starting state. The run continues in the background; poll\nget_task_status or call wait_for_task to follow it.\n\nIf this task is itself dispatched from inside another harflow_mcp task's agent (a nested MCP\ncall), that ancestry is recorded — `spawned_by`, `root_task_id`, `depth` — on a best-effort\nbasis (see `lineage_detected` on the returned task: which detection method found the caller,\nor null if none was found and this is treated as a root task). When a caller *is* detected,\nthis dispatch is also checked against it: a nested dispatch weaker than its caller on depth or\non any enforcement field is refused outright (`NestedDispatchRefused`). This cap is\nbest-effort, not a sandbox boundary — nothing stops an agent from dispatching outside\nharflow_mcp entirely.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"auto_continue":{"default":0,"title":"Auto Continue","type":"integer"},"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"background_idle_seconds":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"default":null,"title":"Background Idle Seconds"},"base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Base"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch"},"caller_approvals":{"default":false,"title":"Caller Approvals","type":"boolean"},"caller_write_approvals":{"default":false,"title":"Caller Write Approvals","type":"boolean"},"conversation_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Conversation Profile"},"extra_writable_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Extra Writable Paths"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"freedom":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Freedom"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Turns"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"observe_repos":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Observe Repos"},"prompt":{"title":"Prompt","type":"string"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Reasoning Effort"},"repo_path":{"title":"Repo Path","type":"string"},"resource_wait_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Resource Wait Seconds"},"resources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Resources"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow"},"worktree":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"title":"Worktree"}},"required":["prompt","repo_path"],"title":"start_taskArguments","type":"object"},"name":"start_task","outputSchema":{"additionalProperties":true,"title":"start_taskDictOutput","type":"object"}},{"description":"List bounded permission request metadata for exactly one task or root workflow tree.\n\nDefault page size 16, maximum 32. Raw actions appear only in get_approval_request.\nWorkers and orchestrators cannot inspect caller approval records. A pending request is\nan interaction substate; underlying execution remains running. No approval is inferred\nfrom agent prose, errors or already denied actions.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":16,"title":"Limit","type":"integer"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow Run Id"}},"title":"list_approval_requestsArguments","type":"object"},"name":"list_approval_requests","outputSchema":{"additionalProperties":true,"title":"list_approval_requestsDictOutput","type":"object"}},{"description":"Read the complete exact action for an authorized direct caller.\n\nInspect this payload before approving; request IDs, digest and revision are comparison\nfields, never authorization tokens. Payloads may contain sensitive command arguments.\n","inputSchema":{"properties":{"request_id":{"title":"Request Id","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","request_id"],"title":"get_approval_requestArguments","type":"object"},"name":"get_approval_request","outputSchema":{"additionalProperties":true,"title":"get_approval_requestDictOutput","type":"object"}},{"description":"Reserve approve/reject for one exact action, with stale/duplicate answer protection.\n\nOnly the authoritative root interaction owner can answer; workers/orchestrators cannot\nself-approve. interaction_owner=\"monitor\" is refused on this MCP caller channel: the Monitor\nanswers through harflow-ctl, and every MCP decision is recorded as a caller decision. Approval preserves exact original input and never\ninstalls permission suggestions or reusable grants. Reservation, local pipe delivery and\nobserved tool outcome are separate states. No ambiguous decision is automatically resent.\nA request unanswered after 1800 seconds, or at an earlier workflow attempt deadline, is\nrejected by Harflow (approval_expired) and never approved; a stale or expired answer fails.\nThere is no approve-later path after a denial or expiry. Recovery is always a new resume_task\nor continue_task execution of the finished task, and what to change follows the denied entry's\ndenial_remedy: allowed_commands covers only Bash approval_required and chained_command parts;\na denied or expired Read, Write or Edit needs a resumed run (caller_approvals and\ncaller_write_approvals are inherited) so the agent can raise a fresh request; path_safety and\noutside_working_directory go through caller approvals, not grants; a deny_rule cannot be lifted\nby grants. Messages and resume are never decisions.\n","inputSchema":{"properties":{"action_digest":{"title":"Action Digest","type":"string"},"decision":{"title":"Decision","type":"string"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"owner_revision":{"title":"Owner Revision","type":"integer"},"request_id":{"title":"Request Id","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","request_id","action_digest","owner_revision","decision"],"title":"respond_approval_requestArguments","type":"object"},"name":"respond_approval_request","outputSchema":{"additionalProperties":true,"title":"respond_approval_requestDictOutput","type":"object"}},{"description":"Preview standalone task permissions without launching an agent or allocating scratch.\n\nWith qualification_only, returns only the cached qualification requirement plan before\nprovider self-tests, path certification or owner checks; launch still validates those gates.\nEmpty required feature sets need no binary inspection.\n\nUses the same bounded extra_writable_paths validation, installed-version checks and detected\nowner caps as start_task. Returns requested/effective typed paths, certification and truthful\nenforcement. Writable scratch-aware launches disclose future task, chain and group scratch\nsymbolically in writable_roots without allocating them; read-only previews have no scratch root.\nThe preview is an observation, not a reservation: launch revalidates paths and\nconfiguration. Extra grants never authorize publication. Workflow/native-adapter grants and\nunverified harness configurations are unavailable. Known external backend execution configuration\nis protected; unsupported existing inputs reject requests. Existing repository configuration\nauthority retains its baseline limits. Grants authorize output writes, not trust in that output\nas a future repository, hook or executable. Startup inputs are checked, not atomically\npinned against independently authorized concurrent writers; see docs/extra-writable-paths.md.\n\ngroup_report_output opts in to a qualified read_only run whose sole writable root is its\nconcrete canonical group folder (group is required or inherited). No folder is allocated.\nThis excludes caller approvals, native children and extra writable grants.\n\nallowed_commands is validated exactly as in start_task (grammar, installed backend version,\nnested-subset cap) and the returned enforcement lists it as extra_allowed_commands.\nbranch, base and fetch are validated the same way as start_task and shown as dispatch_git\nwithout running Git.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Base"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch"},"caller_approvals":{"default":false,"title":"Caller Approvals","type":"boolean"},"caller_write_approvals":{"default":false,"title":"Caller Write Approvals","type":"boolean"},"extra_writable_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Extra Writable Paths"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"freedom":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Freedom"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"qualification_only":{"default":false,"title":"Qualification Only","type":"boolean"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"preview_task_permissionsArguments","type":"object"},"name":"preview_task_permissions","outputSchema":{"additionalProperties":true,"title":"preview_task_permissionsDictOutput","type":"object"}},{"description":"Durably subscribe to one task's observed terminal settlement using a configured alias.\n\nDirect callers only. The server administrator configures HARFLOW_NOTIFY_DESTINATIONS; caller URLs\nand secrets are refused. Repeated task/alias subscriptions share a stable event ID. Delivery\nretries at most six times and can duplicate after a crash: receivers must deduplicate IDs.\nPending delivery resumes while a configured server is active, not while every server is down.\nDelivery failure never changes task execution. See docs/task-notifications.md.\n","inputSchema":{"properties":{"notify":{"title":"Notify","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","notify"],"title":"subscribeArguments","type":"object"},"name":"subscribe","outputSchema":{"additionalProperties":true,"title":"subscribeDictOutput","type":"object"}},{"description":"Read bounded subscription delivery states; this never establishes task success.","inputSchema":{"properties":{"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_notificationsArguments","type":"object"},"name":"get_task_notifications","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"get_task_notificationsOutput","type":"object"}},{"description":"Stop future attempts for a task/alias (or all aliases); in-flight requests may finish.","inputSchema":{"properties":{"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"unsubscribeArguments","type":"object"},"name":"unsubscribe","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"unsubscribeOutput","type":"object"}},{"description":"Report a dispatched task's current state without blocking.\n\nArgs:\n    task_id: Identifier returned by start_task or resume_task, or a unique prefix of at\n        least 8 characters; a prefix reply carries resolved_from.\n    include_tail: If True, include the full last_output_tail (20 lines × 2000 chars each);\n        if False (default), the tail is omitted for running/completed tasks and shortened\n        to 5 lines × 500 chars for failed tasks. The caller can request the full raw stream\n        log path from `raw_stream_log` in full detail for complete output, or use get_task_events for\n        normalized events.\n    brief: Compatibility alias for detail=\"compact\"; preserves the complete summary.\n        include_tail=True still explicitly requests the full tail.\n    detail: \"compact\" (default) omits static execution metadata and detailed outcome probes;\n        \"full\" returns complete MCP status. Both retain the complete summary/report,\n        approval attention, failure diagnostics and recovery uncertainty.\n    include_successors: Fetch the first authorized page of successor IDs. Defaults false:\n        ordinary polling includes a detail reference without scanning retained task history.\n\nA task still waiting for its `resources` has no record yet: it reports `status: \"running\"`,\n`launch_state` (`waiting_for_resources`, `granted`, `uncertain`, or `not_started` once it\nsettled without starting, with `not_started_reason`) and `resources` (names, queue `position`,\n`blocked_by`, deadline). See docs/resources-and-worktrees.md.\n\nFull detail returns the task's status, summary, enforcement, and `recent_activity` — a list of ≤ 5 one-line\nstrings describing the most recent meaningful events (tool calls, failed tool results, assistant\nmessages, notices). For running tasks this gives a live summary without the bulk of the\nraw stream. These lines deliberately collapse whitespace and truncate to stay short — they are\na summary only; the stored event log (see get_task_events) and every stored or delivered\nmessage keep their original text intact. `total_cost_usd` is null for backends that do not\nreport cost — Codex, vibe and Antigravity report tokens only or nothing (vibe reports neither\ncost nor tokens nor a turn count).\n\n`enforcement` states what the run's restrictions actually amounted to, and `mcp_servers` (where\nthe backend reports them) shows what the agent loaded. `owner` identifies execution/output\ncapture; `dispatch_origin` and dynamic `responding_server` distinguish the requester from this\nreader. `observation_mode` is owner, attached, recovered or unknown. A same-origin normal\nattachment reports `recovered: false`; another reader or missing process-generation evidence\nreports true with an explanation. PID differences alone do not establish owner loss.\n\nLive, recovered and brief snapshots include `artifact_summary` with a bounded `count` and\n`state` (available or unavailable). Supported standalone owners may include `detail_ref`:\n{\"tool\": \"get_task_artifacts\", \"task_id\": \"...\"}, for explicit paged metadata reads.\nUnsupported or unverifiable ownership returns unavailable without a detail reference;\na supported owner with an unreadable manifest may retain the reference for diagnostics.\nArtifact registration is a reference, not proof of valid contents, successful execution,\nor permission to copy or publish. Availability does not verify content integrity.\n\n`parent_task_id` links a resume to its source; `continuation_of_task_id` links a new-session\ncontinuation. `successor_tasks` derives the reverse links from retained, authorized headers,\nwhen include_successors is true; otherwise only a detail reference is returned.\nIncompleteness and pagination are explicit. These links do not transfer reminders\nor subscriptions to the successor.\n\nConfirmed usage limits add `failure_diagnostic` (category, reason, source, and optional\nprovider-supplied reset_at). It is retained during process settlement and after failure;\na running status during settlement does not authorize a replacement dispatch.\n\nTerminal `outcome` records starting and ending Git observations and diff statistics.\n`new_commits` means newly reachable from the observed comparison base, including imported history;\ntask-created commits and authorship are unavailable. Branch/HEAD are endpoint observations\nonly; intermediate transitions are unobserved even when endpoints match. It also records\nlocal upstream comparison, optional bounded phase/probe diagnostics and partial-result status,\nand best-effort structured tool evidence for external file writes\nand the last build/test command. Missing evidence is null, including pushed state without\nobserved publication evidence. These shared-repository observations do not establish task\nauthorship or goal completion. Old records without captured outcomes return null.\n","inputSchema":{"properties":{"brief":{"default":false,"title":"Brief","type":"boolean"},"detail":{"default":"compact","enum":["compact","full"],"title":"Detail","type":"string"},"include_successors":{"default":false,"title":"Include Successors","type":"boolean"},"include_tail":{"default":false,"title":"Include Tail","type":"boolean"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_statusArguments","type":"object"},"name":"get_task_status","outputSchema":{"additionalProperties":true,"title":"get_task_statusDictOutput","type":"object"}},{"description":"Wait for a task to finish, giving up after a timeout without disturbing the run.\n\nArgs:\n    task_id: Identifier of the task to await.\n    timeout_seconds: How long to hold, 0..3600 (default 50; 0 observes once without\n        sleeping). Honoured as asked, never silently clamped; out of range is INVALID_PARAMS.\n        Breaking change: values above 3600 are now rejected (0 is newly accepted). Your MCP\n        client applies its own request deadline, and exceeding it fails the *call* even though\n        the task keeps running — see docs/multi-task-waiting.md before asking for long holds.\n    include_tail: If True, include the full last_output_tail (20 lines × 2000 chars each);\n        if False (default), the tail is omitted for running/completed tasks and shortened\n        to 5 lines × 500 chars for failed tasks.\n    detail: \"compact\" (default) omits static execution metadata and detailed outcome probes;\n        \"full\" returns complete MCP status. Both preserve the complete summary/report,\n        approval attention, failure diagnostics and wait fields. include_tail=True retains\n        the full tail in either mode.\n    until: \"timeout\" (default) returns when the task settles or timeout_seconds elapses.\n        \"terminal\" holds until the task settles, bounded only by a 6 hour server ceiling;\n        timeout_seconds must then be omitted (passing both is INVALID_PARAMS).\n    ctx: Injected by the server; not a caller argument.\n\nThe result is the task status plus `requested_timeout_seconds`, `effective_timeout_seconds`,\n`until`, `timed_out`, `stop_reason` (terminal, attention, timeout, ceiling or observation_unavailable),\n`elapsed_seconds` and `polling_guidance`. If the task is still going when the wait ends, the\nstatus is \"running\" with a `next_step` hint: call this again, or poll get_task_status. The\ndispatched process is never signalled, written or resumed by a wait, so waiting is always safe\nand repeating it costs nothing. For a task recovered from an earlier server process the result\ncarries `outcome_observed` once it is finished or the wait stopped as observation_unavailable:\nfalse (normally with stop_reason observation_unavailable) means its process is gone but its\nexit was never observed, so the status is an inference — inspect it with get_task_status;\ntrue otherwise. It is never present on a task that is still running. Live tasks carry it\n(true) once finished.\nUndecided approvals and approval uncertainty stop the wait as attention. Answered approvals\nstill awaiting delivery keep waiting. Older summaries without a decision count retain\nattention. Approval attention alone says nothing about process liveness.\nProgress is sent every 5 seconds, best effort. Returns\n`recent_activity` — a list of ≤ 5 one-line strings describing the most recent meaningful events\n— for a live summary without the bulk of the raw stream.\n\nA task still waiting for its `resources` is running as far as a wait is concerned: the wait\nholds until it spawns and settles, or reports `not_started` if it never starts.\n\nPrefer holds <=50 seconds after remote \"device did not respond\" or \"connection closed\"\ndeadline errors; the task continues and a shorter wait is safe to repeat.\n\nA coding task can easily run for many minutes. Expect several calls rather than one long one.\nConfirmed usage limits retain `failure_diagnostic` and partial output while the task owner\nsettles the process. Waiting does not retry the task or authorize a paid fallback.\n","inputSchema":{"properties":{"detail":{"default":"compact","enum":["compact","full"],"title":"Detail","type":"string"},"include_tail":{"default":false,"title":"Include Tail","type":"boolean"},"task_id":{"title":"Task Id","type":"string"},"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Timeout Seconds"},"until":{"default":"timeout","enum":["timeout","terminal"],"title":"Until","type":"string"}},"required":["task_id"],"title":"wait_for_taskArguments","type":"object"},"name":"wait_for_task","outputSchema":{"additionalProperties":true,"title":"wait_for_taskDictOutput","type":"object"}},{"description":"Observe 1..32 unique task IDs, returning compact statuses in requested order.\n\nmode any returns when at least one requested task is settled; all waits for every task.\ntimeout_seconds accepts 0..3600 (default 30) and is honoured as asked, never silently clamped;\nout of range is INVALID_PARAMS. Zero polls immediately. until=\"terminal\" holds until the mode\nis satisfied, bounded by a 6 hour server ceiling, and requires timeout_seconds to be omitted.\nYour MCP client's own request deadline still applies. Prefer holds <=50 seconds after\nremote \"device did not respond\" or \"connection closed\" errors; see docs/multi-task-waiting.md.\nAll IDs must exist and pass caller read authorization before waiting.\nExistence checks and initial metadata share a two-second I/O budget; undecidable existence\nrejects the request. A final metadata observation can add up to two more seconds.\nReturns terminal_task_ids, bounded summaries and get_task_status diagnostic references;\nno output tails. A recovered task whose process is confirmed gone without an observed exit is\nlisted in undecidable_task_ids (status unknown) and counts as settled in both modes, as in\nwait_for_task, after a short grace if its owning harflow_mcp server is still alive; an uncertain\nidentity keeps waiting. Under until=\"terminal\", targets that stay unobservable for\n3 rounds stop the wait with stop_reason observation_unavailable. Rows carry a bounded\nfailure_diagnostic (category, reason) when one exists. Also returns requested/effective\ntimeout, until, timed_out, stop_reason, elapsed_seconds and polling_guidance. Progress is sent\nevery 5 seconds. Timeout and caller cancellation never cancel or signal the observed tasks.\n","inputSchema":{"properties":{"mode":{"default":"any","title":"Mode","type":"string"},"task_ids":{"items":{"type":"string"},"title":"Task Ids","type":"array"},"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Timeout Seconds"},"until":{"default":"timeout","enum":["timeout","terminal"],"title":"Until","type":"string"}},"required":["task_ids"],"title":"wait_for_tasksArguments","type":"object"},"name":"wait_for_tasks","outputSchema":{"additionalProperties":true,"title":"wait_for_tasksDictOutput","type":"object"}},{"description":"Start a fresh session from a conclusively settled standalone task.\n\nThis differs from resume_task: it reconstructs the original assignment, latest summary and\ncaptured outcome, with optional UTF-8 notes and caller follow-up preserved verbatim. Oversized\nevidence is referenced by path. Backend, model and access settings are retained. Process exit,\ncomplete output drainage and a durable terminal record must be observed; old or inferred\nrecords without settlement evidence are refused. Workflow-owned tasks use workflow recovery.\nConcurrent identical retries share one successor; mismatched or unsettled reservations fail.\nA source that had `resources` re-queues the same names; while they are busy the successor is\nacknowledged with `launch_state: \"waiting_for_resources\"` (the reservation is `accepted`, and a\nretry returns the same pending successor).\nThe returned continuation_of_task_id is separate from session resume/delegation ancestry.\n\nFollow-ups queued on the source with send_message are consumed by this call: they appear\nverbatim, in queue order, ahead of extra_prompt (or ahead of a fixed closing line when there is\nnone), and the new task's task_started event lists their message_ids. With nothing queued the\ncall behaves exactly as without the feature. Two manual calls with the same extra_prompt and\nnotes are the same request whatever is queued: the queue is read once, when the successor is\nreserved, and a retry returns that successor. An automatic continuation never consumes.\n\ngroup_report_output: omitted or null inherits the saved opt-in; false disables scoped output.\nallowed_commands: omitted or null inherits the source task's saved command grants (an automatic\ncontinuation always does); a list replaces them after the same validation and nested-subset check\nas start_task. See start_task for the grammar and limits.\nfetch refreshes remote-tracking refs before the fresh session, the same way as start_task.\nContinuations reuse a branch prepared at the original dispatch and do not accept branch or base.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"background_idle_seconds":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"default":null,"title":"Background Idle Seconds"},"extra_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Extra Prompt"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"notes_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notes Path"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"continue_taskArguments","type":"object"},"name":"continue_task","outputSchema":{"additionalProperties":true,"title":"continue_taskDictOutput","type":"object"}},{"description":"Continue a finished task's session with follow-up instructions.\n\nArgs:\n    task_id: A task that has finished; its session is the one resumed.\n    followup_prompt: What the agent should do next, with the prior context intact. Write it\n        in plain prose, as with start_task's prompt: preserve spaces and word boundaries and\n        never concatenate words to shrink the payload — the text is stored and delivered\n        exactly as submitted. Blank or all-whitespace follow-ups are rejected rather than\n        trimmed into shape. May be omitted only when the task has follow-ups queued with\n        send_message (see below); otherwise it is required.\n    max_turns: Cap on agent turns, where the backend supports one.\n    network: Optional boolean overriding the parent run's network setting for this run only:\n        None (the default) inherits what the parent was dispatched with — which is also the\n        historical default for a record written before the field existed — True asks for no\n        network barrier of harflow_mcp's own, False asks for one, honoured or refused exactly\n        as on start_task for the parent's freedom.\n    fetch: Optional refresh of remote-tracking refs before the resumed agent starts. true uses\n        the default remote; a list names remotes. A prepared branch is reused and is not recreated.\n        branch and base are not accepted on resume.\n    fetch_required: When true, a fetch failure refuses the resume.\n    group_report_output: None inherits the saved group-scoped output opt-in; false disables it.\n    allowed_commands: None (the default) inherits the parent's saved command grants; a list replaces\n        them for this run after the same validation and nested-subset check as start_task, which\n        documents the grammar and limits.\n\nFollow-ups queued on the task with send_message are consumed by this call, exactly once: the\nprompt is each queued message as a block \"Queued caller follow-up N of M (message <id>, queued\n<time>):\" followed by its text exactly as sent, in queue order, a blank line, then\nfollowup_prompt verbatim — or the line \"End of queued caller follow-ups.\" when it is omitted.\nThe new task's task_started event lists the message_ids. A message cannot be consumed twice;\none that cannot be proven undelivered after a failed launch is kept as delivery_unknown rather\nthan re-queued.\n\nA task that had `resources` re-queues the same names; if they are busy the call returns at once\nwith `launch_state: \"waiting_for_resources\"`, hands the consumed follow-ups to the waiting launch\n(consumed when it spawns, queued again if it never starts) and has no record until then.\n\nReturns a new task_id sharing the original session, and returns immediately as with start_task.\nRuns on the same backend, model, reasoning_effort and freedom as the original — none of these\ncan be changed on resume, since a mid-conversation switch would not honestly describe what\nproduced the reply. `network` is the one per-run override, because it is a per-run sandbox\nsetting rather than a description of the session.\n\nSome backends mint their own session id and only disclose it mid-run; if a task died before\ndoing so, its conversation cannot be continued and this says so rather than starting a\ndisconnected one.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"background_idle_seconds":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"default":null,"title":"Background Idle Seconds"},"conversation_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Conversation Profile"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"followup_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Followup Prompt"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Turns"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"resume_taskArguments","type":"object"},"name":"resume_task","outputSchema":{"additionalProperties":true,"title":"resume_taskDictOutput","type":"object"}},{"description":"List dispatched tasks, oldest first.\n\nArgs:\n    status: Optional filter — running, completed, failed, timed_out or cancelled.\n    backend: Optional filter by harness, e.g. \"codex\".\n    waiting_for_resource: Optional resource name: only launches that have not started and are\n        still queued for it (`launch_state: \"waiting_for_resources\"`). Uses the unpaged listing.\n\nThe unpaged listing also carries launches that are waiting for resources and have no task\nrecord yet (`pending_launch: true`); the indexed page does not.\n\nIncludes tasks from earlier harflow_mcp server processes, marked `recovered: true`.\nSupplying group/title_contains/repo/since/limit/fields/cursor selects a bounded newest-first\nindexed page (default limit 50, maximum 100), rather than the legacy oldest-first list.\nsince is an inclusive ISO8601 timestamp with timezone. fields selects compact names. Accepted\nfields, in sorted order: background_idle_seconds, backend, dispatch_origin, duration_seconds,\nfinished_at, group, input_channel, last_captured_output_at, needs_direct_lookup,\nneeds_reconciliation, note, observation_mode, observation_note, observed_exit, output_capture,\nowner, parent_task_id, persisted_status, process_identity_state, recovered, repo_path,\nresponding_server, root_task_id, session_id, started_at, status, task_id, title. The repository\nfield is repo_path, not repo. Identity and status fields are always included: task_id, status,\nneeds_reconciliation, needs_direct_lookup, persisted_status, observed_exit, process_identity_state.\nAn unknown name, an empty list, a non-string entry and a list longer than the accepted set each\nproduce their own error, and the error names the bad entries and lists the accepted ones.\nAccepted filters: group, title_contains, repo, status, backend, since, predecessor_task_id.\nFilters run before pagination;\ncursor binds filters. Status is the indexed observation: inspect needs_reconciliation and\nobserved_exit before interpreting it. See docs/compact-task-reads.md for supported fields,\nbounded-header matching and direct detail lookup. Listing never replays task logs.\nWhen status_reconciliation_pending is true, results are incomplete: retry the same filters\nwithout a cursor as directed by polling_guidance, even if has_more is false.\n","inputSchema":{"properties":{"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Status"},"title_contains":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title Contains"},"waiting_for_resource":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Waiting For Resource"}},"title":"list_tasksArguments","type":"object"},"name":"list_tasks","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":true,"type":"object"}],"title":"Result"}},"required":["result"],"title":"list_tasksOutput","type":"object"}},{"description":"Stable newest-first persisted task headers; inspect a task for reconciled status/output.\n\nbootstrap_pending indicates bounded indexing or requested-header refresh is preparing.\nPreserve loaded headers and cursors while catalog_state reports preparing.\nActive-only pages are a separate inventory and do not reorder history cursors.\npredecessor_task_id selects direct resumes and continuations of that task, for following\nsuccessor links without scanning all retained history. Combine it with the returned cursor.\n","inputSchema":{"properties":{"active_only":{"default":false,"title":"Active Only","type":"boolean"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":100,"title":"Limit","type":"integer"},"predecessor_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Predecessor Task Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Session Id"},"task_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Task Ids"}},"title":"list_task_pageArguments","type":"object"},"name":"list_task_page","outputSchema":{"additionalProperties":true,"title":"list_task_pageDictOutput","type":"object"}},{"description":"Latest provider usage-limit hit per backend and requested model, from persisted task records; direct callers only.\n\nRead-only: nothing is retried, switched or continued. Evidence is a persisted task\nfailure_diagnostic with category usage_limit (never provider_error or prose). There is no\npagination: a query sees only the newest 500 hits that match its since, backend and model\nbounds, so filtering by backend (or backend and model) gives each its own newest-500 window,\nwhile an unfiltered query sees only the newest 500 overall. repo and group filter inside that\nwindow. model is the requested model; a task on the backend default has requested_model null.\nsince is an inclusive ISO8601 timestamp with timezone. At most 50 backend/model keys are returned.\nscan.complete is false when older matching hits were left unexamined, the key cap was reached, or\nthe index is still preparing (index_state), so retry while it is preparing.\nEach hit carries task_id, title, group, observed_at (when the task settled: finished_at, else\nstarted_at, named by observed_at_source; not necessarily when the provider rejected the request), diagnostic and reset {raw, at, state}. A numeric reset is epoch seconds.\nreset.state is future, elapsed or unknown; elapsed only says the stated time has passed and does\nnot say the provider is available again. See docs/usage-limits.md.\n","inputSchema":{"properties":{"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"}},"title":"recent_limit_hitsArguments","type":"object"},"name":"recent_limit_hits","outputSchema":{"additionalProperties":true,"title":"recent_limit_hitsDictOutput","type":"object"}},{"description":"Stop a running task, terminating the agent and any processes it spawned, and cascade the\nsame stop to any live descendants this bridge can find.\n\nArgs:\n    task_id: Identifier of the task to stop.\n\nA launch still waiting for resources is stopped before it starts: the request is recorded, its\nowner honours it at the next poll, and pending descendants are asked to stop too\n(`cascade.pending_cancel_requested`).\n\nAlready-finished tasks are returned unchanged. Work the agent had already written to disk is\nleft in place. Tasks started by an earlier harflow_mcp server process can be stopped too, via\ntheir recorded process group.\n\nThe cascade reaches nested dispatches that task's own agent made through harflow_mcp —\n`spawned_by`/`root_task_id` lineage, best-effort, not a sandboxed guarantee — and the response\ncarries the result as `cascade`: `cancelled_descendants` (ids now cancelled),\n`sigkill_survivors` (ids that resisted even SIGKILL), `owner_still_settling` (ids belonging to\na still-alive bridge server that has not settled them yet), `not_signalled` (ids that\ncould not be signalled at all, with why), and `not_recorded` (ids that were signalled but\nwhose `cancelled` status could not be written, with why — their records are left untouched).\n","inputSchema":{"properties":{"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"cancel_taskArguments","type":"object"},"name":"cancel_task","outputSchema":{"additionalProperties":true,"title":"cancel_taskDictOutput","type":"object"}},{"description":"Fetch normalized events from a task's event log.\n\nArgs:\n    task_id: Identifier of the task whose events to read.\n    limit: Maximum number of events to return, capped at 200. Default is 50.\n    before_seq: Exclusive upper bound — return events with seq < before_seq (older events).\n        Cannot be used with after_seq.\n    after_seq: Exclusive lower bound — return events with seq > after_seq (newer events).\n        Cannot be used with before_seq.\n    kinds: Optional filter by event kind. Must be a non-empty list of known kinds from\n        `task_started`, `assistant_text`, `assistant_delta`, `tool_call`, `tool_result`,\n        `user_message`, `usage`, `notice`, `task_finished`, `undelivered`.\n        `assistant_delta` is excluded by default unless explicitly listed. Pass `null`\n        to get all kinds except assistant_delta.\n\nReturns events in oldest→newest order within the page, with:\n- `events`: list of event objects with their `seq`, `kind`, and data fields\n- `has_more`: true if there are more matching events in the requested direction\n- `next_before_seq`: the `seq` of the oldest event in this page (for paging older)\n- `next_after_seq`: the `seq` of the newest event in this page (for paging newer)\n- `skipped_oversized`: count of lines > 1 MiB that were skipped (not parsed, not counted as events)\n\nFor the complete final summary/report, use get_task_status in compact or full detail;\nevent pages are bounded and are not a lossless final report read.\n\nEach returned event has its long string fields truncated to 2000 chars, lists to 50 items,\nand dict nesting to depth 4, with `\"truncated\": true` added if anything was cut. An event still\nover 16 KiB after that (a very wide dict) is replaced by a stub carrying only `seq`, `kind`,\n`observed_at`, `truncated: true`, `oversized: true` and its size in `bytes`. A page\nstops early once its serialized size would pass 256 KiB (has_more remains true, cursors still\nvalid). A page is never empty while has_more is true.\n\nDefault (no before_seq/after_seq): newest page — the most recent events.\nBoth cursors cannot be used at once. kinds=[] or an unknown kind raises INVALID_PARAMS.\n","inputSchema":{"properties":{"after_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"After Seq"},"before_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Before Seq"},"kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Kinds"},"limit":{"default":50,"title":"Limit","type":"integer"},"recovery_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Recovery Cursor"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_eventsArguments","type":"object"},"name":"get_task_events","outputSchema":{"additionalProperties":true,"title":"get_task_eventsDictOutput","type":"object"}},{"description":"Read one bounded recent or older activity page using an opaque stable cursor.\n\nDefaults to 100 records; each call reads at most 1 MiB plus integrity anchors\nand returns at most 256 KiB. Pass next_cursor for exactly one older page.\nAppend-only live growth preserves the historical snapshot. Replacement or\ntruncation requires reloading without a cursor. Filtering can return an empty\npage with has_more true. An indexing response exposes no task events; retry\nafter the bounded legacy catalog bootstrap advances.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Kinds"},"limit":{"default":100,"title":"Limit","type":"integer"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_event_pageArguments","type":"object"},"name":"get_task_event_page","outputSchema":{"additionalProperties":true,"title":"get_task_event_pageDictOutput","type":"object"}},{"description":"Queue exact caller prose for any task's next continuation or owning workflow dispatch.\n\n`delivery` is `queue` (default; never folds into the current turn) or `now`. Now starts a\nsafely settled standalone continuation; an unsafe interruption returns a stable `refusal`\nalongside the queued message id, preserving the message for later. When `delivery` is `queue`\nand resolve_status says the target has already finished, the reply keeps the queued message id\nand adds `target_settled: true`, `target_status`, and a note that the message waits for\nresume_task / continue_task (or delivery=\"now\"). A running target, including a recovered task\nthat is still alive, returns the same reply as before, with no settled fields. Workflow/node\nmessages follow their owning workflow and never widen node authority; a completed non-builder\nor cancelled run says no further dispatch will consume the message. Use `interaction_owner=monitor`\nonly from a verified human Monitor caller. Status exposes messages and queued_followups.\n","inputSchema":{"properties":{"delivery":{"default":"queue","title":"Delivery","type":"string"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"task_id":{"title":"Task Id","type":"string"},"text":{"title":"Text","type":"string"}},"required":["task_id","text"],"title":"send_messageArguments","type":"object"},"name":"send_message","outputSchema":{"additionalProperties":true,"title":"send_messageDictOutput","type":"object"}},{"description":"Prepare a qualified same-conversation delivery target and its exact witness.\n\nThis explicitly enrolls a qualified task. It does not send input or enable an\nunsupported transport. Use the returned expected witness in the negotiated\nconversation_delivery_v1 request; legacy queued follow-ups stay separate.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"prepare_task_conversationArguments","type":"object"},"name":"prepare_task_conversation","outputSchema":{"additionalProperties":true,"title":"prepare_task_conversationDictOutput","type":"object"}},{"description":"Send one exact Queue or Now request using conversation_delivery_v1.\n\nQueue finishes the active response before automatic delivery. Now requires a\nqualified native interruption route; unsupported targets refuse before input.\nRequests include a UUID and exact conversation/head/turn/generation/epoch\nwitness. Acknowledged intent is distinct from native input consumption.\nRepeat an uncertain call with the identical request, never a fresh UUID.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"request":{"additionalProperties":true,"title":"Request","type":"object"}},"required":["request"],"title":"send_conversation_messageArguments","type":"object"},"name":"send_conversation_message","outputSchema":{"additionalProperties":true,"title":"send_conversation_messageDictOutput","type":"object"}},{"description":"Cancel an unclaimed message or promote it to Now without duplicating input.\n\nUse a distinct control request UUID, the existing message_request_id and the\nexact current conversation witness. Promotion preserves the message's original\nQueue admission identity. Cancellation never interrupts an issued response.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"request":{"additionalProperties":true,"title":"Request","type":"object"}},"required":["request"],"title":"control_conversation_messageArguments","type":"object"},"name":"control_conversation_message","outputSchema":{"additionalProperties":true,"title":"control_conversation_messageDictOutput","type":"object"}},{"description":"Explicitly request a capped same-session workflow result after conversation.\n\nThe source must physically exit and drain first. The request includes the\nexact conversation witness and a complete existing steering open request with\nallow_fresh_context=false. Only the issued framed commit can advance the\ngraph or propose a draft; applying/saving a draft stays explicit.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"request":{"additionalProperties":true,"title":"Request","type":"object"}},"required":["request"],"title":"commit_conversation_resultArguments","type":"object"},"name":"commit_conversation_result","outputSchema":{"additionalProperties":true,"title":"commit_conversation_resultDictOutput","type":"object"}},{"description":"Withdraw a still-queued task or workflow-owned message; claimed messages are refused.","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"message_id":{"title":"Message Id","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","message_id"],"title":"cancel_queued_messageArguments","type":"object"},"name":"cancel_queued_message","outputSchema":{"additionalProperties":true,"title":"cancel_queued_messageDictOutput","type":"object"}},{"description":"Queue a workflow or node message for its next issued dispatch. Exact prose and order are\npreserved. `now` refuses unsupported interruption or required checkpoints while keeping the\nqueued message and returning its id plus a stable refusal code. A queued message to a completed\nnon-builder or cancelled run adds `target_settled`, `target_status` and a note that no further\ndispatch will consume it; a running run, a failed run and a completed builder omit those fields.\nNo permission, goal, decision or attempt budget is changed. Owner checks match other workflow interactions.\n","inputSchema":{"properties":{"delivery":{"default":"queue","title":"Delivery","type":"string"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"run_id":{"title":"Run Id","type":"string"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"text":{"title":"Text","type":"string"}},"required":["run_id","text"],"title":"send_workflow_messageArguments","type":"object"},"name":"send_workflow_message","outputSchema":{"additionalProperties":true,"title":"send_workflow_messageDictOutput","type":"object"}},{"description":"Cancel one queued workflow message. Delivering and delivered messages cannot be withdrawn.","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"message_id":{"title":"Message Id","type":"string"},"run_id":{"title":"Run Id","type":"string"}},"required":["run_id","message_id"],"title":"cancel_workflow_messageArguments","type":"object"},"name":"cancel_workflow_message","outputSchema":{"additionalProperties":true,"title":"cancel_workflow_messageDictOutput","type":"object"}},{"description":"List name, description, revision and workflow_id without graphs/instructions by default.\n\nUse get_workflow(name) for one complete definition, or detail=\"full\" for all definitions.\nIncompatible or unavailable sources refuse the whole list in either mode.\n","inputSchema":{"properties":{"detail":{"default":"compact","enum":["compact","full"],"title":"Detail","type":"string"}},"title":"list_workflowsArguments","type":"object"},"name":"list_workflows","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_workflowsOutput","type":"object"}},{"description":"Read a saved workflow definition and revision.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"get_workflowArguments","type":"object"},"name":"get_workflow","outputSchema":{"additionalProperties":true,"title":"get_workflowDictOutput","type":"object"}},{"description":"Validate and save an explicit workflow; expected_revision protects concurrent edits.\n\nThe store creates persistence envelopes; supply only the authored graph payload.\nIncompatible or unavailable saved sources refuse mutation and complete-store indexing.\nexpected_workflow_id optionally checks the loaded stable identity, rejecting a\ndeleted or replaced same-name definition even if its revision matches.\nEvery save normalizes context_delivery to optimized_v1, including omitted or legacy\nvalues. Historical runs retain their pinned delivery policy. Bounded delivery uses\nsession-bound acknowledgements and assigned evidence retrieval,\nwith a 64 KiB target that never silently cuts required constraints.\norchestrator.instructions holds the workflow purpose; Start and End have no settings.\non_demand_nodes is separate from connected nodes, with id/title, required instructions,\noptional call_condition (When to call guidance), agent/fallbacks, freedom/network,\nsession_mode agent_decides|fresh|resume and execution_mode headless|prefer_subagent.\nStandalone IDs are unique across both lists; connections cannot reference them.\nmax_on_demand_calls defaults to 5, range 1–50, per routing/question checkpoint;\nno per-node or per-run call cap exists. Legacy Start prompt migrates on saved reads.\nSet routing_mode=\"explicit\". Ordinary nodes choose exactly one outgoing path.\nParallel execution uses paired parallel_start/parallel_end nodes with shared\nparallel_group_id. Every branch reaches its matching end; nesting is supported.\nA Run workflow node (type \"workflow\") references a saved workflow by\nworkflow_ref.workflow_id with orchestrator_mode child or current.\nChild mode supports child_session_policy agent_decides (default), fresh, or\nresume. Resume inherits only the latest completed compatible child\nconversation in this immediate parent run, with fresh workflow state; an\nunavailable explicit Resume fails closed. Current mode retains its owner. The whole\ndependency tree is resolved and pinned at save, so missing references, cycles\n(reported as A > B > C > A) and nesting beyond four levels are refused before\nanything is written. Agent callers may save only access and network settings\nwithin their recorded capability envelope, checked over the resolved tree;\nverified human callers can author workflow permissions.\n","inputSchema":{"properties":{"definition":{"additionalProperties":true,"title":"Definition","type":"object"},"expected_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Expected Revision"},"expected_workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Expected Workflow Id"},"name":{"title":"Name","type":"string"}},"required":["name","definition"],"title":"save_workflowArguments","type":"object"},"name":"save_workflow","outputSchema":{"additionalProperties":true,"title":"save_workflowDictOutput","type":"object"}},{"description":"Delete a qualified definition after scanning qualified referrers; historical snapshots remain available.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"delete_workflowArguments","type":"object"},"name":"delete_workflow","outputSchema":{"additionalProperties":true,"title":"delete_workflowDictOutput","type":"object"}},{"description":"Generate a workflow, or refine the current canvas into an unsaved validated proposal.\n\nOrchestrator instructions belong in orchestrator.instructions; Start/End are structural.\nOptional on_demand_nodes are a separate ordered list with globally unique local id, title,\nrequired nonempty instructions, optional call_condition (When to call guidance), agent,\nfreedom, network, session_mode agent_decides|fresh|resume and execution_mode.\nThey have no position, role or connections. max_on_demand_calls defaults to 5 (1–50)\nper routing/question checkpoint; no per-node or per-run call cap exists.\n\nWrite prompt in plain prose: preserve spaces and word boundaries rather than\nconcatenating words to save tokens. The caller's prompt is retained unchanged\nbefore builder input assembly.\n\nKeep node and connection instructions concise and task-specific. HarflowMCP owns\nruntime retries, budget enforcement, configured fallback dispatch and user interaction;\nuse existing configuration fields for limits and fallback candidates, and orchestrator\nneeds_input for clarification or approval. End means intentional workflow termination,\nnot waiting for user input. Preserve legitimate task branches and revision loops.\n\nLayout uses top-left logical point coordinates with x/y >= 0 and a 10-point dot grid.\nAgent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72\n(reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges and avoid\noverlaps. Arrange forward steps left to right and parallel branches on separate rows.\nUse routing_mode=\"explicit\". Ordinary outgoing paths are exclusive alternatives.\nParallel execution requires paired parallel_start/parallel_end structural nodes with\na shared parallel_group_id; every branch must reach its matching end. Parallel start\ndefaults to `branch_selection: \"all\"`. With `branch_selection: \"orchestrator\"`, the\norchestrator selects applicable issued branch continuations, assigns each selected entry\nthrough `branch_assignments`, and records a non-empty `selection_reason` explaining\nselections and exclusions before dispatch. Optional `selection_guidance` advises that\nchoice. Selected branches may contain multiple steps and properly nested groups;\nconvergence uses the frozen selected membership, including singleton selections.\nPreserve existing node positions exactly unless the user explicitly asks to move or rearrange them.\nPreserve any supplied Run workflow nodes exactly (workflow_ref, orchestrator_mode,\nchild_session_policy, attempts, timeout, optional); never author new Run workflow references.\nChild session policy is agent_decides (default), fresh, or resume, and is inactive in\nCurrent mode. Resume reuses only the latest completed compatible invocation in the\nimmediate parent run, with fresh workflow state; explicit Resume never falls back Fresh.\nThe canvas expands automatically; there is no fixed right or bottom boundary.\n","inputSchema":{"properties":{"agent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Agent"},"definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Definition"},"fallbacks":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Fallbacks"},"name":{"title":"Name","type":"string"},"prompt":{"title":"Prompt","type":"string"},"repo_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo Path"},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Source"}},"required":["name","prompt"],"title":"workflow_builderArguments","type":"object"},"name":"workflow_builder","outputSchema":{"additionalProperties":true,"title":"workflow_builderDictOutput","type":"object"}},{"description":"Queue a message in the same workflow-builder conversation without saving its draft.\n\nKeep node and connection instructions concise and task-specific. HarflowMCP owns\nruntime retries, budget enforcement, configured fallback dispatch and user interaction;\nuse existing configuration fields for limits and fallback candidates, and orchestrator\nneeds_input for clarification or approval. End means intentional workflow termination,\nnot waiting for user input. Preserve legitimate task branches and revision loops.\n\nPreserve spaces and word boundaries in prompt rather than compressing natural\nprose; the caller's source text is retained unchanged before builder input assembly.\nRestarting an idle or completed builder sets the run's resumed_at; feedback queued to a\nrunning builder does not.\n","inputSchema":{"properties":{"prompt":{"title":"Prompt","type":"string"},"run_id":{"title":"Run Id","type":"string"}},"required":["run_id","prompt"],"title":"followup_workflow_builderArguments","type":"object"},"name":"followup_workflow_builder","outputSchema":{"additionalProperties":true,"title":"followup_workflow_builderDictOutput","type":"object"}},{"description":"Publish a preview from the verified active builder task; never write a saved workflow.\n\nPositions are top-left logical points, with finite x/y >= 0, on a 10-point dot grid.\nAgent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72\n(reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges; no overlaps.\nUse routing_mode=\"explicit\". Ordinary outgoing paths are exclusive alternatives.\nParallel execution requires paired parallel_start/parallel_end structural nodes with\na shared parallel_group_id; every branch must reach its matching end. Parallel start\ndefaults to `branch_selection: \"all\"`. With `branch_selection: \"orchestrator\"`, the\norchestrator selects applicable issued branch continuations, assigns each selected entry\nthrough `branch_assignments`, and records a non-empty `selection_reason` explaining\nselections and exclusions before dispatch. Optional `selection_guidance` advises that\nchoice. Selected branches may contain multiple steps and properly nested groups;\nconvergence uses the frozen selected membership, including singleton selections.\nPreserve existing node positions exactly unless the user explicitly asks to move or rearrange them.\nThe canvas expands automatically; do not constrain nodes to a fixed viewport.\n","inputSchema":{"properties":{"definition":{"additionalProperties":true,"title":"Definition","type":"object"},"expected_draft_revision":{"title":"Expected Draft Revision","type":"integer"}},"required":["definition","expected_draft_revision"],"title":"apply_workflow_draftArguments","type":"object"},"name":"apply_workflow_draft","outputSchema":{"additionalProperties":true,"title":"apply_workflow_draftDictOutput","type":"object"}},{"description":"Preview resources, worktree plan, native ownership, permissions and fallback reasons without launching.\n\nThe orchestrator receives the permissions required by compatible native\nchildren. Supply preview_hash as expected_preview_hash when starting to\nrefuse changed workflow, launch settings or compatibility evidence.\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Overrides"},"repo_path":{"title":"Repo Path","type":"string"},"worktree":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"title":"Worktree"}},"required":["name","repo_path"],"title":"preview_workflow_runArguments","type":"object"},"name":"preview_workflow_run","outputSchema":{"additionalProperties":true,"title":"preview_workflow_runDictOutput","type":"object"}},{"description":"Start a durable workflow run; returns workflow_run_id rather than task_id.\n\nSaved top-level resources are held through pauses and caller-input checkpoints;\nagent-node resources are acquired before a harness slot. Resources grant no access.\nOptional worktree {base_ref?, branch?, detach?} creates one shared checkout for\nthe root and every child run after the run-scope grant. Nested callers and\nworkflows whose agents are all read_only cannot request one. The default branch\nis harflow/workflow-<run_id>. Removal is explicit through harflow-ctl.\nResources and the worktree plan are bound by expected_preview_hash.\n\nPreserve spaces and word boundaries in prompt rather than compressing natural prose;\nthe caller's source text is stored unchanged before workflow input assembly.\n\nThe complete dependency tree of any Run workflow node is resolved and pinned\nbefore the run is created, so later edits or deletes never reinterpret the\nrun. Children are linked runs that share the root's harness-turn budget;\npublic controls apply to the root run id only.\n\ngoal is optional nonblank text up to 64 KiB UTF-8, preserved verbatim. It complements the\nsaved purpose and request without expanding permissions. notify reserves configured root-run\nsettlement/attention webhooks before creation; notify_events selects terminal, attention,\nor both (default). Direct callers only; see docs/task-notifications.md.\nCompletion requires an assessment\nwith evidence for the current goal revision; conflicts or unverifiable criteria need input.\n","inputSchema":{"properties":{"expected_preview_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Expected Preview Hash"},"freedom":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Freedom"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Goal"},"name":{"title":"Name","type":"string"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"notify_events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Notify Events"},"overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Overrides"},"prompt":{"title":"Prompt","type":"string"},"repo_path":{"title":"Repo Path","type":"string"},"worktree":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"title":"Worktree"}},"required":["name","prompt","repo_path"],"title":"start_workflowArguments","type":"object"},"name":"start_workflow","outputSchema":{"additionalProperties":true,"title":"start_workflowDictOutput","type":"object"}},{"description":"Subscribe a root workflow to configured webhooks (terminal, attention, or both).\n\nDirect callers only. Current and future points are delivered; historical points are not\nreplayed. Repeat calls update event selection. Delivery never changes workflow execution.\n","inputSchema":{"properties":{"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Events"},"notify":{"title":"Notify","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","notify"],"title":"subscribe_workflowArguments","type":"object"},"name":"subscribe_workflow","outputSchema":{"additionalProperties":true,"title":"subscribe_workflowDictOutput","type":"object"}},{"description":"Stop future workflow delivery attempts for one configured alias, or every alias.","inputSchema":{"properties":{"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"unsubscribe_workflowArguments","type":"object"},"name":"unsubscribe_workflow","outputSchema":{"additionalProperties":true,"title":"unsubscribe_workflowDictOutput","type":"object"}},{"description":"Read root workflow subscriptions and at most 50 recent delivery states; direct callers only.","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_notificationsArguments","type":"object"},"name":"get_workflow_notifications","outputSchema":{"additionalProperties":true,"title":"get_workflow_notificationsDictOutput","type":"object"}},{"description":"Read exact builder, orchestrator or qualified worker targets, revisions, holds and retained history windows.\n\nOnly the qualified original external caller or verified native human is eligible. A managed\nworker, builder or orchestrator has no parent/sibling steering authority. Reading issues no turn.\n","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_steeringArguments","type":"object"},"name":"get_workflow_steering","outputSchema":{"additionalProperties":true,"title":"get_workflow_steeringDictOutput","type":"object"}},{"description":"Read a bounded ordered steering history page; cursors never authorize a mutation.\n\nReconnect by reading the original receipt rather than resending a conversation after response\nloss while that receipt remains retained. Expired epochs refuse; history exposes gaps rather\nthan promising lifetime replay. A new external generation cannot claim earlier ownership.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":50,"title":"Limit","type":"integer"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_steering_historyArguments","type":"object"},"name":"get_workflow_steering_history","outputSchema":{"additionalProperties":true,"title":"get_workflow_steering_historyDictOutput","type":"object"}},{"description":"Explicitly request one finite builder, orchestrator or qualified worker response with exact revisions.\n\nOpen/reply/retarget require exact engine-issued identity, a unique request_id and verbatim text.\nPreserve all spaces, newlines and Unicode. Prose replies wait for another explicit caller\nrequest; a valid framed builder proposal stays unsaved, while a current orchestrator frame\ncommits only configured validated actions. Admission holds new affected scheduling and preserves\nalready issued work and active sibling evidence. There is no automatic conversational loop or\nautomatic permission expansion. Workers retain their actual configured permissions and real\neffects. Require worker/window capabilities, explicit schema 2 upgrade and current ledger_epoch;\nexpired requests never authorize replacement. A worker needs allow_fresh_context consent and a\nsupported finite cap (at most 8 or the smaller configured cap); unqualified Resume/native refuses.\nSteering never charges or resets normal execution counters. Dismiss does not clear the worker\nresult requirement. MCP cannot claim native take_owner/release_owner; cancellation/reselection\nremains unsupported.\n","inputSchema":{"properties":{"request":{"additionalProperties":true,"title":"Request","type":"object"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","request"],"title":"steer_workflowArguments","type":"object"},"name":"steer_workflow","outputSchema":{"additionalProperties":true,"title":"steer_workflowDictOutput","type":"object"}},{"description":"Withdraw one exact never-started root headless Fresh worker and link a same-assignment retry.\n\nRequires workflow-steering-replan.v1, schema 2/current ledger_epoch, the engine-issued\nreplan target and withdrawal witness, and the existing interaction/cancellation authority.\nA managed worker cannot invoke this control. The source must be configured headless and fixed Fresh.\nThe original launch must acknowledge the exact\ngeneration as never started, and matching releases must finish before replacement. The queued\nconversation issuance remains charged. Preserve assignment, configured candidate, permissions,\nfinite cap, node/visit, accepted decisions and sibling evidence. Already issued work refuses;\na spawn race remains unknown and cannot authorize replacement or a late cancellation signal.\nNo graph edit, alternate candidate, automatic repair, allowance grant or poststart containment\nauthority is added. Replay the same request after response loss; an expired epoch never dispatches.\n","inputSchema":{"properties":{"request":{"additionalProperties":true,"title":"Request","type":"object"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","request"],"title":"replan_workflow_steeringArguments","type":"object"},"name":"replan_workflow_steering","outputSchema":{"additionalProperties":true,"title":"replan_workflow_steeringDictOutput","type":"object"}},{"description":"Revise a root run goal at a quiescent paused or awaiting-input checkpoint.\n\nOnly the run's interaction owner can revise it. Supply the current goal_revision (0 if no\ngoal exists). Stale revisions, terminal runs and active nested/parallel work are rejected.\nThe nonblank goal is preserved verbatim up to 64 KiB UTF-8. History and completed work remain;\nprevious assessments are invalidated and replanning is required before further dispatch.\nEach run retains at most 64 goal revisions (including the initial goal) and 1 MiB UTF-8\nof cumulative goal text. Edits exceeding either bound are rejected; start a new run.\n","inputSchema":{"properties":{"expected_revision":{"title":"Expected Revision","type":"integer"},"goal":{"title":"Goal","type":"string"},"run_id":{"title":"Run Id","type":"string"}},"required":["run_id","goal","expected_revision"],"title":"revise_workflow_goalArguments","type":"object"},"name":"revise_workflow_goal","outputSchema":{"additionalProperties":true,"title":"revise_workflow_goalDictOutput","type":"object"}},{"description":"List recorded workflow runs. Each carries resumed_at once the caller has resumed it.","inputSchema":{"properties":{"limit":{"default":10,"title":"Limit","type":"integer"},"offset":{"default":0,"title":"Offset","type":"integer"}},"title":"list_workflow_runsArguments","type":"object"},"name":"list_workflow_runs","outputSchema":{"additionalProperties":true,"title":"list_workflow_runsDictOutput","type":"object"}},{"description":"Stable newest-first run headers, with bounded ancestor/session-owner lookups.\n\nDeferred explicit run_ids and ancestor reads report preparation; preserve loaded headers\nand retry the read. Oversized or unsupported metadata reports blocked diagnostics with\nincomplete counts, without publishing unknown placeholder outcomes. A header's optional\nresumed_at (Unix seconds) is the caller's last continuation; it is absent if never resumed,\nunlike updated_at, which changes on every write.\n\nOptional filters narrow the page: workflow_id (stable workflow identity), repo (exact\nrecorded repo path), status (list of run statuses: pending, starting, building, running,\npausing, paused, needs_input, needs_attention, cancelling, completed, failed, cancelled; the\nindexed status shown on each item), since (inclusive) and before (exclusive) ISO8601 created_at\nbounds with timezone, title_contains (case-insensitive run name text) and scope (all, the\ndefault; root; nested child runs). Runs have no group, so there is no group filter. Filters\ncannot be combined with run_ids or related_run_id. A filtered page examines at most 2000\ncatalog rows after its cursor and never computes a filtered total (total_active_count is\nnull). When that window ends before the page fills, the reply has scan_incomplete true, any\nmatches so far, and a next_cursor after the last examined row: keep calling with it until\nhas_more is false. A cursor is bound to the filters that produced it. fields selects item\nkeys (workflow_run_id, status, created_at and updated_at are always included; while a run\nneeds_input its question fields stay); values equal the unprojected reply.\n","inputSchema":{"properties":{"active_only":{"default":false,"title":"Active Only","type":"boolean"},"before":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Before"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"limit":{"default":100,"title":"Limit","type":"integer"},"related_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Related Run Id"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"run_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Run Ids"},"scope":{"anyOf":[{"enum":["all","root","nested"],"type":"string"},{"type":"null"}],"default":null,"title":"Scope"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"status":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Status"},"title_contains":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title Contains"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow Id"}},"title":"list_workflow_run_pageArguments","type":"object"},"name":"list_workflow_run_page","outputSchema":{"additionalProperties":true,"title":"list_workflow_run_pageDictOutput","type":"object"}},{"description":"Provider usage-limit hits and blocking recoveries of workflow runs, from persisted run evidence.\n\nRead-only: nothing is retried, switched or continued. Evidence is only an attempt's\nfailure_diagnostic with category usage_limit (headless and Codex-native attempts alike) and the\nrun's orchestrator or worker usage-limit recovery checkpoint; node results and prose are never\nread. Direct callers read every run; a workflow orchestrator reads its own run and descendants\nverified through persisted invocation links; workers and builders are refused.\n\ncurrent lists runs blocked on a usage-limit recovery (at most 100), reported on the owning run\neven while its root is running. latest is the newest hit per (backend, requested_model,\nobserved_model) among the newest 500 hits matching the window bound: the first of\nroot_workflow_run_id (not supported for managed callers), workflow_id and repo that is set, plus the since (inclusive) and before\n(exclusive) ISO8601 range with timezone; the other filters apply inside that window and there is no\npagination. At most 50 keys are returned. current_only reports only current. Each hit carries\nroot_workflow_run_id, workflow_run_id, node_id, execution_id, attempt, task_id, transport_task_id,\nobserved_at (when the attempt settled; observed_at_source names the field), diagnostic, reset\n{raw, at, state} (a numeric reset is epoch seconds; elapsed does not say the provider is available\nagain), an accepted recovery {accepted, answer} when one answered it, and detail_ref, the\nget_workflow_run_detail arguments for execution:<id>. Each attempt is its own hit: native children\nthat share a transport report it in transport_task_id. unavailable lists up to 20 runs whose\ndocument could not be read. scan.complete is false when a cap was reached, runs are unavailable or\nthe index is still preparing (index_state), so retry while it is preparing.\nSee docs/usage-limits.md.\n","inputSchema":{"properties":{"before":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Before"},"current_only":{"default":false,"title":"Current Only","type":"boolean"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"root_workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Root Workflow Run Id"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow Id"}},"title":"workflow_limit_hitsArguments","type":"object"},"name":"workflow_limit_hits","outputSchema":{"additionalProperties":true,"title":"workflow_limit_hitsDictOutput","type":"object"}},{"description":"Read a workflow run's execution state and task associations.\n\nChild runs of Run workflow nodes report their parent and root links,\norchestrator mode and session owner, input source, tree settling state and\nper-execution child invocation status. Public controls on a child id are\nrefused with the root run id. Resolved attention reasons are omitted on active runs.\nWorkflow approval read failures appear as bounded approval_summary.read_errors,\nseparately from known pending or uncertain approvals. interaction_state reports qualified\ncaller liveness, advisory human Monitor availability and any persisted handover audit.\nUnknown caller identity never authorizes handover; server death alone is insufficient.\nresumed_at (Unix seconds) appears once the caller has resumed or answered the run.\nfields selects reply keys (workflow_run_id, status, created_at and updated_at are always\nincluded; while the run needs_input its question fields stay). Values equal the unprojected\nreply, which is read first, so derived status and managed-caller summaries are unchanged.\n","inputSchema":{"properties":{"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_statusArguments","type":"object"},"name":"get_workflow_status","outputSchema":{"additionalProperties":true,"title":"get_workflow_statusDictOutput","type":"object"}},{"description":"Wait for a workflow run to need attention or finish; read-only and resumable.\n\ntimeout_seconds accepts 0..3600 (default 30; 0 reads once). It is honoured as asked, never\nsilently clamped; out of range is INVALID_PARAMS. Breaking change: values above 300 used to\nbe rejected, and 46..300 were silently held for only 45 seconds. until=\"terminal\" holds until the run stops\nneeding the wait, bounded by a 6 hour server ceiling, and requires timeout_seconds to be\nomitted. Your MCP client's own request deadline still applies. Prefer holds <=50 seconds after\nremote \"device did not respond\" or \"connection closed\" errors; see docs/multi-task-waiting.md.\n\nReturns when the run is completed, failed or cancelled and has finished settling\n(stop_reason terminal), or reaches needs_input, needs_attention or paused (stop_reason\nattention), or the hold ends (timeout, ceiling). If reading the run keeps failing for 3\nrounds the last good snapshot comes back with stop_reason observation_unavailable, as does an\nuntil=\"terminal\" wait on a terminal run that stays settling with its run file unchanged for\n300 seconds. Also\nreturns requested/effective timeout, until, timed_out, elapsed_seconds and polling_guidance.\nApproval read errors alone do not stop the wait for attention; inspect\napproval_summary.read_errors for incomplete sources. Known unanswered requests and\nuncertain approval ownership still stop for attention.\nProgress is sent every 5 seconds, best effort. A wait never changes, resumes or cancels a run.\n","inputSchema":{"properties":{"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Timeout Seconds"},"until":{"default":"timeout","enum":["timeout","terminal"],"title":"Until","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"wait_for_workflowArguments","type":"object"},"name":"wait_for_workflow","outputSchema":{"additionalProperties":true,"title":"wait_for_workflowDictOutput","type":"object"}},{"description":"Losslessly read executions, decisions, checklist, technical_plan, definition, owner_contracts, builder_draft, generated_definition, question, reason or wait_reason.\n\nowner_contracts contains the pinned per-owner permission plan. Concatenate chunk fields\nthen decode JSON. Cursors bind content, run and view; changed content requires restarting.\nOn-demand detail views: on_demand_nodes (configured owner-scope catalog),\non_demand_calls (chronological reservation/call records), on_demand_state.\nCalls include source scope, checkpoint/origin, timing, result_ref and nullable task_id.\nManaged orchestrators use settled node inspection for executions.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":8000,"title":"Limit","type":"integer"},"view":{"title":"View","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","view"],"title":"get_workflow_run_detailArguments","type":"object"},"name":"get_workflow_run_detail","outputSchema":{"additionalProperties":true,"title":"get_workflow_run_detailDictOutput","type":"object"}},{"description":"Stop scheduling while active steps settle.","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"pause_workflowArguments","type":"object"},"name":"pause_workflow","outputSchema":{"additionalProperties":true,"title":"pause_workflowDictOutput","type":"object"}},{"description":"Resume a caller-owned run with instructions and optional explicit attempt grants.\n\nPreserve spaces and word boundaries in instructions rather than compressing natural\nprose; the caller's source text is retained unchanged before workflow input assembly.\n\nFor non-question continuation, pass the originally displayed attention_checkpoint_id.\nA stale checkpoint refuses the answer and grants; refresh before submitting again.\nOmission retains legacy caller behavior. Do not combine it with decision_id.\n\nFor needs_input, supply its current input_decision_id as decision_id and a nonempty answer\nin instructions. Stale answers and live/uncertain dispatches are refused. When the root\nrun carries a forwarded question from a Run workflow descendant, the answer is applied to\nthe attention source run; additional_attempts go to that source and grant no fresh child.\nFor an orchestrator usage-limit checkpoint, instructions must exactly match an offered\nrecovery answer (fallback, fallback:2, and so on, or retry_current); this approves a Fresh\nconfigured recovery candidate for the preserved decision. Other prose does not approve replacement dispatch.\nUse pause_workflow to wait or cancel_workflow to stop. A paused quota checkpoint retains\nits decision_id and still requires the exact offered recovery answer (fallback or retry_current) on resume.\nAn accepted resume or answer sets the run's resumed_at; an answer routed through the root stamps the root.\nWorker usage-limit recovery is selected explicitly by the\norchestrator using an issued retry continuation and candidate_id, within attempt limits.\nThe orchestrator may instead ask the caller to pause, cancel, or choose a configured\nworker fallback; after the answer it must explicitly select the candidate_id.\nAnswers alone never authorize skipping. Set allow_optional_review_skip=True only to\npermit the orchestrator to skip a current settled optional review with recorded harness\npermission denial, when optional_review_skip_available is true. The core revalidates\neligibility and decision_id; this grants no retry, required-review bypass, or permissions.\nFor a forwarded question, consent applies only to its originating child checkpoint.\nEach accepted answer replaces previous skip consent at that checkpoint: the default\nFalse revokes it, while True renews it with the latest answer as its reason.\n","inputSchema":{"properties":{"additional_attempts":{"default":0,"title":"Additional Attempts","type":"integer"},"allow_optional_review_skip":{"default":false,"title":"Allow Optional Review Skip","type":"boolean"},"attention_checkpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Attention Checkpoint Id"},"decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Decision Id"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Instructions"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"resume_workflowArguments","type":"object"},"name":"resume_workflow","outputSchema":{"additionalProperties":true,"title":"resume_workflowDictOutput","type":"object"}},{"description":"Read an immutable input explicitly assigned to your active worker activation.\n\nOnly verified managed workers may use this tool. Inputs are authorized by the persisted\nactivation allowlist and content digest, including linked child inputs with a verified\nparent chain. Live, uncertain, unrelated, revoked, or changed inputs are refused.\nConcatenate lossless JSON chunk fields until next_cursor is null, then decode JSON.\nReturn next_cursor as cursor; limit counts characters (default 16000, maximum 32000).\nworkflow_run_id is your own run; source_run_id optionally names a linked child run.\nThis does not grant general workflow inspection authority.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"execution_id":{"title":"Execution Id","type":"string"},"limit":{"default":16000,"title":"Limit","type":"integer"},"source_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source Run Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","execution_id"],"title":"read_workflow_assigned_inputArguments","type":"object"},"name":"read_workflow_assigned_input","outputSchema":{"additionalProperties":true,"title":"read_workflow_assigned_inputDictOutput","type":"object"}},{"description":"Inspect any fully settled node execution in your workflow, including older executions.\n\nResult view returns lossless JSON text chunks: concatenate chunk fields until next_cursor\nis null, then decode JSON. Pass next_cursor back as cursor. Default payload contains the\nnormalized node_result, full raw_output, permission_denials, and optional_skip consent\nmetadata when present. Selecting task_id reads a specific fallback\nattempt. Activity uses normalized events with before_seq/after_seq. Result limit is\ncharacters (default 16000, max 32000); activity limit is events (default 50, max 200).\nNo live or uncertain execution can be inspected. Orchestrator inspect decisions may name\na linked child run through workflow_run_id, authorized only by a verified parent chain.\n","inputSchema":{"properties":{"after_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"After Seq"},"before_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Before Seq"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"execution_id":{"title":"Execution Id","type":"string"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"view":{"default":"result","title":"View","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","execution_id"],"title":"inspect_workflow_nodeArguments","type":"object"},"name":"inspect_workflow_node","outputSchema":{"additionalProperties":true,"title":"inspect_workflow_nodeDictOutput","type":"object"}},{"description":"Explicitly recover a failed settled run or a root with a confirmed-dead scheduler.\n\nSupply a reason and retain completed work. Interrupted scheduler recovery preserves\nexisting attempts and decision budgets; uncertain execution ownership blocks recovery.\nAccepted recovery sets the run's resumed_at. Pass the originally displayed\nattention_checkpoint_id to bind failed-run or scheduler recovery to its current\npersisted identity. Stale requests refuse without applying the reason or grants.\n\nPreserve spaces and word boundaries in reason rather than compressing natural\nprose; the caller's source text is retained unchanged before workflow input assembly.\n","inputSchema":{"properties":{"additional_attempts":{"default":0,"title":"Additional Attempts","type":"integer"},"attention_checkpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Attention Checkpoint Id"},"reason":{"title":"Reason","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","reason"],"title":"recover_workflowArguments","type":"object"},"name":"recover_workflow","outputSchema":{"additionalProperties":true,"title":"recover_workflowDictOutput","type":"object"}},{"description":"Stop root scheduling and cascade cancellation to associated tasks and children.\n\nA cancellation request returns ``cancelling`` until settlement is observed;\nunresolved dispatches or cancellation transport errors return ``needs_attention``.\nChild runs must be controlled through their root workflow run.\nHuman Monitor cancellation uses the local CLI verified-human boundary; it does\nnot transfer the original caller's answer, retry, or continuation ownership.\n","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"cancel_workflowArguments","type":"object"},"name":"cancel_workflow","outputSchema":{"additionalProperties":true,"title":"cancel_workflowDictOutput","type":"object"}},{"description":"Register an existing regular-file metadata reference for the verified calling task.\n\nNo owner parameter is accepted. Relative paths use the recorded repository; only repository,\nallocated own scratch (including a granted shared chain or group folder), and revalidated saved grants are accepted. A standalone task, or a\nrunning workflow node, orchestrator turn or native-subagent controller, may register; its\nreference is bound to that workflow execution. Builders and inherited descendants are refused.\nA native subagent has no channel of its own: what it registers lands on its controller.\nNotes are preserved verbatim. Kinds: screenshot, log, report, other. Paths and notes are\nat most 4096 UTF-8 bytes; at most 100 references per task and a 1 MiB manifest.\nA reference establishes no content validity, task success, access, copy, or publication\nauthority. No content is read, copied, hashed, previewed, or published.\nCaller indexing is bounded; retry a catalog-preparation error to advance cold history.\n","inputSchema":{"properties":{"kind":{"title":"Kind","type":"string"},"note":{"default":"","title":"Note","type":"string"},"path":{"title":"Path","type":"string"}},"required":["path","kind"],"title":"register_artifactArguments","type":"object"},"name":"register_artifact","outputSchema":{"additionalProperties":true,"title":"register_artifactDictOutput","type":"object"}},{"description":"Page at most 50 artifact references with current stat observations, not content verification.\n\nVerified human callers can inspect a known standalone or workflow-bound task; task callers can\ninspect only self. Workflow-bound items carry a `workflow` binding. Builders and inherited\ndescendants are refused (use get_workflow_artifacts for run-level reads). Cursors are task-bound and reject manifest\nchanges. Availability is available/deleted/changed/unavailable at observed_at; available does\nnot establish unchanged contents. Missing legacy manifests are empty; corrupt ones unavailable.\nCaller indexing is bounded; retry a catalog-preparation error to advance cold history.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":20,"title":"Limit","type":"integer"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_artifactsArguments","type":"object"},"name":"get_task_artifacts","outputSchema":{"additionalProperties":true,"title":"get_task_artifactsDictOutput","type":"object"}},{"description":"Page artifact references registered by the attempts of a workflow run and its linked child runs.\n\nReferences are metadata only (path, kind, note, a stat observation); nothing is read, copied or\nvalidated. Each item carries `workflow` (run, node, execution, role, attribution) and current\n`availability`. `execution_id` selects one node execution; a native subagent has no channel of\nits own, so references its controller registered appear under that execution with\n`attribution: native_transport`. `owners` lists only owners whose references could not be read\n(`unavailable`, `record_removed`, `run_unavailable`). `state: unavailable` with `reason`\n`catalog_preparing` or `catalog_stale` means retry; `tree_bound_exceeded` (over 64 runs) is final.\nPage with `next_cursor` (positional, so owners appended behind it appear only on a new pass).\nAuthority: a verified human reads any run; a delegation orchestrator reads its own run and\nlinked descendants; workers, native transports, builders and standalone task callers are refused\n(a worker reads its own task with get_task_artifacts).\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Execution Id"},"limit":{"default":20,"title":"Limit","type":"integer"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_artifactsArguments","type":"object"},"name":"get_workflow_artifacts","outputSchema":{"additionalProperties":true,"title":"get_workflow_artifactsDictOutput","type":"object"}},{"description":"Acquire a task-owned phase lease around heavy commands. Returns queued immediately when\nblocked; retry the same name every two seconds to observe a grant. Queue budget is 0..21600\nseconds, never a held-lease timeout. Release lease_id on every exit, including queued exits.\nPhase slots require human enable and a verified task caller; they never borrow ancestor holds.\nDisabled layout returns error data.code phase_slots_not_enabled; other refusals remain distinct.\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"wait_seconds":{"default":300,"title":"Wait Seconds","type":"integer"}},"required":["name"],"title":"acquire_slotArguments","type":"object"},"name":"acquire_slot","outputSchema":{"additionalProperties":true,"title":"acquire_slotDictOutput","type":"object"}},{"description":"Release this execution's lease or cancel its queued request. Cleanup remains capacity\nconsuming until successful; failed/uncertain cleanup requires human inspection and resolve.\nStop all owned heavy descendants before release. Client interruption alone never releases.\nDisabled layout returns error data.code phase_slots_not_enabled; other refusals remain distinct.\n","inputSchema":{"properties":{"lease_id":{"title":"Lease Id","type":"string"}},"required":["lease_id"],"title":"release_slotArguments","type":"object"},"name":"release_slot","outputSchema":{"additionalProperties":true,"title":"release_slotDictOutput","type":"object"}},{"description":"Read bounded phase holders, queue positions, capacity, cleanup blockers and timestamp events.\nThis read never performs cleanup or changes the ledger.\nDisabled layout returns error data.code phase_slots_not_enabled; other refusals remain distinct.\n","inputSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"}},"title":"slot_statusArguments","type":"object"},"name":"slot_status","outputSchema":{"additionalProperties":true,"title":"slot_statusDictOutput","type":"object"}}],"ttlMs":0}}}
{"at":"2026-11-23T01:08:24.071Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:08:25.248Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"Dispatch coding tasks to headless coding agents on this machine — currently Claude Code, Codex, opencode, vibe and Antigravity (binary `agy`). start_task returns immediately with a task_id; poll it with get_task_status or await it with wait_for_task, then continue the same session with resume_task. Anywhere a task id or workflow run id is accepted, a unique prefix of at least 8 characters also works: the reply carries resolved_from, and a prefix that is too short, unmatched or ambiguous is refused with data.code (unknown_task, ambiguous_task_id, unknown_workflow_run, ambiguous_workflow_run_id), up to 5 candidates when ambiguous. See docs/contracts.md, Id prefixes.\n\nCall list_backends first if you are unsure which to use: it reports what is installed and what each one can actually do. Backends differ in ways that matter — Claude and vibe support a turn cap (though a breach on vibe reads as a plain failure, not a distinct status), only Claude and opencode report a dollar cost, only Codex offers restrictions with a real OS sandbox, only vibe has no model-selection flag at all, and Antigravity accepts reasoning_effort only at low/medium/high (its CLI refuses xhigh before the run starts). Every task reports an `enforcement` block describing what was actually enforced, which is the honest answer rather than what `freedom` implies.\n\nA `publish` freedom level sits between `write_in_repo` and `unrestricted`: it authorizes remote publishing attempts, including commits, pushes, PRs and reviews; command approvals stay in harness settings. It is NOT a promise that publishing succeeds — credentials, remote permissions, branch protection, repo hooks, or an unauthenticated `gh` can all still stop it, and the agent may not even try — and it is authorization only: with network=True a lower freedom can mechanically reach a remote without having been authorized to publish. Check `enforcement.publish_attempts_allowed`, `enforcement.local_commit` and `enforcement.network_access` on the returned task rather than assuming from the freedom name alone. `local_commit` is denied, allowed, or not_enforced. On Claude Code, write_in_repo denies a direct git commit and publish authorizes committing; inherited harness rules can still restrict it. An optional `network` parameter on start_task and resume_task asks for network independently of the freedom: True asks harflow_mcp to impose no network barrier of its own, False asks it to impose one, and None keeps each freedom's historical behaviour. It governs harflow_mcp's own network setting only, never reachability. Ordinary Codex exec inherits allow rules that can bypass sandbox pins; effective OS/write guarantees are false and resolved disable requests report not_controlled.\n\nA wait_for_task that comes back still 'running' has not failed — the run is untouched, so call again or poll. wait_for_task, wait_for_tasks and wait_for_workflow share one contract: timeout_seconds 0..3600 is honoured as asked (never clamped), until='terminal' holds to a 6 hour server ceiling (omit timeout_seconds), and each reports stop_reason, timed_out, elapsed_seconds and polling_guidance. Your MCP client's own request deadline still applies; see docs/multi-task-waiting.md. Tasks outlive this server process: ones started by an earlier harflow_mcp server are still reported, marked 'recovered: true'.\n\nA claude task started without max_turns, and every antigravity task, has live input (`live_input: true`). Public send_message queues exact caller prose for the next explicit continuation, including live-input tasks; it never folds into the current turn by default. delivery=now starts a safely settled standalone continuation or returns a stable refusal while keeping the message queued. No backend currently certifies safe mid-turn interruption. Workflow and node messages route through their owning workflow and are consumed by the next matching issued dispatch, without changing authority. cancel_queued_message withdraws a still-queued message. Status exposes messages and queued_followups; send_workflow_message addresses a run directly.\n\nWorkflows are durable graphs owned by HarflowMCP. start_workflow gives the caller's original prompt and workflow context to an orchestrator harness. The orchestrator chooses valid next nodes and writes focused assignments; HarflowMCP validates those decisions, runs node harnesses, coordinates parallel branches, and persists results. Nodes receive their instructions, assignment, and relevant prior results, not the full request or global checklist. They return structured results and can ask the orchestrator for missing context. Only the orchestrator updates the checklist. Decisions and results come from harness final messages; harnesses may still use their own tools. Poll or wait using the workflow_run_id. For needs_input, the MCP caller answers through resume_workflow with instructions and the current input_decision_id; recover_workflow explicitly retries a settled failed run with a reason while preserving completed work.","protocolVersion":"2025-11-25","serverInfo":{"name":"harflow","version":""}}}}
{"at":"2026-11-23T01:08:25.248Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:08:25.248Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:08:25.251Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Report the available agent backends, what is installed, and what each can actually do.\n\nWorth calling before start_task if the choice is not already obvious. Each entry carries its\n`capabilities` (turn cap, cost reporting, OS sandbox, per-command deny, whether we can choose\nthe session id) and, for every `freedom` level, the enforcement it really delivers.\nOrdinary script entrypoints retain version discovery and native eligibility checks.\nExtra-path qualification separately rejects selected scripts before version execution.\ncapabilities.extra_writable_paths reports bounded support, certification and refusal reason;\ncapabilities.allowed_commands and caller_approval_support report their qualification gates.\nAt unrestricted freedom, extra_writable_paths is a validated, disclosed no-op, not a bounded grant.\n","inputSchema":{"properties":{},"title":"list_backendsArguments","type":"object"},"name":"list_backends","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_backendsOutput","type":"object"}},{"description":"Dispatch a coding task to a headless agent and return immediately.\n\n`conversation_profile` explicitly requests a qualified native control\ntransport (`native` or `shipped-medium35-high`). Missing runtime/profile\nqualification refuses before launch; this does not enable caller approvals.\n\nArgs:\n    prompt: Instructions for the agent. Be specific about the desired end state. Write it in\n        plain prose: preserve spaces and word boundaries, and never concatenate words or strip\n        whitespace to shrink the payload — harflow_mcp stores and delivers the text exactly as\n        submitted, so compressed text reaches the agent exactly as garbled. Blank or\n        all-whitespace prompts are rejected rather than trimmed into shape.\n    repo_path: Absolute path to a git repository; the agent's working directory.\n    backend: Which harness to use — \"claude\", \"codex\", \"opencode\", \"vibe\" or \"antigravity\". See\n        list_backends.\n    freedom: \"read_only\", \"write_in_repo\" (default), \"publish\", or \"unrestricted\". \"publish\"\n        sits between \"write_in_repo\" and \"unrestricted\": it authorizes an attempt to\n        remote publishing, including commit/push/PR creation/reviews, but that is not a promise the attempt succeeds — credentials,\n        remote permissions, branch protection and hooks are all\n        outside harflow_mcp's control. On Claude Code, write_in_repo denies a direct `git commit`\n        and `git push`; `publish` authorizes committing; inherited harness rules can still restrict it. `enforcement.local_commit`\n        reports that policy as denied, allowed, or not_enforced. How each level is enforced\n        depends on the backend; the returned `enforcement` says what actually applies, via\n        `local_commit`, `publish_attempts_allowed` and `network_access` among other fields.\n    model: Model for this run, in the backend's own naming. Rejected outright, rather than\n        silently ignored, when model selection is unsupported. Vibe accepts a configured\n        model alias through its qualified ACP transport and verifies the selected alias;\n        see list_backends' capabilities.supports_model_selection.\n    background_idle_seconds: Optional finite positive live-input background wait bound,\n        at most 21600 seconds. Capped/classic runs do not use live-input idle waiting.\n        Continuations inherit the saved effective bound unless overridden.\n    max_turns: Cap on agent turns. Only some backends support this; asking for it on one that\n        does not is an error rather than being silently ignored.\n    reasoning_effort: \"low\", \"medium\", \"high\" or \"xhigh\", passed to the backend verbatim.\n        Rejected up front when the chosen *backend* has no effort control at all (vibe is\n        config-only and has none), or is asked for a level outside the ones it declares (see\n        list_backends — antigravity accepts only low/medium/high, and its CLI would refuse\n        xhigh before the run starts, exit 1); harflow_mcp cannot tell whether the chosen\n        *model* honours it — on opencode in particular, a model with no declared variants\n        silently ignores an unsupported level rather than erroring, and on antigravity a model\n        id that encodes its own level makes the CLI refuse --effort at startup. See\n        list_backends' per-backend reasoning_effort caveats for what is and is not known there.\n    caller_approvals: Opt in to version-qualified exact-action caller decisions: Bash, plus Read\n        on Claude Code 2.1.310 (approving a Read can disclose files outside the repository).\n        Qualified Codex app-server and Vibe ACP transports also support exact-action decisions;\n        supported tools, freedoms, caps and platforms are in list_backends caller_approval_support.\n        Defaults off;\n        worker self-approval is prohibited. Decisions do not override saved policy or grant\n        reusable access. Inspect list_approval_requests and get_approval_request before responding.\n    caller_write_approvals: Additionally allow Write and Edit requests (including outside the\n        repository) to be approved one exact action at a time. Requires caller_approvals and a\n        version that qualifies it; defaults off, in which case Write and Edit requests are answered\n        with a delivered Harflow refusal. Harflow-protected paths are always refused.\n    interaction_owner: caller by default; monitor requires the verified human Monitor path.\n    network: Optional boolean asking for network access independently of `freedom`: True\n        asks harflow_mcp to impose no network barrier of its own, False asks it to impose one,\n        and None (the default) keeps each freedom's historical behaviour exactly. The\n        parameter governs harflow_mcp's own network barrier only — never reachability: a\n        corporate firewall or proxy defeats it too. Codex accepts sandbox network pins, whose effective barrier can be bypassed by inherited rules, and its support is non-rectangular (see\n        capabilities.network_control): enabling is refused at read_only and blocking at\n        unrestricted. On claude, opencode, vibe and antigravity, True is accepted — there is\n        nothing to impose — and False is an error rather than silently dropped;\n        enforcement.network_access stays \"not_controlled\" there. The established guarantee is\n        stated on the returned task's enforcement.network_access; requested pins alone are not proof.\n    group: Optional label (1-128 chars), inherited by any nested dispatch this task's own\n        agent makes through harflow_mcp (unless that dispatch gives its own). Useful for\n        tagging a family of dispatches you want to find together later via list_tasks. It\n        also names a scratch folder shared by every task in the group, exposed to the\n        agent as $HARFLOW_GROUP_SCRATCH and reported as `scratch.group` in task status\n        (see docs/shared-scratch.md); every task also gets $HARFLOW_CHAIN_SCRATCH, shared\n        with its resumes and continuations.\n    title: Optional short human-readable label (at most 90 characters after trimming, no\n        control characters) shown for this task in the Monitor. Purely informational. It is\n        never inherited from a calling task: a dispatch without a title has none. A\n        resume_task continuation carries the resumed task's title.\n    auto_continue: Integer 0–10 (default 0). Opt in to that many fresh successors after\n        backend-confirmed recoverable cutoffs and observed process/output settlement.\n        Supported cutoff profiles are backend-owned; missing answers alone never qualify.\n        Cancellation, permission denial, usage limits and workflow-owned tasks are excluded.\n        Detached task owners preserve automatic continuation across MCP server death.\n        Task-owner death retains uncertain reservations rather than duplicating execution.\n\n    notify: Configured destination alias, direct callers only. Intent is durable before spawn.\n        Receivers must deduplicate stable IDs; retries resume only while a server is active.\n\n    observe_repos: Optional list of up to seven absolute repository paths to observe alongside\n        the launch directory. Observation grants no filesystem or publishing authority.\n    extra_writable_paths: Optional bounded list of existing absolute local file or directory\n        paths. At most 16 paths, 4096 UTF-8 bytes each and 16384 bytes total. Relative paths,\n        missing/special paths, filesystem roots and canonical duplicates are errors. Only\n        version-qualified configurations in capabilities.extra_writable_paths are supported;\n        other harnesses/configurations reject the request. The certified bounded mode clears\n        ambient writable roots and excludes implicit temporary roots. Known external execution\n        configuration namespaces of all registered backends remain protected; existing unsupported\n        inputs reject requests. Inherited repository configuration authority gains no new exclusions. Grants permit reads\n        as well as writes, never publication. Omission inherits a detected owner's grants;\n        nested requests cannot widen them. Saved grants and path identities carry through\n        resume/continuation; replacement requires a new authorized task. Workflows and\n        native adapters do not accept these grants. Use preview_task_permissions before launch.\n        Keep qualified startup inputs stable: checks refuse observed changes but do not atomically\n        pin configuration or executables against independently authorized concurrent writers.\n    group_report_output: Opt in to a qualified read_only repository run with write access only\n        to its own nonempty group scratch folder. Defaults off; resumes/continuations inherit\n        unless overridden. Unsupported backends and conflicting grants are refused; see list_backends.\n        Prompt prose is preserved; use $HARFLOW_GROUP_SCRATCH/report-$HARFLOW_TASK_ID.md.\n    git_https_rewrite: Optional boolean overriding HARFLOW_GIT_HTTPS_REWRITE (default on).\n        Appends process-local GitHub SSH-to-HTTPS URL configuration; never changes Git files.\n        HTTPS credentials, sandbox access and reachability remain external requirements.\n    allowed_commands: Optional list of Bash command patterns granted for this run only, so a task can run\n        specific commands (a test runner, a build) without `unrestricted`. At most 16 patterns, 256 bytes\n        each and 2048 in total. Supported on qualified Claude Code and Vibe ACP at write_in_repo and publish\n        (see list_backends capabilities.allowed_commands); other backends and access levels refuse it. Each\n        pattern is a lowercase program followed by literal tokens, with at most one `*` as the final\n        token or the `:*` suffix (`pytest` style: `python3 -m pytest:*`), and a wildcard needs a literal\n        subcommand or target (`make test:*`). A pattern with no wildcard is exact and matches one command\n        line; `:*` or a final `*` is a prefix. A bare program name such as `swiftlint` is exact: it matches\n        only that command with no arguments, and the dispatch notice suggests `swiftlint:*` or\n        `swiftlint lint:*`. Options before a goal are literal and order-sensitive, so `mvn -o test:*`\n        does not match `mvn -q -o test`; `mvn -o:*` is refused because a goal must follow the options.\n        A launcher whose command has no subcommand, such as `npx tsc:*`, is refused; grant the exact\n        command, for example `npx tsc --noEmit -p .`. Programs whose arguments start with options, such\n        as `xcodebuild -workspace App.xcworkspace -scheme App test`, cannot take a wildcard: grant each\n        full command line exactly. Shells, wrappers, interpreter evaluation and gh below\n        `publish` are refused. Exact Git fetch, ff-only pull and non-force switch/create grants are\n        supported at write_in_repo and publish; wildcard/config/reset/force Git grants are refused.\n        Initial transition grants require clean checkouts; later dirty races remain Git controlled.\n        Commit/push authority is separate (`publish`); paths must stay inside the repository.\n        The grammar is a guard against mistakes, not a security boundary: grants are Claude permission-layer\n        approvals, not OS enforcement. An exact pattern matches one command line and a prefix matches that\n        command with further arguments. A granted program can run repository code, chained commands need every\n        part allowed, and the access level's git commit and push denies still win, except the exact\n        merge-conclusion grant (`git commit --no-edit` or `git merge --continue`) which omits the\n        broad commit deny and is gated on MERGE_HEAD. Ordinary commits stay refused.\n        Omitted or null grants\n        nothing. A nested dispatch may grant only exact patterns its caller holds (unless the caller is\n        unrestricted) and never inherits them. resume_task and continue_task inherit the saved list when\n        omitted and replace it when given. Status reports each grant's match as\n        enforcement.extra_allowed_command_matches. See docs/harness-permissions.md.\n    branch: Optional literal branch name, set together with base. Harflow fetches that base and\n        runs `git switch -c` before the agent starts, at any freedom except read_only. Refused\n        when the checkout is dirty, the branch exists, the base cannot be fetched, or a merge or\n        rebase is in progress. Never stashes, resets or forces. Resume and continuation reuse the\n        prepared branch and do not accept branch or base.\n    base: Remote-tracking base `<remote>/<branch>`, for example origin/develop. The first\n        component is the remote. Set together with branch.\n    fetch: true refreshes the default remote; a list of literal remote names refreshes those.\n        Harflow runs `git fetch --prune` before the agent, at every freedom and backend, including\n        read_only. A failure is recorded and the task still starts unless fetch_required is true.\n    fetch_required: When true, a fetch failure refuses dispatch and the agent does not start.\n        Requires fetch.\n    resources: Optional list of 1-16 resource names (lowercase letters, digits and `. _ : -`, at most\n        64 characters, starting with a letter or digit; for example `ios-simulator` or `repo:main`)\n        this task needs exclusively. Capacity is one per name: the task does not start until it\n        holds every name, strictly first come first served per name, all or none. While it waits\n        it has no task record: the call returns at once with `status: \"running\"` and\n        `launch_state: \"waiting_for_resources\"`, and get_task_status, wait_for_task, list_tasks and\n        cancel_task all work on it. Names are released when the run's exit is observed. Resources\n        grant no access and are accepted at every freedom; they need a supervised server or\n        `harflow-ctl`. A task started by a task that holds resources may only use names that parent\n        declared (they are borrowed, never queued); declare every resource at the outermost task.\n        A task started from inside a workflow attempt cannot request any in this release.\n        resume_task, continue_task and automatic continuation re-queue the same names. See\n        docs/resources-and-worktrees.md.\n    resource_wait_seconds: How long to wait for `resources`, 0..21600 (default 3600). 0 means grant\n        now or fail. A task that waits out the bound never starts and reports `not_started`.\n    worktree: Optional `{base_ref?, branch?, detach?}`: run the task in its own linked Git worktree,\n        `<HARFLOW_WORKTREE_ROOT>/<task_id>` (default root `~/.harflow-worktrees`), so it can write\n        without touching your checkout or index. `base_ref` (default the repository's HEAD) is\n        resolved to a commit after any resource wait; `branch` (default `harflow/<task_id>`) must\n        not exist yet, or `detach: true` checks out the commit with no branch. The task's\n        `repo_path` and working directory are the worktree, and `worktree.source_repo_path`\n        keeps the original. Refused at `read_only`, for nested dispatches and for a repository that\n        configures Git filter drivers (including LFS); repository hooks do not run while it is\n        created. Nothing removes a worktree or deletes its branch automatically: use\n        `harflow-ctl worktree-list` and `worktree-remove`. The call returns once the launch is\n        accepted, typically with `launch_state: \"granted\"` while the worktree is made. See\n        docs/resources-and-worktrees.md.\n\nReturns the new task_id and its starting state. The run continues in the background; poll\nget_task_status or call wait_for_task to follow it.\n\nIf this task is itself dispatched from inside another harflow_mcp task's agent (a nested MCP\ncall), that ancestry is recorded — `spawned_by`, `root_task_id`, `depth` — on a best-effort\nbasis (see `lineage_detected` on the returned task: which detection method found the caller,\nor null if none was found and this is treated as a root task). When a caller *is* detected,\nthis dispatch is also checked against it: a nested dispatch weaker than its caller on depth or\non any enforcement field is refused outright (`NestedDispatchRefused`). This cap is\nbest-effort, not a sandbox boundary — nothing stops an agent from dispatching outside\nharflow_mcp entirely.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"auto_continue":{"default":0,"title":"Auto Continue","type":"integer"},"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"background_idle_seconds":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"default":null,"title":"Background Idle Seconds"},"base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Base"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch"},"caller_approvals":{"default":false,"title":"Caller Approvals","type":"boolean"},"caller_write_approvals":{"default":false,"title":"Caller Write Approvals","type":"boolean"},"conversation_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Conversation Profile"},"extra_writable_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Extra Writable Paths"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"freedom":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Freedom"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Turns"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"observe_repos":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Observe Repos"},"prompt":{"title":"Prompt","type":"string"},"reasoning_effort":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Reasoning Effort"},"repo_path":{"title":"Repo Path","type":"string"},"resource_wait_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Resource Wait Seconds"},"resources":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Resources"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title"},"workflow":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow"},"worktree":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"title":"Worktree"}},"required":["prompt","repo_path"],"title":"start_taskArguments","type":"object"},"name":"start_task","outputSchema":{"additionalProperties":true,"title":"start_taskDictOutput","type":"object"}},{"description":"List bounded permission request metadata for exactly one task or root workflow tree.\n\nDefault page size 16, maximum 32. Raw actions appear only in get_approval_request.\nWorkers and orchestrators cannot inspect caller approval records. A pending request is\nan interaction substate; underlying execution remains running. No approval is inferred\nfrom agent prose, errors or already denied actions.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":16,"title":"Limit","type":"integer"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow Run Id"}},"title":"list_approval_requestsArguments","type":"object"},"name":"list_approval_requests","outputSchema":{"additionalProperties":true,"title":"list_approval_requestsDictOutput","type":"object"}},{"description":"Read the complete exact action for an authorized direct caller.\n\nInspect this payload before approving; request IDs, digest and revision are comparison\nfields, never authorization tokens. Payloads may contain sensitive command arguments.\n","inputSchema":{"properties":{"request_id":{"title":"Request Id","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","request_id"],"title":"get_approval_requestArguments","type":"object"},"name":"get_approval_request","outputSchema":{"additionalProperties":true,"title":"get_approval_requestDictOutput","type":"object"}},{"description":"Reserve approve/reject for one exact action, with stale/duplicate answer protection.\n\nOnly the authoritative root interaction owner can answer; workers/orchestrators cannot\nself-approve. interaction_owner=\"monitor\" is refused on this MCP caller channel: the Monitor\nanswers through harflow-ctl, and every MCP decision is recorded as a caller decision. Approval preserves exact original input and never\ninstalls permission suggestions or reusable grants. Reservation, local pipe delivery and\nobserved tool outcome are separate states. No ambiguous decision is automatically resent.\nA request unanswered after 1800 seconds, or at an earlier workflow attempt deadline, is\nrejected by Harflow (approval_expired) and never approved; a stale or expired answer fails.\nThere is no approve-later path after a denial or expiry. Recovery is always a new resume_task\nor continue_task execution of the finished task, and what to change follows the denied entry's\ndenial_remedy: allowed_commands covers only Bash approval_required and chained_command parts;\na denied or expired Read, Write or Edit needs a resumed run (caller_approvals and\ncaller_write_approvals are inherited) so the agent can raise a fresh request; path_safety and\noutside_working_directory go through caller approvals, not grants; a deny_rule cannot be lifted\nby grants. Messages and resume are never decisions.\n","inputSchema":{"properties":{"action_digest":{"title":"Action Digest","type":"string"},"decision":{"title":"Decision","type":"string"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"owner_revision":{"title":"Owner Revision","type":"integer"},"request_id":{"title":"Request Id","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","request_id","action_digest","owner_revision","decision"],"title":"respond_approval_requestArguments","type":"object"},"name":"respond_approval_request","outputSchema":{"additionalProperties":true,"title":"respond_approval_requestDictOutput","type":"object"}},{"description":"Preview standalone task permissions without launching an agent or allocating scratch.\n\nWith qualification_only, returns only the cached qualification requirement plan before\nprovider self-tests, path certification or owner checks; launch still validates those gates.\nEmpty required feature sets need no binary inspection.\n\nUses the same bounded extra_writable_paths validation, installed-version checks and detected\nowner caps as start_task. Returns requested/effective typed paths, certification and truthful\nenforcement. Writable scratch-aware launches disclose future task, chain and group scratch\nsymbolically in writable_roots without allocating them; read-only previews have no scratch root.\nThe preview is an observation, not a reservation: launch revalidates paths and\nconfiguration. Extra grants never authorize publication. Workflow/native-adapter grants and\nunverified harness configurations are unavailable. Known external backend execution configuration\nis protected; unsupported existing inputs reject requests. Existing repository configuration\nauthority retains its baseline limits. Grants authorize output writes, not trust in that output\nas a future repository, hook or executable. Startup inputs are checked, not atomically\npinned against independently authorized concurrent writers; see docs/extra-writable-paths.md.\n\ngroup_report_output opts in to a qualified read_only run whose sole writable root is its\nconcrete canonical group folder (group is required or inherited). No folder is allocated.\nThis excludes caller approvals, native children and extra writable grants.\n\nallowed_commands is validated exactly as in start_task (grammar, installed backend version,\nnested-subset cap) and the returned enforcement lists it as extra_allowed_commands.\nbranch, base and fetch are validated the same way as start_task and shown as dispatch_git\nwithout running Git.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"base":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Base"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Branch"},"caller_approvals":{"default":false,"title":"Caller Approvals","type":"boolean"},"caller_write_approvals":{"default":false,"title":"Caller Write Approvals","type":"boolean"},"extra_writable_paths":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Extra Writable Paths"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"freedom":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Freedom"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"qualification_only":{"default":false,"title":"Qualification Only","type":"boolean"},"repo_path":{"title":"Repo Path","type":"string"}},"required":["repo_path"],"title":"preview_task_permissionsArguments","type":"object"},"name":"preview_task_permissions","outputSchema":{"additionalProperties":true,"title":"preview_task_permissionsDictOutput","type":"object"}},{"description":"Durably subscribe to one task's observed terminal settlement using a configured alias.\n\nDirect callers only. The server administrator configures HARFLOW_NOTIFY_DESTINATIONS; caller URLs\nand secrets are refused. Repeated task/alias subscriptions share a stable event ID. Delivery\nretries at most six times and can duplicate after a crash: receivers must deduplicate IDs.\nPending delivery resumes while a configured server is active, not while every server is down.\nDelivery failure never changes task execution. See docs/task-notifications.md.\n","inputSchema":{"properties":{"notify":{"title":"Notify","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","notify"],"title":"subscribeArguments","type":"object"},"name":"subscribe","outputSchema":{"additionalProperties":true,"title":"subscribeDictOutput","type":"object"}},{"description":"Read bounded subscription delivery states; this never establishes task success.","inputSchema":{"properties":{"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_notificationsArguments","type":"object"},"name":"get_task_notifications","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"get_task_notificationsOutput","type":"object"}},{"description":"Stop future attempts for a task/alias (or all aliases); in-flight requests may finish.","inputSchema":{"properties":{"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"unsubscribeArguments","type":"object"},"name":"unsubscribe","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"unsubscribeOutput","type":"object"}},{"description":"Report a dispatched task's current state without blocking.\n\nArgs:\n    task_id: Identifier returned by start_task or resume_task, or a unique prefix of at\n        least 8 characters; a prefix reply carries resolved_from.\n    include_tail: If True, include the full last_output_tail (20 lines × 2000 chars each);\n        if False (default), the tail is omitted for running/completed tasks and shortened\n        to 5 lines × 500 chars for failed tasks. The caller can request the full raw stream\n        log path from `raw_stream_log` in full detail for complete output, or use get_task_events for\n        normalized events.\n    brief: Compatibility alias for detail=\"compact\"; preserves the complete summary.\n        include_tail=True still explicitly requests the full tail.\n    detail: \"compact\" (default) omits static execution metadata and detailed outcome probes;\n        \"full\" returns complete MCP status. Both retain the complete summary/report,\n        approval attention, failure diagnostics and recovery uncertainty.\n    include_successors: Fetch the first authorized page of successor IDs. Defaults false:\n        ordinary polling includes a detail reference without scanning retained task history.\n\nA task still waiting for its `resources` has no record yet: it reports `status: \"running\"`,\n`launch_state` (`waiting_for_resources`, `granted`, `uncertain`, or `not_started` once it\nsettled without starting, with `not_started_reason`) and `resources` (names, queue `position`,\n`blocked_by`, deadline). See docs/resources-and-worktrees.md.\n\nFull detail returns the task's status, summary, enforcement, and `recent_activity` — a list of ≤ 5 one-line\nstrings describing the most recent meaningful events (tool calls, failed tool results, assistant\nmessages, notices). For running tasks this gives a live summary without the bulk of the\nraw stream. These lines deliberately collapse whitespace and truncate to stay short — they are\na summary only; the stored event log (see get_task_events) and every stored or delivered\nmessage keep their original text intact. `total_cost_usd` is null for backends that do not\nreport cost — Codex, vibe and Antigravity report tokens only or nothing (vibe reports neither\ncost nor tokens nor a turn count).\n\n`enforcement` states what the run's restrictions actually amounted to, and `mcp_servers` (where\nthe backend reports them) shows what the agent loaded. `owner` identifies execution/output\ncapture; `dispatch_origin` and dynamic `responding_server` distinguish the requester from this\nreader. `observation_mode` is owner, attached, recovered or unknown. A same-origin normal\nattachment reports `recovered: false`; another reader or missing process-generation evidence\nreports true with an explanation. PID differences alone do not establish owner loss.\n\nLive, recovered and brief snapshots include `artifact_summary` with a bounded `count` and\n`state` (available or unavailable). Supported standalone owners may include `detail_ref`:\n{\"tool\": \"get_task_artifacts\", \"task_id\": \"...\"}, for explicit paged metadata reads.\nUnsupported or unverifiable ownership returns unavailable without a detail reference;\na supported owner with an unreadable manifest may retain the reference for diagnostics.\nArtifact registration is a reference, not proof of valid contents, successful execution,\nor permission to copy or publish. Availability does not verify content integrity.\n\n`parent_task_id` links a resume to its source; `continuation_of_task_id` links a new-session\ncontinuation. `successor_tasks` derives the reverse links from retained, authorized headers,\nwhen include_successors is true; otherwise only a detail reference is returned.\nIncompleteness and pagination are explicit. These links do not transfer reminders\nor subscriptions to the successor.\n\nConfirmed usage limits add `failure_diagnostic` (category, reason, source, and optional\nprovider-supplied reset_at). It is retained during process settlement and after failure;\na running status during settlement does not authorize a replacement dispatch.\n\nTerminal `outcome` records starting and ending Git observations and diff statistics.\n`new_commits` means newly reachable from the observed comparison base, including imported history;\ntask-created commits and authorship are unavailable. Branch/HEAD are endpoint observations\nonly; intermediate transitions are unobserved even when endpoints match. It also records\nlocal upstream comparison, optional bounded phase/probe diagnostics and partial-result status,\nand best-effort structured tool evidence for external file writes\nand the last build/test command. Missing evidence is null, including pushed state without\nobserved publication evidence. These shared-repository observations do not establish task\nauthorship or goal completion. Old records without captured outcomes return null.\n","inputSchema":{"properties":{"brief":{"default":false,"title":"Brief","type":"boolean"},"detail":{"default":"compact","enum":["compact","full"],"title":"Detail","type":"string"},"include_successors":{"default":false,"title":"Include Successors","type":"boolean"},"include_tail":{"default":false,"title":"Include Tail","type":"boolean"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_statusArguments","type":"object"},"name":"get_task_status","outputSchema":{"additionalProperties":true,"title":"get_task_statusDictOutput","type":"object"}},{"description":"Wait for a task to finish, giving up after a timeout without disturbing the run.\n\nArgs:\n    task_id: Identifier of the task to await.\n    timeout_seconds: How long to hold, 0..3600 (default 50; 0 observes once without\n        sleeping). Honoured as asked, never silently clamped; out of range is INVALID_PARAMS.\n        Breaking change: values above 3600 are now rejected (0 is newly accepted). Your MCP\n        client applies its own request deadline, and exceeding it fails the *call* even though\n        the task keeps running — see docs/multi-task-waiting.md before asking for long holds.\n    include_tail: If True, include the full last_output_tail (20 lines × 2000 chars each);\n        if False (default), the tail is omitted for running/completed tasks and shortened\n        to 5 lines × 500 chars for failed tasks.\n    detail: \"compact\" (default) omits static execution metadata and detailed outcome probes;\n        \"full\" returns complete MCP status. Both preserve the complete summary/report,\n        approval attention, failure diagnostics and wait fields. include_tail=True retains\n        the full tail in either mode.\n    until: \"timeout\" (default) returns when the task settles or timeout_seconds elapses.\n        \"terminal\" holds until the task settles, bounded only by a 6 hour server ceiling;\n        timeout_seconds must then be omitted (passing both is INVALID_PARAMS).\n    ctx: Injected by the server; not a caller argument.\n\nThe result is the task status plus `requested_timeout_seconds`, `effective_timeout_seconds`,\n`until`, `timed_out`, `stop_reason` (terminal, attention, timeout, ceiling or observation_unavailable),\n`elapsed_seconds` and `polling_guidance`. If the task is still going when the wait ends, the\nstatus is \"running\" with a `next_step` hint: call this again, or poll get_task_status. The\ndispatched process is never signalled, written or resumed by a wait, so waiting is always safe\nand repeating it costs nothing. For a task recovered from an earlier server process the result\ncarries `outcome_observed` once it is finished or the wait stopped as observation_unavailable:\nfalse (normally with stop_reason observation_unavailable) means its process is gone but its\nexit was never observed, so the status is an inference — inspect it with get_task_status;\ntrue otherwise. It is never present on a task that is still running. Live tasks carry it\n(true) once finished.\nUndecided approvals and approval uncertainty stop the wait as attention. Answered approvals\nstill awaiting delivery keep waiting. Older summaries without a decision count retain\nattention. Approval attention alone says nothing about process liveness.\nProgress is sent every 5 seconds, best effort. Returns\n`recent_activity` — a list of ≤ 5 one-line strings describing the most recent meaningful events\n— for a live summary without the bulk of the raw stream.\n\nA task still waiting for its `resources` is running as far as a wait is concerned: the wait\nholds until it spawns and settles, or reports `not_started` if it never starts.\n\nPrefer holds <=50 seconds after remote \"device did not respond\" or \"connection closed\"\ndeadline errors; the task continues and a shorter wait is safe to repeat.\n\nA coding task can easily run for many minutes. Expect several calls rather than one long one.\nConfirmed usage limits retain `failure_diagnostic` and partial output while the task owner\nsettles the process. Waiting does not retry the task or authorize a paid fallback.\n","inputSchema":{"properties":{"detail":{"default":"compact","enum":["compact","full"],"title":"Detail","type":"string"},"include_tail":{"default":false,"title":"Include Tail","type":"boolean"},"task_id":{"title":"Task Id","type":"string"},"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Timeout Seconds"},"until":{"default":"timeout","enum":["timeout","terminal"],"title":"Until","type":"string"}},"required":["task_id"],"title":"wait_for_taskArguments","type":"object"},"name":"wait_for_task","outputSchema":{"additionalProperties":true,"title":"wait_for_taskDictOutput","type":"object"}},{"description":"Observe 1..32 unique task IDs, returning compact statuses in requested order.\n\nmode any returns when at least one requested task is settled; all waits for every task.\ntimeout_seconds accepts 0..3600 (default 30) and is honoured as asked, never silently clamped;\nout of range is INVALID_PARAMS. Zero polls immediately. until=\"terminal\" holds until the mode\nis satisfied, bounded by a 6 hour server ceiling, and requires timeout_seconds to be omitted.\nYour MCP client's own request deadline still applies. Prefer holds <=50 seconds after\nremote \"device did not respond\" or \"connection closed\" errors; see docs/multi-task-waiting.md.\nAll IDs must exist and pass caller read authorization before waiting.\nExistence checks and initial metadata share a two-second I/O budget; undecidable existence\nrejects the request. A final metadata observation can add up to two more seconds.\nReturns terminal_task_ids, bounded summaries and get_task_status diagnostic references;\nno output tails. A recovered task whose process is confirmed gone without an observed exit is\nlisted in undecidable_task_ids (status unknown) and counts as settled in both modes, as in\nwait_for_task, after a short grace if its owning harflow_mcp server is still alive; an uncertain\nidentity keeps waiting. Under until=\"terminal\", targets that stay unobservable for\n3 rounds stop the wait with stop_reason observation_unavailable. Rows carry a bounded\nfailure_diagnostic (category, reason) when one exists. Also returns requested/effective\ntimeout, until, timed_out, stop_reason, elapsed_seconds and polling_guidance. Progress is sent\nevery 5 seconds. Timeout and caller cancellation never cancel or signal the observed tasks.\n","inputSchema":{"properties":{"mode":{"default":"any","title":"Mode","type":"string"},"task_ids":{"items":{"type":"string"},"title":"Task Ids","type":"array"},"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Timeout Seconds"},"until":{"default":"timeout","enum":["timeout","terminal"],"title":"Until","type":"string"}},"required":["task_ids"],"title":"wait_for_tasksArguments","type":"object"},"name":"wait_for_tasks","outputSchema":{"additionalProperties":true,"title":"wait_for_tasksDictOutput","type":"object"}},{"description":"Start a fresh session from a conclusively settled standalone task.\n\nThis differs from resume_task: it reconstructs the original assignment, latest summary and\ncaptured outcome, with optional UTF-8 notes and caller follow-up preserved verbatim. Oversized\nevidence is referenced by path. Backend, model and access settings are retained. Process exit,\ncomplete output drainage and a durable terminal record must be observed; old or inferred\nrecords without settlement evidence are refused. Workflow-owned tasks use workflow recovery.\nConcurrent identical retries share one successor; mismatched or unsettled reservations fail.\nA source that had `resources` re-queues the same names; while they are busy the successor is\nacknowledged with `launch_state: \"waiting_for_resources\"` (the reservation is `accepted`, and a\nretry returns the same pending successor).\nThe returned continuation_of_task_id is separate from session resume/delegation ancestry.\n\nFollow-ups queued on the source with send_message are consumed by this call: they appear\nverbatim, in queue order, ahead of extra_prompt (or ahead of a fixed closing line when there is\nnone), and the new task's task_started event lists their message_ids. With nothing queued the\ncall behaves exactly as without the feature. Two manual calls with the same extra_prompt and\nnotes are the same request whatever is queued: the queue is read once, when the successor is\nreserved, and a retry returns that successor. An automatic continuation never consumes.\n\ngroup_report_output: omitted or null inherits the saved opt-in; false disables scoped output.\nallowed_commands: omitted or null inherits the source task's saved command grants (an automatic\ncontinuation always does); a list replaces them after the same validation and nested-subset check\nas start_task. See start_task for the grammar and limits.\nfetch refreshes remote-tracking refs before the fresh session, the same way as start_task.\nContinuations reuse a branch prepared at the original dispatch and do not accept branch or base.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"background_idle_seconds":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"default":null,"title":"Background Idle Seconds"},"extra_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Extra Prompt"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"notes_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notes Path"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"continue_taskArguments","type":"object"},"name":"continue_task","outputSchema":{"additionalProperties":true,"title":"continue_taskDictOutput","type":"object"}},{"description":"Continue a finished task's session with follow-up instructions.\n\nArgs:\n    task_id: A task that has finished; its session is the one resumed.\n    followup_prompt: What the agent should do next, with the prior context intact. Write it\n        in plain prose, as with start_task's prompt: preserve spaces and word boundaries and\n        never concatenate words to shrink the payload — the text is stored and delivered\n        exactly as submitted. Blank or all-whitespace follow-ups are rejected rather than\n        trimmed into shape. May be omitted only when the task has follow-ups queued with\n        send_message (see below); otherwise it is required.\n    max_turns: Cap on agent turns, where the backend supports one.\n    network: Optional boolean overriding the parent run's network setting for this run only:\n        None (the default) inherits what the parent was dispatched with — which is also the\n        historical default for a record written before the field existed — True asks for no\n        network barrier of harflow_mcp's own, False asks for one, honoured or refused exactly\n        as on start_task for the parent's freedom.\n    fetch: Optional refresh of remote-tracking refs before the resumed agent starts. true uses\n        the default remote; a list names remotes. A prepared branch is reused and is not recreated.\n        branch and base are not accepted on resume.\n    fetch_required: When true, a fetch failure refuses the resume.\n    group_report_output: None inherits the saved group-scoped output opt-in; false disables it.\n    allowed_commands: None (the default) inherits the parent's saved command grants; a list replaces\n        them for this run after the same validation and nested-subset check as start_task, which\n        documents the grammar and limits.\n\nFollow-ups queued on the task with send_message are consumed by this call, exactly once: the\nprompt is each queued message as a block \"Queued caller follow-up N of M (message <id>, queued\n<time>):\" followed by its text exactly as sent, in queue order, a blank line, then\nfollowup_prompt verbatim — or the line \"End of queued caller follow-ups.\" when it is omitted.\nThe new task's task_started event lists the message_ids. A message cannot be consumed twice;\none that cannot be proven undelivered after a failed launch is kept as delivery_unknown rather\nthan re-queued.\n\nA task that had `resources` re-queues the same names; if they are busy the call returns at once\nwith `launch_state: \"waiting_for_resources\"`, hands the consumed follow-ups to the waiting launch\n(consumed when it spawns, queued again if it never starts) and has no record until then.\n\nReturns a new task_id sharing the original session, and returns immediately as with start_task.\nRuns on the same backend, model, reasoning_effort and freedom as the original — none of these\ncan be changed on resume, since a mid-conversation switch would not honestly describe what\nproduced the reply. `network` is the one per-run override, because it is a per-run sandbox\nsetting rather than a description of the session.\n\nSome backends mint their own session id and only disclose it mid-run; if a task died before\ndoing so, its conversation cannot be continued and this says so rather than starting a\ndisconnected one.\n","inputSchema":{"properties":{"allowed_commands":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Allowed Commands"},"background_idle_seconds":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"null"}],"default":null,"title":"Background Idle Seconds"},"conversation_profile":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Conversation Profile"},"fetch":{"anyOf":[{"type":"boolean"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fetch"},"fetch_required":{"default":false,"title":"Fetch Required","type":"boolean"},"followup_prompt":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Followup Prompt"},"git_https_rewrite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Git Https Rewrite"},"group_report_output":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Group Report Output"},"max_turns":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Max Turns"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"resume_taskArguments","type":"object"},"name":"resume_task","outputSchema":{"additionalProperties":true,"title":"resume_taskDictOutput","type":"object"}},{"description":"List dispatched tasks, oldest first.\n\nArgs:\n    status: Optional filter — running, completed, failed, timed_out or cancelled.\n    backend: Optional filter by harness, e.g. \"codex\".\n    waiting_for_resource: Optional resource name: only launches that have not started and are\n        still queued for it (`launch_state: \"waiting_for_resources\"`). Uses the unpaged listing.\n\nThe unpaged listing also carries launches that are waiting for resources and have no task\nrecord yet (`pending_launch: true`); the indexed page does not.\n\nIncludes tasks from earlier harflow_mcp server processes, marked `recovered: true`.\nSupplying group/title_contains/repo/since/limit/fields/cursor selects a bounded newest-first\nindexed page (default limit 50, maximum 100), rather than the legacy oldest-first list.\nsince is an inclusive ISO8601 timestamp with timezone. fields selects compact names. Accepted\nfields, in sorted order: background_idle_seconds, backend, dispatch_origin, duration_seconds,\nfinished_at, group, input_channel, last_captured_output_at, needs_direct_lookup,\nneeds_reconciliation, note, observation_mode, observation_note, observed_exit, output_capture,\nowner, parent_task_id, persisted_status, process_identity_state, recovered, repo_path,\nresponding_server, root_task_id, session_id, started_at, status, task_id, title. The repository\nfield is repo_path, not repo. Identity and status fields are always included: task_id, status,\nneeds_reconciliation, needs_direct_lookup, persisted_status, observed_exit, process_identity_state.\nAn unknown name, an empty list, a non-string entry and a list longer than the accepted set each\nproduce their own error, and the error names the bad entries and lists the accepted ones.\nAccepted filters: group, title_contains, repo, status, backend, since, predecessor_task_id.\nFilters run before pagination;\ncursor binds filters. Status is the indexed observation: inspect needs_reconciliation and\nobserved_exit before interpreting it. See docs/compact-task-reads.md for supported fields,\nbounded-header matching and direct detail lookup. Listing never replays task logs.\nWhen status_reconciliation_pending is true, results are incomplete: retry the same filters\nwithout a cursor as directed by polling_guidance, even if has_more is false.\n","inputSchema":{"properties":{"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Status"},"title_contains":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title Contains"},"waiting_for_resource":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Waiting For Resource"}},"title":"list_tasksArguments","type":"object"},"name":"list_tasks","outputSchema":{"properties":{"result":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"additionalProperties":true,"type":"object"}],"title":"Result"}},"required":["result"],"title":"list_tasksOutput","type":"object"}},{"description":"Stable newest-first persisted task headers; inspect a task for reconciled status/output.\n\nbootstrap_pending indicates bounded indexing or requested-header refresh is preparing.\nPreserve loaded headers and cursors while catalog_state reports preparing.\nActive-only pages are a separate inventory and do not reorder history cursors.\npredecessor_task_id selects direct resumes and continuations of that task, for following\nsuccessor links without scanning all retained history. Combine it with the returned cursor.\n","inputSchema":{"properties":{"active_only":{"default":false,"title":"Active Only","type":"boolean"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":100,"title":"Limit","type":"integer"},"predecessor_task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Predecessor Task Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Session Id"},"task_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Task Ids"}},"title":"list_task_pageArguments","type":"object"},"name":"list_task_page","outputSchema":{"additionalProperties":true,"title":"list_task_pageDictOutput","type":"object"}},{"description":"Latest provider usage-limit hit per backend and requested model, from persisted task records; direct callers only.\n\nRead-only: nothing is retried, switched or continued. Evidence is a persisted task\nfailure_diagnostic with category usage_limit (never provider_error or prose). There is no\npagination: a query sees only the newest 500 hits that match its since, backend and model\nbounds, so filtering by backend (or backend and model) gives each its own newest-500 window,\nwhile an unfiltered query sees only the newest 500 overall. repo and group filter inside that\nwindow. model is the requested model; a task on the backend default has requested_model null.\nsince is an inclusive ISO8601 timestamp with timezone. At most 50 backend/model keys are returned.\nscan.complete is false when older matching hits were left unexamined, the key cap was reached, or\nthe index is still preparing (index_state), so retry while it is preparing.\nEach hit carries task_id, title, group, observed_at (when the task settled: finished_at, else\nstarted_at, named by observed_at_source; not necessarily when the provider rejected the request), diagnostic and reset {raw, at, state}. A numeric reset is epoch seconds.\nreset.state is future, elapsed or unknown; elapsed only says the stated time has passed and does\nnot say the provider is available again. See docs/usage-limits.md.\n","inputSchema":{"properties":{"backend":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Backend"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Group"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Model"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"}},"title":"recent_limit_hitsArguments","type":"object"},"name":"recent_limit_hits","outputSchema":{"additionalProperties":true,"title":"recent_limit_hitsDictOutput","type":"object"}},{"description":"Stop a running task, terminating the agent and any processes it spawned, and cascade the\nsame stop to any live descendants this bridge can find.\n\nArgs:\n    task_id: Identifier of the task to stop.\n\nA launch still waiting for resources is stopped before it starts: the request is recorded, its\nowner honours it at the next poll, and pending descendants are asked to stop too\n(`cascade.pending_cancel_requested`).\n\nAlready-finished tasks are returned unchanged. Work the agent had already written to disk is\nleft in place. Tasks started by an earlier harflow_mcp server process can be stopped too, via\ntheir recorded process group.\n\nThe cascade reaches nested dispatches that task's own agent made through harflow_mcp —\n`spawned_by`/`root_task_id` lineage, best-effort, not a sandboxed guarantee — and the response\ncarries the result as `cascade`: `cancelled_descendants` (ids now cancelled),\n`sigkill_survivors` (ids that resisted even SIGKILL), `owner_still_settling` (ids belonging to\na still-alive bridge server that has not settled them yet), `not_signalled` (ids that\ncould not be signalled at all, with why), and `not_recorded` (ids that were signalled but\nwhose `cancelled` status could not be written, with why — their records are left untouched).\n","inputSchema":{"properties":{"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"cancel_taskArguments","type":"object"},"name":"cancel_task","outputSchema":{"additionalProperties":true,"title":"cancel_taskDictOutput","type":"object"}},{"description":"Fetch normalized events from a task's event log.\n\nArgs:\n    task_id: Identifier of the task whose events to read.\n    limit: Maximum number of events to return, capped at 200. Default is 50.\n    before_seq: Exclusive upper bound — return events with seq < before_seq (older events).\n        Cannot be used with after_seq.\n    after_seq: Exclusive lower bound — return events with seq > after_seq (newer events).\n        Cannot be used with before_seq.\n    kinds: Optional filter by event kind. Must be a non-empty list of known kinds from\n        `task_started`, `assistant_text`, `assistant_delta`, `tool_call`, `tool_result`,\n        `user_message`, `usage`, `notice`, `task_finished`, `undelivered`.\n        `assistant_delta` is excluded by default unless explicitly listed. Pass `null`\n        to get all kinds except assistant_delta.\n\nReturns events in oldest→newest order within the page, with:\n- `events`: list of event objects with their `seq`, `kind`, and data fields\n- `has_more`: true if there are more matching events in the requested direction\n- `next_before_seq`: the `seq` of the oldest event in this page (for paging older)\n- `next_after_seq`: the `seq` of the newest event in this page (for paging newer)\n- `skipped_oversized`: count of lines > 1 MiB that were skipped (not parsed, not counted as events)\n\nFor the complete final summary/report, use get_task_status in compact or full detail;\nevent pages are bounded and are not a lossless final report read.\n\nEach returned event has its long string fields truncated to 2000 chars, lists to 50 items,\nand dict nesting to depth 4, with `\"truncated\": true` added if anything was cut. An event still\nover 16 KiB after that (a very wide dict) is replaced by a stub carrying only `seq`, `kind`,\n`observed_at`, `truncated: true`, `oversized: true` and its size in `bytes`. A page\nstops early once its serialized size would pass 256 KiB (has_more remains true, cursors still\nvalid). A page is never empty while has_more is true.\n\nDefault (no before_seq/after_seq): newest page — the most recent events.\nBoth cursors cannot be used at once. kinds=[] or an unknown kind raises INVALID_PARAMS.\n","inputSchema":{"properties":{"after_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"After Seq"},"before_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Before Seq"},"kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Kinds"},"limit":{"default":50,"title":"Limit","type":"integer"},"recovery_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Recovery Cursor"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_eventsArguments","type":"object"},"name":"get_task_events","outputSchema":{"additionalProperties":true,"title":"get_task_eventsDictOutput","type":"object"}},{"description":"Read one bounded recent or older activity page using an opaque stable cursor.\n\nDefaults to 100 records; each call reads at most 1 MiB plus integrity anchors\nand returns at most 256 KiB. Pass next_cursor for exactly one older page.\nAppend-only live growth preserves the historical snapshot. Replacement or\ntruncation requires reloading without a cursor. Filtering can return an empty\npage with has_more true. An indexing response exposes no task events; retry\nafter the bounded legacy catalog bootstrap advances.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"kinds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Kinds"},"limit":{"default":100,"title":"Limit","type":"integer"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_event_pageArguments","type":"object"},"name":"get_task_event_page","outputSchema":{"additionalProperties":true,"title":"get_task_event_pageDictOutput","type":"object"}},{"description":"Queue exact caller prose for any task's next continuation or owning workflow dispatch.\n\n`delivery` is `queue` (default; never folds into the current turn) or `now`. Now starts a\nsafely settled standalone continuation; an unsafe interruption returns a stable `refusal`\nalongside the queued message id, preserving the message for later. When `delivery` is `queue`\nand resolve_status says the target has already finished, the reply keeps the queued message id\nand adds `target_settled: true`, `target_status`, and a note that the message waits for\nresume_task / continue_task (or delivery=\"now\"). A running target, including a recovered task\nthat is still alive, returns the same reply as before, with no settled fields. Workflow/node\nmessages follow their owning workflow and never widen node authority; a completed non-builder\nor cancelled run says no further dispatch will consume the message. Use `interaction_owner=monitor`\nonly from a verified human Monitor caller. Status exposes messages and queued_followups.\n","inputSchema":{"properties":{"delivery":{"default":"queue","title":"Delivery","type":"string"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"task_id":{"title":"Task Id","type":"string"},"text":{"title":"Text","type":"string"}},"required":["task_id","text"],"title":"send_messageArguments","type":"object"},"name":"send_message","outputSchema":{"additionalProperties":true,"title":"send_messageDictOutput","type":"object"}},{"description":"Prepare a qualified same-conversation delivery target and its exact witness.\n\nThis explicitly enrolls a qualified task. It does not send input or enable an\nunsupported transport. Use the returned expected witness in the negotiated\nconversation_delivery_v1 request; legacy queued follow-ups stay separate.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"prepare_task_conversationArguments","type":"object"},"name":"prepare_task_conversation","outputSchema":{"additionalProperties":true,"title":"prepare_task_conversationDictOutput","type":"object"}},{"description":"Send one exact Queue or Now request using conversation_delivery_v1.\n\nQueue finishes the active response before automatic delivery. Now requires a\nqualified native interruption route; unsupported targets refuse before input.\nRequests include a UUID and exact conversation/head/turn/generation/epoch\nwitness. Acknowledged intent is distinct from native input consumption.\nRepeat an uncertain call with the identical request, never a fresh UUID.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"request":{"additionalProperties":true,"title":"Request","type":"object"}},"required":["request"],"title":"send_conversation_messageArguments","type":"object"},"name":"send_conversation_message","outputSchema":{"additionalProperties":true,"title":"send_conversation_messageDictOutput","type":"object"}},{"description":"Cancel an unclaimed message or promote it to Now without duplicating input.\n\nUse a distinct control request UUID, the existing message_request_id and the\nexact current conversation witness. Promotion preserves the message's original\nQueue admission identity. Cancellation never interrupts an issued response.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"request":{"additionalProperties":true,"title":"Request","type":"object"}},"required":["request"],"title":"control_conversation_messageArguments","type":"object"},"name":"control_conversation_message","outputSchema":{"additionalProperties":true,"title":"control_conversation_messageDictOutput","type":"object"}},{"description":"Explicitly request a capped same-session workflow result after conversation.\n\nThe source must physically exit and drain first. The request includes the\nexact conversation witness and a complete existing steering open request with\nallow_fresh_context=false. Only the issued framed commit can advance the\ngraph or propose a draft; applying/saving a draft stays explicit.\n","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"request":{"additionalProperties":true,"title":"Request","type":"object"}},"required":["request"],"title":"commit_conversation_resultArguments","type":"object"},"name":"commit_conversation_result","outputSchema":{"additionalProperties":true,"title":"commit_conversation_resultDictOutput","type":"object"}},{"description":"Withdraw a still-queued task or workflow-owned message; claimed messages are refused.","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"message_id":{"title":"Message Id","type":"string"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id","message_id"],"title":"cancel_queued_messageArguments","type":"object"},"name":"cancel_queued_message","outputSchema":{"additionalProperties":true,"title":"cancel_queued_messageDictOutput","type":"object"}},{"description":"Queue a workflow or node message for its next issued dispatch. Exact prose and order are\npreserved. `now` refuses unsupported interruption or required checkpoints while keeping the\nqueued message and returning its id plus a stable refusal code. A queued message to a completed\nnon-builder or cancelled run adds `target_settled`, `target_status` and a note that no further\ndispatch will consume it; a running run, a failed run and a completed builder omit those fields.\nNo permission, goal, decision or attempt budget is changed. Owner checks match other workflow interactions.\n","inputSchema":{"properties":{"delivery":{"default":"queue","title":"Delivery","type":"string"},"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"run_id":{"title":"Run Id","type":"string"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"text":{"title":"Text","type":"string"}},"required":["run_id","text"],"title":"send_workflow_messageArguments","type":"object"},"name":"send_workflow_message","outputSchema":{"additionalProperties":true,"title":"send_workflow_messageDictOutput","type":"object"}},{"description":"Cancel one queued workflow message. Delivering and delivered messages cannot be withdrawn.","inputSchema":{"properties":{"interaction_owner":{"default":"caller","title":"Interaction Owner","type":"string"},"message_id":{"title":"Message Id","type":"string"},"run_id":{"title":"Run Id","type":"string"}},"required":["run_id","message_id"],"title":"cancel_workflow_messageArguments","type":"object"},"name":"cancel_workflow_message","outputSchema":{"additionalProperties":true,"title":"cancel_workflow_messageDictOutput","type":"object"}},{"description":"List name, description, revision and workflow_id without graphs/instructions by default.\n\nUse get_workflow(name) for one complete definition, or detail=\"full\" for all definitions.\nIncompatible or unavailable sources refuse the whole list in either mode.\n","inputSchema":{"properties":{"detail":{"default":"compact","enum":["compact","full"],"title":"Detail","type":"string"}},"title":"list_workflowsArguments","type":"object"},"name":"list_workflows","outputSchema":{"properties":{"result":{"items":{"additionalProperties":true,"type":"object"},"title":"Result","type":"array"}},"required":["result"],"title":"list_workflowsOutput","type":"object"}},{"description":"Read a saved workflow definition and revision.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"get_workflowArguments","type":"object"},"name":"get_workflow","outputSchema":{"additionalProperties":true,"title":"get_workflowDictOutput","type":"object"}},{"description":"Validate and save an explicit workflow; expected_revision protects concurrent edits.\n\nThe store creates persistence envelopes; supply only the authored graph payload.\nIncompatible or unavailable saved sources refuse mutation and complete-store indexing.\nexpected_workflow_id optionally checks the loaded stable identity, rejecting a\ndeleted or replaced same-name definition even if its revision matches.\nEvery save normalizes context_delivery to optimized_v1, including omitted or legacy\nvalues. Historical runs retain their pinned delivery policy. Bounded delivery uses\nsession-bound acknowledgements and assigned evidence retrieval,\nwith a 64 KiB target that never silently cuts required constraints.\norchestrator.instructions holds the workflow purpose; Start and End have no settings.\non_demand_nodes is separate from connected nodes, with id/title, required instructions,\noptional call_condition (When to call guidance), agent/fallbacks, freedom/network,\nsession_mode agent_decides|fresh|resume and execution_mode headless|prefer_subagent.\nStandalone IDs are unique across both lists; connections cannot reference them.\nmax_on_demand_calls defaults to 5, range 1–50, per routing/question checkpoint;\nno per-node or per-run call cap exists. Legacy Start prompt migrates on saved reads.\nSet routing_mode=\"explicit\". Ordinary nodes choose exactly one outgoing path.\nParallel execution uses paired parallel_start/parallel_end nodes with shared\nparallel_group_id. Every branch reaches its matching end; nesting is supported.\nA Run workflow node (type \"workflow\") references a saved workflow by\nworkflow_ref.workflow_id with orchestrator_mode child or current.\nChild mode supports child_session_policy agent_decides (default), fresh, or\nresume. Resume inherits only the latest completed compatible child\nconversation in this immediate parent run, with fresh workflow state; an\nunavailable explicit Resume fails closed. Current mode retains its owner. The whole\ndependency tree is resolved and pinned at save, so missing references, cycles\n(reported as A > B > C > A) and nesting beyond four levels are refused before\nanything is written. Agent callers may save only access and network settings\nwithin their recorded capability envelope, checked over the resolved tree;\nverified human callers can author workflow permissions.\n","inputSchema":{"properties":{"definition":{"additionalProperties":true,"title":"Definition","type":"object"},"expected_revision":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Expected Revision"},"expected_workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Expected Workflow Id"},"name":{"title":"Name","type":"string"}},"required":["name","definition"],"title":"save_workflowArguments","type":"object"},"name":"save_workflow","outputSchema":{"additionalProperties":true,"title":"save_workflowDictOutput","type":"object"}},{"description":"Delete a qualified definition after scanning qualified referrers; historical snapshots remain available.","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"delete_workflowArguments","type":"object"},"name":"delete_workflow","outputSchema":{"additionalProperties":true,"title":"delete_workflowDictOutput","type":"object"}},{"description":"Generate a workflow, or refine the current canvas into an unsaved validated proposal.\n\nOrchestrator instructions belong in orchestrator.instructions; Start/End are structural.\nOptional on_demand_nodes are a separate ordered list with globally unique local id, title,\nrequired nonempty instructions, optional call_condition (When to call guidance), agent,\nfreedom, network, session_mode agent_decides|fresh|resume and execution_mode.\nThey have no position, role or connections. max_on_demand_calls defaults to 5 (1–50)\nper routing/question checkpoint; no per-node or per-run call cap exists.\n\nWrite prompt in plain prose: preserve spaces and word boundaries rather than\nconcatenating words to save tokens. The caller's prompt is retained unchanged\nbefore builder input assembly.\n\nKeep node and connection instructions concise and task-specific. HarflowMCP owns\nruntime retries, budget enforcement, configured fallback dispatch and user interaction;\nuse existing configuration fields for limits and fallback candidates, and orchestrator\nneeds_input for clarification or approval. End means intentional workflow termination,\nnot waiting for user input. Preserve legitimate task branches and revision loops.\n\nLayout uses top-left logical point coordinates with x/y >= 0 and a 10-point dot grid.\nAgent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72\n(reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges and avoid\noverlaps. Arrange forward steps left to right and parallel branches on separate rows.\nUse routing_mode=\"explicit\". Ordinary outgoing paths are exclusive alternatives.\nParallel execution requires paired parallel_start/parallel_end structural nodes with\na shared parallel_group_id; every branch must reach its matching end. Parallel start\ndefaults to `branch_selection: \"all\"`. With `branch_selection: \"orchestrator\"`, the\norchestrator selects applicable issued branch continuations, assigns each selected entry\nthrough `branch_assignments`, and records a non-empty `selection_reason` explaining\nselections and exclusions before dispatch. Optional `selection_guidance` advises that\nchoice. Selected branches may contain multiple steps and properly nested groups;\nconvergence uses the frozen selected membership, including singleton selections.\nPreserve existing node positions exactly unless the user explicitly asks to move or rearrange them.\nPreserve any supplied Run workflow nodes exactly (workflow_ref, orchestrator_mode,\nchild_session_policy, attempts, timeout, optional); never author new Run workflow references.\nChild session policy is agent_decides (default), fresh, or resume, and is inactive in\nCurrent mode. Resume reuses only the latest completed compatible invocation in the\nimmediate parent run, with fresh workflow state; explicit Resume never falls back Fresh.\nThe canvas expands automatically; there is no fixed right or bottom boundary.\n","inputSchema":{"properties":{"agent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Agent"},"definition":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Definition"},"fallbacks":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"default":null,"title":"Fallbacks"},"name":{"title":"Name","type":"string"},"prompt":{"title":"Prompt","type":"string"},"repo_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo Path"},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Source"}},"required":["name","prompt"],"title":"workflow_builderArguments","type":"object"},"name":"workflow_builder","outputSchema":{"additionalProperties":true,"title":"workflow_builderDictOutput","type":"object"}},{"description":"Queue a message in the same workflow-builder conversation without saving its draft.\n\nKeep node and connection instructions concise and task-specific. HarflowMCP owns\nruntime retries, budget enforcement, configured fallback dispatch and user interaction;\nuse existing configuration fields for limits and fallback candidates, and orchestrator\nneeds_input for clarification or approval. End means intentional workflow termination,\nnot waiting for user input. Preserve legitimate task branches and revision loops.\n\nPreserve spaces and word boundaries in prompt rather than compressing natural\nprose; the caller's source text is retained unchanged before builder input assembly.\nRestarting an idle or completed builder sets the run's resumed_at; feedback queued to a\nrunning builder does not.\n","inputSchema":{"properties":{"prompt":{"title":"Prompt","type":"string"},"run_id":{"title":"Run Id","type":"string"}},"required":["run_id","prompt"],"title":"followup_workflow_builderArguments","type":"object"},"name":"followup_workflow_builder","outputSchema":{"additionalProperties":true,"title":"followup_workflow_builderDictOutput","type":"object"}},{"description":"Publish a preview from the verified active builder task; never write a saved workflow.\n\nPositions are top-left logical points, with finite x/y >= 0, on a 10-point dot grid.\nAgent nodes are 200 x 92 points (reserve 20 x 10 grid cells); Start/End are 72 x 72\n(reserve 8 x 8 cells). Leave at least 40 points (4 cells) between node edges; no overlaps.\nUse routing_mode=\"explicit\". Ordinary outgoing paths are exclusive alternatives.\nParallel execution requires paired parallel_start/parallel_end structural nodes with\na shared parallel_group_id; every branch must reach its matching end. Parallel start\ndefaults to `branch_selection: \"all\"`. With `branch_selection: \"orchestrator\"`, the\norchestrator selects applicable issued branch continuations, assigns each selected entry\nthrough `branch_assignments`, and records a non-empty `selection_reason` explaining\nselections and exclusions before dispatch. Optional `selection_guidance` advises that\nchoice. Selected branches may contain multiple steps and properly nested groups;\nconvergence uses the frozen selected membership, including singleton selections.\nPreserve existing node positions exactly unless the user explicitly asks to move or rearrange them.\nThe canvas expands automatically; do not constrain nodes to a fixed viewport.\n","inputSchema":{"properties":{"definition":{"additionalProperties":true,"title":"Definition","type":"object"},"expected_draft_revision":{"title":"Expected Draft Revision","type":"integer"}},"required":["definition","expected_draft_revision"],"title":"apply_workflow_draftArguments","type":"object"},"name":"apply_workflow_draft","outputSchema":{"additionalProperties":true,"title":"apply_workflow_draftDictOutput","type":"object"}},{"description":"Preview resources, worktree plan, native ownership, permissions and fallback reasons without launching.\n\nThe orchestrator receives the permissions required by compatible native\nchildren. Supply preview_hash as expected_preview_hash when starting to\nrefuse changed workflow, launch settings or compatibility evidence.\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Overrides"},"repo_path":{"title":"Repo Path","type":"string"},"worktree":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"title":"Worktree"}},"required":["name","repo_path"],"title":"preview_workflow_runArguments","type":"object"},"name":"preview_workflow_run","outputSchema":{"additionalProperties":true,"title":"preview_workflow_runDictOutput","type":"object"}},{"description":"Start a durable workflow run; returns workflow_run_id rather than task_id.\n\nSaved top-level resources are held through pauses and caller-input checkpoints;\nagent-node resources are acquired before a harness slot. Resources grant no access.\nOptional worktree {base_ref?, branch?, detach?} creates one shared checkout for\nthe root and every child run after the run-scope grant. Nested callers and\nworkflows whose agents are all read_only cannot request one. The default branch\nis harflow/workflow-<run_id>. Removal is explicit through harflow-ctl.\nResources and the worktree plan are bound by expected_preview_hash.\n\nPreserve spaces and word boundaries in prompt rather than compressing natural prose;\nthe caller's source text is stored unchanged before workflow input assembly.\n\nThe complete dependency tree of any Run workflow node is resolved and pinned\nbefore the run is created, so later edits or deletes never reinterpret the\nrun. Children are linked runs that share the root's harness-turn budget;\npublic controls apply to the root run id only.\n\ngoal is optional nonblank text up to 64 KiB UTF-8, preserved verbatim. It complements the\nsaved purpose and request without expanding permissions. notify reserves configured root-run\nsettlement/attention webhooks before creation; notify_events selects terminal, attention,\nor both (default). Direct callers only; see docs/task-notifications.md.\nCompletion requires an assessment\nwith evidence for the current goal revision; conflicts or unverifiable criteria need input.\n","inputSchema":{"properties":{"expected_preview_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Expected Preview Hash"},"freedom":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Freedom"},"goal":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Goal"},"name":{"title":"Name","type":"string"},"network":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Network"},"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"notify_events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Notify Events"},"overrides":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Overrides"},"prompt":{"title":"Prompt","type":"string"},"repo_path":{"title":"Repo Path","type":"string"},"worktree":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"null"}]},"type":"object"},{"type":"null"}],"default":null,"title":"Worktree"}},"required":["name","prompt","repo_path"],"title":"start_workflowArguments","type":"object"},"name":"start_workflow","outputSchema":{"additionalProperties":true,"title":"start_workflowDictOutput","type":"object"}},{"description":"Subscribe a root workflow to configured webhooks (terminal, attention, or both).\n\nDirect callers only. Current and future points are delivered; historical points are not\nreplayed. Repeat calls update event selection. Delivery never changes workflow execution.\n","inputSchema":{"properties":{"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Events"},"notify":{"title":"Notify","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","notify"],"title":"subscribe_workflowArguments","type":"object"},"name":"subscribe_workflow","outputSchema":{"additionalProperties":true,"title":"subscribe_workflowDictOutput","type":"object"}},{"description":"Stop future workflow delivery attempts for one configured alias, or every alias.","inputSchema":{"properties":{"notify":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Notify"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"unsubscribe_workflowArguments","type":"object"},"name":"unsubscribe_workflow","outputSchema":{"additionalProperties":true,"title":"unsubscribe_workflowDictOutput","type":"object"}},{"description":"Read root workflow subscriptions and at most 50 recent delivery states; direct callers only.","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_notificationsArguments","type":"object"},"name":"get_workflow_notifications","outputSchema":{"additionalProperties":true,"title":"get_workflow_notificationsDictOutput","type":"object"}},{"description":"Read exact builder, orchestrator or qualified worker targets, revisions, holds and retained history windows.\n\nOnly the qualified original external caller or verified native human is eligible. A managed\nworker, builder or orchestrator has no parent/sibling steering authority. Reading issues no turn.\n","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_steeringArguments","type":"object"},"name":"get_workflow_steering","outputSchema":{"additionalProperties":true,"title":"get_workflow_steeringDictOutput","type":"object"}},{"description":"Read a bounded ordered steering history page; cursors never authorize a mutation.\n\nReconnect by reading the original receipt rather than resending a conversation after response\nloss while that receipt remains retained. Expired epochs refuse; history exposes gaps rather\nthan promising lifetime replay. A new external generation cannot claim earlier ownership.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":50,"title":"Limit","type":"integer"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_steering_historyArguments","type":"object"},"name":"get_workflow_steering_history","outputSchema":{"additionalProperties":true,"title":"get_workflow_steering_historyDictOutput","type":"object"}},{"description":"Explicitly request one finite builder, orchestrator or qualified worker response with exact revisions.\n\nOpen/reply/retarget require exact engine-issued identity, a unique request_id and verbatim text.\nPreserve all spaces, newlines and Unicode. Prose replies wait for another explicit caller\nrequest; a valid framed builder proposal stays unsaved, while a current orchestrator frame\ncommits only configured validated actions. Admission holds new affected scheduling and preserves\nalready issued work and active sibling evidence. There is no automatic conversational loop or\nautomatic permission expansion. Workers retain their actual configured permissions and real\neffects. Require worker/window capabilities, explicit schema 2 upgrade and current ledger_epoch;\nexpired requests never authorize replacement. A worker needs allow_fresh_context consent and a\nsupported finite cap (at most 8 or the smaller configured cap); unqualified Resume/native refuses.\nSteering never charges or resets normal execution counters. Dismiss does not clear the worker\nresult requirement. MCP cannot claim native take_owner/release_owner; cancellation/reselection\nremains unsupported.\n","inputSchema":{"properties":{"request":{"additionalProperties":true,"title":"Request","type":"object"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","request"],"title":"steer_workflowArguments","type":"object"},"name":"steer_workflow","outputSchema":{"additionalProperties":true,"title":"steer_workflowDictOutput","type":"object"}},{"description":"Withdraw one exact never-started root headless Fresh worker and link a same-assignment retry.\n\nRequires workflow-steering-replan.v1, schema 2/current ledger_epoch, the engine-issued\nreplan target and withdrawal witness, and the existing interaction/cancellation authority.\nA managed worker cannot invoke this control. The source must be configured headless and fixed Fresh.\nThe original launch must acknowledge the exact\ngeneration as never started, and matching releases must finish before replacement. The queued\nconversation issuance remains charged. Preserve assignment, configured candidate, permissions,\nfinite cap, node/visit, accepted decisions and sibling evidence. Already issued work refuses;\na spawn race remains unknown and cannot authorize replacement or a late cancellation signal.\nNo graph edit, alternate candidate, automatic repair, allowance grant or poststart containment\nauthority is added. Replay the same request after response loss; an expired epoch never dispatches.\n","inputSchema":{"properties":{"request":{"additionalProperties":true,"title":"Request","type":"object"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","request"],"title":"replan_workflow_steeringArguments","type":"object"},"name":"replan_workflow_steering","outputSchema":{"additionalProperties":true,"title":"replan_workflow_steeringDictOutput","type":"object"}},{"description":"Revise a root run goal at a quiescent paused or awaiting-input checkpoint.\n\nOnly the run's interaction owner can revise it. Supply the current goal_revision (0 if no\ngoal exists). Stale revisions, terminal runs and active nested/parallel work are rejected.\nThe nonblank goal is preserved verbatim up to 64 KiB UTF-8. History and completed work remain;\nprevious assessments are invalidated and replanning is required before further dispatch.\nEach run retains at most 64 goal revisions (including the initial goal) and 1 MiB UTF-8\nof cumulative goal text. Edits exceeding either bound are rejected; start a new run.\n","inputSchema":{"properties":{"expected_revision":{"title":"Expected Revision","type":"integer"},"goal":{"title":"Goal","type":"string"},"run_id":{"title":"Run Id","type":"string"}},"required":["run_id","goal","expected_revision"],"title":"revise_workflow_goalArguments","type":"object"},"name":"revise_workflow_goal","outputSchema":{"additionalProperties":true,"title":"revise_workflow_goalDictOutput","type":"object"}},{"description":"List recorded workflow runs. Each carries resumed_at once the caller has resumed it.","inputSchema":{"properties":{"limit":{"default":10,"title":"Limit","type":"integer"},"offset":{"default":0,"title":"Offset","type":"integer"}},"title":"list_workflow_runsArguments","type":"object"},"name":"list_workflow_runs","outputSchema":{"additionalProperties":true,"title":"list_workflow_runsDictOutput","type":"object"}},{"description":"Stable newest-first run headers, with bounded ancestor/session-owner lookups.\n\nDeferred explicit run_ids and ancestor reads report preparation; preserve loaded headers\nand retry the read. Oversized or unsupported metadata reports blocked diagnostics with\nincomplete counts, without publishing unknown placeholder outcomes. A header's optional\nresumed_at (Unix seconds) is the caller's last continuation; it is absent if never resumed,\nunlike updated_at, which changes on every write.\n\nOptional filters narrow the page: workflow_id (stable workflow identity), repo (exact\nrecorded repo path), status (list of run statuses: pending, starting, building, running,\npausing, paused, needs_input, needs_attention, cancelling, completed, failed, cancelled; the\nindexed status shown on each item), since (inclusive) and before (exclusive) ISO8601 created_at\nbounds with timezone, title_contains (case-insensitive run name text) and scope (all, the\ndefault; root; nested child runs). Runs have no group, so there is no group filter. Filters\ncannot be combined with run_ids or related_run_id. A filtered page examines at most 2000\ncatalog rows after its cursor and never computes a filtered total (total_active_count is\nnull). When that window ends before the page fills, the reply has scan_incomplete true, any\nmatches so far, and a next_cursor after the last examined row: keep calling with it until\nhas_more is false. A cursor is bound to the filters that produced it. fields selects item\nkeys (workflow_run_id, status, created_at and updated_at are always included; while a run\nneeds_input its question fields stay); values equal the unprojected reply.\n","inputSchema":{"properties":{"active_only":{"default":false,"title":"Active Only","type":"boolean"},"before":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Before"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"limit":{"default":100,"title":"Limit","type":"integer"},"related_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Related Run Id"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"run_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Run Ids"},"scope":{"anyOf":[{"enum":["all","root","nested"],"type":"string"},{"type":"null"}],"default":null,"title":"Scope"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"status":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Status"},"title_contains":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Title Contains"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow Id"}},"title":"list_workflow_run_pageArguments","type":"object"},"name":"list_workflow_run_page","outputSchema":{"additionalProperties":true,"title":"list_workflow_run_pageDictOutput","type":"object"}},{"description":"Provider usage-limit hits and blocking recoveries of workflow runs, from persisted run evidence.\n\nRead-only: nothing is retried, switched or continued. Evidence is only an attempt's\nfailure_diagnostic with category usage_limit (headless and Codex-native attempts alike) and the\nrun's orchestrator or worker usage-limit recovery checkpoint; node results and prose are never\nread. Direct callers read every run; a workflow orchestrator reads its own run and descendants\nverified through persisted invocation links; workers and builders are refused.\n\ncurrent lists runs blocked on a usage-limit recovery (at most 100), reported on the owning run\neven while its root is running. latest is the newest hit per (backend, requested_model,\nobserved_model) among the newest 500 hits matching the window bound: the first of\nroot_workflow_run_id (not supported for managed callers), workflow_id and repo that is set, plus the since (inclusive) and before\n(exclusive) ISO8601 range with timezone; the other filters apply inside that window and there is no\npagination. At most 50 keys are returned. current_only reports only current. Each hit carries\nroot_workflow_run_id, workflow_run_id, node_id, execution_id, attempt, task_id, transport_task_id,\nobserved_at (when the attempt settled; observed_at_source names the field), diagnostic, reset\n{raw, at, state} (a numeric reset is epoch seconds; elapsed does not say the provider is available\nagain), an accepted recovery {accepted, answer} when one answered it, and detail_ref, the\nget_workflow_run_detail arguments for execution:<id>. Each attempt is its own hit: native children\nthat share a transport report it in transport_task_id. unavailable lists up to 20 runs whose\ndocument could not be read. scan.complete is false when a cap was reached, runs are unavailable or\nthe index is still preparing (index_state), so retry while it is preparing.\nSee docs/usage-limits.md.\n","inputSchema":{"properties":{"before":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Before"},"current_only":{"default":false,"title":"Current Only","type":"boolean"},"repo":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Repo"},"root_workflow_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Root Workflow Run Id"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Workflow Id"}},"title":"workflow_limit_hitsArguments","type":"object"},"name":"workflow_limit_hits","outputSchema":{"additionalProperties":true,"title":"workflow_limit_hitsDictOutput","type":"object"}},{"description":"Read a workflow run's execution state and task associations.\n\nChild runs of Run workflow nodes report their parent and root links,\norchestrator mode and session owner, input source, tree settling state and\nper-execution child invocation status. Public controls on a child id are\nrefused with the root run id. Resolved attention reasons are omitted on active runs.\nWorkflow approval read failures appear as bounded approval_summary.read_errors,\nseparately from known pending or uncertain approvals. interaction_state reports qualified\ncaller liveness, advisory human Monitor availability and any persisted handover audit.\nUnknown caller identity never authorizes handover; server death alone is insufficient.\nresumed_at (Unix seconds) appears once the caller has resumed or answered the run.\nfields selects reply keys (workflow_run_id, status, created_at and updated_at are always\nincluded; while the run needs_input its question fields stay). Values equal the unprojected\nreply, which is read first, so derived status and managed-caller summaries are unchanged.\n","inputSchema":{"properties":{"fields":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Fields"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_statusArguments","type":"object"},"name":"get_workflow_status","outputSchema":{"additionalProperties":true,"title":"get_workflow_statusDictOutput","type":"object"}},{"description":"Wait for a workflow run to need attention or finish; read-only and resumable.\n\ntimeout_seconds accepts 0..3600 (default 30; 0 reads once). It is honoured as asked, never\nsilently clamped; out of range is INVALID_PARAMS. Breaking change: values above 300 used to\nbe rejected, and 46..300 were silently held for only 45 seconds. until=\"terminal\" holds until the run stops\nneeding the wait, bounded by a 6 hour server ceiling, and requires timeout_seconds to be\nomitted. Your MCP client's own request deadline still applies. Prefer holds <=50 seconds after\nremote \"device did not respond\" or \"connection closed\" errors; see docs/multi-task-waiting.md.\n\nReturns when the run is completed, failed or cancelled and has finished settling\n(stop_reason terminal), or reaches needs_input, needs_attention or paused (stop_reason\nattention), or the hold ends (timeout, ceiling). If reading the run keeps failing for 3\nrounds the last good snapshot comes back with stop_reason observation_unavailable, as does an\nuntil=\"terminal\" wait on a terminal run that stays settling with its run file unchanged for\n300 seconds. Also\nreturns requested/effective timeout, until, timed_out, elapsed_seconds and polling_guidance.\nApproval read errors alone do not stop the wait for attention; inspect\napproval_summary.read_errors for incomplete sources. Known unanswered requests and\nuncertain approval ownership still stop for attention.\nProgress is sent every 5 seconds, best effort. A wait never changes, resumes or cancels a run.\n","inputSchema":{"properties":{"timeout_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Timeout Seconds"},"until":{"default":"timeout","enum":["timeout","terminal"],"title":"Until","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"wait_for_workflowArguments","type":"object"},"name":"wait_for_workflow","outputSchema":{"additionalProperties":true,"title":"wait_for_workflowDictOutput","type":"object"}},{"description":"Losslessly read executions, decisions, checklist, technical_plan, definition, owner_contracts, builder_draft, generated_definition, question, reason or wait_reason.\n\nowner_contracts contains the pinned per-owner permission plan. Concatenate chunk fields\nthen decode JSON. Cursors bind content, run and view; changed content requires restarting.\nOn-demand detail views: on_demand_nodes (configured owner-scope catalog),\non_demand_calls (chronological reservation/call records), on_demand_state.\nCalls include source scope, checkpoint/origin, timing, result_ref and nullable task_id.\nManaged orchestrators use settled node inspection for executions.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":8000,"title":"Limit","type":"integer"},"view":{"title":"View","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","view"],"title":"get_workflow_run_detailArguments","type":"object"},"name":"get_workflow_run_detail","outputSchema":{"additionalProperties":true,"title":"get_workflow_run_detailDictOutput","type":"object"}},{"description":"Stop scheduling while active steps settle.","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"pause_workflowArguments","type":"object"},"name":"pause_workflow","outputSchema":{"additionalProperties":true,"title":"pause_workflowDictOutput","type":"object"}},{"description":"Resume a caller-owned run with instructions and optional explicit attempt grants.\n\nPreserve spaces and word boundaries in instructions rather than compressing natural\nprose; the caller's source text is retained unchanged before workflow input assembly.\n\nFor non-question continuation, pass the originally displayed attention_checkpoint_id.\nA stale checkpoint refuses the answer and grants; refresh before submitting again.\nOmission retains legacy caller behavior. Do not combine it with decision_id.\n\nFor needs_input, supply its current input_decision_id as decision_id and a nonempty answer\nin instructions. Stale answers and live/uncertain dispatches are refused. When the root\nrun carries a forwarded question from a Run workflow descendant, the answer is applied to\nthe attention source run; additional_attempts go to that source and grant no fresh child.\nFor an orchestrator usage-limit checkpoint, instructions must exactly match an offered\nrecovery answer (fallback, fallback:2, and so on, or retry_current); this approves a Fresh\nconfigured recovery candidate for the preserved decision. Other prose does not approve replacement dispatch.\nUse pause_workflow to wait or cancel_workflow to stop. A paused quota checkpoint retains\nits decision_id and still requires the exact offered recovery answer (fallback or retry_current) on resume.\nAn accepted resume or answer sets the run's resumed_at; an answer routed through the root stamps the root.\nWorker usage-limit recovery is selected explicitly by the\norchestrator using an issued retry continuation and candidate_id, within attempt limits.\nThe orchestrator may instead ask the caller to pause, cancel, or choose a configured\nworker fallback; after the answer it must explicitly select the candidate_id.\nAnswers alone never authorize skipping. Set allow_optional_review_skip=True only to\npermit the orchestrator to skip a current settled optional review with recorded harness\npermission denial, when optional_review_skip_available is true. The core revalidates\neligibility and decision_id; this grants no retry, required-review bypass, or permissions.\nFor a forwarded question, consent applies only to its originating child checkpoint.\nEach accepted answer replaces previous skip consent at that checkpoint: the default\nFalse revokes it, while True renews it with the latest answer as its reason.\n","inputSchema":{"properties":{"additional_attempts":{"default":0,"title":"Additional Attempts","type":"integer"},"allow_optional_review_skip":{"default":false,"title":"Allow Optional Review Skip","type":"boolean"},"attention_checkpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Attention Checkpoint Id"},"decision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Decision Id"},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Instructions"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"resume_workflowArguments","type":"object"},"name":"resume_workflow","outputSchema":{"additionalProperties":true,"title":"resume_workflowDictOutput","type":"object"}},{"description":"Read an immutable input explicitly assigned to your active worker activation.\n\nOnly verified managed workers may use this tool. Inputs are authorized by the persisted\nactivation allowlist and content digest, including linked child inputs with a verified\nparent chain. Live, uncertain, unrelated, revoked, or changed inputs are refused.\nConcatenate lossless JSON chunk fields until next_cursor is null, then decode JSON.\nReturn next_cursor as cursor; limit counts characters (default 16000, maximum 32000).\nworkflow_run_id is your own run; source_run_id optionally names a linked child run.\nThis does not grant general workflow inspection authority.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"execution_id":{"title":"Execution Id","type":"string"},"limit":{"default":16000,"title":"Limit","type":"integer"},"source_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Source Run Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","execution_id"],"title":"read_workflow_assigned_inputArguments","type":"object"},"name":"read_workflow_assigned_input","outputSchema":{"additionalProperties":true,"title":"read_workflow_assigned_inputDictOutput","type":"object"}},{"description":"Inspect any fully settled node execution in your workflow, including older executions.\n\nResult view returns lossless JSON text chunks: concatenate chunk fields until next_cursor\nis null, then decode JSON. Pass next_cursor back as cursor. Default payload contains the\nnormalized node_result, full raw_output, permission_denials, and optional_skip consent\nmetadata when present. Selecting task_id reads a specific fallback\nattempt. Activity uses normalized events with before_seq/after_seq. Result limit is\ncharacters (default 16000, max 32000); activity limit is events (default 50, max 200).\nNo live or uncertain execution can be inspected. Orchestrator inspect decisions may name\na linked child run through workflow_run_id, authorized only by a verified parent chain.\n","inputSchema":{"properties":{"after_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"After Seq"},"before_seq":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Before Seq"},"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"execution_id":{"title":"Execution Id","type":"string"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Limit"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"view":{"default":"result","title":"View","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","execution_id"],"title":"inspect_workflow_nodeArguments","type":"object"},"name":"inspect_workflow_node","outputSchema":{"additionalProperties":true,"title":"inspect_workflow_nodeDictOutput","type":"object"}},{"description":"Explicitly recover a failed settled run or a root with a confirmed-dead scheduler.\n\nSupply a reason and retain completed work. Interrupted scheduler recovery preserves\nexisting attempts and decision budgets; uncertain execution ownership blocks recovery.\nAccepted recovery sets the run's resumed_at. Pass the originally displayed\nattention_checkpoint_id to bind failed-run or scheduler recovery to its current\npersisted identity. Stale requests refuse without applying the reason or grants.\n\nPreserve spaces and word boundaries in reason rather than compressing natural\nprose; the caller's source text is retained unchanged before workflow input assembly.\n","inputSchema":{"properties":{"additional_attempts":{"default":0,"title":"Additional Attempts","type":"integer"},"attention_checkpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Attention Checkpoint Id"},"reason":{"title":"Reason","type":"string"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id","reason"],"title":"recover_workflowArguments","type":"object"},"name":"recover_workflow","outputSchema":{"additionalProperties":true,"title":"recover_workflowDictOutput","type":"object"}},{"description":"Stop root scheduling and cascade cancellation to associated tasks and children.\n\nA cancellation request returns ``cancelling`` until settlement is observed;\nunresolved dispatches or cancellation transport errors return ``needs_attention``.\nChild runs must be controlled through their root workflow run.\nHuman Monitor cancellation uses the local CLI verified-human boundary; it does\nnot transfer the original caller's answer, retry, or continuation ownership.\n","inputSchema":{"properties":{"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"cancel_workflowArguments","type":"object"},"name":"cancel_workflow","outputSchema":{"additionalProperties":true,"title":"cancel_workflowDictOutput","type":"object"}},{"description":"Register an existing regular-file metadata reference for the verified calling task.\n\nNo owner parameter is accepted. Relative paths use the recorded repository; only repository,\nallocated own scratch (including a granted shared chain or group folder), and revalidated saved grants are accepted. A standalone task, or a\nrunning workflow node, orchestrator turn or native-subagent controller, may register; its\nreference is bound to that workflow execution. Builders and inherited descendants are refused.\nA native subagent has no channel of its own: what it registers lands on its controller.\nNotes are preserved verbatim. Kinds: screenshot, log, report, other. Paths and notes are\nat most 4096 UTF-8 bytes; at most 100 references per task and a 1 MiB manifest.\nA reference establishes no content validity, task success, access, copy, or publication\nauthority. No content is read, copied, hashed, previewed, or published.\nCaller indexing is bounded; retry a catalog-preparation error to advance cold history.\n","inputSchema":{"properties":{"kind":{"title":"Kind","type":"string"},"note":{"default":"","title":"Note","type":"string"},"path":{"title":"Path","type":"string"}},"required":["path","kind"],"title":"register_artifactArguments","type":"object"},"name":"register_artifact","outputSchema":{"additionalProperties":true,"title":"register_artifactDictOutput","type":"object"}},{"description":"Page at most 50 artifact references with current stat observations, not content verification.\n\nVerified human callers can inspect a known standalone or workflow-bound task; task callers can\ninspect only self. Workflow-bound items carry a `workflow` binding. Builders and inherited\ndescendants are refused (use get_workflow_artifacts for run-level reads). Cursors are task-bound and reject manifest\nchanges. Availability is available/deleted/changed/unavailable at observed_at; available does\nnot establish unchanged contents. Missing legacy manifests are empty; corrupt ones unavailable.\nCaller indexing is bounded; retry a catalog-preparation error to advance cold history.\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"limit":{"default":20,"title":"Limit","type":"integer"},"task_id":{"title":"Task Id","type":"string"}},"required":["task_id"],"title":"get_task_artifactsArguments","type":"object"},"name":"get_task_artifacts","outputSchema":{"additionalProperties":true,"title":"get_task_artifactsDictOutput","type":"object"}},{"description":"Page artifact references registered by the attempts of a workflow run and its linked child runs.\n\nReferences are metadata only (path, kind, note, a stat observation); nothing is read, copied or\nvalidated. Each item carries `workflow` (run, node, execution, role, attribution) and current\n`availability`. `execution_id` selects one node execution; a native subagent has no channel of\nits own, so references its controller registered appear under that execution with\n`attribution: native_transport`. `owners` lists only owners whose references could not be read\n(`unavailable`, `record_removed`, `run_unavailable`). `state: unavailable` with `reason`\n`catalog_preparing` or `catalog_stale` means retry; `tree_bound_exceeded` (over 64 runs) is final.\nPage with `next_cursor` (positional, so owners appended behind it appear only on a new pass).\nAuthority: a verified human reads any run; a delegation orchestrator reads its own run and\nlinked descendants; workers, native transports, builders and standalone task callers are refused\n(a worker reads its own task with get_task_artifacts).\n","inputSchema":{"properties":{"cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cursor"},"execution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Execution Id"},"limit":{"default":20,"title":"Limit","type":"integer"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Task Id"},"workflow_run_id":{"title":"Workflow Run Id","type":"string"}},"required":["workflow_run_id"],"title":"get_workflow_artifactsArguments","type":"object"},"name":"get_workflow_artifacts","outputSchema":{"additionalProperties":true,"title":"get_workflow_artifactsDictOutput","type":"object"}},{"description":"Acquire a task-owned phase lease around heavy commands. Returns queued immediately when\nblocked; retry the same name every two seconds to observe a grant. Queue budget is 0..21600\nseconds, never a held-lease timeout. Release lease_id on every exit, including queued exits.\nPhase slots require human enable and a verified task caller; they never borrow ancestor holds.\nDisabled layout returns error data.code phase_slots_not_enabled; other refusals remain distinct.\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"wait_seconds":{"default":300,"title":"Wait Seconds","type":"integer"}},"required":["name"],"title":"acquire_slotArguments","type":"object"},"name":"acquire_slot","outputSchema":{"additionalProperties":true,"title":"acquire_slotDictOutput","type":"object"}},{"description":"Release this execution's lease or cancel its queued request. Cleanup remains capacity\nconsuming until successful; failed/uncertain cleanup requires human inspection and resolve.\nStop all owned heavy descendants before release. Client interruption alone never releases.\nDisabled layout returns error data.code phase_slots_not_enabled; other refusals remain distinct.\n","inputSchema":{"properties":{"lease_id":{"title":"Lease Id","type":"string"}},"required":["lease_id"],"title":"release_slotArguments","type":"object"},"name":"release_slot","outputSchema":{"additionalProperties":true,"title":"release_slotDictOutput","type":"object"}},{"description":"Read bounded phase holders, queue positions, capacity, cleanup blockers and timestamp events.\nThis read never performs cleanup or changes the ledger.\nDisabled layout returns error data.code phase_slots_not_enabled; other refusals remain distinct.\n","inputSchema":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Name"}},"title":"slot_statusArguments","type":"object"},"name":"slot_status","outputSchema":{"additionalProperties":true,"title":"slot_statusDictOutput","type":"object"}}]}}}
