bernstein_task_capsule
Read and optionally verify a task's context capsule offline using the run journal and audit chain for multi-agent orchestration workflows.
Instructions
Return the worker's context capsule, optionally verified offline.
Args: task_id: The task whose capsule to read. Must be a plain identifier - path separators and traversal are refused. workdir: Project root directory (default: current directory). verify: When true, recompute the capsule offline from the run journal and audit chain and include the verdict.
Returns:
JSON of the capsule projection (and, when verify is set, the
offline verification result). A mock-layer fixture is reported as
such and never verifies as real.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verify | No | ||
| task_id | Yes | ||
| workdir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |