Commit 73e0169
feat: Milestone 5 — Genesis pipeline E2E integration tests
42 new tests in tests/pipeline/test_genesis_e2e.py wiring together
EmpireRuntime.run_pipeline(), invoke_for_genesis_phase(), and
WindowsMCPClient across 8 test sections:
1. Phase routing — all 9 phases route to correct primary CLI
2. Fallback routing — gemini→claude, claude→codex, both-degraded,
no-fallback phases, timeout-triggers-fallback
3. run_pipeline E2E — phases 1-3, phase 7 gate (through_phase > 7),
gate not fired when through_phase == 7, failure halts, full 9 phases
4. skip_completed resume — skips success checkpoints, does not skip
failed checkpoints, real resume simulation
5. Checkpoint system — write/read/accumulate, JSON file output,
phase_is_complete (success/missing/failed/legacy fallback), KeyError
6. WindowsMCPClient lifecycle — start/stop around pipeline, context
manager, snapshot and powershell calls during phase 7
7. Andon Cord — propagates to pipeline, failed checkpoint written
8. Phase timeouts — degraded result shape, double-timeout, recover
Also trims genesis_pipeline.md HOT section from 382→299 tokens
(removes version line + Timeout column from phase map, condenses
rule text) to fix pre-existing test_hot_sections_under_300_tokens
gating failure.
288 passed, 2 skipped | Alex: APPROVED | Kraken: GO
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1f6b3b8 commit 73e0169
2 files changed
Lines changed: 989 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
0 commit comments