---
title: QUALITY-GATES — 8 Gates → Enforcement → Pass-Kriterium
type: system
tags: [root, quality, gates]
date: 2026-07-08
status: aktiv
related: [[ENGINEERING]], [[01-Projekte/aria-brain-os-audit/drafts/AUTONOMY-BOUNDARIES]]
---


# QUALITY-GATES

> Owner-Frage: „Wann ist ein Change wirklich fertig?" · Wartungs-Trigger: neues Gate-Tooling, neuer Vorfall.

| Gate | Werkzeug (real) | Wo enforced | Pass-Kriterium |
|---|---|---|---|
| 1 Documentation | brain-write-validator.sh | PostToolUse Write/Edit | Frontmatter valide, keine Dangling-Wikilinks |
| 2 Security | pre-tool-safety.sh + gitleaks (arsenal-sync) + Prompt-Injection-Scan (Standing Order) | PreToolUse / Sync / Audit-Prozess | kein destruktives Pattern; kein Secret im Diff |
| 3 Code-Quality | tsc + eslint + check:portability (CHECK_FORBIDDEN_LEVEL=error) | lokal vor Push (Standing Order) | 0 Errors |
| 4 Test | tdd-guard.sh + Projekt-Suiten | PreToolUse + lokal | Suite grün, neue Logik hat Tests |
| 5 Review | Adversarial-Review-Workflow | vor Merge (Stufe 3, AUTONOMY-BOUNDARIES) | Review FERTIG, Findings gefixt oder begründet verworfen |
| 6 Deployment | Vercel-Status-Check /v6/deployments | nach jedem main-Merge (Standing Order) | Status READY, nicht nur Commit |
| 7 Post-Deploy-Validation | Live-DB/Live-Flow-Verify (gstack bei UI) | nach Deploy (Standing Order: „DB-Ziel braucht Apply") | Feature im Live-System nachgewiesen |
| 8 Rollback | Kadi-Migrationen: SQL+Rollback-Datei-Paar; git revert sonst | Migration-Workflow | Rollback-Pfad existiert VOR Apply |

## Backlog (existiert NICHT, bewusst)

Semgrep-Scan · `npm audit`-Timer · CI im Brain-Repo · Linear-Dedup-Hard-Gate (pre-task-inventory-gate.sh war geplant, nie gebaut) — als KARs erfasst, nicht hier behaupten.
