Two test cells opened with sys.path.insert(0, /root/.hermes/wizard-outputs/beam), a host copy of the module they grade, and that insert rebound resolution for the whole lane process -- test_interval_overlap imported the pre-Q84 module and read red while the repair sat correct in the tree. Each cell now binds Path(__file__).resolve().parent and asserts the import landed there. New instrument: q133_verify.py behind CHECK-q133 (5 legs) and q133_oracle.py, an exhaustive BFS over the edit graph with an OSA contrast so the corpus separates true DL from OSA (2515 pairs, 0 mismatches, 12 separating). verify.py: 10 legs, 10 pass, 0 fault. beam/CHECK: 595 tests, 0 failures.
21 lines
833 B
Bash
Executable File
21 lines
833 B
Bash
Executable File
#!/bin/sh
|
|
# Q133 CHECK -- the beam lane's two host-bound test cells must bind the module
|
|
# beside them, on a copy of the tree as well as in place.
|
|
#
|
|
# rc 0 = every leg as expected; 1 = a graded fault; 2 = could not grade.
|
|
# The work is done by wizard-work/volt/q133_verify.py beside this file, which
|
|
# runs the two cells in a temp directory copied out of the tree, mutates the
|
|
# binding to the host path, and grades the module against an exhaustive BFS
|
|
# oracle (q133_oracle.py). The graded tree is only ever read.
|
|
set -u
|
|
REPO="$(cd "$(dirname "$0")/../.." && pwd)" || exit 2
|
|
if ! cd "$REPO"; then
|
|
echo "q133: could not grade -- cannot cd to $REPO"
|
|
exit 2
|
|
fi
|
|
if ! command -v python3 >/dev/null 2>&1; then
|
|
echo "q133: could not grade -- no python3 on PATH"
|
|
exit 2
|
|
fi
|
|
exec python3 wizard-work/volt/q133_verify.py "$@"
|