---
name: "Scaffold gitignore missing transient pipeline stage directories"
---

# Bug 373: Scaffold gitignore missing transient pipeline stage directories

## Description

The `write_story_kit_gitignore` function in `server/src/io/fs.rs` does not include the transient pipeline stages (`work/2_current/`, `work/3_qa/`, `work/4_merge/`) in the `.huskies/.gitignore` entries list. These stages are not committed to git (only `1_backlog`, `5_done`, and `6_archived` are commit-worthy per spike 92), so they should be ignored for new projects.

## How to Reproduce

1. Scaffold a new project with huskies
2. Check `.huskies/.gitignore`

## Actual Result

`.huskies/.gitignore` only contains `bot.toml`, `matrix_store/`, `matrix_device_id`, `worktrees/`, `merge_workspace/`, `coverage/`. The transient pipeline directories are missing.

## Expected Result

`.huskies/.gitignore` also includes `work/2_current/`, `work/3_qa/`, `work/4_merge/`.

## Acceptance Criteria

- [ ] Scaffold writes work/2_current/, work/3_qa/, work/4_merge/ to .huskies/.gitignore
- [ ] Idempotent — running scaffold again does not duplicate entries
- [ ] Existing .huskies/.gitignore files get the new entries appended on next scaffold run
