job_restatus
Corrects a finished job's terminal status and records the mandatory reason as a milestone timeline event. Use when a terminal job was mis-recorded; target status must differ from current.
Instructions
Correct a FINISHED job's terminal status (terminal -> terminal), for a mis-recorded close-out
— e.g. a run that finished 'passed' but never got a verdict. reason is mandatory and lands as a
milestone timeline event. The job must already be terminal (a queued/running job finishes or is
cancelled) and the target must differ from the current status, else the call is a conflict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job id from job_enqueue/job_list, e.g. 'j-1a2b3c4d' | |
| reason | Yes | Why the ledger is being corrected (recorded on the timeline) | |
| status | Yes | passed | failed | error | cancelled | inconclusive |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| links | No | ||
| phase | No | ||
| title | Yes | ||
| events | No | ||
| origin | No | Who asked for this run (human | agent | driver | eval | probe | warmup) — scopes the learning loop | agent |
| params | No | Intake: purpose, expected, caps, flags, pending_shot, ... | |
| status | Yes | ||
| target | Yes | ||
| worker | No | ||
| host_id | No | NULL = not yet assigned (host_choice='ask') | |
| summary | No | Present once the job is closed out | |
| web_url | No | Absolute URL of this job's page in the web UI | |
| position | No | ||
| artifacts | No | ||
| created_at | Yes | ||
| project_id | No | ||
| started_at | No | ||
| updated_at | Yes | ||
| crash_count | No | crash-level events (the queue board flags these) | |
| error_count | No | error-level events (the queue board flags these) | |
| finished_at | No | ||
| current_step | No | The step awaiting a verdict (newest prompt event + whether it is answered) | |
| requested_by | No |