story-kit: start 89_story_persistent_per_session_agent_logs

This commit is contained in:
Dave
2026-02-23 18:25:41 +00:00
parent ef427a28b9
commit f1c600a9e6

View File

@@ -0,0 +1,22 @@
---
name: "Persistent per-session agent logs"
test_plan: pending
---
# Story 89: Persistent per-session agent logs
## User Story
As a user, I want each agent session to write its output to a persistent log file so I can inspect what an agent did after it completes, even across server restarts.
## Acceptance Criteria
- [ ] Each agent session writes output to a log file at .story_kit/logs/{story_id}/{agent_name}-{session_id}.log
- [ ] Log files persist across server restarts and agent completions
- [ ] The get_agent_output MCP tool falls back to reading the log file when the in-memory stream is empty or the agent has completed
- [ ] Log files include timestamps, tool calls, text output, and status events
- [ ] Different sessions for the same agent on the same story produce separate log files (no mixing)
## Out of Scope
- TBD