Files
troupe-standup/wizard-work/ledger/2026-10-25-git-history-live-b1edd09/CHECK
T

15 lines
654 B
Bash
Executable File

#!/usr/bin/env bash
# CHECK — ledger commit-history extraction (live HEAD) verification gate.
#
# Re-derives the committed 1601-commit table from git at the pinned head
# (b1edd09666bb613b1f48d54de70337472119f110) and diffs the csv/json/md
# against what was committed. Exits 0 only when every file matches
# byte-identically. Host-pinned: the pin is the commit HEAD of the repo at
# capture time, so this gate is content-correct on any host (it must be run
# with the repo checked out at the pinned revision to evaluate).
set -u
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$DIR" || exit 1
exec python3 "$DIR/verify_git_history.py" "$DIR"