bernstein_run_status
Poll a verifiable handle for a run started with bernstein_run using either the task_id or run_id returned by that call.
Instructions
Return a verifiable Tasks-extension handle for a run, by run id.
The handle's status is a pure projection of the run journal, and it
embeds the run's audit-chain head so the client can later verify the
task it watched corresponds to the audited run (bernstein audit verify or the offline verifier). Polling is stateless: any server
instance reprojects the same handle from the on-disk journal. A poll
that carries a progressToken also receives a
notifications/progress tick derived from the journal fold, and
only when the fold strictly advanced since the previous tick.
Args:
run_id: The run to project. Either identifier bernstein_run
returned is accepted: the task_id, or the run_id
naming the journal. Resolution is journal run id first, then
the task id slugified into a journal run id, so the two forms
reach one journal and project an identical handle. Must be a
plain identifier - path separators and traversal are refused.
workdir: Project root directory (default: current directory).
Returns:
JSON of the Tasks-extension task-handle body (taskId,
runId, status, journalHead, chainHead,
receiptHash, pollToken, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The run to project. Either the task_id or the run_id returned by bernstein_run. Resolved journal run id first, then the task id slugified into a journal run id, so both forms reach one journal. | |
| workdir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meter | Yes | ||
| result | Yes |