{
 "schema_version": 1,
 "engine_version": "0.9.0",
 "program": "tempergraph",
 "description": "Tempered rails for AI workflows",
 "groups": [
  "Operate runs",
  "Inspect and improve workflows",
  "Author and upgrade workflows",
  "Install, register and place runs"
 ],
 "options": [
  {
   "name": "--state-root",
   "flags": [
    "--state-root"
   ],
   "positional": false,
   "help": "outside a git repository: the state root to use; ignored inside one",
   "metavar": "DIR",
   "choices": null,
   "required": false,
   "repeatable": false,
   "takes_value": true,
   "nargs": null
  }
 ],
 "verbs": [
  {
   "group": "Operate runs",
   "name": "run",
   "help": "resolve, preflight and start a workflow",
   "usage": "tempergraph run [-h] [--check] [--task-id TASK_ID] [--input K=V] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [--schedule FIRE_ID] [--json] [--carry] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--pause-before UNIT] [--dry-run] [--no-dry-run] [--alias ALIAS] [--label LABEL] [--worktree-root WORKTREE_ROOT] [--worktree-base WORKTREE_BASE] [--worktree-cleanup WORKTREE_CLEANUP] [--workspace {auto,worktree,in_place} | --worktree | --in-place] workflow [request ...]",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow to run, by name",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "request",
     "flags": [],
     "positional": true,
     "help": "the request: text, a tracker key or a file path, as the workflow's input kind says",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": "*"
    },
    {
     "name": "--check",
     "flags": [
      "--check"
     ],
     "positional": false,
     "help": "resolve and preflight only; nothing is created",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--task-id",
     "flags": [
      "--task-id"
     ],
     "positional": false,
     "help": "the task id of the thread, 1 to 64 letters, digits, `.`, `_` or `-`; by default it is derived from the request",
     "metavar": "TASK_ID",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--input",
     "flags": [
      "--input"
     ],
     "positional": false,
     "help": "a workflow input; repeatable",
     "metavar": "K=V",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--executor",
     "flags": [
      "--executor"
     ],
     "positional": false,
     "help": "the executor of every step (sets steps.executor)",
     "metavar": "EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-executor",
     "flags": [
      "--judge-executor"
     ],
     "positional": false,
     "help": "the executor of every judge (sets judges.executor)",
     "metavar": "JUDGE_EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--model",
     "flags": [
      "--model"
     ],
     "positional": false,
     "help": "the model of every step, as an alias such as sonnet or opus (sets steps.model)",
     "metavar": "MODEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-model",
     "flags": [
      "--judge-model"
     ],
     "positional": false,
     "help": "the model of every judge, as an alias (sets judges.model)",
     "metavar": "JUDGE_MODEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--timeout",
     "flags": [
      "--timeout"
     ],
     "positional": false,
     "help": "seconds a step session may run before it is stopped (sets steps.timeout_s)",
     "metavar": "TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-timeout",
     "flags": [
      "--judge-timeout"
     ],
     "positional": false,
     "help": "seconds a judge session may run before it is stopped (sets judges.timeout_s)",
     "metavar": "JUDGE_TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--idle",
     "flags": [
      "--idle"
     ],
     "positional": false,
     "help": "seconds a step session may stay silent before it is stopped (sets steps.idle_s)",
     "metavar": "IDLE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--run-cost-cap",
     "flags": [
      "--run-cost-cap"
     ],
     "positional": false,
     "help": "the most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)",
     "metavar": "RUN_COST_CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--daily-cap",
     "flags": [
      "--daily-cap"
     ],
     "positional": false,
     "help": "the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)",
     "metavar": "DAILY_CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--auto-reopen",
     "flags": [
      "--auto-reopen"
     ],
     "positional": false,
     "help": "re-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)",
     "metavar": "AUTO_REOPEN",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--audit-rate",
     "flags": [
      "--audit-rate"
     ],
     "positional": false,
     "help": "the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)",
     "metavar": "AUDIT_RATE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--audit-executor",
     "flags": [
      "--audit-executor"
     ],
     "positional": false,
     "help": "the executor of the audit judge (sets run.audit_executor)",
     "metavar": "AUDIT_EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step-executor",
     "flags": [
      "--step-executor"
     ],
     "positional": false,
     "help": "the executor of one step; repeatable",
     "metavar": "STEP=NAME",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step-model",
     "flags": [
      "--step-model"
     ],
     "positional": false,
     "help": "the model of one step; repeatable",
     "metavar": "STEP=ALIAS",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--approve",
     "flags": [
      "--approve"
     ],
     "positional": false,
     "help": "add a person's approval pause at this step's gate; repeatable",
     "metavar": "STEP",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--grant",
     "flags": [
      "--grant"
     ],
     "positional": false,
     "help": "give a unit extra tool capabilities for this run; repeatable",
     "metavar": "UNIT=CAPABILITY[,…]",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--allow-command",
     "flags": [
      "--allow-command"
     ],
     "positional": false,
     "help": "let a unit run shell commands that start with this prefix; repeatable",
     "metavar": "UNIT=PREFIX",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--enforce-tools",
     "flags": [
      "--enforce-tools"
     ],
     "positional": false,
     "help": "limit each step to the tools it declares; a step on an executor that cannot enforce them is refused",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--strict-permissions",
     "flags": [
      "--strict-permissions"
     ],
     "positional": false,
     "help": "enforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--as-agent",
     "flags": [
      "--as-agent"
     ],
     "positional": false,
     "help": "the same as --caller agent",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller-app",
     "flags": [
      "--caller-app"
     ],
     "positional": false,
     "help": "the name of the calling agent or pipeline application, recorded with the call",
     "metavar": "CALLER_APP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--schedule",
     "flags": [
      "--schedule"
     ],
     "positional": false,
     "help": "reserved to the schedule tick: needs its fire token",
     "metavar": "FIRE_ID",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the outcome as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--carry",
     "flags": [
      "--carry"
     ],
     "positional": false,
     "help": "keep this thread's state on its own git branch so another machine can pick it up",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--set",
     "flags": [
      "--set"
     ],
     "positional": false,
     "help": "set one run setting for this thread; repeatable (`tempergraph config show` lists the keys)",
     "metavar": "KEY=VALUE",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--settings",
     "flags": [
      "--settings"
     ],
     "positional": false,
     "help": "a JSON map of keys to values, recorded as flags",
     "metavar": "FILE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--profile",
     "flags": [
      "--profile"
     ],
     "positional": false,
     "help": "apply a named settings profile from the settings files; repeatable",
     "metavar": "PROFILE",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--pause-before",
     "flags": [
      "--pause-before"
     ],
     "positional": false,
     "help": "pause before this unit starts; repeatable",
     "metavar": "UNIT",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--dry-run",
     "flags": [
      "--dry-run"
     ],
     "positional": false,
     "help": "self-improvement files nothing; every step runs (the flag run.loop_dry_run true)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--no-dry-run",
     "flags": [
      "--no-dry-run"
     ],
     "positional": false,
     "help": "self-improvement files; ends a dry run (the flag run.loop_dry_run false)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--alias",
     "flags": [
      "--alias"
     ],
     "positional": false,
     "help": "a short name for the thread, usable wherever a thread is named",
     "metavar": "ALIAS",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--label",
     "flags": [
      "--label"
     ],
     "positional": false,
     "help": "a free-text label shown with the thread",
     "metavar": "LABEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--worktree-root",
     "flags": [
      "--worktree-root"
     ],
     "positional": false,
     "help": "where run worktrees are made: sibling, in_repo or path:<absolute> (sets run.worktree.root)",
     "metavar": "WORKTREE_ROOT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--worktree-base",
     "flags": [
      "--worktree-base"
     ],
     "positional": false,
     "help": "what a run worktree starts from: head, default_branch or ref:<name> (sets run.worktree.base)",
     "metavar": "WORKTREE_BASE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--worktree-cleanup",
     "flags": [
      "--worktree-cleanup"
     ],
     "positional": false,
     "help": "never, or on_finish to remove the run worktree when the run finishes (sets run.worktree.cleanup)",
     "metavar": "WORKTREE_CLEANUP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--workspace",
     "flags": [
      "--workspace"
     ],
     "positional": false,
     "help": "where the run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout)",
     "metavar": "WORKSPACE",
     "choices": [
      "auto",
      "worktree",
      "in_place"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--worktree",
     "flags": [
      "--worktree"
     ],
     "positional": false,
     "help": "the same as --workspace worktree",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--in-place",
     "flags": [
      "--in-place"
     ],
     "positional": false,
     "help": "the same as --workspace in_place",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "resume",
   "help": "resume a paused, stopped or unfinished thread",
   "usage": "tempergraph resume [-h] [--decision DECISION] [--answers FILE] [--apply-deadline] [--unit UNIT] [--reason REASON] [--unpin] [--escalate] [--feedback FEEDBACK | --feedback-file FEEDBACK_FILE] [--ruling] [--ruling-for UNITS] [--revoke-ruling ID] [--accept-external] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [--schedule FIRE_ID] [--json] [--carry] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--unset KEY] [--reload-settings] [--pause-before UNIT] [--dry-run] [--no-dry-run] workflow thread",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow of the thread",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "thread",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--decision",
     "flags": [
      "--decision"
     ],
     "positional": false,
     "help": "one decision; repeat only for an ask's answer:<name>=<value>",
     "metavar": "DECISION",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--answers",
     "flags": [
      "--answers"
     ],
     "positional": false,
     "help": "a JSON file mapping an ask's questions to their answers",
     "metavar": "FILE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--apply-deadline",
     "flags": [
      "--apply-deadline"
     ],
     "positional": false,
     "help": "apply the overdue deadline of a wait or an ask",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--unit",
     "flags": [
      "--unit"
     ],
     "positional": false,
     "help": "which pending gate the decision answers, when there are several",
     "metavar": "UNIT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--reason",
     "flags": [
      "--reason"
     ],
     "positional": false,
     "help": "why the decision is made, one of: engine_defect, judge_error, environment, plan, request, other; required when an agent decides at a pause, a person may omit it",
     "metavar": "REASON",
     "choices": [
      "engine_defect",
      "judge_error",
      "environment",
      "plan",
      "request",
      "other"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--unpin",
     "flags": [
      "--unpin"
     ],
     "positional": false,
     "help": "clear the thread's engine pin when this engine can resume it",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--escalate",
     "flags": [
      "--escalate"
     ],
     "positional": false,
     "help": "take the offered one-step model escalation for the next attempt",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--feedback",
     "flags": [
      "--feedback"
     ],
     "positional": false,
     "help": "feedback for the next attempt of the paused unit",
     "metavar": "FEEDBACK",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--feedback-file",
     "flags": [
      "--feedback-file"
     ],
     "positional": false,
     "help": "a file holding the feedback for the next attempt",
     "metavar": "FEEDBACK_FILE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--ruling",
     "flags": [
      "--ruling"
     ],
     "positional": false,
     "help": "the feedback is a lasting ruling for this unit and every later one",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--ruling-for",
     "flags": [
      "--ruling-for"
     ],
     "positional": false,
     "help": "comma-separated units the ruling applies to",
     "metavar": "UNITS",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--revoke-ruling",
     "flags": [
      "--revoke-ruling"
     ],
     "positional": false,
     "help": "revoke a ruling by its id; repeatable",
     "metavar": "ID",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--accept-external",
     "flags": [
      "--accept-external"
     ],
     "positional": false,
     "help": "allow a rewind past units that had external effects, such as a pushed branch",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--executor",
     "flags": [
      "--executor"
     ],
     "positional": false,
     "help": "the executor of every step (sets steps.executor)",
     "metavar": "EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-executor",
     "flags": [
      "--judge-executor"
     ],
     "positional": false,
     "help": "the executor of every judge (sets judges.executor)",
     "metavar": "JUDGE_EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--model",
     "flags": [
      "--model"
     ],
     "positional": false,
     "help": "the model of every step, as an alias such as sonnet or opus (sets steps.model)",
     "metavar": "MODEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-model",
     "flags": [
      "--judge-model"
     ],
     "positional": false,
     "help": "the model of every judge, as an alias (sets judges.model)",
     "metavar": "JUDGE_MODEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--timeout",
     "flags": [
      "--timeout"
     ],
     "positional": false,
     "help": "seconds a step session may run before it is stopped (sets steps.timeout_s)",
     "metavar": "TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-timeout",
     "flags": [
      "--judge-timeout"
     ],
     "positional": false,
     "help": "seconds a judge session may run before it is stopped (sets judges.timeout_s)",
     "metavar": "JUDGE_TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--idle",
     "flags": [
      "--idle"
     ],
     "positional": false,
     "help": "seconds a step session may stay silent before it is stopped (sets steps.idle_s)",
     "metavar": "IDLE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--run-cost-cap",
     "flags": [
      "--run-cost-cap"
     ],
     "positional": false,
     "help": "the most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)",
     "metavar": "RUN_COST_CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--daily-cap",
     "flags": [
      "--daily-cap"
     ],
     "positional": false,
     "help": "the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)",
     "metavar": "DAILY_CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--auto-reopen",
     "flags": [
      "--auto-reopen"
     ],
     "positional": false,
     "help": "re-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)",
     "metavar": "AUTO_REOPEN",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--audit-rate",
     "flags": [
      "--audit-rate"
     ],
     "positional": false,
     "help": "the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)",
     "metavar": "AUDIT_RATE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--audit-executor",
     "flags": [
      "--audit-executor"
     ],
     "positional": false,
     "help": "the executor of the audit judge (sets run.audit_executor)",
     "metavar": "AUDIT_EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step-executor",
     "flags": [
      "--step-executor"
     ],
     "positional": false,
     "help": "the executor of one step; repeatable",
     "metavar": "STEP=NAME",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step-model",
     "flags": [
      "--step-model"
     ],
     "positional": false,
     "help": "the model of one step; repeatable",
     "metavar": "STEP=ALIAS",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--approve",
     "flags": [
      "--approve"
     ],
     "positional": false,
     "help": "add a person's approval pause at this step's gate; repeatable",
     "metavar": "STEP",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--grant",
     "flags": [
      "--grant"
     ],
     "positional": false,
     "help": "give a unit extra tool capabilities for this run; repeatable",
     "metavar": "UNIT=CAPABILITY[,…]",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--allow-command",
     "flags": [
      "--allow-command"
     ],
     "positional": false,
     "help": "let a unit run shell commands that start with this prefix; repeatable",
     "metavar": "UNIT=PREFIX",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--enforce-tools",
     "flags": [
      "--enforce-tools"
     ],
     "positional": false,
     "help": "limit each step to the tools it declares; a step on an executor that cannot enforce them is refused",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--strict-permissions",
     "flags": [
      "--strict-permissions"
     ],
     "positional": false,
     "help": "enforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--as-agent",
     "flags": [
      "--as-agent"
     ],
     "positional": false,
     "help": "the same as --caller agent",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller-app",
     "flags": [
      "--caller-app"
     ],
     "positional": false,
     "help": "the name of the calling agent or pipeline application, recorded with the call",
     "metavar": "CALLER_APP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--schedule",
     "flags": [
      "--schedule"
     ],
     "positional": false,
     "help": "reserved to the schedule tick: needs its fire token",
     "metavar": "FIRE_ID",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the outcome as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--carry",
     "flags": [
      "--carry"
     ],
     "positional": false,
     "help": "keep this thread's state on its own git branch so another machine can pick it up",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--set",
     "flags": [
      "--set"
     ],
     "positional": false,
     "help": "set one run setting for this thread; repeatable (`tempergraph config show` lists the keys)",
     "metavar": "KEY=VALUE",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--settings",
     "flags": [
      "--settings"
     ],
     "positional": false,
     "help": "a JSON map of keys to values, recorded as flags",
     "metavar": "FILE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--profile",
     "flags": [
      "--profile"
     ],
     "positional": false,
     "help": "apply a named settings profile from the settings files; repeatable",
     "metavar": "PROFILE",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--unset",
     "flags": [
      "--unset"
     ],
     "positional": false,
     "help": "drop a setting given by a flag on an earlier call; repeatable",
     "metavar": "KEY",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--reload-settings",
     "flags": [
      "--reload-settings"
     ],
     "positional": false,
     "help": "read the settings files and profiles again instead of the thread's snapshot",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--pause-before",
     "flags": [
      "--pause-before"
     ],
     "positional": false,
     "help": "pause before this unit starts; repeatable",
     "metavar": "UNIT",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--dry-run",
     "flags": [
      "--dry-run"
     ],
     "positional": false,
     "help": "self-improvement files nothing; every step runs (the flag run.loop_dry_run true)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--no-dry-run",
     "flags": [
      "--no-dry-run"
     ],
     "positional": false,
     "help": "self-improvement files; ends a dry run (the flag run.loop_dry_run false)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "attention",
   "help": "everything waiting on a person, oldest first",
   "usage": "tempergraph attention [-h] [--all-roots] [--json]",
   "arguments": [
    {
     "name": "--all-roots",
     "flags": [
      "--all-roots"
     ],
     "positional": false,
     "help": "every state root on this machine, not only the current one",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the items as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "status",
   "help": "the status document, or one thread's detail document",
   "usage": "tempergraph status [-h] [--detail] [--unit UNIT] [--no-live] [--json] [--all-roots] [selector]",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "a thread, alias or workflow; with none, every thread of this state root",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": "?"
    },
    {
     "name": "--detail",
     "flags": [
      "--detail"
     ],
     "positional": false,
     "help": "the run detail document of one thread",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--unit",
     "flags": [
      "--unit"
     ],
     "positional": false,
     "help": "with --detail: one unit in full",
     "metavar": "UNIT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--no-live",
     "flags": [
      "--no-live"
     ],
     "positional": false,
     "help": "with --detail: leave out the live session blocks",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "machine output (the default for status)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--all-roots",
     "flags": [
      "--all-roots"
     ],
     "positional": false,
     "help": "every state root on this machine, not only the current one",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "wait",
   "help": "block until a thread's outcome",
   "usage": "tempergraph wait [-h] [--any] [--timeout TIMEOUT] selector [selector ...]",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "one or more threads: <workflow>/<task id>, or an alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": "+"
    },
    {
     "name": "--any",
     "flags": [
      "--any"
     ],
     "positional": false,
     "help": "watch every named thread and return when the first one stops running",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--timeout",
     "flags": [
      "--timeout"
     ],
     "positional": false,
     "help": "seconds to wait before giving up (default 3600)",
     "metavar": "TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": 3600.0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "events",
   "help": "a thread's run-log records in order",
   "usage": "tempergraph events [-h] [--since SEQ] [--follow] [--activity SESSION_KEY] [--json] selector",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--since",
     "flags": [
      "--since"
     ],
     "positional": false,
     "help": "only records after this sequence number",
     "metavar": "SEQ",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--follow",
     "flags": [
      "--follow"
     ],
     "positional": false,
     "help": "keep printing new records until the run ends",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--activity",
     "flags": [
      "--activity"
     ],
     "positional": false,
     "help": "one session's activity journal instead",
     "metavar": "SESSION_KEY",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "one JSON object per line",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "logs",
   "help": "one log of a run from the local store",
   "usage": "tempergraph logs [-h] [--session KEY] [--kind {run,raw,activity,stderr,check,hook,engine}] [--follow] [--json] selector",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--session",
     "flags": [
      "--session"
     ],
     "positional": false,
     "help": "a session key, or <unit>[.<attempt>] with --kind check",
     "metavar": "KEY",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--kind",
     "flags": [
      "--kind"
     ],
     "positional": false,
     "help": "which log to print: run, raw, activity, stderr, check, hook or engine; with none, the list of log files",
     "metavar": "KIND",
     "choices": [
      "run",
      "raw",
      "activity",
      "stderr",
      "check",
      "hook",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--follow",
     "flags": [
      "--follow"
     ],
     "positional": false,
     "help": "keep printing new lines until the run ends",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "the file list as JSON (with no --kind)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "facts",
   "help": "read-only facts about a run",
   "usage": "tempergraph facts [-h] selector",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "stop",
   "help": "ask a live run to stop",
   "usage": "tempergraph stop [-h] [--now] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] selector",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--now",
     "flags": [
      "--now"
     ],
     "positional": false,
     "help": "stop the open session now instead of draining",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--as-agent",
     "flags": [
      "--as-agent"
     ],
     "positional": false,
     "help": "the same as --caller agent",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller-app",
     "flags": [
      "--caller-app"
     ],
     "positional": false,
     "help": "the name of the calling agent or pipeline application, recorded with the call",
     "metavar": "CALLER_APP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "rerun",
   "help": "a new thread forked from an earlier one at a unit, linked to it",
   "usage": "tempergraph rerun [-h] --from UNIT|start [--check] [--feedback FEEDBACK | --feedback-file FEEDBACK_FILE] [--task-id TASK_ID] [--workspace {current,at-unit}] [--same-branch] [--drop-rulings] [--ruling] [--accept-external] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [--json] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--unset KEY] [--reload-settings] workflow thread",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow of the source thread",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "thread",
     "flags": [],
     "positional": true,
     "help": "the source thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--from",
     "flags": [
      "--from"
     ],
     "positional": false,
     "help": "the unit to run again from (with `.item` for one item of a map), or `start`",
     "metavar": "UNIT|start",
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--check",
     "flags": [
      "--check"
     ],
     "positional": false,
     "help": "print the plan and check it; nothing is created",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--feedback",
     "flags": [
      "--feedback"
     ],
     "positional": false,
     "help": "feedback for the first rerun attempt",
     "metavar": "FEEDBACK",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--feedback-file",
     "flags": [
      "--feedback-file"
     ],
     "positional": false,
     "help": "a file holding the feedback for the first rerun attempt",
     "metavar": "FEEDBACK_FILE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--task-id",
     "flags": [
      "--task-id"
     ],
     "positional": false,
     "help": "the task id of the new thread; by default <task id>~r<n>",
     "metavar": "TASK_ID",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--workspace",
     "flags": [
      "--workspace"
     ],
     "positional": false,
     "help": "the new worktree starts from the source branch's tip (current) or from the commit when the source entered the unit (at-unit)",
     "metavar": "RERUN_WORKSPACE",
     "choices": [
      "current",
      "at-unit"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "current"
    },
    {
     "name": "--same-branch",
     "flags": [
      "--same-branch"
     ],
     "positional": false,
     "help": "reuse the branch and worktree of a finished source instead of a new branch",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--drop-rulings",
     "flags": [
      "--drop-rulings"
     ],
     "positional": false,
     "help": "start without the source thread's rulings",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--ruling",
     "flags": [
      "--ruling"
     ],
     "positional": false,
     "help": "the feedback is a lasting ruling",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--accept-external",
     "flags": [
      "--accept-external"
     ],
     "positional": false,
     "help": "allow a rerun past units that had external effects, such as a pushed branch",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--executor",
     "flags": [
      "--executor"
     ],
     "positional": false,
     "help": "the executor of every step (sets steps.executor)",
     "metavar": "EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-executor",
     "flags": [
      "--judge-executor"
     ],
     "positional": false,
     "help": "the executor of every judge (sets judges.executor)",
     "metavar": "JUDGE_EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--model",
     "flags": [
      "--model"
     ],
     "positional": false,
     "help": "the model of every step, as an alias such as sonnet or opus (sets steps.model)",
     "metavar": "MODEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-model",
     "flags": [
      "--judge-model"
     ],
     "positional": false,
     "help": "the model of every judge, as an alias (sets judges.model)",
     "metavar": "JUDGE_MODEL",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--timeout",
     "flags": [
      "--timeout"
     ],
     "positional": false,
     "help": "seconds a step session may run before it is stopped (sets steps.timeout_s)",
     "metavar": "TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--judge-timeout",
     "flags": [
      "--judge-timeout"
     ],
     "positional": false,
     "help": "seconds a judge session may run before it is stopped (sets judges.timeout_s)",
     "metavar": "JUDGE_TIMEOUT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--idle",
     "flags": [
      "--idle"
     ],
     "positional": false,
     "help": "seconds a step session may stay silent before it is stopped (sets steps.idle_s)",
     "metavar": "IDLE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--run-cost-cap",
     "flags": [
      "--run-cost-cap"
     ],
     "positional": false,
     "help": "the most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)",
     "metavar": "RUN_COST_CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--daily-cap",
     "flags": [
      "--daily-cap"
     ],
     "positional": false,
     "help": "the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)",
     "metavar": "DAILY_CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--auto-reopen",
     "flags": [
      "--auto-reopen"
     ],
     "positional": false,
     "help": "re-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)",
     "metavar": "AUTO_REOPEN",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--audit-rate",
     "flags": [
      "--audit-rate"
     ],
     "positional": false,
     "help": "the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)",
     "metavar": "AUDIT_RATE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--audit-executor",
     "flags": [
      "--audit-executor"
     ],
     "positional": false,
     "help": "the executor of the audit judge (sets run.audit_executor)",
     "metavar": "AUDIT_EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step-executor",
     "flags": [
      "--step-executor"
     ],
     "positional": false,
     "help": "the executor of one step; repeatable",
     "metavar": "STEP=NAME",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step-model",
     "flags": [
      "--step-model"
     ],
     "positional": false,
     "help": "the model of one step; repeatable",
     "metavar": "STEP=ALIAS",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--approve",
     "flags": [
      "--approve"
     ],
     "positional": false,
     "help": "add a person's approval pause at this step's gate; repeatable",
     "metavar": "STEP",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--grant",
     "flags": [
      "--grant"
     ],
     "positional": false,
     "help": "give a unit extra tool capabilities for this run; repeatable",
     "metavar": "UNIT=CAPABILITY[,…]",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--allow-command",
     "flags": [
      "--allow-command"
     ],
     "positional": false,
     "help": "let a unit run shell commands that start with this prefix; repeatable",
     "metavar": "UNIT=PREFIX",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--enforce-tools",
     "flags": [
      "--enforce-tools"
     ],
     "positional": false,
     "help": "limit each step to the tools it declares; a step on an executor that cannot enforce them is refused",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--strict-permissions",
     "flags": [
      "--strict-permissions"
     ],
     "positional": false,
     "help": "enforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--as-agent",
     "flags": [
      "--as-agent"
     ],
     "positional": false,
     "help": "the same as --caller agent",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller-app",
     "flags": [
      "--caller-app"
     ],
     "positional": false,
     "help": "the name of the calling agent or pipeline application, recorded with the call",
     "metavar": "CALLER_APP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the outcome as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--set",
     "flags": [
      "--set"
     ],
     "positional": false,
     "help": "set one run setting for this thread; repeatable (`tempergraph config show` lists the keys)",
     "metavar": "KEY=VALUE",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--settings",
     "flags": [
      "--settings"
     ],
     "positional": false,
     "help": "a JSON map of keys to values, recorded as flags",
     "metavar": "FILE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--profile",
     "flags": [
      "--profile"
     ],
     "positional": false,
     "help": "apply a named settings profile from the settings files; repeatable",
     "metavar": "PROFILE",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--unset",
     "flags": [
      "--unset"
     ],
     "positional": false,
     "help": "drop a setting given by a flag on an earlier call; repeatable",
     "metavar": "KEY",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--reload-settings",
     "flags": [
      "--reload-settings"
     ],
     "positional": false,
     "help": "read the settings files and profiles again instead of the thread's snapshot",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "report",
   "help": "cost and friction reports over this state root's runs",
   "usage": "tempergraph report [-h] [--by {unit,executor,version,workflow,host,level,schedule}] [--supervision] [--loop] [--switch WORKFLOW/SWITCH] [--risk WORKFLOW] [--json] [window]",
   "arguments": [
    {
     "name": "window",
     "flags": [],
     "positional": true,
     "help": "7d, 24h, 30d (the default) or all",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": "?"
    },
    {
     "name": "--by",
     "flags": [
      "--by"
     ],
     "positional": false,
     "help": "split the figures by this field",
     "metavar": "BY",
     "choices": [
      "unit",
      "executor",
      "version",
      "workflow",
      "host",
      "level",
      "schedule"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--supervision",
     "flags": [
      "--supervision"
     ],
     "positional": false,
     "help": "how much runs needed supervising: touches, levels, waits and cost",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--loop",
     "flags": [
      "--loop"
     ],
     "positional": false,
     "help": "the self-improvement loop's own figures",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--switch",
     "flags": [
      "--switch"
     ],
     "positional": false,
     "help": "finished runs per arm and zone of one switch",
     "metavar": "WORKFLOW/SWITCH",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--risk",
     "flags": [
      "--risk"
     ],
     "positional": false,
     "help": "judge attempts per gate and risk level of one workflow",
     "metavar": "WORKFLOW",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the report as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Operate runs",
   "name": "config",
   "help": "resolved run settings and the settings files",
   "usage": "tempergraph config [-h] {show,validate,paths} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "show",
     "help": "the settings a run of the workflow would get, and the layer each value comes from",
     "usage": "tempergraph config show [-h] [--thread THREAD] [--key KEY] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow to resolve settings for",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--thread",
       "flags": [
        "--thread"
       ],
       "positional": false,
       "help": "resolve for this existing thread instead of a new run",
       "metavar": "THREAD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--key",
       "flags": [
        "--key"
       ],
       "positional": false,
       "help": "a glob over the keys shown",
       "metavar": "KEY",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of every step (sets steps.executor)",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-executor",
       "flags": [
        "--judge-executor"
       ],
       "positional": false,
       "help": "the executor of every judge (sets judges.executor)",
       "metavar": "JUDGE_EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--model",
       "flags": [
        "--model"
       ],
       "positional": false,
       "help": "the model of every step, as an alias such as sonnet or opus (sets steps.model)",
       "metavar": "MODEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-model",
       "flags": [
        "--judge-model"
       ],
       "positional": false,
       "help": "the model of every judge, as an alias (sets judges.model)",
       "metavar": "JUDGE_MODEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--timeout",
       "flags": [
        "--timeout"
       ],
       "positional": false,
       "help": "seconds a step session may run before it is stopped (sets steps.timeout_s)",
       "metavar": "TIMEOUT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-timeout",
       "flags": [
        "--judge-timeout"
       ],
       "positional": false,
       "help": "seconds a judge session may run before it is stopped (sets judges.timeout_s)",
       "metavar": "JUDGE_TIMEOUT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--idle",
       "flags": [
        "--idle"
       ],
       "positional": false,
       "help": "seconds a step session may stay silent before it is stopped (sets steps.idle_s)",
       "metavar": "IDLE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--run-cost-cap",
       "flags": [
        "--run-cost-cap"
       ],
       "positional": false,
       "help": "the most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)",
       "metavar": "RUN_COST_CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--daily-cap",
       "flags": [
        "--daily-cap"
       ],
       "positional": false,
       "help": "the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)",
       "metavar": "DAILY_CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--auto-reopen",
       "flags": [
        "--auto-reopen"
       ],
       "positional": false,
       "help": "re-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)",
       "metavar": "AUTO_REOPEN",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--audit-rate",
       "flags": [
        "--audit-rate"
       ],
       "positional": false,
       "help": "the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)",
       "metavar": "AUDIT_RATE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--audit-executor",
       "flags": [
        "--audit-executor"
       ],
       "positional": false,
       "help": "the executor of the audit judge (sets run.audit_executor)",
       "metavar": "AUDIT_EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--step-executor",
       "flags": [
        "--step-executor"
       ],
       "positional": false,
       "help": "the executor of one step; repeatable",
       "metavar": "STEP=NAME",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--step-model",
       "flags": [
        "--step-model"
       ],
       "positional": false,
       "help": "the model of one step; repeatable",
       "metavar": "STEP=ALIAS",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--approve",
       "flags": [
        "--approve"
       ],
       "positional": false,
       "help": "add a person's approval pause at this step's gate; repeatable",
       "metavar": "STEP",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--grant",
       "flags": [
        "--grant"
       ],
       "positional": false,
       "help": "give a unit extra tool capabilities for this run; repeatable",
       "metavar": "UNIT=CAPABILITY[,…]",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--allow-command",
       "flags": [
        "--allow-command"
       ],
       "positional": false,
       "help": "let a unit run shell commands that start with this prefix; repeatable",
       "metavar": "UNIT=PREFIX",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--enforce-tools",
       "flags": [
        "--enforce-tools"
       ],
       "positional": false,
       "help": "limit each step to the tools it declares; a step on an executor that cannot enforce them is refused",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--strict-permissions",
       "flags": [
        "--strict-permissions"
       ],
       "positional": false,
       "help": "enforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--set",
       "flags": [
        "--set"
       ],
       "positional": false,
       "help": "set one run setting for this thread; repeatable (`tempergraph config show` lists the keys)",
       "metavar": "KEY=VALUE",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--settings",
       "flags": [
        "--settings"
       ],
       "positional": false,
       "help": "a JSON map of keys to values, recorded as flags",
       "metavar": "FILE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--profile",
       "flags": [
        "--profile"
       ],
       "positional": false,
       "help": "apply a named settings profile from the settings files; repeatable",
       "metavar": "PROFILE",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the settings as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "validate",
     "help": "check the settings files, or one file, without running anything",
     "usage": "tempergraph config validate [-h] [--file FILE]",
     "arguments": [
      {
       "name": "--file",
       "flags": [
        "--file"
       ],
       "positional": false,
       "help": "the settings file to check",
       "metavar": "FILE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "paths",
     "help": "print where the settings files are read from",
     "usage": "tempergraph config paths [-h]",
     "arguments": [],
     "verbs": []
    }
   ]
  },
  {
   "group": "Inspect and improve workflows",
   "name": "list",
   "help": "the workflow catalog",
   "usage": "tempergraph list [-h]",
   "arguments": [],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "graph",
   "help": "the workflow diagram",
   "usage": "tempergraph graph [-h] [--format {mermaid,md,json,svg}] [--overlay THREAD] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow to draw",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--format",
     "flags": [
      "--format"
     ],
     "positional": false,
     "help": "the diagram format: mermaid (the default), md, json or svg",
     "metavar": "FORMAT",
     "choices": [
      "mermaid",
      "md",
      "json",
      "svg"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "mermaid"
    },
    {
     "name": "--overlay",
     "flags": [
      "--overlay"
     ],
     "positional": false,
     "help": "show a thread's counts on the diagram; read-only",
     "metavar": "THREAD",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "validate",
   "help": "validate a workflow",
   "usage": "tempergraph validate [-h] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow to validate, by name or package folder",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "audit",
   "help": "advisory, read-only audit of a workflow (no model call)",
   "usage": "tempergraph audit [-h] [--layer {definition,host,history}] [--target TARGET] [--executor EXECUTOR] [--step STEP] [--window WINDOW] [--version VERSION] [--all] [--format {text,json,sarif}] [--fail-on {error,warning,never}] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "a workflow, or `prompts` / `tools` / `decisions` then a workflow",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--layer",
     "flags": [
      "--layer"
     ],
     "positional": false,
     "help": "run only this layer: definition, host or history; repeatable (default every layer whose inputs exist)",
     "metavar": "LAYER",
     "choices": [
      "definition",
      "host",
      "history"
     ],
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--target",
     "flags": [
      "--target"
     ],
     "positional": false,
     "help": "the repository the workflow runs in (default the current directory)",
     "metavar": "TARGET",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--executor",
     "flags": [
      "--executor"
     ],
     "positional": false,
     "help": "audit against this executor binding",
     "metavar": "EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--step",
     "flags": [
      "--step"
     ],
     "positional": false,
     "help": "only findings on this unit and on the workflow as a whole; repeatable",
     "metavar": "STEP",
     "choices": null,
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--window",
     "flags": [
      "--window"
     ],
     "positional": false,
     "help": "days of run history the history layer reads (default 30)",
     "metavar": "WINDOW",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": 30
    },
    {
     "name": "--version",
     "flags": [
      "--version"
     ],
     "positional": false,
     "help": "which workflow version's runs to read: current (the default), all, or a version id",
     "metavar": "VERSION",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "current"
    },
    {
     "name": "--all",
     "flags": [
      "--all"
     ],
     "positional": false,
     "help": "also show info, low-confidence and ignored findings",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--format",
     "flags": [
      "--format"
     ],
     "positional": false,
     "help": "the output format: text (the default), json or sarif",
     "metavar": "FORMAT",
     "choices": [
      "text",
      "json",
      "sarif"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "text"
    },
    {
     "name": "--fail-on",
     "flags": [
      "--fail-on"
     ],
     "positional": false,
     "help": "exit 6 when a finding at or above this level is not ignored (default never)",
     "metavar": "FAIL_ON",
     "choices": [
      "error",
      "warning",
      "never"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "never"
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "outcome",
   "help": "the good outcome, its measures and revision candidates",
   "usage": "tempergraph outcome [-h] {show,candidates} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "show",
     "help": "the workflow's good outcome: statement, criteria and how often runs meet them",
     "usage": "tempergraph outcome show [-h] [--runs [WINDOW]] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--runs",
       "flags": [
        "--runs"
       ],
       "positional": false,
       "help": "all, or <days>d",
       "metavar": "WINDOW",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "candidates",
     "help": "changes to the outcome that recent runs suggest, such as a criterion that never fails",
     "usage": "tempergraph outcome candidates [-h] [--window DAYS] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--window",
       "flags": [
        "--window"
       ],
       "positional": false,
       "help": "read runs from this many days back",
       "metavar": "DAYS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Inspect and improve workflows",
   "name": "executors",
   "help": "registered executors and their capabilities",
   "usage": "tempergraph executors [-h] [--probe]",
   "arguments": [
    {
     "name": "--probe",
     "flags": [
      "--probe"
     ],
     "positional": false,
     "help": "also run each executor's read-only probes (version, sign-in); calls no model",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "self-check",
   "help": "a step's preview of its gate's check, run by the step itself",
   "usage": "tempergraph self-check [-h] ticket",
   "arguments": [
    {
     "name": "ticket",
     "flags": [],
     "positional": true,
     "help": "the ticket the engine gave the step for its preview",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "improve",
   "help": "clusters, proposals, paired trials and cause analyses",
   "usage": "tempergraph improve [-h] {backlog,propose,trial,aa,open,show,analyse,review,outbox} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "backlog",
     "help": "clusters of repeated failures, ranked; read-only",
     "usage": "tempergraph improve backlog [-h] [--json] [workflow]",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "one workflow; with none, every workflow",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the backlog as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "propose",
     "help": "draft a change for one cluster, from a person's patch or a proposer session",
     "usage": "tempergraph improve propose [-h] [--patch FILE] [--rule RULE] [--executor EXECUTOR] [--json] workflow cluster",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "cluster",
       "flags": [],
       "positional": true,
       "help": "the cluster id, as `improve backlog` lists it",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--patch",
       "flags": [
        "--patch"
       ],
       "positional": false,
       "help": "a person's unified diff over the package",
       "metavar": "FILE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--rule",
       "flags": [
        "--rule"
       ],
       "positional": false,
       "help": "the general rule the change states (needed with --patch)",
       "metavar": "RULE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of the proposer session",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the proposal as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "trial",
     "help": "run a proposal against the current version on the same cases, in pairs",
     "usage": "tempergraph improve trial [-h] [--target TARGET] [--cap USD] [--executor EXECUTOR] [--json] proposal",
     "arguments": [
      {
       "name": "proposal",
       "flags": [],
       "positional": true,
       "help": "the proposal id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--target",
       "flags": [
        "--target"
       ],
       "positional": false,
       "help": "first_pass_yield(unit), run_cost, outcome_met, ...",
       "metavar": "TARGET",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cap",
       "flags": [
        "--cap"
       ],
       "positional": false,
       "help": "the most the trial may spend, in USD",
       "metavar": "USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of the trial runs",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the trial record as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "aa",
     "help": "run the case set twice on the current version to measure the noise between runs",
     "usage": "tempergraph improve aa [-h] [--cap USD] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cap",
       "flags": [
        "--cap"
       ],
       "positional": false,
       "help": "the most the runs may spend, in USD",
       "metavar": "USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the trial record as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "open",
     "help": "open a draft pull request for a proposal, with its trial report; never merges",
     "usage": "tempergraph improve open [-h] [--json] proposal",
     "arguments": [
      {
       "name": "proposal",
       "flags": [],
       "positional": true,
       "help": "the proposal id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the pull request as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "show",
     "help": "print a proposal, trial or analysis record as JSON",
     "usage": "tempergraph improve show [-h] PROPOSAL|TRIAL|ANALYSIS",
     "arguments": [
      {
       "name": "PROPOSAL|TRIAL|ANALYSIS",
       "flags": [],
       "positional": true,
       "help": "the record id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "analyse",
     "help": "one read-only session on one cluster and a checked cause record under improve/analyses/",
     "usage": "tempergraph improve analyse [-h] [--executor EXECUTOR] [--json] workflow cluster",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "cluster",
       "flags": [],
       "positional": true,
       "help": "the cluster id, as `improve backlog` lists it",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of the analysis session",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the cause record as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "review",
     "help": "the review of a run's sessions: run it, show it, or a summary",
     "usage": "tempergraph improve review [-h] [--session KEY] [--full] [--dry-run] [--version VERSION] [--json] selector",
     "arguments": [
      {
       "name": "selector",
       "flags": [],
       "positional": true,
       "help": "a thread selector, or `show` / `summary`",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--session",
       "flags": [
        "--session"
       ],
       "positional": false,
       "help": "review only these sessions",
       "metavar": "KEY",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--full",
       "flags": [
        "--full"
       ],
       "positional": false,
       "help": "read every session in full",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--dry-run",
       "flags": [
        "--dry-run"
       ],
       "positional": false,
       "help": "print the plan and the estimate; spend nothing",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--version",
       "flags": [
        "--version"
       ],
       "positional": false,
       "help": "summary: one workflow version",
       "metavar": "VERSION",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the review as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "outbox",
     "help": "the filing outbox: `list` its waiting entries, `clear` them, `send` them under the daily issue cap",
     "usage": "tempergraph improve outbox [-h] {list,send,clear} ...",
     "arguments": [],
     "verbs": [
      {
       "name": "list",
       "help": "print the waiting entries, oldest first, without their text",
       "usage": "tempergraph improve outbox list [-h]",
       "arguments": [],
       "verbs": []
      },
      {
       "name": "send",
       "help": "deliver the waiting entries under the daily issue cap",
       "usage": "tempergraph improve outbox send [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed]",
       "arguments": [
        {
         "name": "--caller",
         "flags": [
          "--caller"
         ],
         "positional": false,
         "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
         "metavar": "CALLER",
         "choices": [
          "person",
          "agent",
          "pipeline",
          "orchestrator",
          "scheduler",
          "engine"
         ],
         "required": false,
         "repeatable": false,
         "takes_value": true,
         "nargs": null
        },
        {
         "name": "--as-agent",
         "flags": [
          "--as-agent"
         ],
         "positional": false,
         "help": "the same as --caller agent",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        },
        {
         "name": "--caller-app",
         "flags": [
          "--caller-app"
         ],
         "positional": false,
         "help": "the name of the calling agent or pipeline application, recorded with the call",
         "metavar": "CALLER_APP",
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": true,
         "nargs": null
        },
        {
         "name": "--relayed",
         "flags": [
          "--relayed"
         ],
         "positional": false,
         "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        }
       ],
       "verbs": []
      },
      {
       "name": "clear",
       "help": "remove every entry (--all) or those of one fingerprint (--fingerprint)",
       "usage": "tempergraph improve outbox clear [-h] [--all] [--fingerprint FINGERPRINT] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed]",
       "arguments": [
        {
         "name": "--all",
         "flags": [
          "--all"
         ],
         "positional": false,
         "help": "remove every entry",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        },
        {
         "name": "--fingerprint",
         "flags": [
          "--fingerprint"
         ],
         "positional": false,
         "help": "remove the entries of this fingerprint",
         "metavar": "FINGERPRINT",
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": true,
         "nargs": null
        },
        {
         "name": "--caller",
         "flags": [
          "--caller"
         ],
         "positional": false,
         "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
         "metavar": "CALLER",
         "choices": [
          "person",
          "agent",
          "pipeline",
          "orchestrator",
          "scheduler",
          "engine"
         ],
         "required": false,
         "repeatable": false,
         "takes_value": true,
         "nargs": null
        },
        {
         "name": "--as-agent",
         "flags": [
          "--as-agent"
         ],
         "positional": false,
         "help": "the same as --caller agent",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        },
        {
         "name": "--caller-app",
         "flags": [
          "--caller-app"
         ],
         "positional": false,
         "help": "the name of the calling agent or pipeline application, recorded with the call",
         "metavar": "CALLER_APP",
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": true,
         "nargs": null
        },
        {
         "name": "--relayed",
         "flags": [
          "--relayed"
         ],
         "positional": false,
         "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        }
       ],
       "verbs": []
      }
     ]
    }
   ]
  },
  {
   "group": "Inspect and improve workflows",
   "name": "label",
   "help": "a person's label on a gate judgement: agree or disagree",
   "usage": "tempergraph label [-h] --value {agree,disagree} [--criterion CRITERION] [--attempt ATTEMPT] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [--json] selector UNIT",
   "arguments": [
    {
     "name": "selector",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "UNIT",
     "flags": [],
     "positional": true,
     "help": "the gate's unit",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--value",
     "flags": [
      "--value"
     ],
     "positional": false,
     "help": "agree or disagree with the judgement",
     "metavar": "VALUE",
     "choices": [
      "agree",
      "disagree"
     ],
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--criterion",
     "flags": [
      "--criterion"
     ],
     "positional": false,
     "help": "label one criterion of the judgement instead of the whole verdict",
     "metavar": "CRITERION",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--attempt",
     "flags": [
      "--attempt"
     ],
     "positional": false,
     "help": "which attempt's judgement (default the last)",
     "metavar": "ATTEMPT",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--as-agent",
     "flags": [
      "--as-agent"
     ],
     "positional": false,
     "help": "the same as --caller agent",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller-app",
     "flags": [
      "--caller-app"
     ],
     "positional": false,
     "help": "the name of the calling agent or pipeline application, recorded with the call",
     "metavar": "CALLER_APP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the label as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "labels",
   "help": "the labelling queue and judge reliability grades",
   "usage": "tempergraph labels [-h] {queue,grades} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "queue",
     "help": "the gate judgements a person should label next, most useful first",
     "usage": "tempergraph labels queue [-h] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the queue as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "grades",
     "help": "each judge's reliability figures and grade, per gate and executor binding",
     "usage": "tempergraph labels grades [-h] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the grades as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Inspect and improve workflows",
   "name": "evals",
   "help": "judge calibration and eval suites: score, bar, run, report, labels",
   "usage": "tempergraph evals [-h] {score,bar,run,report,grade,harvest,replay,label} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "score",
     "help": "score the gate's judge on its reviewed cases (spends)",
     "usage": "tempergraph evals score [-h] [--executor EXECUTOR] [--repeat REPEAT] [--variants VARIANTS] [--cap USD] [--level LEVEL] [--json] workflow gate",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "gate",
       "flags": [],
       "positional": true,
       "help": "the gate whose judge is scored",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of the judge sessions",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--repeat",
       "flags": [
        "--repeat"
       ],
       "positional": false,
       "help": "how many times each case is judged (default 3)",
       "metavar": "REPEAT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null,
       "default": 3
      },
      {
       "name": "--variants",
       "flags": [
        "--variants"
       ],
       "positional": false,
       "help": "comma-separated kinds, or none",
       "metavar": "VARIANTS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null,
       "default": "persuasive_account,out_of_reach"
      },
      {
       "name": "--cap",
       "flags": [
        "--cap"
       ],
       "positional": false,
       "help": "the most the scoring may spend, in USD",
       "metavar": "USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--level",
       "flags": [
        "--level"
       ],
       "positional": false,
       "help": "score the judge of this risk level",
       "metavar": "LEVEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the score as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "bar",
     "help": "each gate's acceptance state, figures and failing rules",
     "usage": "tempergraph evals bar [-h] [--json] [workflow]",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "one workflow; with none, every registered workflow",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the bar as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "run",
     "help": "run the eval suites of one kind and record the results",
     "usage": "tempergraph evals run [-h] --kind {check,judge,step,workflow} [--role {regression,capability}] [--trials TRIALS] [--executor EXECUTOR] [--cap USD] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--kind",
       "flags": [
        "--kind"
       ],
       "positional": false,
       "help": "which suites to run: check, judge, step or workflow",
       "metavar": "KIND",
       "choices": [
        "check",
        "judge",
        "step",
        "workflow"
       ],
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--role",
       "flags": [
        "--role"
       ],
       "positional": false,
       "help": "only the regression or the capability suites",
       "metavar": "ROLE",
       "choices": [
        "regression",
        "capability"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--trials",
       "flags": [
        "--trials"
       ],
       "positional": false,
       "help": "how many times each case runs",
       "metavar": "TRIALS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of live suites",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cap",
       "flags": [
        "--cap"
       ],
       "positional": false,
       "help": "the most the run may spend, in USD",
       "metavar": "USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the results as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "report",
     "help": "figures per suite and case, graduation, stale and waiting results",
     "usage": "tempergraph evals report [-h] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the report as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "grade",
     "help": "a person's grade for a trial no grader could decide",
     "usage": "tempergraph evals grade [-h] (--pass | --fail) --reason REASON [--json] result",
     "arguments": [
      {
       "name": "result",
       "flags": [],
       "positional": true,
       "help": "the result id, as `evals report` lists it",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--pass",
       "flags": [
        "--pass"
       ],
       "positional": false,
       "help": "the trial passed",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--fail",
       "flags": [
        "--fail"
       ],
       "positional": false,
       "help": "the trial failed",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--reason",
       "flags": [
        "--reason"
       ],
       "positional": false,
       "help": "why, in a sentence",
       "metavar": "REASON",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the recorded grade as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "harvest",
     "help": "turn recorded judge misses into local calibration case candidates",
     "usage": "tempergraph evals harvest [-h] [--json] workflow gate",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "gate",
       "flags": [],
       "positional": true,
       "help": "the gate whose judge misses are harvested",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the candidates as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "replay",
     "help": "rerun the judges on kept cases and compare with the recorded score",
     "usage": "tempergraph evals replay [-h] [--executor EXECUTOR] [--cap USD] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of the judge sessions",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cap",
       "flags": [
        "--cap"
       ],
       "positional": false,
       "help": "the most the replay may spend, in USD",
       "metavar": "USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the comparison as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "label",
     "help": "write or confirm one gold label as a reviewer",
     "usage": "tempergraph evals label [-h] --criterion CRITERION --expected {MET,PARTIAL,UNMET,N/A,UNVERIFIABLE} --reason REASON [--reviewer REVIEWER] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] WORKFLOW/GATE/CASE",
     "arguments": [
      {
       "name": "WORKFLOW/GATE/CASE",
       "flags": [],
       "positional": true,
       "help": "the calibration case, as <workflow>/<gate>/<case>",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--criterion",
       "flags": [
        "--criterion"
       ],
       "positional": false,
       "help": "the criterion id",
       "metavar": "CRITERION",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--expected",
       "flags": [
        "--expected"
       ],
       "positional": false,
       "help": "the status the judge should give",
       "metavar": "EXPECTED",
       "choices": [
        "MET",
        "PARTIAL",
        "UNMET",
        "N/A",
        "UNVERIFIABLE"
       ],
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--reason",
       "flags": [
        "--reason"
       ],
       "positional": false,
       "help": "why, in a sentence",
       "metavar": "REASON",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--reviewer",
       "flags": [
        "--reviewer"
       ],
       "positional": false,
       "help": "the reviewer's handle (default the caller)",
       "metavar": "REVIEWER",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the label as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Inspect and improve workflows",
   "name": "promote-check",
   "help": "measure a workflow version against a stage's criteria",
   "usage": "tempergraph promote-check [-h] --to {local-stable,pipeline} [--executor EXECUTOR] [--window N] [--stamp] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--relayed] [--json] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow to measure",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--to",
     "flags": [
      "--to"
     ],
     "positional": false,
     "help": "the stage to promote to",
     "metavar": "TO",
     "choices": [
      "local-stable",
      "pipeline"
     ],
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--executor",
     "flags": [
      "--executor"
     ],
     "positional": false,
     "help": "measure the runs on this executor only",
     "metavar": "EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--window",
     "flags": [
      "--window"
     ],
     "positional": false,
     "help": "the number of most recent finished runs to read (default 10 for local-stable, 20 for pipeline)",
     "metavar": "N",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--stamp",
     "flags": [
      "--stamp"
     ],
     "positional": false,
     "help": "write the promotion stamp when every criterion is met",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline; a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the criteria and figures as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "supervision",
   "help": "the supervision journal and the cost of supervising runs",
   "usage": "tempergraph supervision [-h] {hook,log,close,show} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "hook",
     "help": "record one host hook event read from standard input; always exits 0",
     "usage": "tempergraph supervision hook [-h] event",
     "arguments": [
      {
       "name": "event",
       "flags": [],
       "positional": true,
       "help": "the host hook event's name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "log",
     "help": "journal entries read as JSON lines from standard input",
     "usage": "tempergraph supervision log [-h] --host HOST --session SESSION [--caller-app CALLER_APP]",
     "arguments": [
      {
       "name": "--host",
       "flags": [
        "--host"
       ],
       "positional": false,
       "help": "the host the entries come from",
       "metavar": "HOST",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--session",
       "flags": [
        "--session"
       ],
       "positional": false,
       "help": "the host session id",
       "metavar": "SESSION",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling application",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "close",
     "help": "close the threads whose supervising sessions have ended",
     "usage": "tempergraph supervision close [-h] [--session SESSION]",
     "arguments": [
      {
       "name": "--session",
       "flags": [
        "--session"
       ],
       "positional": false,
       "help": "only threads supervised by this host session",
       "metavar": "SESSION",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "show",
     "help": "a thread's or a session's supervision (read-only)",
     "usage": "tempergraph supervision show [-h] [--session SESSION] [--json] [selector]",
     "arguments": [
      {
       "name": "selector",
       "flags": [],
       "positional": true,
       "help": "a thread: <workflow>/<task id>, or its alias",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--session",
       "flags": [
        "--session"
       ],
       "positional": false,
       "help": "a host session id instead of a thread",
       "metavar": "SESSION",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the supervision as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Inspect and improve workflows",
   "name": "stats",
   "help": "run statistics per month, for this machine or across machines from a sink",
   "usage": "tempergraph stats [-h] [--check] [--source SINK | --local] [--sync] [--month YYYY-MM | --since YYYY-MM-DD] [--by {machine,user,repo,workflow,version,executor,model,ticket,exit,month,parent,schedule,level,decider,host}] [--projection] [--live] [--json] [{flush,sync,forget}]",
   "arguments": [
    {
     "name": "action",
     "flags": [],
     "positional": true,
     "help": "flush: send this machine's waiting rows to the sinks; sync: copy other machines' rows from the sinks; forget: drop state roots whose folders are gone",
     "metavar": null,
     "choices": [
      "flush",
      "sync",
      "forget"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": "?"
    },
    {
     "name": "--check",
     "flags": [
      "--check"
     ],
     "positional": false,
     "help": "with forget: print the state roots and rows it would remove and change nothing",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--source",
     "flags": [
      "--source"
     ],
     "positional": false,
     "help": "read this sink's rows instead of the home folder's",
     "metavar": "SINK",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--local",
     "flags": [
      "--local"
     ],
     "positional": false,
     "help": "only this machine's rows",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--sync",
     "flags": [
      "--sync"
     ],
     "positional": false,
     "help": "sync the sinks before reading",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--month",
     "flags": [
      "--month"
     ],
     "positional": false,
     "help": "the month to show; `stats forget` takes none",
     "metavar": "YYYY-MM",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--since",
     "flags": [
      "--since"
     ],
     "positional": false,
     "help": "only rows since this date",
     "metavar": "YYYY-MM-DD",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--by",
     "flags": [
      "--by"
     ],
     "positional": false,
     "help": "split the rows by this field",
     "metavar": "BY",
     "choices": [
      "machine",
      "user",
      "repo",
      "workflow",
      "version",
      "executor",
      "model",
      "ticket",
      "exit",
      "month",
      "parent",
      "schedule",
      "level",
      "decider",
      "host"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--projection",
     "flags": [
      "--projection"
     ],
     "positional": false,
     "help": "add each workflow's median and 90th percentile cost per finished run",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--live",
     "flags": [
      "--live"
     ],
     "positional": false,
     "help": "the live runs on every machine, from their heartbeats",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the rows as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Inspect and improve workflows",
   "name": "store",
   "help": "size, retention and export of the local store",
   "usage": "tempergraph store [-h] {usage,prune,export} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "usage",
     "help": "the store's size per thread and kind, and the threads past the retention rule",
     "usage": "tempergraph store usage [-h] [--json]",
     "arguments": [
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the usage as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "prune",
     "help": "apply the retention rule: remove session logs and records of finished threads past their age",
     "usage": "tempergraph store prune [-h] [--older-than DAYS] [--keep-failed | --no-keep-failed] [--schedules] [--dry-run] [--json]",
     "arguments": [
      {
       "name": "--older-than",
       "flags": [
        "--older-than"
       ],
       "positional": false,
       "help": "the age in days after which a finished thread's session logs go (default 30)",
       "metavar": "DAYS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null,
       "default": 30.0
      },
      {
       "name": "--no-keep-failed",
       "flags": [
        "--keep-failed",
        "--no-keep-failed"
       ],
       "positional": false,
       "help": "keep the logs of stopped or failed threads (the default); --no-keep-failed prunes them",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--schedules",
       "flags": [
        "--schedules"
       ],
       "positional": false,
       "help": "also drop scheduled-run ledger rows older than --older-than days; kept without it",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--dry-run",
       "flags": [
        "--dry-run"
       ],
       "positional": false,
       "help": "print what would be removed; remove nothing",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print what was removed as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "export",
     "help": "pack one run's folder into a .tar.gz, its text files scrubbed of secrets",
     "usage": "tempergraph store export [-h] selector path",
     "arguments": [
      {
       "name": "selector",
       "flags": [],
       "positional": true,
       "help": "the thread: <workflow>/<task id>, or its alias",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "path",
       "flags": [],
       "positional": true,
       "help": "the .tar.gz file to write, outside the state root",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Author and upgrade workflows",
   "name": "author",
   "help": "author a workflow from what a good result is: sessions, approvals, verify, trial and grade",
   "usage": "tempergraph author [-h] {start,intake,check,show,drop,list,approve,verify,trial,grade} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "start",
     "help": "open an authoring session for a new workflow, or a revise session for an existing one",
     "usage": "tempergraph author start [-h] [--from {solution,sources,chat}] [--revise] name [paths ...]",
     "arguments": [
      {
       "name": "name",
       "flags": [],
       "positional": true,
       "help": "the new workflow's name, or the workflow to revise",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "paths",
       "flags": [],
       "positional": true,
       "help": "source files to read in: a script, prompts, templates or examples",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "*"
      },
      {
       "name": "--from",
       "flags": [
        "--from"
       ],
       "positional": false,
       "help": "how the session starts: from an existing solution, from sources, or from a chat; repeatable for a mixed session",
       "metavar": "FROM_",
       "choices": [
        "solution",
        "sources",
        "chat"
       ],
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--revise",
       "flags": [
        "--revise"
       ],
       "positional": false,
       "help": "revise an existing workflow's outcome",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "intake",
     "help": "add sources to a session and run the model-free inventory",
     "usage": "tempergraph author intake [-h] [--kind KIND] [--artifact ARTIFACT] [--unit UNIT] [--outside] id paths [paths ...]",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the authoring session id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "paths",
       "flags": [],
       "positional": true,
       "help": "the source files to add",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": "+"
      },
      {
       "name": "--kind",
       "flags": [
        "--kind"
       ],
       "positional": false,
       "help": "the source's kind, such as solution, reference, example_good, example_bad or other",
       "metavar": "KIND",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--artifact",
       "flags": [
        "--artifact"
       ],
       "positional": false,
       "help": "the artifact an example is for",
       "metavar": "ARTIFACT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--unit",
       "flags": [
        "--unit"
       ],
       "positional": false,
       "help": "the unit an example is for",
       "metavar": "UNIT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--outside",
       "flags": [
        "--outside"
       ],
       "positional": false,
       "help": "a path outside the workspace the person named",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "check",
     "help": "check a session's drafts: outcome, blueprint, coverage and criteria; read-only",
     "usage": "tempergraph author check [-h] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the authoring session id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "show",
     "help": "a session's phase, sources, drafts, open decisions and approvals; read-only",
     "usage": "tempergraph author show [-h] [--json] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the authoring session id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the session as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "drop",
     "help": "remove a session's folder",
     "usage": "tempergraph author drop [-h] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the authoring session id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "list",
     "help": "every open authoring session",
     "usage": "tempergraph author list [-h]",
     "arguments": [],
     "verbs": []
    },
    {
     "name": "approve",
     "help": "record a person's approval of one phase of a session",
     "usage": "tempergraph author approve [-h] id phase",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the authoring session id",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "phase",
       "flags": [],
       "positional": true,
       "help": "the phase number, 1 to 7",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "verify",
     "help": "run the checks an authored workflow must pass before anyone relies on it",
     "usage": "tempergraph author verify [-h] [--judge-seeds] [--trial] [--case CASE] [--cap CAP] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow, registered or as a package folder",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-seeds",
       "flags": [
        "--judge-seeds"
       ],
       "positional": false,
       "help": "also grade each judge's seed cases with the real judge (spends)",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--trial",
       "flags": [
        "--trial"
       ],
       "positional": false,
       "help": "also run one case end to end as a trial (spends; needs --case)",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--case",
       "flags": [
        "--case"
       ],
       "positional": false,
       "help": "the eval case the trial runs",
       "metavar": "CASE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cap",
       "flags": [
        "--cap"
       ],
       "positional": false,
       "help": "the most --judge-seeds and --trial may spend together, in USD (default 5)",
       "metavar": "CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null,
       "default": 5.0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the rungs as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "trial",
     "help": "the first trial's report: each criterion's status and the person's grade",
     "usage": "tempergraph author trial [-h] [--json] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow whose first trial to report",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the report as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "grade",
     "help": "the person's grade on one criterion of the trial's output",
     "usage": "tempergraph author grade [-h] [--unit UNIT] --criterion CRITERION --status {MET,PARTIAL,UNMET,N/A,UNVERIFIABLE} --reason REASON [--reviewer REVIEWER] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow whose trial output is graded",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--unit",
       "flags": [
        "--unit"
       ],
       "positional": false,
       "help": "the criterion's unit; `outcome` for a final criterion",
       "metavar": "UNIT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null,
       "default": "outcome"
      },
      {
       "name": "--criterion",
       "flags": [
        "--criterion"
       ],
       "positional": false,
       "help": "the criterion id",
       "metavar": "CRITERION",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--status",
       "flags": [
        "--status"
       ],
       "positional": false,
       "help": "the person's grade",
       "metavar": "STATUS",
       "choices": [
        "MET",
        "PARTIAL",
        "UNMET",
        "N/A",
        "UNVERIFIABLE"
       ],
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--reason",
       "flags": [
        "--reason"
       ],
       "positional": false,
       "help": "why, in a sentence",
       "metavar": "REASON",
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--reviewer",
       "flags": [
        "--reviewer"
       ],
       "positional": false,
       "help": "the reviewer's handle (default the caller)",
       "metavar": "REVIEWER",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the recorded grade as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Author and upgrade workflows",
   "name": "blueprint",
   "help": "check, draw or compare a workflow blueprint (no model)",
   "usage": "tempergraph blueprint [-h] {check,draw,compare} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "check",
     "help": "check a blueprint file with the workflow model's rules",
     "usage": "tempergraph blueprint check [-h] [--outcome OUTCOME] file",
     "arguments": [
      {
       "name": "file",
       "flags": [],
       "positional": true,
       "help": "the blueprint JSON file",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--outcome",
       "flags": [
        "--outcome"
       ],
       "positional": false,
       "help": "the outcome JSON file to check or draw with it",
       "metavar": "OUTCOME",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "draw",
     "help": "draw a blueprint file as a diagram",
     "usage": "tempergraph blueprint draw [-h] [--outcome OUTCOME] [--format {md,svg,mermaid}] file",
     "arguments": [
      {
       "name": "file",
       "flags": [],
       "positional": true,
       "help": "the blueprint JSON file",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--outcome",
       "flags": [
        "--outcome"
       ],
       "positional": false,
       "help": "the outcome JSON file to check or draw with it",
       "metavar": "OUTCOME",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--format",
       "flags": [
        "--format"
       ],
       "positional": false,
       "help": "the diagram format: md (the default), svg or mermaid",
       "metavar": "FORMAT",
       "choices": [
        "md",
        "svg",
        "mermaid"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null,
       "default": "md"
      }
     ],
     "verbs": []
    },
    {
     "name": "compare",
     "help": "compare a package with its blueprint; exit 2 on a difference",
     "usage": "tempergraph blueprint compare [-h] workflow",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the registered workflow or package folder to compare with its blueprint",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Author and upgrade workflows",
   "name": "scaffold",
   "help": "write a workflow package from an approved authoring session (no model)",
   "usage": "tempergraph scaffold [-h] --out OUT [--update] [--update-docs] session",
   "arguments": [
    {
     "name": "session",
     "flags": [],
     "positional": true,
     "help": "a session id under <state root>/authoring/, or its folder",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--out",
     "flags": [
      "--out"
     ],
     "positional": false,
     "help": "the folder to write the package to",
     "metavar": "OUT",
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--update",
     "flags": [
      "--update"
     ],
     "positional": false,
     "help": "regenerate the generated files of an existing package; files a person edited are kept and listed",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--update-docs",
     "flags": [
      "--update-docs"
     ],
     "positional": false,
     "help": "regenerate only docs/, outcome.json and blueprint.json",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Author and upgrade workflows",
   "name": "literals",
   "help": "scan a workflow for case literals (no model)",
   "usage": "tempergraph literals [-h] [--cases] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow to scan",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--cases",
     "flags": [
      "--cases"
     ],
     "positional": false,
     "help": "also match runs of six words from case requests",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Author and upgrade workflows",
   "name": "upgrade",
   "help": "bring a workflow up to the running engine",
   "usage": "tempergraph upgrade [-h] [--check] [--fail-on {pending,never}] [--no-assist] [--executor EXECUTOR] [--cap CAP] [--trial] [--cases CASES] [--bump] [--open-pr] [--continue UPGRADE_ID] [--stamp] [--format {text,json}] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow, registered or as a package folder",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--check",
     "flags": [
      "--check"
     ],
     "positional": false,
     "help": "plan only: read-only, model-free",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--fail-on",
     "flags": [
      "--fail-on"
     ],
     "positional": false,
     "help": "with --check: exit 6 when changes are pending (default never)",
     "metavar": "FAIL_ON",
     "choices": [
      "pending",
      "never"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "never"
    },
    {
     "name": "--no-assist",
     "flags": [
      "--no-assist"
     ],
     "positional": false,
     "help": "transforms only; assisted items stay manual",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--executor",
     "flags": [
      "--executor"
     ],
     "positional": false,
     "help": "the executor of the upgrade workflow's sessions",
     "metavar": "EXECUTOR",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--cap",
     "flags": [
      "--cap"
     ],
     "positional": false,
     "help": "cost cap of the assist run, in USD",
     "metavar": "CAP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": 10.0
    },
    {
     "name": "--trial",
     "flags": [
      "--trial"
     ],
     "positional": false,
     "help": "also a paired trial of the result (not built yet)",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--cases",
     "flags": [
      "--cases"
     ],
     "positional": false,
     "help": "the case set of --trial",
     "metavar": "CASES",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--bump",
     "flags": [
      "--bump"
     ],
     "positional": false,
     "help": "write the proposed version to the branch",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--open-pr",
     "flags": [
      "--open-pr"
     ],
     "positional": false,
     "help": "open a draft pull request with the report",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--continue",
     "flags": [
      "--continue"
     ],
     "positional": false,
     "help": "go on after a pause, a fix by hand or a failed check",
     "metavar": "UPGRADE_ID",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--stamp",
     "flags": [
      "--stamp"
     ],
     "positional": false,
     "help": "when nothing needs changing, run the checks and stamp the package for this engine",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--format",
     "flags": [
      "--format"
     ],
     "positional": false,
     "help": "the report format (default json)",
     "metavar": "FORMAT",
     "choices": [
      "text",
      "json"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "json"
    }
   ],
   "verbs": []
  },
  {
   "group": "Author and upgrade workflows",
   "name": "upgrade-check",
   "help": "check a workflow against the running engine (the same as upgrade --check)",
   "usage": "tempergraph upgrade-check [-h] [--stamp] [--format {text,json}] workflow",
   "arguments": [
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow, registered or as a package folder",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--stamp",
     "flags": [
      "--stamp"
     ],
     "positional": false,
     "help": "when nothing needs changing, run the checks and stamp the package for this engine",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--format",
     "flags": [
      "--format"
     ],
     "positional": false,
     "help": "the report format (default json)",
     "metavar": "FORMAT",
     "choices": [
      "text",
      "json"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null,
     "default": "json"
    }
   ],
   "verbs": []
  },
  {
   "group": "Author and upgrade workflows",
   "name": "hooks",
   "help": "commands the engine runs on lifecycle events: add, remove, list, test",
   "usage": "tempergraph hooks [-h] {add,remove,list,test} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "add",
     "help": "register a command for an event: hooks add <event> -- <argv…>",
     "usage": "tempergraph hooks add [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] event ...",
     "arguments": [
      {
       "name": "event",
       "flags": [],
       "positional": true,
       "help": "the event the hook runs on",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "argv",
       "flags": [],
       "positional": true,
       "help": "the command and its arguments, after `--`",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "..."
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "remove",
     "help": "remove one hook by its id",
     "usage": "tempergraph hooks remove [-h] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the hook's id, as `hooks list` prints it",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "list",
     "help": "the registered hooks",
     "usage": "tempergraph hooks list [-h]",
     "arguments": [],
     "verbs": []
    },
    {
     "name": "test",
     "help": "run an event's hooks once against a fixture facts file",
     "usage": "tempergraph hooks test [-h] event",
     "arguments": [
      {
       "name": "event",
       "flags": [],
       "positional": true,
       "help": "the event to run the hooks of",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Install, register and place runs",
   "name": "install",
   "help": "first install of the engine",
   "usage": "tempergraph install [-h] [--check] [--json] [--with {agent-sdk,messages-api}] [--add-to-path] [--repair]",
   "arguments": [
    {
     "name": "--check",
     "flags": [
      "--check"
     ],
     "positional": false,
     "help": "look up and print the plan; read-only",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print each line of the report as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--with",
     "flags": [
      "--with"
     ],
     "positional": false,
     "help": "also install an optional executor's packages; repeatable",
     "metavar": "EXTRAS",
     "choices": [
      "agent-sdk",
      "messages-api"
     ],
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--add-to-path",
     "flags": [
      "--add-to-path"
     ],
     "positional": false,
     "help": "also put the `tempergraph` command on your PATH",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--repair",
     "flags": [
      "--repair"
     ],
     "positional": false,
     "help": "rewrite the shim and current.json; install nothing",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Install, register and place runs",
   "name": "update",
   "help": "move to the engine release staged in the plugin; roll back; prune old engines",
   "usage": "tempergraph update [-h] [--check] [--dry-run] [--json] [--with {agent-sdk,messages-api}] [--rollback] [--restore-backups] [--prune-engines]",
   "arguments": [
    {
     "name": "--check",
     "flags": [
      "--check"
     ],
     "positional": false,
     "help": "plan only; read-only",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--dry-run",
     "flags": [
      "--dry-run"
     ],
     "positional": false,
     "help": "print the plan with every write it would make",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the plan and the report as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--with",
     "flags": [
      "--with"
     ],
     "positional": false,
     "help": "also install an optional executor's packages; repeatable",
     "metavar": "EXTRAS",
     "choices": [
      "agent-sdk",
      "messages-api"
     ],
     "required": false,
     "repeatable": true,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--rollback",
     "flags": [
      "--rollback"
     ],
     "positional": false,
     "help": "go back to the previous engine release",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--restore-backups",
     "flags": [
      "--restore-backups"
     ],
     "positional": false,
     "help": "with --rollback: restore the pre-migration backup of a state root the older engine cannot read",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--prune-engines",
     "flags": [
      "--prune-engines"
     ],
     "positional": false,
     "help": "remove old engine environments that nothing is pinned to or running on",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Install, register and place runs",
   "name": "workflows",
   "help": "the workflow registry",
   "usage": "tempergraph workflows [-h] {list,register,unregister,reinstall} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "list",
     "help": "the registry, with state and pins",
     "usage": "tempergraph workflows list [-h] [--json]",
     "arguments": [
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the registry as JSON (the default is text)",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "register",
     "help": "register a local workflow package",
     "usage": "tempergraph workflows register [-h] [--check] path",
     "arguments": [
      {
       "name": "path",
       "flags": [],
       "positional": true,
       "help": "the package folder, holding tempergraph.json",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--check",
       "flags": [
        "--check"
       ],
       "positional": false,
       "help": "load and validate only; nothing is written",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "unregister",
     "help": "remove a registry entry, never files",
     "usage": "tempergraph workflows unregister [-h] name",
     "arguments": [
      {
       "name": "name",
       "flags": [],
       "positional": true,
       "help": "the workflow's name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "reinstall",
     "help": "dependencies, then load and validate",
     "usage": "tempergraph workflows reinstall [-h] [--all] [name]",
     "arguments": [
      {
       "name": "name",
       "flags": [],
       "positional": true,
       "help": "the workflow's name",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--all",
       "flags": [
        "--all"
       ],
       "positional": false,
       "help": "reinstall every registered workflow",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Install, register and place runs",
   "name": "worktree",
   "help": "run worktrees",
   "usage": "tempergraph worktree [-h] {list,path,prune} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "list",
     "help": "list this repository's run worktrees with their thread, branch and state",
     "usage": "tempergraph worktree list [-h] [--all] [--json]",
     "arguments": [
      {
       "name": "--all",
       "flags": [
        "--all"
       ],
       "positional": false,
       "help": "also foreign worktrees and git worktrees no record owns",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the list as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "path",
     "help": "print a thread's worktree path, for cd \"$(tempergraph worktree path <thread>)\"",
     "usage": "tempergraph worktree path [-h] thread",
     "arguments": [
      {
       "name": "thread",
       "flags": [],
       "positional": true,
       "help": "the thread: <workflow>/<task id>, or its alias",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      }
     ],
     "verbs": []
    },
    {
     "name": "prune",
     "help": "list removable run worktrees; --apply removes them, clean ones only",
     "usage": "tempergraph worktree prune [-h] [--thread THREAD] [--finished] [--older-than DAYS] [--apply] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed]",
     "arguments": [
      {
       "name": "--thread",
       "flags": [
        "--thread"
       ],
       "positional": false,
       "help": "only this thread's worktree",
       "metavar": "THREAD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--finished",
       "flags": [
        "--finished"
       ],
       "positional": false,
       "help": "only worktrees of finished threads",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--older-than",
       "flags": [
        "--older-than"
       ],
       "positional": false,
       "help": "only worktrees older than this many days",
       "metavar": "DAYS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--apply",
       "flags": [
        "--apply"
       ],
       "positional": false,
       "help": "remove the listed worktrees; without it nothing is removed",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the list as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Install, register and place runs",
   "name": "carry",
   "help": "a run's state on its own git branch, to move it between machines: push, pull, status, drop",
   "usage": "tempergraph carry [-h] [--remote REMOTE] [--force] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] {push,pull,status,drop} workflow thread",
   "arguments": [
    {
     "name": "action",
     "flags": [],
     "positional": true,
     "help": "push the thread's state to its branch, pull it, show its status or drop the branch",
     "metavar": null,
     "choices": [
      "push",
      "pull",
      "status",
      "drop"
     ],
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "workflow",
     "flags": [],
     "positional": true,
     "help": "the workflow of the thread",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "thread",
     "flags": [],
     "positional": true,
     "help": "the thread: <workflow>/<task id>, or its alias",
     "metavar": null,
     "choices": null,
     "required": true,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--remote",
     "flags": [
      "--remote"
     ],
     "positional": false,
     "help": "the git remote to use (default origin)",
     "metavar": "REMOTE",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--force",
     "flags": [
      "--force"
     ],
     "positional": false,
     "help": "take over a thread whose lease another machine holds; the takeover is recorded",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print the outcome as JSON",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller",
     "flags": [
      "--caller"
     ],
     "positional": false,
     "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
     "metavar": "CALLER",
     "choices": [
      "person",
      "agent",
      "pipeline",
      "orchestrator",
      "scheduler",
      "engine"
     ],
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--as-agent",
     "flags": [
      "--as-agent"
     ],
     "positional": false,
     "help": "the same as --caller agent",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    },
    {
     "name": "--caller-app",
     "flags": [
      "--caller-app"
     ],
     "positional": false,
     "help": "the name of the calling agent or pipeline application, recorded with the call",
     "metavar": "CALLER_APP",
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": true,
     "nargs": null
    },
    {
     "name": "--relayed",
     "flags": [
      "--relayed"
     ],
     "positional": false,
     "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  },
  {
   "group": "Install, register and place runs",
   "name": "schedule",
   "help": "schedule a workflow once or on a recurrence",
   "usage": "tempergraph schedule [-h] {parse,add,list,show,history,edit,pause,resume,skip,remove,runs,fire,trigger,loop,tick,export} ...",
   "arguments": [],
   "verbs": [
    {
     "name": "parse",
     "help": "the echo of a timing, or its question or refusal; writes nothing",
     "usage": "tempergraph schedule parse [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--json] [phrase]",
     "arguments": [
      {
       "name": "phrase",
       "flags": [],
       "positional": true,
       "help": "a phrase (or use --when or an exact format)",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--when",
       "flags": [
        "--when"
       ],
       "positional": false,
       "help": "a phrase such as 'every weekday at 8:00'",
       "metavar": "WHEN",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--at",
       "flags": [
        "--at"
       ],
       "positional": false,
       "help": "ISO 8601 local, or with an offset or Z: once",
       "metavar": "AT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--rrule",
       "flags": [
        "--rrule"
       ],
       "positional": false,
       "help": "an RFC 5545 RECUR of the stored subset",
       "metavar": "RRULE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--every",
       "flags": [
        "--every"
       ],
       "positional": false,
       "help": "an ISO 8601 duration of at least PT15M",
       "metavar": "EVERY",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cron",
       "flags": [
        "--cron"
       ],
       "positional": false,
       "help": "five fields, read in the schedule's zone",
       "metavar": "CRON",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--tz",
       "flags": [
        "--tz"
       ],
       "positional": false,
       "help": "an IANA zone name",
       "metavar": "TZ",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--starts",
       "flags": [
        "--starts"
       ],
       "positional": false,
       "help": "the first date the schedule may fire",
       "metavar": "STARTS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--until",
       "flags": [
        "--until"
       ],
       "positional": false,
       "help": "the last date the schedule may fire",
       "metavar": "UNTIL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--count",
       "flags": [
        "--count"
       ],
       "positional": false,
       "help": "stop after this many fires",
       "metavar": "COUNT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--choose",
       "flags": [
        "--choose"
       ],
       "positional": false,
       "help": "the reading of an ambiguous phrase",
       "metavar": "CHOOSE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the echo as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "add",
     "help": "schedule a workflow",
     "usage": "tempergraph schedule add [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--workspace {auto,worktree,in_place} | --worktree | --in-place] [--budget PERIOD:USD] [--catch-up {latest,none,all}] [--overlap {skip,queue,parallel}] [--max-live MAX_LIVE] [--pause-after-failures PAUSE_AFTER_FAILURES] [--name NAME] [--input K=V] [--orchestration FILE] [--arg K=V] [--program [PROGRAM]] [--check] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] [workflow] [request ...]",
     "arguments": [
      {
       "name": "workflow",
       "flags": [],
       "positional": true,
       "help": "the workflow to run",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "request",
       "flags": [],
       "positional": true,
       "help": "the request each run is given",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "*"
      },
      {
       "name": "--when",
       "flags": [
        "--when"
       ],
       "positional": false,
       "help": "a phrase such as 'every weekday at 8:00'",
       "metavar": "WHEN",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--at",
       "flags": [
        "--at"
       ],
       "positional": false,
       "help": "ISO 8601 local, or with an offset or Z: once",
       "metavar": "AT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--rrule",
       "flags": [
        "--rrule"
       ],
       "positional": false,
       "help": "an RFC 5545 RECUR of the stored subset",
       "metavar": "RRULE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--every",
       "flags": [
        "--every"
       ],
       "positional": false,
       "help": "an ISO 8601 duration of at least PT15M",
       "metavar": "EVERY",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cron",
       "flags": [
        "--cron"
       ],
       "positional": false,
       "help": "five fields, read in the schedule's zone",
       "metavar": "CRON",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--tz",
       "flags": [
        "--tz"
       ],
       "positional": false,
       "help": "an IANA zone name",
       "metavar": "TZ",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--starts",
       "flags": [
        "--starts"
       ],
       "positional": false,
       "help": "the first date the schedule may fire",
       "metavar": "STARTS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--until",
       "flags": [
        "--until"
       ],
       "positional": false,
       "help": "the last date the schedule may fire",
       "metavar": "UNTIL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--count",
       "flags": [
        "--count"
       ],
       "positional": false,
       "help": "stop after this many fires",
       "metavar": "COUNT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--choose",
       "flags": [
        "--choose"
       ],
       "positional": false,
       "help": "the reading of an ambiguous phrase",
       "metavar": "CHOOSE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of every step (sets steps.executor)",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-executor",
       "flags": [
        "--judge-executor"
       ],
       "positional": false,
       "help": "the executor of every judge (sets judges.executor)",
       "metavar": "JUDGE_EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--model",
       "flags": [
        "--model"
       ],
       "positional": false,
       "help": "the model of every step, as an alias such as sonnet or opus (sets steps.model)",
       "metavar": "MODEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-model",
       "flags": [
        "--judge-model"
       ],
       "positional": false,
       "help": "the model of every judge, as an alias (sets judges.model)",
       "metavar": "JUDGE_MODEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--timeout",
       "flags": [
        "--timeout"
       ],
       "positional": false,
       "help": "seconds a step session may run before it is stopped (sets steps.timeout_s)",
       "metavar": "TIMEOUT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-timeout",
       "flags": [
        "--judge-timeout"
       ],
       "positional": false,
       "help": "seconds a judge session may run before it is stopped (sets judges.timeout_s)",
       "metavar": "JUDGE_TIMEOUT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--idle",
       "flags": [
        "--idle"
       ],
       "positional": false,
       "help": "seconds a step session may stay silent before it is stopped (sets steps.idle_s)",
       "metavar": "IDLE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--run-cost-cap",
       "flags": [
        "--run-cost-cap"
       ],
       "positional": false,
       "help": "the most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)",
       "metavar": "RUN_COST_CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--daily-cap",
       "flags": [
        "--daily-cap"
       ],
       "positional": false,
       "help": "the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)",
       "metavar": "DAILY_CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--auto-reopen",
       "flags": [
        "--auto-reopen"
       ],
       "positional": false,
       "help": "re-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)",
       "metavar": "AUTO_REOPEN",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--audit-rate",
       "flags": [
        "--audit-rate"
       ],
       "positional": false,
       "help": "the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)",
       "metavar": "AUDIT_RATE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--audit-executor",
       "flags": [
        "--audit-executor"
       ],
       "positional": false,
       "help": "the executor of the audit judge (sets run.audit_executor)",
       "metavar": "AUDIT_EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--step-executor",
       "flags": [
        "--step-executor"
       ],
       "positional": false,
       "help": "the executor of one step; repeatable",
       "metavar": "STEP=NAME",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--step-model",
       "flags": [
        "--step-model"
       ],
       "positional": false,
       "help": "the model of one step; repeatable",
       "metavar": "STEP=ALIAS",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--approve",
       "flags": [
        "--approve"
       ],
       "positional": false,
       "help": "add a person's approval pause at this step's gate; repeatable",
       "metavar": "STEP",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--grant",
       "flags": [
        "--grant"
       ],
       "positional": false,
       "help": "give a unit extra tool capabilities for this run; repeatable",
       "metavar": "UNIT=CAPABILITY[,…]",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--allow-command",
       "flags": [
        "--allow-command"
       ],
       "positional": false,
       "help": "let a unit run shell commands that start with this prefix; repeatable",
       "metavar": "UNIT=PREFIX",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--enforce-tools",
       "flags": [
        "--enforce-tools"
       ],
       "positional": false,
       "help": "limit each step to the tools it declares; a step on an executor that cannot enforce them is refused",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--strict-permissions",
       "flags": [
        "--strict-permissions"
       ],
       "positional": false,
       "help": "enforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--set",
       "flags": [
        "--set"
       ],
       "positional": false,
       "help": "set one run setting for this thread; repeatable (`tempergraph config show` lists the keys)",
       "metavar": "KEY=VALUE",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--settings",
       "flags": [
        "--settings"
       ],
       "positional": false,
       "help": "a JSON map of keys to values, recorded as flags",
       "metavar": "FILE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--profile",
       "flags": [
        "--profile"
       ],
       "positional": false,
       "help": "apply a named settings profile from the settings files; repeatable",
       "metavar": "PROFILE",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--workspace",
       "flags": [
        "--workspace"
       ],
       "positional": false,
       "help": "where each run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout)",
       "metavar": "WORKSPACE",
       "choices": [
        "auto",
        "worktree",
        "in_place"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--worktree",
       "flags": [
        "--worktree"
       ],
       "positional": false,
       "help": "the same as --workspace worktree",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--in-place",
       "flags": [
        "--in-place"
       ],
       "positional": false,
       "help": "the same as --workspace in_place",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--budget",
       "flags": [
        "--budget"
       ],
       "positional": false,
       "help": "day, week or month, and the cap over that period",
       "metavar": "PERIOD:USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--catch-up",
       "flags": [
        "--catch-up"
       ],
       "positional": false,
       "help": "slots missed while the machine was off: fire the latest (the default), none, or all",
       "metavar": "CATCH_UP",
       "choices": [
        "latest",
        "none",
        "all"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--overlap",
       "flags": [
        "--overlap"
       ],
       "positional": false,
       "help": "a slot due while a run is live: skip it (the default), queue one, or start in parallel",
       "metavar": "OVERLAP",
       "choices": [
        "skip",
        "queue",
        "parallel"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--max-live",
       "flags": [
        "--max-live"
       ],
       "positional": false,
       "help": "with --overlap parallel: the most runs live at once",
       "metavar": "MAX_LIVE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--pause-after-failures",
       "flags": [
        "--pause-after-failures"
       ],
       "positional": false,
       "help": "pause the schedule after this many failed fires in a row",
       "metavar": "PAUSE_AFTER_FAILURES",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--name",
       "flags": [
        "--name"
       ],
       "positional": false,
       "help": "a name for the schedule",
       "metavar": "NAME",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--input",
       "flags": [
        "--input"
       ],
       "positional": false,
       "help": "a workflow input; repeatable",
       "metavar": "K=V",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--orchestration",
       "flags": [
        "--orchestration"
       ],
       "positional": false,
       "help": "schedule an orchestration file (not built yet)",
       "metavar": "FILE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--arg",
       "flags": [
        "--arg"
       ],
       "positional": false,
       "help": "an orchestration argument; repeatable (not built yet)",
       "metavar": "K=V",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--program",
       "flags": [
        "--program"
       ],
       "positional": false,
       "help": "reserved",
       "metavar": "PROGRAM",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--check",
       "flags": [
        "--check"
       ],
       "positional": false,
       "help": "parse and check; save nothing",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--yes",
       "flags": [
        "--yes"
       ],
       "positional": false,
       "help": "save without asking; with no terminal, the schedule is saved only with --yes",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "list",
     "help": "every schedule on this machine",
     "usage": "tempergraph schedule list [-h] [--all] [--json]",
     "arguments": [
      {
       "name": "--all",
       "flags": [
        "--all"
       ],
       "positional": false,
       "help": "also removed and finished schedules",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the list as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "show",
     "help": "one schedule: entry, echo, next ten slots, last 20 fires",
     "usage": "tempergraph schedule show [-h] [--json] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the schedule as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "history",
     "help": "a schedule's fire log",
     "usage": "tempergraph schedule history [-h] [--since DATE] [--json] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--since",
       "flags": [
        "--since"
       ],
       "positional": false,
       "help": "only fires since this date",
       "metavar": "DATE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the history as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "edit",
     "help": "change a schedule's timing or options (its target is fixed)",
     "usage": "tempergraph schedule edit [-h] [--when WHEN] [--at AT] [--rrule RRULE] [--every EVERY] [--cron CRON] [--tz TZ] [--starts STARTS] [--until UNTIL] [--count COUNT] [--choose CHOOSE] [--executor EXECUTOR] [--judge-executor JUDGE_EXECUTOR] [--model MODEL] [--judge-model JUDGE_MODEL] [--timeout TIMEOUT] [--judge-timeout JUDGE_TIMEOUT] [--idle IDLE] [--run-cost-cap RUN_COST_CAP] [--daily-cap DAILY_CAP] [--auto-reopen AUTO_REOPEN] [--audit-rate AUDIT_RATE] [--audit-executor AUDIT_EXECUTOR] [--step-executor STEP=NAME] [--step-model STEP=ALIAS] [--approve STEP] [--grant UNIT=CAPABILITY[,…]] [--allow-command UNIT=PREFIX] [--enforce-tools] [--strict-permissions] [--set KEY=VALUE] [--settings FILE] [--profile PROFILE] [--workspace {auto,worktree,in_place} | --worktree | --in-place] [--budget PERIOD:USD] [--catch-up {latest,none,all}] [--overlap {skip,queue,parallel}] [--max-live MAX_LIVE] [--pause-after-failures PAUSE_AFTER_FAILURES] [--workflow WORKFLOW] [--repo REPO] [--orchestration ORCHESTRATION] [--program [PROGRAM]] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id [phrase]",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "phrase",
       "flags": [],
       "positional": true,
       "help": "a new timing phrase",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--when",
       "flags": [
        "--when"
       ],
       "positional": false,
       "help": "a phrase such as 'every weekday at 8:00'",
       "metavar": "WHEN",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--at",
       "flags": [
        "--at"
       ],
       "positional": false,
       "help": "ISO 8601 local, or with an offset or Z: once",
       "metavar": "AT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--rrule",
       "flags": [
        "--rrule"
       ],
       "positional": false,
       "help": "an RFC 5545 RECUR of the stored subset",
       "metavar": "RRULE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--every",
       "flags": [
        "--every"
       ],
       "positional": false,
       "help": "an ISO 8601 duration of at least PT15M",
       "metavar": "EVERY",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--cron",
       "flags": [
        "--cron"
       ],
       "positional": false,
       "help": "five fields, read in the schedule's zone",
       "metavar": "CRON",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--tz",
       "flags": [
        "--tz"
       ],
       "positional": false,
       "help": "an IANA zone name",
       "metavar": "TZ",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--starts",
       "flags": [
        "--starts"
       ],
       "positional": false,
       "help": "the first date the schedule may fire",
       "metavar": "STARTS",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--until",
       "flags": [
        "--until"
       ],
       "positional": false,
       "help": "the last date the schedule may fire",
       "metavar": "UNTIL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--count",
       "flags": [
        "--count"
       ],
       "positional": false,
       "help": "stop after this many fires",
       "metavar": "COUNT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--choose",
       "flags": [
        "--choose"
       ],
       "positional": false,
       "help": "the reading of an ambiguous phrase",
       "metavar": "CHOOSE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--executor",
       "flags": [
        "--executor"
       ],
       "positional": false,
       "help": "the executor of every step (sets steps.executor)",
       "metavar": "EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-executor",
       "flags": [
        "--judge-executor"
       ],
       "positional": false,
       "help": "the executor of every judge (sets judges.executor)",
       "metavar": "JUDGE_EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--model",
       "flags": [
        "--model"
       ],
       "positional": false,
       "help": "the model of every step, as an alias such as sonnet or opus (sets steps.model)",
       "metavar": "MODEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-model",
       "flags": [
        "--judge-model"
       ],
       "positional": false,
       "help": "the model of every judge, as an alias (sets judges.model)",
       "metavar": "JUDGE_MODEL",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--timeout",
       "flags": [
        "--timeout"
       ],
       "positional": false,
       "help": "seconds a step session may run before it is stopped (sets steps.timeout_s)",
       "metavar": "TIMEOUT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--judge-timeout",
       "flags": [
        "--judge-timeout"
       ],
       "positional": false,
       "help": "seconds a judge session may run before it is stopped (sets judges.timeout_s)",
       "metavar": "JUDGE_TIMEOUT",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--idle",
       "flags": [
        "--idle"
       ],
       "positional": false,
       "help": "seconds a step session may stay silent before it is stopped (sets steps.idle_s)",
       "metavar": "IDLE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--run-cost-cap",
       "flags": [
        "--run-cost-cap"
       ],
       "positional": false,
       "help": "the most this run may spend, in USD; the run stops with exit 5 when it is reached (sets run.run_cost_cap_usd)",
       "metavar": "RUN_COST_CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--daily-cap",
       "flags": [
        "--daily-cap"
       ],
       "positional": false,
       "help": "the self-improvement loop's spending limit per UTC day, in USD (sets run.daily_cap_usd)",
       "metavar": "DAILY_CAP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--auto-reopen",
       "flags": [
        "--auto-reopen"
       ],
       "positional": false,
       "help": "re-open a run that ended on spent retries, a step timeout or an infrastructure failure up to N times (sets run.auto_reopen)",
       "metavar": "AUTO_REOPEN",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--audit-rate",
       "flags": [
        "--audit-rate"
       ],
       "positional": false,
       "help": "the chance, 0 to 1, that a second judge audits a judgement; the audit never changes the verdict (sets run.audit_rate)",
       "metavar": "AUDIT_RATE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--audit-executor",
       "flags": [
        "--audit-executor"
       ],
       "positional": false,
       "help": "the executor of the audit judge (sets run.audit_executor)",
       "metavar": "AUDIT_EXECUTOR",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--step-executor",
       "flags": [
        "--step-executor"
       ],
       "positional": false,
       "help": "the executor of one step; repeatable",
       "metavar": "STEP=NAME",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--step-model",
       "flags": [
        "--step-model"
       ],
       "positional": false,
       "help": "the model of one step; repeatable",
       "metavar": "STEP=ALIAS",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--approve",
       "flags": [
        "--approve"
       ],
       "positional": false,
       "help": "add a person's approval pause at this step's gate; repeatable",
       "metavar": "STEP",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--grant",
       "flags": [
        "--grant"
       ],
       "positional": false,
       "help": "give a unit extra tool capabilities for this run; repeatable",
       "metavar": "UNIT=CAPABILITY[,…]",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--allow-command",
       "flags": [
        "--allow-command"
       ],
       "positional": false,
       "help": "let a unit run shell commands that start with this prefix; repeatable",
       "metavar": "UNIT=PREFIX",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--enforce-tools",
       "flags": [
        "--enforce-tools"
       ],
       "positional": false,
       "help": "limit each step to the tools it declares; a step on an executor that cannot enforce them is refused",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--strict-permissions",
       "flags": [
        "--strict-permissions"
       ],
       "positional": false,
       "help": "enforce declared tools, refuse undeclared ones and never run an executor in an automatic-approval mode",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--set",
       "flags": [
        "--set"
       ],
       "positional": false,
       "help": "set one run setting for this thread; repeatable (`tempergraph config show` lists the keys)",
       "metavar": "KEY=VALUE",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--settings",
       "flags": [
        "--settings"
       ],
       "positional": false,
       "help": "a JSON map of keys to values, recorded as flags",
       "metavar": "FILE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--profile",
       "flags": [
        "--profile"
       ],
       "positional": false,
       "help": "apply a named settings profile from the settings files; repeatable",
       "metavar": "PROFILE",
       "choices": null,
       "required": false,
       "repeatable": true,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--workspace",
       "flags": [
        "--workspace"
       ],
       "positional": false,
       "help": "where each run works: its own git worktree, in place, or auto (chosen from the workflow and the checkout)",
       "metavar": "WORKSPACE",
       "choices": [
        "auto",
        "worktree",
        "in_place"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--worktree",
       "flags": [
        "--worktree"
       ],
       "positional": false,
       "help": "the same as --workspace worktree",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--in-place",
       "flags": [
        "--in-place"
       ],
       "positional": false,
       "help": "the same as --workspace in_place",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--budget",
       "flags": [
        "--budget"
       ],
       "positional": false,
       "help": "day, week or month, and the cap over that period",
       "metavar": "PERIOD:USD",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--catch-up",
       "flags": [
        "--catch-up"
       ],
       "positional": false,
       "help": "slots missed while the machine was off: fire the latest (the default), none, or all",
       "metavar": "CATCH_UP",
       "choices": [
        "latest",
        "none",
        "all"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--overlap",
       "flags": [
        "--overlap"
       ],
       "positional": false,
       "help": "a slot due while a run is live: skip it (the default), queue one, or start in parallel",
       "metavar": "OVERLAP",
       "choices": [
        "skip",
        "queue",
        "parallel"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--max-live",
       "flags": [
        "--max-live"
       ],
       "positional": false,
       "help": "with --overlap parallel: the most runs live at once",
       "metavar": "MAX_LIVE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--pause-after-failures",
       "flags": [
        "--pause-after-failures"
       ],
       "positional": false,
       "help": "pause the schedule after this many failed fires in a row",
       "metavar": "PAUSE_AFTER_FAILURES",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--workflow",
       "flags": [
        "--workflow"
       ],
       "positional": false,
       "help": "a schedule's workflow is fixed: a different one is refused",
       "metavar": "WORKFLOW",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--repo",
       "flags": [
        "--repo"
       ],
       "positional": false,
       "help": "a schedule's repository is fixed: a different one is refused",
       "metavar": "REPO",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--orchestration",
       "flags": [
        "--orchestration"
       ],
       "positional": false,
       "help": "refused: a schedule's target kind is fixed",
       "metavar": "ORCHESTRATION",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--program",
       "flags": [
        "--program"
       ],
       "positional": false,
       "help": "refused: a schedule's target kind is fixed",
       "metavar": "PROGRAM",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": "?"
      },
      {
       "name": "--yes",
       "flags": [
        "--yes"
       ],
       "positional": false,
       "help": "save without asking",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "pause",
     "help": "stop firing a schedule",
     "usage": "tempergraph schedule pause [-h] [--reason REASON] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--reason",
       "flags": [
        "--reason"
       ],
       "positional": false,
       "help": "why, kept with the schedule",
       "metavar": "REASON",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "resume",
     "help": "start a paused schedule again",
     "usage": "tempergraph schedule resume [-h] [--catch-up] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--catch-up",
       "flags": [
        "--catch-up"
       ],
       "positional": false,
       "help": "the slots passed while paused may still fire",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "skip",
     "help": "skip the next slot, or every slot until a date",
     "usage": "tempergraph schedule skip [-h] [--next] [--until DATE] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--next",
       "flags": [
        "--next"
       ],
       "positional": false,
       "help": "skip only the next slot",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--until",
       "flags": [
        "--until"
       ],
       "positional": false,
       "help": "skip every slot until this date",
       "metavar": "DATE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "remove",
     "help": "remove a schedule; its history stays",
     "usage": "tempergraph schedule remove [-h] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--yes",
       "flags": [
        "--yes"
       ],
       "positional": false,
       "help": "remove without asking",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "runs",
     "help": "every scheduled run on this machine, from any directory",
     "usage": "tempergraph schedule runs [-h] [--schedule SCHEDULE] [--repo REPO] [--workflow WORKFLOW] [--since DATE] [--outcome {started,skipped,missed,refused}] [--detail] [--json]",
     "arguments": [
      {
       "name": "--schedule",
       "flags": [
        "--schedule"
       ],
       "positional": false,
       "help": "only runs of this schedule",
       "metavar": "SCHEDULE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--repo",
       "flags": [
        "--repo"
       ],
       "positional": false,
       "help": "only runs in this repository",
       "metavar": "REPO",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--workflow",
       "flags": [
        "--workflow"
       ],
       "positional": false,
       "help": "only runs of this workflow",
       "metavar": "WORKFLOW",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--since",
       "flags": [
        "--since"
       ],
       "positional": false,
       "help": "only runs since this date",
       "metavar": "DATE",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--outcome",
       "flags": [
        "--outcome"
       ],
       "positional": false,
       "help": "only runs with this outcome",
       "metavar": "OUTCOME",
       "choices": [
        "started",
        "skipped",
        "missed",
        "refused"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--detail",
       "flags": [
        "--detail"
       ],
       "positional": false,
       "help": "each run's live status through its state root",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the runs as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "fire",
     "help": "start one fire now through the tick's path; it spends",
     "usage": "tempergraph schedule fire [-h] [--yes] [--json] [--caller {person,agent,pipeline,orchestrator,scheduler,engine}] [--as-agent] [--caller-app CALLER_APP] [--relayed] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--yes",
       "flags": [
        "--yes"
       ],
       "positional": false,
       "help": "fire without asking",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print the outcome as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller",
       "flags": [
        "--caller"
       ],
       "positional": false,
       "help": "who is calling: person, agent or pipeline (the others are kept for the engine's own supervisors); a declaration can only lower trust",
       "metavar": "CALLER",
       "choices": [
        "person",
        "agent",
        "pipeline",
        "orchestrator",
        "scheduler",
        "engine"
       ],
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--as-agent",
       "flags": [
        "--as-agent"
       ],
       "positional": false,
       "help": "the same as --caller agent",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--caller-app",
       "flags": [
        "--caller-app"
       ],
       "positional": false,
       "help": "the name of the calling agent or pipeline application, recorded with the call",
       "metavar": "CALLER_APP",
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--relayed",
       "flags": [
        "--relayed"
       ],
       "positional": false,
       "help": "the decision is a person's, carried by an agent; checked against the person's last turn",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "trigger",
     "help": "the `os` adapter: install, status and remove the per-user autostart entry",
     "usage": "tempergraph schedule trigger [-h] {install,status,remove} ...",
     "arguments": [],
     "verbs": [
      {
       "name": "install",
       "help": "write one per-user entry that starts the loop at login; idempotent",
       "usage": "tempergraph schedule trigger install [-h] [--os] [--json]",
       "arguments": [
        {
         "name": "--os",
         "flags": [
          "--os"
         ],
         "positional": false,
         "help": "the `os` adapter",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        },
        {
         "name": "--json",
         "flags": [
          "--json"
         ],
         "positional": false,
         "help": "print the outcome as JSON",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        }
       ],
       "verbs": []
      },
      {
       "name": "status",
       "help": "every trigger seen, with its last error; writes nothing",
       "usage": "tempergraph schedule trigger status [-h] [--json]",
       "arguments": [
        {
         "name": "--json",
         "flags": [
          "--json"
         ],
         "positional": false,
         "help": "print the status as JSON",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        }
       ],
       "verbs": []
      },
      {
       "name": "remove",
       "help": "delete what `install` wrote",
       "usage": "tempergraph schedule trigger remove [-h] [--json]",
       "arguments": [
        {
         "name": "--json",
         "flags": [
          "--json"
         ],
         "positional": false,
         "help": "print the outcome as JSON",
         "metavar": null,
         "choices": null,
         "required": false,
         "repeatable": false,
         "takes_value": false,
         "nargs": 0
        }
       ],
       "verbs": []
      }
     ]
    },
    {
     "name": "loop",
     "help": "the portable trigger: tick, sleep to the next slot or 60 s, repeat",
     "usage": "tempergraph schedule loop [-h] [--detach | --stop]",
     "arguments": [
      {
       "name": "--detach",
       "flags": [
        "--detach"
       ],
       "positional": false,
       "help": "start the loop in the background; a running one is reported",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      },
      {
       "name": "--stop",
       "flags": [
        "--stop"
       ],
       "positional": false,
       "help": "end the running loop",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "tick",
     "help": "decide what is due and start it: the one call every trigger makes",
     "usage": "tempergraph schedule tick [-h] [--json]",
     "arguments": [
      {
       "name": "--json",
       "flags": [
        "--json"
       ],
       "positional": false,
       "help": "print what was started as JSON",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    },
    {
     "name": "export",
     "help": "print a snippet for a pipeline system; keeps nothing",
     "usage": "tempergraph schedule export [-h] --for {github-actions,gitlab-ci,crontab} [--pin-offset] id",
     "arguments": [
      {
       "name": "id",
       "flags": [],
       "positional": true,
       "help": "the schedule id or name",
       "metavar": null,
       "choices": null,
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--for",
       "flags": [
        "--for"
       ],
       "positional": false,
       "help": "the pipeline system to write the snippet for",
       "metavar": "TARGET",
       "choices": [
        "github-actions",
        "gitlab-ci",
        "crontab"
       ],
       "required": true,
       "repeatable": false,
       "takes_value": true,
       "nargs": null
      },
      {
       "name": "--pin-offset",
       "flags": [
        "--pin-offset"
       ],
       "positional": false,
       "help": "for a zone with daylight saving: pin today's UTC offset",
       "metavar": null,
       "choices": null,
       "required": false,
       "repeatable": false,
       "takes_value": false,
       "nargs": 0
      }
     ],
     "verbs": []
    }
   ]
  },
  {
   "group": "Install, register and place runs",
   "name": "help",
   "help": "this list of verbs, grouped",
   "usage": "tempergraph help [-h] [--json]",
   "arguments": [
    {
     "name": "--json",
     "flags": [
      "--json"
     ],
     "positional": false,
     "help": "print every verb, sub-verb, argument and option as one JSON document",
     "metavar": null,
     "choices": null,
     "required": false,
     "repeatable": false,
     "takes_value": false,
     "nargs": 0
    }
   ],
   "verbs": []
  }
 ]
}