image-review status

image-review status [--check] [--work-dir DIR]

Prints overall and per-batch counts of CLEAN / DIRTY / UNREVIEWED / FLAGGED images. The per-batch table is printed only when there is more than one batch. FLAGGED means marked DIRTY in an earlier pass and not yet re-reviewed in the current one, so after pass 1 completes its DIRTY images show as FLAGGED:

Overall: 40320 images (pass 2)
  CLEAN:       38100
  DIRTY:         820
  UNREVIEWED:      0
  FLAGGED:      1400

Batch            Total  Clean  Dirty  Unrev   Flag
----------------------------------------------------
batch_001          300    290      8      0      2
batch_002          300    285     12      0      3
batch_003          300    280     15      0      5
...

Current pass: 2
Skipped during preprocess: 3 failed, 12 ignored (see skipped.tsv in the work dir)

Option

Default

Description

--check

off

Set the exit status by whether the review is finished (see below)

--work-dir

./review_work

Work directory containing preprocessed data

Unloadable images are not counted separately. status does not open the images, so one that cannot be loaded is only found when review tries to show it, and until it is marked DIRTY it counts as UNREVIEWED.

status takes no lock, so it works while review or serve holds the work directory (see review.lock).

If preprocess skipped any inputs, status also prints Skipped during preprocess: F failed, I ignored (see skipped.tsv in the work dir), so that a fully reviewed manifest is not mistaken for a complete input set. Failed inputs were never shown, so they are not part of the counts above; check skipped.tsv for which ones and why. “Ignored” inputs were not images (for example stray text files). Nothing extra is printed when skipped.tsv is absent (a work directory from an older version) or has no rows. If skipped.tsv is malformed, status stops with an error naming the file and line, and exits 1.

Checking from a script

With --check, the report is printed as usual and the exit status says whether the review is finished, i.e. every image has a verdict: 1 if any image is UNREVIEWED or any input failed to preprocess; 0 otherwise (ignored inputs do not count). FLAGGED images have a DIRTY verdict from an earlier pass, so they count as decided: re-review passes are optional. They still show in the report, so a second pass remains available. Without --check, status exits 0.

A malformed skipped.tsv still exits 1 with --check. In a script:

if image-review status --check --work-dir ./review_work > /dev/null; then
    echo "review finished"
fi