Skip to content

fix: remove phantom phase 2 gap and renumber phases contiguously (0-8)#178

Merged
jafreck merged 3 commits intomainfrom
fix/remove-phantom-phase-2
Mar 16, 2026
Merged

fix: remove phantom phase 2 gap and renumber phases contiguously (0-8)#178
jafreck merged 3 commits intomainfrom
fix/remove-phantom-phase-2

Conversation

@jafreck
Copy link
Owner

@jafreck jafreck commented Mar 16, 2026

Summary

Eliminate the phantom phase 2 gap left when the impact-assessor agent was removed. Phases are now contiguous 0→1→2→3→4→5→6→7→8.

Renumbering

Old New Name
0 0 KB Indexing
1 1 Task Graph Construction
2 (removed) Impact Assessment
3 2 Knowledge Base Construction
4 3 Migration Planning
5 4 Iterative Migration
6 5 Final Parity Verification
7 6 E2E Testing & Documentation
8 7 Idiomatic Refactor
9 8 Completion

What changed (50 files)

  • Flow definition (migration-flow.ts): removed undefined slot from PHASE_BOUNDARY_NODE_IDS (now readonly string[]), updated nodeIdToPhase map, fixed --phase CLI range (0-8), updated budget-gate node IDs.
  • Flow steps: updated phase literals, comments, log messages, and local variable names in all 10 step files.
  • Checkpoint: renamed PhaseCursorMap keys ('5''4', '6''5', '7''6', '8''7'), renamed cursor interfaces (Phase5CursorPhase4Cursor, etc.), renamed cursor helper functions (getPhase5TaskStategetPhase4TaskState, etc.).
  • Agent registry: updated phases arrays for all 14 agent entries.
  • Config schema / metrics / observability / context: updated phase number references in JSDoc comments.
  • Docs: updated phase tables and execution details in claude.md, README.md, docs/configuration.md, and agent templates.
  • Tests: updated 25 test files with new phase assertions, cursor keys, and test descriptions.

Verification

  • tsc --noEmit passes clean
  • All 1324 non-native-module tests pass with zero regressions (pre-existing lore/tree-sitter native module failures unchanged)

jafreck added 3 commits March 15, 2026 21:30
Eliminate the gap left when the impact-assessor agent was removed.

Old: 0, 1, [undefined], 3, 4, 5, 6, 7, 8, 9
New: 0, 1, 2, 3, 4, 5, 6, 7, 8

Renumbering (old → new):
  Phase 3 (KB Construction) → Phase 2
  Phase 4 (Migration Strategy) → Phase 3
  Phase 5 (Iterative Migration) → Phase 4
  Phase 6 (Final Parity) → Phase 5
  Phase 7 (E2E Testing & Docs) → Phase 6
  Phase 8 (Idiomatic Refactor) → Phase 7
  Phase 9 (Completion) → Phase 8

Changes across 50 files:
- Flow definition (migration-flow.ts): remove undefined slot from
  PHASE_BOUNDARY_NODE_IDS, update nodeIdToPhase map, fix --phase
  CLI range (0-8), update budget-gate node IDs.
- Flow steps: update phase literals, comments, log messages, and
  local variable names in all 10 step files.
- Checkpoint: rename PhaseCursorMap keys (5→4, 6→5, 7→6, 8→7),
  rename cursor interfaces (Phase5Curs  rename cursor interfaces (Phase5Curs  rename cursor interfaces (Phase5Curs  rename cursor interfaces (Phase5Curs  rename cursor interfaces rra  rename cursor interfaces (Phase5Curs  rename cursor interfaces ili  rename cursor interfaces (Phase5Curs  renc  rename cursor inte.
- Docs: up- Docs: up- Docs: up- Doccu- Docs: up- Docs: up- Docs: up- Doccu-, docs/configuration.md, and agent templates.
- Tests: update 25 test files with new phas- Tests: update 25 test file and test descriptions.
@jafreck jafreck merged commit 7ea8cea into main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant