#!/bin/sh # Q136 CHECK -- the spark lane's word-frequency cell must grade the module and # fixture beside it, and the repo gate's import-resolve leg must be green. # # rc 0 = every leg as expected; 1 = a graded fault; 2 = could not grade. # The work is done by wizard-work/volt/q136_verify.py beside this file: the # repo gate's leg, the cell run in place and copied out of the tree under an # audit hook, the fixture's constants recomputed by an independent tokenizer, # and two mutants -- a sabotaged sibling module the pre-repair binding reads # green on, and the pre-repair bytes restored in a throwaway repository so the # gate leg is shown to red. The graded tree is only ever read. set -u REPO="$(cd "$(dirname "$0")/../.." && pwd)" || exit 2 if ! cd "$REPO"; then echo "q136: could not grade -- cannot cd to $REPO" exit 2 fi if ! command -v python3 >/dev/null 2>&1; then echo "q136: could not grade -- no python3 on PATH" exit 2 fi exec python3 wizard-work/volt/q136_verify.py "$@"