18 lines
916 B
Bash
18 lines
916 B
Bash
#!/usr/bin/env bash
|
|
# CHECK -- sol: untracked-file triage classification (2026-11-02).
|
|
# Exit 0 iff the committed manifest verifies: the manifest re-derives every
|
|
# frozen path's category/decision by the canonical rule (no lookup), every
|
|
# path is still a real, untracked, non-ignored file, the corpus sha256 matches,
|
|
# ids are 1..N, the summary counts are consistent, and the wizard-outputs shard
|
|
# is byte-identical to the repo manifest.
|
|
set -u
|
|
|
|
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# Resolve the repo root (this script may live inside wizard-work/sol/ or at the
|
|
# repo root, so walk up to the directory that holds .git).
|
|
ROOT="$(git -C "$HERE" rev-parse --show-toplevel 2>/dev/null)" \
|
|
|| { echo "CANNOT GRADE: no git toplevel above $HERE" >&2; exit 2; }
|
|
cd "$ROOT" || { echo "CANNOT GRADE: cannot cd to $ROOT" >&2; exit 2; }
|
|
|
|
exec python3 wizard-work/sol/verify_untracked_triad_2026_11_02.py
|