feat(DIS-103): ChannelQueue serializes messages per channel (FIFO) #48
No reviewers
Labels
No labels
blocked
needs-review
phase:0
phase:1
phase:1.5
phase:2
phase:3
phase:4
phase:5
phase:6+
priority:p0
priority:p1
priority:p2
security
type:chore
type:ci
type:docs
type:feat
type:fix
type:idea
type:known-issue
type:refactor
type:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: dev/disclaw#48
Loading…
Reference in a new issue
No description provided.
Delete branch "phase-1/channel-queue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ChannelQueueclass insrc/runtime/channel-queue.tsthat serializes tasks per channel via a Promise-chain FIFO queuesrc/router.tsto wrap eachrouteMessagehandler inchannelQueue.enqueue()so same-channel messages run serially while different channels stay parallelTests
tests/unit/channel-queue.test.ts: FIFO order, error recovery, map cleanup, channel parallelism (4 cases)tests/integration/channel-queue-router.test.ts: mockedrunAgent, 3 messages in same channel verified in orderAll 51 tests pass, TypeScript compiles clean.
24bd34f886to8fed430afc