Quality Pipeline
No script reaches production without passing all four gates. Quality is structural, not aspirational.
qa-gate-v2.sh
Strict mode — syntax check, error handling validation, env var declarations, shellcheck. Sha256-tracked registry. Any edit invalidates the entry and requires re-gate. No registry entry = hasn't passed.
Gate 1 — Static Analysiszephyy-audit.sh
RED blocks deploy. YELLOW goes to backlog. BLUE gets fixed when already in the file. Runs on every sweep cycle. False positives are flagged and suppressed — not blindly "fixed" by damaging correct code.
Gate 2 — Runtime Auditcoding-standards.md
Bash ≤ 10 lines of glue. Anything with branching, loops, file I/O, or network → Python. Mandatory preflight checks up front. Every dependency declared. Fails loud or doesn't run.
Gate 3 — StandardsSentinel Gate
LLM-based judge (GPT-5.4-mini, 80/day cap) verifies domain-fact claims in every response. One-strike enforce — wrong claim triggers auto-revise. Three waves hardened: taint patterns, confabulation blind spots, fake-consult detection.
Gate 4 — Runtime VerificationSeverity Levels
How audit findings are handled. The hierarchy is strict.
Non-Negotiables
gio trash or move to .trash/YYYYMMDD-HHMMSS/. Gate grep-rejects bare rm. Only exception: cleaning a mktemp dir inside a trap EXIT.