#!/usr/bin/env bash set -euo pipefail python3 - <<'PY' from pathlib import Path import re root = Path(".") test_impl_files = sorted( path for path in root.rglob("*_test.go") if path.is_file() and ".git" not in path.parts and ".worktrees" not in path.parts and "build" not in path.parts ) fixture_files = sorted( path for path in list(root.glob("testdata/**/*")) + list(root.glob("**/testdata/**/*")) + list(root.glob("evaluations/suites/**/*")) if path.is_file() and ".git" not in path.parts and ".worktrees" not in path.parts and "build" not in path.parts ) def read(path): return path.read_text(errors="ignore") mock_terms = re.compile(r"(?"] = by_suffix.get(path.suffix or "", 0) + 1 if by_suffix: for suffix, count in sorted(by_suffix.items()): print(f"- {suffix}: {count}") else: print("- none") print("mock_or_fake_mentions:") found = False for path in test_impl_files: for lineno, line in enumerate(read(path).splitlines(), start=1): if mock_terms.search(line): print(f"- {path}:{lineno}: {line.strip()[:160]}") found = True if not found: print("- none") print("integration_fidelity_signals:") all_text = "\n".join(read(path) for path in test_impl_files) for name, pattern in external_signals.items(): print(f"- {name}: {'yes' if pattern.search(all_text) else 'no'}") print("fail_before_pass_evidence:") print("- not detected automatically; record sabotage or mutation command in review notes when changing behavior") PY