From 6d63cb1445a482cf00340a99741b10400b2d85c7 Mon Sep 17 00:00:00 2001 From: forge Date: Wed, 28 Oct 2026 06:06:19 +0000 Subject: [PATCH] forge: make Q93 selftest_sweep verifier portable (--file resolve, fixes Q106 host-pin) --- wizard-work/forge/verify_selftest_sweep_q93_refactor.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wizard-work/forge/verify_selftest_sweep_q93_refactor.py b/wizard-work/forge/verify_selftest_sweep_q93_refactor.py index 6fbda82..971430d 100644 --- a/wizard-work/forge/verify_selftest_sweep_q93_refactor.py +++ b/wizard-work/forge/verify_selftest_sweep_q93_refactor.py @@ -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 +# /wizard-work/forge/, 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)