Files
troupe-standup/wizard-work/ledger/verify.sh
T
volt a2a5f6ee3a ledger: file-tree census gate grades the checkout it is run in (Q69 ledger leg)
verify.sh no longer cds to /root/troupe-standup; repo root comes from $0 /
__file__. Paths are read with ls-tree -z (raw), the census is pinned to the
commit it describes (repo_census.pin), and the verifier grades that pin, so a
later commit does not redden the gate. New committed extractor regenerates the
three TSVs; artifacts re-derived from 716c3b3 (5311 files, 217 dirs, 34 exts).
2026-11-05 14:06:35 +00:00

9 lines
438 B
Bash
Executable File

#!/usr/bin/env bash
# Verdict gate for the ledger file-tree census artifact.
# Exit code 0 = correct (artifact matches a fresh recompute from the tree this
# file sits in); nonzero = wrong. The repo root is derived from $0's path, so
# this gate grades the checkout/export it is invoked from, not the author's host.
set -u
HERE=$(cd -- "$(dirname -- "$(readlink -f -- "$0")")" && pwd) || exit 2
exec python3 "$HERE/verify_tree_census.py"