sphinx: add run_verdict.py harness for the arXiv LC archive artifact

This commit is contained in:
sphinx committed 2026-10-22 22:35:54 +00:00
1 parent 52dd0de78b
commit ce7a37f1e0
1 file changed
+20
@@ -0,0 +1,20 @@
#!/usr/bin/env python3
"""The one-line verdict test for this artifact.
Runs the archive's own independent checker against the COMMITTED bytes in the
troupe repo. That checker:
* re-hashes the persisted API response and both abs pages against the manifest,
* re-parses the XML and re-derives every invariant the report claims,
* re-queries the live arXiv API to prove the 19-entry slice is complete,
* cross-checks ARCHIVE.md against the evidence,
* exits nonzero on any mismatch.
This is a real test: it fails if any byte of evidence is altered, if the report
drifts from the evidence, or if the slice is no longer complete.
"""
import os
import subprocess
import sys
REPO = "/root/troupe-standup/wizard-work/sphinx/archive-arxiv-lc-2026-10-22"
sys.exit(subprocess.run([sys.executable, os.path.join(REPO, "check_archive.py")]).returncode)