Show ratchet status
ratchet_statusCheck ratchet job state and progress, including counts, current parent, recent accept/reject decisions with reasons, and job details.
Instructions
Show the state of a ratchet: counts, the current parent, the last records with the reasons, and the job.
root: the ratchet folder (default: the folder of the last ratchet that this server started).
last: how many of the last records to show (each: id, decision ACCEPT or REJECT, the rules that failed, the
reasons, promoted, owner_approval). The whole log is ratchet.jsonl in the root: one JSON line for each record.
States: starting, running (the job process is alive; file_state holds the state of the file when it is a final
one that waits for the process to end), finished (every candidate was judged, or max_candidates was
reached), waiting_for_owner (the opt-in gate: pending lists the accepted candidates, ratchet_approve decides),
baseline_failed (the start part could not be judged), stopped_after_approval (ratchet_approve ended the job after an approval), failed (the last process ended with an error, for example a
refused start: last_error has the exit code and the text; or it stopped with no exit code and no final state, for
example killed: log_tail has its last output) and none (no ratchet in the folder). The final states show only after the
process has ended, so the next call (ratchet_approve or ratchet_run) is not refused as busy.
Nothing calls you back when the job ends: call it again in this turn until the state is finished, waiting_for_owner, baseline_failed, stopped_after_approval or failed, or process_alive is false, or end the turn and tell the user what to ask for the result. A promise of a later report cannot be kept.
Also: job (the facts of the job: state, exit code, wall time, peak memory), process_alive, pid, mesh_size_mm
(one size for the whole ratchet), baseline (its failed rules and facts), log_facts (a skipped partial line).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | ||
| root | No |