version: 1
mode: lean
threshold: 2
validate: true
max_splits: 3
max_depth: 5
max_retries: 2
parallel: true
halt_on_failure: false

intent:
  goal: "Address critical test quality issues identified by adversarial assessment"
  success_criteria:
    - "test_rpc_server.py created with 10+ comprehensive security tests"
    - "test_app_lifecycle.py refactored to reduce tautological tests and add integration tests"
    - "OutboundPacketErrorFilter tests verify actual monkey-patch behavior"
    - "Snapshot tests have programmatic assertions for theme colors"
    - "All tests pass in make test-local"
    - "Critical security gaps are closed"
  constraints:
    - "Do NOT modify existing passing tests except where tautological"
    - "Use existing pytest patterns and fixtures"
    - "Follow @pytest.mark.rns_singleton convention"
    - "Security tests must be adversarial and comprehensive"
    - "Must work with Python 3.11 baseline"
    - "Test 50+ attack vectors documented in adversarial assessment"

assessment:
  complexity: 7
  systems_touched: 3
  modifiers:
    - security_critical
    - quality_critical
  method: adversarial_assessment
  decision: cleave
  split_cardinality: 3
  rationale: "Three distinct critical issues requiring security expertise, integration testing, and test quality improvements across different test files"
