begin_run
Start a stateless run to obtain server-minted IDs for tracking agent work and memory. Pass the returned handles to subsequent event and completion calls.
Instructions
Start one explicit, stateless run and return server-minted run/work-item IDs.
The bridge does not retain an implicit current run. Callers must pass the returned handles to later event, read, and completion calls. Idempotent retries return the same handles and reject conflicting payloads.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Root goal for the run. Keep it bounded and outcome-oriented. | |
| budget | No | Optional bounded JSON budget metadata, such as token or time limits. | |
| agent_id | No | Optional declared agent or worker identifier. It is provenance, not authenticated identity. | |
| non_goals | No | Optional bounded non-goals declared for this run. | |
| thread_id | No | Optional external thread or conversation identifier. | |
| provenance | No | Optional bounded declared provenance for the run. | |
| risk_level | No | Declared run risk level; high and critical preflight reviews require a rollback plan. | medium |
| constraints | No | Optional bounded constraints declared for this run. | |
| model_digest | No | Optional lowercase SHA-256 digest of the model identity or configuration. | |
| memory_scopes | No | Optional declared memory scopes available to the run. These do not grant authorization. | |
| workspace_key | Yes | Declared workspace scope for this run, such as `project:<workspace>`. The server uses it to reject cross-workspace run access. | |
| harness_digest | No | Optional lowercase SHA-256 digest of the harness configuration. | |
| idempotency_key | Yes | Caller-generated retry key. The bridge stores only its SHA-256 digest and returns the original server-minted run for an identical retry. | |
| evidence_profile | No | Evidence governance profile. governed-v2 requires typed events and server-minted receipts. | observational |
| tool_schema_digest | No | Optional lowercase SHA-256 digest of the tool schema used by the run. | |
| acceptance_criteria | No | Optional structured acceptance criteria with stable id or criterion_id values. | |
| chat_template_digest | No | Optional lowercase SHA-256 digest of the chat template. | |
| continuation_of_run_id | No | Optional same-workspace prior run that this run continues. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||