start_run
Initiate a background harness run for AI model debate on your project. It returns a run ID to poll or failure details.
Instructions
Start a harness run in the background. Returns the run id to poll with run_status, or started:false with the exit code and log tail if the run stopped at once. chain is a chain name as list_chains shows it (never a path). task, draft, context and from_run are paths inside your working directory (tasks/x.md, context/my-project, runs/); anything outside it, or on the secret/credential denylist, is refused. draft + from_run + rounds=1 makes a panel-only grading pass.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| chain | Yes | ||
| draft | No | path to a draft to review instead of building one | |
| rounds | No | ||
| context | No | ||
| max_usd | No | per-run spend ceiling in USD, a positive number. Defaults to MAX_USD_PER_RUN or $7. Pass "none" for no ceiling (refused if the user set COUNCIL_MAX_USD_LIMIT); 0 is refused. The run stops cleanly before any stage that could breach it, and resumes with a higher ceiling. | |
| from_run | No | reuse this earlier run's criteria | |
| pii_gate | No | scan the task for PII and the key formats in src/secret-patterns.js before any provider call: warn logs and proceeds, hard-stop refuses the run. Off unless given. | |
| allow_unfenced | No | waive the artifact gate: true for the whole task, or a list of file names that are only locations, not content the panel needs | |
| allow_secret_shaped | No | send key-shaped text anyway. Every prompt is scanned for the key formats in src/secret-patterns.js before it leaves, and a match refuses the run (exit 11, started:false with the file, line and format in the log, never the value). Saved with the run, so resume_run keeps it. Off unless given. |