# Deterministic phase machine implementation Implemented first slice. ## Added - `docs/task-phase-machine.md` - `bin/task-phase-init` (TypeScript via Bun shebang) ## Updated - `docs/task-system.md` - `tsconfig.json` to typecheck the new init tool too ## What `task-phase-init` creates - `README.md` - `STATE.md` - `EVIDENCE.md` - `artifacts/` - `artifacts/evidence.html` - `scratch/` ## Key behavior - phase-aware `STATE.md` - canonical clickable evidence link in `STATE.md` - HTML evidence joinery page by default for remote review - no bash implementation for the phase init helper ## Validation - smoke-created `T-998` - checked generated `STATE.md` and `EVIDENCE.md` - `bun run typecheck` passes - removed smoke task after validation