E2E Test Strategy — Black-box CLI Coverage
E2E / Black-box CLI Tests — 17 scenarios
init creates dirs
exec runs agent
dispatch spawns job
sentinel detects flatline
budget enforced
context scoped
doctor reports
Unit Tests — function contracts
generate_context • extract_tokens • check_sentinel_patterns • update_costs • _write_instruction_file
Cli fixture:
tmp_dir + subprocess.run + capture stdout/stderr + exit code assert