spacedriveapp / spacedriveapp/spacebot

[Bug] delegation task failure triggers excessive retrigger messages

Open
#420 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. No cooldown period: retrigger fires continuously at ~20-30 second intervals
  2. No retry limit: keeps retrying indefinitely after failure
  3. 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

  1. On delegation failure, A should only report failure to user once
  2. Retrigger should have cooldown and retry limits
  3. Prevent message storms caused by mechanism flaws

Environment

  • spacebot v0.3.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.