---
name: "Remove filesystem pipeline state and store story content in database"
agent: coder-opus
depends_on: [491]
---

# Story 492: Remove filesystem pipeline state and store story content in database

## User Story

As a developer, I want to remove the .huskies/work/ stage directories entirely and store story content (markdown, front matter) in the database, so the CRDT + SQLite is the sole source of truth.

## Acceptance Criteria

- [ ] Story markdown content and front matter stored in SQLite (backend-agnostic schema)
- [ ] .huskies/work/ stage directories no longer used for pipeline state or story storage
- [ ] All pipeline operations (create, move, read, delete stories) work against the database
- [ ] Migration path for existing projects: on startup, import any .huskies/work/ stories into the DB and archive the directories
- [ ] Worktrees and config files (project.toml, agents.toml, bot.toml) remain on filesystem
- [ ] agent: coder-opus
- [ ] depends_on: [491]

## Out of Scope

- TBD
