Skip to main content

Label-based message routing

Source: tests/bdd/features/routing.feature

Feature: Label-based message routing
Agents communicate through labeled beads.
The watcher routes each bead to the agent mapped to its label.

@bdd
Scenario: Single-label bead appears in correct agent's inbox
Given a fresh beads environment with 6 agents
When "forge" creates a bead "Review my PR" labeled "priya"
Then "priya" inbox contains 1 bead titled "Review my PR"
And "forge" inbox contains 0 beads
And "atlas" inbox contains 0 beads

@bdd
Scenario: Multi-label bead appears in multiple inboxes
Given a fresh beads environment with 6 agents
When "priya" creates a bead "Security + infra review needed" labeled "forge,rio,helm"
Then "forge" inbox contains 1 bead
And "rio" inbox contains 1 bead
And "helm" inbox contains 1 bead
And "atlas" inbox contains 0 beads
And "priya" inbox contains 0 beads