# Phase 01.3: Adapt TDD Workflow Based on Git Availability [MANDATORY]

**Workflow adaptations apply throughout all phases:**

## IF WORKFLOW_MODE == "file_based":

- **Phase 01 (Context Validation):**
  - ✅ Check context files (same as git_based)
  - ✅ Validate story structure (same as git_based)
  - ⚠️ SKIP: Git status checks
  - ⚠️ SKIP: Branch validation

- **Phase 02-05 (Red/Green/Refactor/Integration):**
  - ✅ All TDD phases execute normally (test generation, implementation, refactoring)
  - ✅ All test execution works identically
  - ⚠️ SKIP: Any Git commands in these phases (if present)

- **Phase 08 (Git Workflow):**
  - ⚠️ REPLACE: Git commit workflow → File-based change tracking (see 01.4-file-tracking.md)

## IF WORKFLOW_MODE == "git_based":

- ✅ All phases execute normally with full Git integration
