dokimi runs
usage: dokimi runs [-h] {list,show,rm,gc,baseline} ...
positional arguments:
{list,show,rm,gc,baseline}
list One row per artifact under the runs root (run, kind, subject, model, time,
path), the artifacts of one run together and the runs newest first, and
the count of every file skipped. Reads only. [free]
show One artifact: its kind, whether it meets its schema (a failed check is
printed and exits 0), subject, model, time, what it counts and the files
next to it; or one run: the artifacts that carry its run_id. Reads only.
[free]
rm Remove one run, the artifacts that carry its run_id, or one file under the
runs root; never anything outside it. A run removes only its artifacts:
other files and directories stay; a PATH removes that one file, artifact
or not. [free]
gc Remove every run under the runs root whose newest artifact is older than
--older-than; artifacts with no run_id stay. [free]
baseline Named pointers to a run under the runs root (.baselines/), like git tags
[free]
options:
-h, --help show this help message and exit
dokimi runs list
usage: dokimi runs list [-h] [--kind KIND] [--subject SUBJECT] [--json]
options:
-h, --help show this help message and exit
--kind KIND Only artifacts of this kind (eval, arms, novelty, ...); repeatable
--subject SUBJECT Only artifacts whose subject is exactly this (a product, a repo id, a skill
ref)
--json Print cli_output.v1 on stdout (the artifacts, the runs and the skip counts
under data)
dokimi runs show
usage: dokimi runs show [-h] [--json] PATH|RUN_ID
positional arguments:
PATH|RUN_ID The artifact: its path as runs list prints it (relative to the root), or an
absolute path inside the root. Or a run_id from runs list, when no artifact file
has that name
options:
-h, --help show this help message and exit
--json Print cli_output.v1 on stdout (the artifact's fields, schema errors and neighbours
under data; for a run_id, the run's artifacts)
dokimi runs rm
usage: dokimi runs rm [-h] [--dry-run] [--json] RUN_ID|PATH
positional arguments:
RUN_ID|PATH A run_id from runs list, or a file: its path as runs list prints it (relative to
the root), or an absolute path inside the root. A symlink is removed itself, never
its target
options:
-h, --help show this help message and exit
--dry-run List what would be removed; remove nothing
--json Print cli_output.v1 on stdout (the run and the paths removed under data)
dokimi runs gc
usage: dokimi runs gc [-h] --older-than AGE [--keep-baselines] [--dry-run] [--json]
options:
-h, --help show this help message and exit
--older-than AGE An age in days, such as 30d: a run whose newest artifact records a time (or,
recording none, has an mtime) before then is removed
--keep-baselines Keep the runs a baseline points to (runs baseline save), and those whose
run_id a copy saved by baseline save carries (baselines/eval/manifest.json)
--dry-run List what would be removed; remove nothing
--json Print cli_output.v1 on stdout (the runs removed and kept under data)
dokimi runs baseline
usage: dokimi runs baseline [-h] {save,list,rm} ...
positional arguments:
{save,list,rm}
save Point NAME at RUN, replacing what it pointed to; with --expect-previous, only
while it points to that run (exit 4 otherwise, the pointer left as it was)
[free]
list Every baseline under the runs root: its name, its run and when it was saved.
Reads only. [free]
rm Remove one baseline; the run it points to stays [free]
options:
-h, --help show this help message and exit
dokimi runs baseline save
usage: dokimi runs baseline save [-h] [--expect-previous RUN_ID] [--json] NAME RUN
positional arguments:
NAME The baseline: segments of letters, digits, '.', '_', '@' or '-' joined by
'/', such as main or skill/a@main
RUN A run_id from runs list: some artifact under the runs root carries it
options:
-h, --help show this help message and exit
--expect-previous RUN_ID
Save only while NAME points to RUN_ID: a compare-and-swap, so of two saves
that read the same pointer one wins and the other exits 4
--json Print cli_output.v1 on stdout (the baseline, its run and what it held
under data)
dokimi runs baseline list
usage: dokimi runs baseline list [-h] [--json]
options:
-h, --help show this help message and exit
--json Print cli_output.v1 on stdout (the baselines under data)
dokimi runs baseline rm
usage: dokimi runs baseline rm [-h] [--json] NAME
positional arguments:
NAME The baseline, as runs baseline list prints it
options:
-h, --help show this help message and exit
--json Print cli_output.v1 on stdout (the baseline and the run it held under data)