story-kit: done 266_story_matrix_bot_structured_conversation_history

This commit is contained in:
Dave
2026-03-17 17:41:29 +00:00
parent b3faf7b810
commit f1bb1216bf

View File

@@ -1,22 +0,0 @@
---
name: "Matrix bot structured conversation history"
merge_failure: "Rename/rename conflict on story file: .story_kit/work/1_upcoming/266_story_matrix_bot_structured_conversation_history.md was renamed to 4_merge/ on master and to 2_current/ on the feature branch. The auto-resolver failed because it tried to read the file from 1_upcoming/ which no longer exists. Master is untouched. This needs manual conflict resolution - the story file needs to end up in the correct pipeline stage before re-merging."
---
# Story 266: Matrix bot structured conversation history
## User Story
As a user chatting with the Matrix bot, I want it to remember and own its prior responses naturally, so that conversations feel like talking to one continuous entity rather than a new instance each message.
## Acceptance Criteria
- [ ] Conversation history is passed as structured API messages (user/assistant turns) rather than a flattened text prefix
- [ ] Claude recognises its prior responses as its own, maintaining consistent personality across a conversation
- [ ] Per-room history survives server restarts (persisted to disk or database)
- [ ] Rolling window trimming still applies to keep context bounded
- [ ] Multi-user rooms still attribute messages to the correct sender
## Out of Scope
- TBD