story-kit: create 201_story_make_watcher_sweep_interval_configurable_via_project_toml

This commit is contained in:
Dave
2026-02-26 10:34:29 +00:00
parent f984f1bcde
commit ead3d3aeba

View File

@@ -0,0 +1,20 @@
---
name: "Make watcher sweep interval configurable via project.toml"
---
# Story 201: Make watcher sweep interval configurable via project.toml
## User Story
As a developer, I want to configure the watcher sweep interval and done-retention period in project.toml, so that I can tune how quickly stories are promoted to archived based on my team's workflow.
## Acceptance Criteria
- [ ] project.toml supports optional sweep_interval_secs and done_retention_secs fields (with sensible defaults matching current hardcoded values: 60s and 4h)
- [ ] The watcher reads these values at startup and uses them for SWEEP_INTERVAL and DONE_RETENTION
- [ ] Changing project.toml hot-reloads the sweep config without restarting the server
- [ ] Existing tests pass and new unit tests cover default and custom config values
## Out of Scope
- TBD