fix(voice_worker): one person's voice and chat answers are written one at a time
The voice and chat lanes let a person's voice reply start while their chat reply was still running. The chat delete consent counts "the very next message" by turn number, so a message that started before the delete was asked could pass as the confirmation, and the person's dialogue memory was updated out of order. - A reply takes its asker's lock, then its lane's: one person's replies stay one at a time in the order asked, different people's voice and chat answers still overlap, and a reply waiting for its asker holds no lane. Test: a person's voice question starts only after their chat answer. - Specs and roadmap: the lanes are per person; the roadmap no longer says voice answers wait behind chat answers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -219,8 +219,10 @@ which carry Discord's own time.
|
||||
- Chat messages are stored only as given; the app sends only registered channels.
|
||||
- `reply` asks the brain to answer `user`'s `text`. The worker builds the history context for that
|
||||
user (their scope only) and runs the reply engine on a worker thread, one voice reply and one chat
|
||||
reply at a time: the two kinds have separate lanes, so a voice answer never waits behind a chat
|
||||
answer (`app/src/conversation.spec.md`, chat calls).
|
||||
reply at a time: the two kinds have separate lanes, so a voice answer never waits behind another
|
||||
person's chat answer (`app/src/conversation.spec.md`, chat calls). One person's replies stay one at
|
||||
a time across both lanes, in the order asked, so their dialogue memory and delete confirmations
|
||||
("the very next message") follow that order.
|
||||
`reply_text` carries the answer (`failed: true` with empty text when the brain gave none). A voice
|
||||
answer (`via: "voice"`) is stored as a `reply` record to the user in the current channel; a chat
|
||||
answer is stored when the app reports the sent message as `chat_message` with `to`. With
|
||||
|
||||
Reference in New Issue
Block a user