27 lines
956 B
Bash
27 lines
956 B
Bash
#!/usr/bin/env bash
|
|
# CHECK -- sol: probe-retire-trip 2026-10-31 (forge: triage lane).
|
|
# Exit 0 iff the committed classification verifies: the retire set is
|
|
# re-derived from the frozen manifest, the root-level untracked set matches
|
|
# frozen_root_untracked minus the retire set, and every retire-set member is
|
|
# present in wizard-work/sol/probe-retired/.
|
|
#
|
|
# RESOLVES the repo root from THIS script's location (unlike the root-level
|
|
# CHECKs, this gate lives inside wizard-work/sol/, so `dirname` alone is not
|
|
# the repo root).
|
|
set -u
|
|
|
|
self_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# Walk up until a .git marker is found.
|
|
repo_root="$self_dir"
|
|
while [ ! -e "$repo_root/.git" ] && [ "$repo_root" != "/" ]; do
|
|
repo_root="$(dirname "$repo_root")"
|
|
done
|
|
if [ ! -e "$repo_root/.git" ]; then
|
|
echo "FAIL: .git not found above $self_dir" >&2
|
|
exit 1
|
|
fi
|
|
|
|
cd "$repo_root" || exit 1
|
|
exec python3 wizard-work/sol/verify_probe_retire_trip_2026_10_31.py
|