spacedriveapp / spacedriveapp/spacebot
[Bug] delegation task failure triggers excessive retrigger messages
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
Description
When Agent A delegates a task to Agent B (via send_agent_message tool), if B fails to complete the task, the system automatically injects a delegation completion retrigger to wake up A for handling the failure.
Current implementation has issues:
- No cooldown period: retrigger fires continuously at ~20-30 second intervals
- No retry limit: keeps retrying indefinitely after failure
- Every retrigger sends message: even when A tries not to reply, the retrigger result gets routed to the user's channel
Impact
Users may receive a large number of duplicate messages (e.g., 1000+) in a short period, severely degrading the experience.
Expected behavior
- On delegation failure, A should only report failure to user once
- Retrigger should have cooldown and retry limits
- Prevent message storms caused by mechanism flaws
Environment
- spacebot v0.3.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the send_agent_message path and the delegation completion retrigger handling described in the issue, then inspect how failed delegations are routed to the user channel. Done means failures report to the user once, retriggers have cooldown and retry limits, and repeated failure does not create a message storm.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ai, backend-api-design
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100