# Spec: fix-test-plan-phase-mapping ## Problem `scripts/status.py:344` (`_infer_state_from_artifacts`) maps `TEST_PLAN.md` (without `IMPLEMENTATION.md`) to `"implement"`. But `TEST_PLAN.md` is the artifact of the `test_design` phase. The dashboard's `task.py:510-511` has the same mapping. ## Fix Map `TEST_PLAN.md` (without `IMPLEMENTATION.md`) to `"test_design"` in both `status.py:_infer_state_from_artifacts()` and `automaton/dashboard/core/task.py:determine_task_state()`. ## Acceptance Criteria - A task with SPEC.md + TEST_PLAN.md (no IMPLEMENTATION.md) infers as `test_design`, not `implement` - A task with IMPLEMENTATION.md still infers as `implement`/`code_review` - Existing tests still pass - Add test for the TEST_PLAN-only case