complete_run
Append or correct a run outcome in agent memory, preserving ranking and policy via append-only, evidence-backed revisions.
Instructions
Append or correct a run outcome without changing memory ranking or policy.
On new runs, verified_success requires a matching current server-minted governed receipt.
Outcome corrections form an append-only supersession chain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | Server-minted run identifier returned by `begin_run`. | |
| metrics | No | Optional structured outcome metrics, limited to 32 KiB. | |
| outcome | Yes | Declared outcome for this append-only outcome revision. | |
| evidence | No | Structured outcome evidence, limited to 32 KiB. | |
| provenance | No | Optional bounded declared provenance for the outcome. | |
| workspace_key | Yes | Declared workspace scope that owns the run. | |
| evaluator_type | Yes | Evidence source class. Agent self-report cannot establish verified success. | |
| idempotency_key | Yes | Caller-generated retry key scoped to this run; only its SHA-256 digest is stored. | |
| evaluator_digest | No | Optional lowercase SHA-256 digest of the evaluator implementation or configuration. | |
| evaluator_version | No | Optional bounded evaluator version label. | |
| termination_reason | No | Optional bounded reason the run ended. | |
| regression_of_run_id | No | Distinct same-workspace run with a current `verified_success` outcome; required for a `regression` outcome. | |
| supersedes_outcome_id | No | Current outcome head to supersede when recording a correction. | |
| expected_last_sequence | No | Current run sequence CAS precondition; required by governed-v2 runs. | |
| expected_database_epoch | No | Database epoch CAS precondition; required by governed-v2 runs. | |
| expected_run_generation | No | Run generation CAS precondition; required by governed-v2 runs. | |
| verification_receipt_id | No | Server-minted governed verification receipt. Ordinary MCP callers cannot mint receipts; required for verified_success on new runs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||