# workflow_special_rules

rule_name: testing_mode_disabled
description: When testing_mode=disabled, skip QA entirely
config:
  {"description": "When testing_mode=disabled, skip QA entirely", "affected_statuses": ["READY_FOR_QA"], "override_next_agent": "tech_lead"}


rule_name: testing_mode_minimal
description: When testing_mode=minimal, skip QA Expert
config:
  {"description": "When testing_mode=minimal, skip QA Expert", "affected_statuses": ["READY_FOR_QA"], "override_next_agent": "tech_lead"}


rule_name: escalation_after_failures
description: After 2 failures, escalate to SSE
config:
  {"description": "After 2 failures, escalate to SSE", "threshold": 2, "escalation_agent": "senior_software_engineer"}


rule_name: security_sensitive
description: Security tasks always use SSE + mandatory TL review
config:
  {"description": "Security tasks always use SSE + mandatory TL review", "force_agent": "senior_software_engineer", "mandatory_review": true}


rule_name: research_tasks
description: Research tasks go to RE, max 2 parallel
config:
  {"description": "Research tasks go to RE, max 2 parallel", "agent": "requirements_engineer", "max_parallel": 2}


