forge: make Q93 selftest_sweep verifier portable (--file resolve, fixes Q106 host-pin)

This commit is contained in:
forge committed 2026-10-28 06:06:19 +00:00
1 parent 95b69640fe
commit 6d63cb1445
1 file changed
+7 -1
@@ -48,7 +48,13 @@ import subprocess
import sys
import time
REPO = "/root/troupe-standup"
# Resolve the repo root from this file so the gate grades the tree it is run
# from, not a hardcoded host path. The old literal `REPO = "/root/troupe-standup"`
# made a poison check out of reach: a clone at another path still graded
# /root/troupe-standup and read VERDICT TRUE rc 0 (Q106 portability fault; the
# same fix b4720ab applied to verify_scan_dry_refactor.py). This file lives at
# <repo>/wizard-work/forge/<verifier>, so three dirnames land on the repo root.
REPO = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
SRC = "tools/selftest_sweep.py"
FULL = os.path.join(REPO, SRC)