Skip to main content

Comment-based wake-up (G-1 fix)

Source: tests/bdd/features/watcher_comments.feature

Feature: Comment-based wake-up (G-1 fix)
The watcher detects new comments on in_progress beads
and wakes the correct agents — excluding the commenter.

@bdd
Scenario: QUESTION on claimed bead wakes labeled agent
Given a fresh beads environment with 6 agents
And "priya" creates a bead "Implement auth" labeled "forge,priya"
And "forge" claims the bead
And the watcher has scanned the initial state
When "forge" comments "QUESTION: OAuth2 or SAML?"
And the watcher runs comment tracking
Then the watcher would wake "priya" for the bead
And the watcher would NOT wake "forge" for the bead

@bdd
Scenario: Comment by non-labeled agent wakes all labeled agents
Given a fresh beads environment with 6 agents
And "priya" creates a bead "Review this" labeled "forge,priya"
And "forge" claims the bead
And the watcher has scanned the initial state
When "main-agent" comments "FROM HUMAN: Please prioritize this"
And the watcher runs comment tracking
Then the watcher would wake "forge" for the bead
And the watcher would wake "priya" for the bead

@bdd
Scenario: First run seeds state without dispatching
Given a fresh beads environment with 6 agents
And "priya" creates a bead "New task" labeled "forge"
And "forge" comments "QUESTION: What is the priority?"
When the watcher runs comment tracking for the first time
Then no wake actions are produced
And the state records the current comment count