Feedback git stash empty dir wipe
Any agent or worker that runs git stash; ...; git stash pop while a tracked directory has had all its files deleted will permanently lose that directory. Git cannot restore empty directories on stash pop.
Why: The /research-builder session at 13:03:30Z ran git stash && python3 scripts/forge_eval_harness.py --full --no-write 2>&1 | grep ...; git stash pop while tasks/pending/ had only tracked-file deletions staged. The stash popped the deletions back but could not recreate the now-empty dir, killing the dispatcher queue.
Fix applied 2026-05-02: .gitkeep files added to all 4 task queue dirs (tasks/pending/, tasks/processing/, tasks/done/, tasks/failed/). This keeps directories alive in git even when empty so stash flows cannot rmdir them.
How to apply: Any time a new tracked directory is created that may legitimately be emptied (queue dirs, inbox dirs, scratch dirs used by workers), drop a .gitkeep in it before committing. If a worker or agent does a git stash pattern as part of a clean-tree eval, verify the target working tree has .gitkeep files in any directory whose last real file might be deleted.
[auto-memory session 98c87b8e-7932-4120-acf4-f488608837e2, confidence 0.88, mode direct]