bernstein_task_handle
Retrieve a verifiable task handle by run ID, embedding the audit-chain head to verify task execution offline. Supports stateless polling.
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.
Args: run_id: The run identifier whose journal to project. 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 | ||
| workdir | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |