# Quality Gate v2.0 (Slim) ```xml Set command_key="*gate" Load {project-root}/bmad/bmm/testarch/tea-commands.csv and read the matching row Load {project-root}/bmad/bmm/testarch/tea-knowledge.md to reinforce risk-model heuristics Use CSV columns preflight, flow_cues, deliverables, halt_rules, notes, knowledge_tags Split pipe-delimited values into actionable items Apply deterministic rules for PASS/CONCERNS/FAIL/WAIVED; capture rationale and approvals Gather latest assessments and confirm prerequisites; halt per halt_rules if missing Follow flow_cues to determine status, residual risk, follow-ups Use knowledge heuristics to balance cost vs confidence when negotiating waivers Update gate YAML specified in deliverables Summarize decision, rationale, owners, and deadlines Apply halt_rules from the CSV row Use notes column for quality bar reminders Updated gate file with documented decision ```