Skip to content

[Bug]: drone @ai_mail dispatch wake fails with 'Branch not found' when called cross-project #283

@AIOSAI

Description

@AIOSAI

Summary

drone @ai_mail dispatch successfully sends the email but the wake step fails with a branch resolution error when called from an external project (Vera Studio) targeting agents in that external project's registry.

Reproduction

From /home/patrick/Projects/Vera-Studio/src/vera (an external project, not the AIPass repo), run:

drone @ai_mail dispatch @strategy "Test subject" "Test body"

Where @strategy is a registered agent in VERA-STUDIO_REGISTRY.json at src/strategy/.

Expected

Email delivered to @strategy mailbox AND the agent wakes in a new tmux session (or equivalent).

Actual

Sending dispatch email to @strategy...
Email sent to @strategy

Waking @strategy...
❌ resolve → Branch not found: @strategy
Email sent but wake failed — retry: drone @ai_mail dispatch wake @strategy

Email delivery works. Wake fails. Retry command (drone @ai_mail dispatch wake @strategy) fails with the same error.

Same result for @creative and @quality — every agent in the external registry.

Impact

This blocks the core cross-project multi-agent workflow:

  • Vera Studio (brand studio) cannot dispatch tasks to its own teams and have them auto-process
  • Any external project using AIPass infrastructure has the same problem
  • Email-only communication works, but the "task + wake" pattern — the whole point of dispatch vs email — is broken for external projects
  • Workaround requires Patrick to manually open each agent in a tmux pane to have them pick up mail

Notes

  • drone @devpulse feedback send works cross-project (reported in session 3, 2026-04-12)
  • drone @ai_mail email @<agent> works cross-project (also confirmed 2026-04-12)
  • Only the wake path is broken
  • Suggests the wake resolver is reading from the AIPass registry instead of the calling project's registry, or not honoring VERA-STUDIO_REGISTRY.json as a source

Environment

  • Calling project: Vera-Studio (VERA-STUDIO_REGISTRY.json, 5 branches)
  • AIPASS_HOME exported correctly (other drone commands work)
  • Originally reported 2026-04-12 in session 3 feedback to @devpulse, still unfixed as of 2026-04-15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions