Add verdict
add_verdictRecords the outcome of one review check in the current pass, filing passed, partial, unverifiable, or failed results with evidence for task closure.
Instructions
Files the outcome of one review check, as run by the task's assignee within the current pass.
A pass starts with each entry into in_progress, a return after a wait in
open included. Only verdicts of the current pass count for closing, and the latest
verdict on a check replaces the earlier ones: a failed verdict is filed when
it happens, like a passed one. Verdicts of earlier passes stay in the case
without counting. close_task also takes verdicts, together with the closing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Task key `PROJECT-N`, case-insensitive; a previous key of a moved task addresses it as well. An unknown key is refused with `task_not_found` | |
| outcome | Yes | Outcome of the check: - `passed` — ran as written, expected result in full; evidence naming something not done, a substitute or a red run is not `passed`; - `partial` — ran as written, part of the expected result; `evidence` names the missing part; - `unverifiable` — cannot run as written (object or environment out of reach, requirements changed); `evidence` names why and what ran instead; - `failed` — ran as written, expected result absent. An empty `evidence` with `partial` or `unverifiable` is refused with `entry_fields_invalid` | |
| check_no | Yes | Number of the review check in the task's list, from 1; a number outside the list is refused with `entry_fields_invalid` | |
| evidence | No | What was run for the check as written and what it showed: the command, its output, a link to the material | |
| idempotency_key | No | Retry key chosen by the caller, e.g. a UUID. A repeat with the same key and the same arguments returns the first result and creates nothing; the same key with other arguments is refused with `idempotency_key_reused`. A key is bound to the caller's token and kept for 24 hours |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| no | Yes | Entry number in the task's case; with the key it forms `TRK-42#12` | |
| seq | Yes | Journal sequence number, usable as `after` of `wait_journal` | |
| title | Yes | The title the tracker built, for entry types whose title is not sent (summary, answer, verdict, resolution, service entries); `null` when the caller sent the title | |
| author | Yes | ||
| task_key | Yes | ||
| created_at | Yes |