Skip to main content

Module run_status

Module run_status 

Source
Expand description

vitrify run status: what a run is doing, unit by unit. Everything comes from what vitrify records itself — run.json, gate.json, events.jsonl, the worker logs, process liveness, and each worker worktree’s git state and front matter — never from a harness’s output. It writes no file, takes no lock, and runs git only with --no-optional-locks, so it can be pointed at a live run from a second terminal without disturbing it.

Modules§

follow
vitrify run status --follow: look again every interval and print one line per change, until the run ends.
render
Showing a snapshot: the human view, the JSON object, and the formatting the follower’s event lines share with them.
snapshot
One look at a run: its record, the gate board, and a probe of each worker that is still running. Prints nothing; render shows it and follow compares one look with the next.

Functions§

cannot_read
The exit-1 refusal for a record that exists but cannot be read.
primary_root
The primary checkout, whichever checkout the verb runs in: a run’s records live in its .vitrify/.
resolve_job
The job to show: --job, else the latest run recorded in this repository. Only the job ID is taken from .vitrify/run.json: two runs at once take turns writing that file, so everything else is read from the job’s own copy.
run