#!/usr/bin/env python3 """Rugnux validation battery: run, score, report, compare. Arms and where their truth comes from: open public PDB depositions (and a few published small-molecule sets); scored against the deposited space group, cell and resolution. Manifest: open.json (committed). inhouse standard test crystals measured at PSI (lysozyme, thaumatin, insulin, cytochrome C, myoglobin) plus no-crystal controls; scored against XDS (point group only - XDS never tests a screw axis). Manifest: inhouse.json (committed). private user data, scored like inhouse. Its manifest lives OUTSIDE the repository (path in the site config) and a private run gets its own run directory and report. Usage (README.md in this directory is the full guide): battery.py run --rugnux BIN [--label L] [--arm open,inhouse|private] [--only a,b | --tier smoke] [--build-dir DIR] [--gpulock] [--threads N] [--model-check] [--baseline RUN|none] battery.py list runs under the runs root, with their state battery.py compare RUN_A RUN_B [--all] [--rerun-changed] battery.py report RUN --out DIR [--baseline RUN] re-render a run's report into DIR/.{md,html} battery.py abort RUN [--reason TEXT] mark an unfinished run as aborted battery.py discover [--refresh] open arm: propose inputs for new directories battery.py refs --arm inhouse|private [--write] re-read the XDS references from CORRECT.LP battery.py remap --arm A MAP.json [--write] follow a rename of the data directories The site config (data roots, runs root, lock, gpulock, private manifest, baselines) is --site, else $JFJOCH_BATTERY_SITE, else site.json beside this script (not committed; site.example.json is). Every set runs once, with one command per arm (COMMAND_DOC): the open arm with the deposited model (--model), the XDS arms with -A where XDS was anomalous and XDS's range as a report-only second table (--report-resolution). Neither option changes the processing, so the one run is both what a user gets and the like-for-like comparison. A run writes /__