Skip to content

Commit 3c0413e

Browse files
committed
W44: integrate check_do_not_use_callers.sh into gate_phoenix.sh as Step 1e
Adds W44 DO-NOT-USE caller gate as a standard pre-push gate item per supervisor 19:44:20Z post-push directive ('integrate into gate_phoenix.sh as standard pre-push item'). Placement: between Step 1d (W25 lint gate) and Step 2 (JIT smoke test). Both gates are static-analysis class — no runtime/binary impact, fail- fast pattern with the Step 1d framing for consistency. Behavior: - Runs scripts/check_do_not_use_callers.sh --strict - On non-zero exit: sets GATE_PASS=0, appends to FAILURES tally - On zero exit: logs PASS line (matches W25 lint gate pattern) Verified at HEAD post-fix (W44 script PASS at 14fba3c): scripts/gate_phoenix.sh produces "W44 DO-NOT-USE caller gate: PASS" in Step 1e output between Step 1d and Step 2. This closes pythia python#102 (3) instrumentation gap: header DO NOT USE warnings + 2 prior incident-class occurrences (06e2ecb→61c319ca49 + 678e990 W22 cluster) now mechanized into the gate.
1 parent 14fba3c commit 3c0413e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

scripts/gate_phoenix.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,20 @@ else
190190
echo "W25 lint gate: PASS (0 lint-pattern externs)" | tee -a "$RESULTS_FILE"
191191
fi
192192

193+
# Step 1e: W44 DO-NOT-USE caller gate
194+
echo "" | tee -a "$RESULTS_FILE"
195+
echo "--- Step 1e: W44 DO-NOT-USE Caller Gate ---" | tee -a "$RESULTS_FILE"
196+
W44_OUTPUT=$("$SCRIPT_DIR/check_do_not_use_callers.sh" --strict 2>&1) && W44_EXIT=0 || W44_EXIT=$?
197+
echo "$W44_OUTPUT" | tee -a "$RESULTS_FILE"
198+
if [ "$W44_EXIT" -ne 0 ]; then
199+
echo "GATE FAIL — W44 DO-NOT-USE caller gate detected production callers" | tee -a "$RESULTS_FILE"
200+
GATE_PASS=0
201+
W44_VIOLATIONS=$(echo "$W44_OUTPUT" | grep -c "VIOLATION" || true)
202+
FAILURES="$FAILURES w44_do_not_use:$W44_VIOLATIONS"
203+
else
204+
echo "W44 DO-NOT-USE caller gate: PASS" | tee -a "$RESULTS_FILE"
205+
fi
206+
193207
# Step 2: Verify JIT compiles and executes
194208
echo "" | tee -a "$RESULTS_FILE"
195209
echo "--- Step 2: JIT Smoke Test ---" | tee -a "$RESULTS_FILE"

0 commit comments

Comments
 (0)