story-kit: queue 201_story_make_watcher_sweep_interval_configurable_via_project_toml for merge

This commit is contained in:
Dave
2026-02-26 10:56:36 +00:00
parent 6e88c639f6
commit b7a370dbc0

View File

@@ -1,20 +0,0 @@
---
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