[
  {
    "name": "kanban_show",
    "description": "Read a task's full state — title, body, assignee, parent task handoffs, your prior attempts on this task if any, comments, and recent events. Use this to (re)orient yourself before starting work, especially on retries. The response includes a pre-formatted ``worker_context`` string suitable for inclusion verbatim in your reasoning.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_list",
    "description": "List Kanban task summaries so an orchestrator profile can discover work to route. Supports the same core filters as the CLI: assignee, status, tenant, include_archived, and limit. Returns compact rows with ids, title, status, assignee, priority, parent/child ids, and counts. Bounded to 50 rows by default, 200 max, with truncation metadata. Also recomputes ready tasks before listing, matching the CLI. Orchestrator-only — dispatcher-spawned task workers never see this tool.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "assignee": {
          "type": "string",
          "description": "Optional assignee/profile filter."
        },
        "status": {
          "type": "string",
          "enum": [
            "triage",
            "todo",
            "ready",
            "running",
            "blocked",
            "done",
            "archived"
          ],
          "description": "Optional task status filter."
        },
        "tenant": {
          "type": "string",
          "description": "Optional tenant/project namespace filter."
        },
        "include_archived": {
          "type": "boolean",
          "description": "Include cancelled and archived cards and their tasks. Defaults to false."
        },
        "include_subtasks": {
          "type": "boolean",
          "description": "Include subtasks as separate rows. Defaults to false; use kanban_show to read a card's tasks inside it."
        },
        "limit": {
          "type": "integer",
          "description": "Optional maximum rows to return (default 50, max 200)."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_complete",
    "description": "Complete through the home's declared workflow permissions with a structured handoff. Homes may reserve terminal closure to the recorded creator or manager; use kanban_request_state when you need their decision. Prefer ``summary`` for a human-readable 1-3 sentence description of what you did; put machine-readable facts in ``metadata`` (changed_files, tests_run, decisions, findings, etc). At least one of ``summary`` or ``result`` is required. If you created new tasks via ``kanban_create`` during this run, list their ids in ``created_cards`` — the kernel verifies them so phantom references are caught before they leak into downstream automation. If you produced deliverable files (charts, PDFs, spreadsheets, generated images), list their absolute paths in ``artifacts`` — the gateway notifier will upload them as native attachments to the human who subscribed to the task, so the deliverable lands in their chat alongside the summary instead of being a path they have to fetch by hand.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "summary": {
          "type": "string",
          "description": "Human-readable handoff, 1-3 sentences. Appears in Run History on the dashboard and in downstream workers' context."
        },
        "metadata": {
          "type": "object",
          "description": "Free-form dict of structured facts about this attempt — {\"changed_files\": [...], \"tests_run\": 12, \"findings\": [...]}. Surfaced to downstream workers alongside ``summary``."
        },
        "result": {
          "type": "string",
          "description": "Short result log line (legacy field, maps to task.result). Use ``summary`` instead when possible; this exists for compatibility with callers that still set --result on the CLI."
        },
        "created_cards": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional structured manifest of task ids you created via ``kanban_create`` during this run. The kernel verifies each id exists and was created by this worker's profile; any phantom id blocks the completion with an error listing what went wrong (auditable in the task's events). Only list ids you got back from a successful ``kanban_create`` call — do not invent or remember ids from prose. Omit the field if you did not create any cards."
        },
        "artifacts": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional list of absolute paths to deliverable files you produced during this run — generated charts, PDFs, spreadsheets, images, archives. Examples: [\"/tmp/q3-revenue.png\", \"/tmp/report.pdf\"]. The gateway notifier uploads each path as a native attachment to the subscribed chat (images embed inline, everything else uploads as a file) so the deliverable lands with the completion notification. Skip intermediate scratch files and references that are not the deliverable. The path must exist on disk at completion. Files inside a managed scratch workspace are copied to durable task attachments before cleanup; a missing declared scratch artifact keeps the task in-flight so you can fix the path and retry."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        },
        "commit": {
          "type": "string",
          "description": "Exact pushed source head for a subtask or independently reviewed arc."
        },
        "branch": {
          "type": "string",
          "description": "Pushed worktree branch for source completion."
        },
        "reviewed_sha": {
          "type": "string",
          "description": "The full PR head SHA this reviewer ran, matching the recorded request."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_block",
    "description": "Add a typed dependency only if the home permits your role to block. Otherwise use kanban_request_state with state block, the reason and on or waiting_on; that request leaves the card active. Stop work on this task until one thing ends the wait, and name it: `on`, the task it waits on (it goes to todo and resumes when that task closes), or `waiting_on`, the id of the message you sent whose answer it waits for (it resumes when an answer to that message lands in your mailbox). An outside event is a task on the card of whoever makes it happen or watches for it. `reason` is shown on the board. The same block twice goes to triage.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "reason": {
          "type": "string",
          "description": "What you need answered or what stopped you, in one or two sentences. Don't paste the whole conversation; the human has the board and can ask follow-ups via comments."
        },
        "on": {
          "type": "string",
          "description": "The task id this waits on."
        },
        "waiting_on": {
          "type": "string",
          "description": "The id of the message (m-… or a-…) whose answer this waits for."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_request_review",
    "description": "Request independent review of one ready PR at its exact pushed head while coding and other tasks continue. A request during review queues after the current review. Explicit supersedes corrects one named queued request after verifying its replacement, preserving its receipt and the active review. Missing source details come from recorded board facts when available. Only the board starts the final arc review.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "summary": {
          "type": "string",
          "description": "What was implemented and how it was verified, in one or two sentences — shown to the reviewer. Don't paste the whole diff; the reviewer has the board and the PR."
        },
        "reviewer": {
          "type": "string",
          "description": "Optional reviewer profile. When provided, the task is reassigned to that profile before review dispatch."
        },
        "supersedes": {
          "type": "integer",
          "minimum": 1,
          "description": "Optional pending review_queued event ID on this card to supersede with the supplied ready PR/head. Fresh admission must succeed before only that request is settled; the active review stays intact. The replacement keeps the original FIFO position."
        },
        "metadata": {
          "type": "object",
          "description": "Optional structured handoff facts for the reviewer, such as changed_files, tests_run, commit, or decisions.",
          "additionalProperties": true
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        },
        "commit": {
          "type": "string",
          "description": "Exact pushed worktree branch head for independent review."
        },
        "pr": {
          "type": [
            "string",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "The ready PR URL to review. Defaults to the sole recorded PR when omitted."
        },
        "pr_head": {
          "type": [
            "string",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "The full 40-character pushed head SHA of each PR, in the same order as pr."
        },
        "plan": {
          "type": "boolean",
          "description": "Ask the plan review of a big arc's proposed ADR (its PR in pr, its pushed head in pr_head) before any code. Without it, one PR named with its head is that PR's review."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_request_changes",
    "description": "Reviewer verdict: return the current review run to the original implementer with concrete required changes. This closes the review run, reapplies parent dependency gating, and requeues the task without using block-loop accounting. Only use from a task claimed from the review column; use kanban_request_state when a manager must decide an external blocker.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "reason": {
          "type": "string",
          "description": "Specific, actionable changes the implementer must make before requesting another review."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        },
        "findings": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Each finding, filed as a task on the arc before the card returns; an arc with no open task is refused."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_heartbeat",
    "description": "Record progress and optionally a waiting deadline for this run. A deadline changes no card lane and ends no run; idle supervision honors it until expiry.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "note": {
          "type": "string",
          "description": "Optional short note describing current progress. Shown in the event log."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        },
        "until": {
          "type": [
            "string",
            "number"
          ],
          "description": "Optional waiting deadline: an ISO time, a duration such as 30m, or epoch seconds."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_comment",
    "description": "Append a comment to a task's thread. Use for durable notes that should outlive this run (questions for the next worker, partial findings, rationale). Ephemeral reasoning doesn't belong here — use your normal response instead.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. Required (may be your own task or another's — comment threads are per-task)."
        },
        "body": {
          "type": "string",
          "description": "Markdown-supported comment body."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        },
        "pr": {
          "type": "string",
          "description": "Exact GitHub PR URL for a source or PR evidence declaration."
        },
        "pr_head": {
          "type": "string",
          "pattern": "^[a-f0-9]{40}$"
        },
        "release_target": {
          "type": "string",
          "description": "Intended exact target for a release-only disposition."
        },
        "pr_disposition": {
          "type": "string",
          "enum": [
            "merge",
            "release-only"
          ],
          "description": "Implementer/manager exact-head disposition. Default merge. Does not grant release permission."
        },
        "reason": {
          "type": "string"
        },
        "release_readback": {
          "type": "object",
          "properties": {
            "target": {
              "type": "string"
            },
            "artifact": {
              "type": "string",
              "pattern": "^[a-f0-9]{40}$"
            },
            "evidence": {
              "type": "string"
            },
            "attest": {
              "type": "boolean",
              "description": "Explicit manager attestation for a target without a machine verifier."
            }
          },
          "required": [
            "target",
            "artifact",
            "evidence"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "task_id",
        "body"
      ]
    }
  },
  {
    "name": "kanban_attach",
    "description": "Attach a file to a task by passing its bytes inline (base64). Use for genuine file artifacts the next worker or a human should be able to download — generated reports, images, exports. The file is stored as a real attachment (not a comment link) under the task's attachments dir, capped at 25 MB. Prefer kanban_attach_url when you only have a URL.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "filename": {
          "type": "string",
          "description": "File name to store it under (e.g. 'report.pdf'). Directory components are stripped; only the leaf is kept."
        },
        "content_base64": {
          "type": "string",
          "description": "The file contents, base64-encoded. Max 25 MB decoded."
        },
        "content_type": {
          "type": "string",
          "description": "Optional MIME type (e.g. 'application/pdf')."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": [
        "filename",
        "content_base64"
      ]
    }
  },
  {
    "name": "kanban_attach_url",
    "description": "Attach a file to a task by URL — Hermes downloads it server-side and stores it as a real attachment (capped at 25 MB). Use when you have a link rather than the bytes. Only http/https URLs are accepted.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "url": {
          "type": "string",
          "description": "http(s) URL to fetch and store."
        },
        "filename": {
          "type": "string",
          "description": "Optional name to store it under. Defaults to the URL path's leaf component."
        },
        "content_type": {
          "type": "string",
          "description": "Optional MIME type override. Defaults to the Content-Type the server returns."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": [
        "url"
      ]
    }
  },
  {
    "name": "kanban_attachments",
    "description": "List a task's attachment metadata. Supply attachment_id to read its bytes through the board as a bounded base64 range; no host filesystem access is needed. Carry the first response version on subsequent ranges.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Task id. If omitted, defaults to HERMES_KANBAN_TASK from the env (the task the dispatcher spawned you to work on)."
        },
        "attachment_id": {
          "type": "integer",
          "minimum": 1,
          "description": "Read this attachment of the named task; omit to list metadata."
        },
        "offset": {
          "type": "integer",
          "minimum": 0,
          "description": "Byte offset, default 0. A nonzero offset requires version."
        },
        "length": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1048576,
          "description": "Maximum bytes in this range, default 1048576."
        },
        "version": {
          "type": "string",
          "description": "The first range's filesystem metadata version; changed attachments refuse."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_create",
    "description": "Create a new kanban task, optionally as a child of the current one (pass the current task id in ``parents``). Used by orchestrator workers to fan out — decompose work into child tasks with specific assignees, link them into a pipeline, then complete your own task. The dispatcher picks up the new tasks on its next tick and spawns the assigned profiles.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "Short task title (required)."
        },
        "readable_id": {
          "type": "string",
          "description": "The card's readable id (required): a few lowercase words joined by hyphens naming its outcome (e.g. 'voice-calls'), at most 32 characters, unique on the board. It names the card's branch, worktree folder, sessions and agents."
        },
        "assignee": {
          "type": "string",
          "description": "Profile name that should execute this task (e.g. 'researcher-a', 'reviewer', 'writer'). Required — tasks without an assignee are never dispatched."
        },
        "body": {
          "type": "string",
          "description": "Opening post: full spec, acceptance criteria, links. The assigned worker reads this as part of its context."
        },
        "parents": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Parent task ids. The new task stays in 'todo' until every parent reaches 'done'; then it auto-promotes to 'ready'. Typical fan-in: list all the researcher task ids when creating a synthesizer task."
        },
        "tenant": {
          "type": "string",
          "description": "Optional namespace for multi-project isolation. Defaults to HERMES_TENANT env if set."
        },
        "priority": {
          "type": "integer",
          "description": "Dispatcher tiebreaker. Higher = picked sooner when multiple ready tasks share an assignee."
        },
        "workspace_kind": {
          "type": "string",
          "enum": [
            "scratch",
            "dir",
            "worktree"
          ],
          "description": "Workspace flavor: 'scratch' (fresh tmp dir, default), 'dir' (shared directory, requires absolute workspace_path), 'worktree' (git worktree)."
        },
        "workspace_path": {
          "type": "string",
          "description": "Absolute path for 'dir' or 'worktree' workspace. Relative paths are rejected at dispatch."
        },
        "project": {
          "type": "string",
          "description": "Optional project id or slug to link the task to. When set, the task becomes a git worktree under the project's primary repo with a deterministic branch (project slug + readable id), instead of a random branch."
        },
        "triage": {
          "type": "boolean",
          "description": "If true, task lands in 'triage' instead of 'todo' — a specifier profile is expected to flesh out the body before work starts."
        },
        "idempotency_key": {
          "type": "string",
          "description": "If a non-archived task with this key already exists, return that task's id instead of creating a duplicate. Useful for retry-safe automation."
        },
        "max_runtime_seconds": {
          "type": "integer",
          "description": "Per-task runtime cap. When exceeded, the dispatcher SIGTERMs the worker and re-queues the task with outcome='timed_out'."
        },
        "initial_status": {
          "type": "string",
          "enum": [
            "running",
            "blocked"
          ],
          "description": "Initial card status. Use 'blocked' for tasks that require immediate human ops (R3 gate) to skip the brief running-to-blocked transition. Defaults to 'running', which preserves the usual dispatch path."
        },
        "skills": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Skill names to force-load into the dispatched worker. The kanban lifecycle is already injected automatically; use this to pin a task to a specialist context — e.g. ['translation'] for a translation task, ['github-code-review'] for a reviewer task. The names must match skills installed on the assignee's profile."
        },
        "goal_mode": {
          "type": "boolean",
          "description": "Run the dispatched worker in a goal loop. When true, after each turn an auxiliary judge checks the worker's response against this card's title/body; if the work isn't done and budget remains, the worker keeps going in the same session until the judge agrees it's complete (or the goal-turn budget is exhausted, which blocks the task for human review). Use this for open-ended cards where one shot rarely finishes the work. Defaults to false (classic single-shot worker)."
        },
        "goal_max_turns": {
          "type": "integer",
          "description": "Turn budget for goal_mode workers. Caps how many continuation turns the worker may take before the task is blocked for review. Ignored unless goal_mode is true. Defaults to the goal-engine default (20)."
        },
        "model": {
          "type": "string",
          "description": "Pin the dispatched worker to this model instead of the assignee profile's configured model. Use the exact model name the target provider expects. Omit to use the profile default."
        },
        "provider": {
          "type": "string",
          "description": "Provider the 'model' belongs to (e.g. 'openrouter', 'anthropic', 'nous'). Set this whenever the model is not from the assignee profile's configured provider — a model name alone is resolved against the profile's provider and will fail if it belongs to a different one. Requires 'model'."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": [
        "title",
        "readable_id",
        "assignee"
      ]
    }
  },
  {
    "name": "kanban_unblock",
    "description": "Lift a named blocker or all current blockers when on is omitted, through the home workflow. A missing reason records none given. The worker may use this for its own card when its workflow permits it.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string",
          "description": "Blocked task id to move to ready or parent-gated todo."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        },
        "on": {
          "type": "string",
          "description": "Optional blocker id; omitted means all current blockers."
        },
        "reason": {
          "type": "string",
          "description": "What arrived; omitted records none given."
        }
      },
      "required": []
    }
  },
  {
    "name": "kanban_link",
    "description": "Add a parent→child dependency edge after both tasks already exist. The child won't promote to 'ready' until all parents are 'done'. Cycles and self-links are rejected.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "parent_id": {
          "type": "string",
          "description": "Parent task id."
        },
        "child_id": {
          "type": "string",
          "description": "Child task id."
        },
        "board": {
          "type": "string",
          "description": "Kanban board slug to target. When omitted, the call resolves the active board the usual way: HERMES_KANBAN_DB env → HERMES_KANBAN_BOARD env → the 'current' symlink under the kanban home → 'default'. Pass an explicit slug only when the caller (e.g. a Telegram routing layer) needs to override the env-pinned active board for this one call."
        }
      },
      "required": [
        "parent_id",
        "child_id"
      ]
    }
  },
  {
    "name": "kanban_request_state",
    "description": "Request a manager decision on block, pause, done or cancelled for one or several task_ids through the home workflow. Nearby requests from the same session share one retained mail. Includes the home's rules and leaves card/run state unchanged.",
    "inputSchema": {
      "type": "object",
      "properties": {
        "task_id": {
          "type": "string"
        },
        "task_ids": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1,
          "description": "Cards whose state is requested together; each must be in your permitted scope."
        },
        "state": {
          "type": "string",
          "enum": [
            "block",
            "pause",
            "done",
            "cancelled"
          ]
        },
        "reason": {
          "type": "string"
        },
        "on": {
          "type": "string"
        },
        "waiting_on": {
          "type": "string"
        },
        "evidence": {
          "type": "string"
        },
        "commit": {
          "type": "string",
          "description": "Pushed branch head for a source verdict or subtask, or merged commit for final arc completion."
        },
        "branch": {
          "type": "string",
          "description": "The pushed worktree branch the reviewer inspected."
        },
        "reviewed_sha": {
          "type": [
            "string",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "Every requested PR head this independent reviewer inspected (full SHAs)."
        },
        "pr": {
          "type": [
            "string",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "PR URLs, optional when using the recorded review candidate."
        },
        "pr_head": {
          "type": [
            "string",
            "array"
          ],
          "items": {
            "type": "string"
          },
          "description": "Full PR head SHAs; reviewers can use reviewed_sha instead."
        }
      },
      "required": [
        "state"
      ]
    }
  }
]
