build_wait
Waits server-side for a run to finish and returns its record; fails if timeout expires or, with strict materials, if material-guard warnings occur.
Instructions
Block (server-side, no client sleep loop) until the run finishes, then return its record. Raises if it is still running after timeout_sec. With strict_materials, a run whose log has material-guard warnings is an error even though its status is 'succeeded'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| timeout_sec | No | Give up after this many seconds (exit 7) | |
| strict_materials | No | When true, fail the call if the material guard flagged warnings |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | No | build | |
| lock | No | The host lock this run holds (owner build:<id>), when it is still its own | |
| notes | No | ||
| owner | Yes | Host-lock owner holding this run's lease, 'build:<id>' | |
| handle | No | Process handle (pid) when known | |
| status | Yes | ||
| command | Yes | ||
| host_id | Yes | ||
| summary | No | Parsed counts from the log summary line | |
| web_url | No | Absolute URL of this run's page in the web UI (Activity page) | |
| log_path | No | ||
| warnings | No | Material-guard findings; None when the log was clean or unscanned | |
| artifacts | No | ||
| exit_code | No | ||
| created_at | Yes | ||
| updated_at | Yes |