Skip to main content

Bead lifecycle — create, claim, work, close

Source: tests/bdd/features/lifecycle.feature

Feature: Bead lifecycle — create, claim, work, close
Regression: main-agent cannot write to .beads/ after worker touches it.

@bdd
Scenario: Creator closes bead after worker claims it
Given a fresh beads environment with 6 agents
And "main-agent" creates a bead "Fix login regression" labeled "forge"
When "forge" claims the bead
And "main-agent" closes the bead with reason "Verified fix in production"
Then the bead status is "closed"

@bdd
Scenario: Creator closes bead after worker comments
Given a fresh beads environment with 6 agents
And "main-agent" creates a bead "Refactor auth module" labeled "forge"
When "forge" claims the bead
And "forge" comments "STATUS: Refactoring complete"
And "main-agent" closes the bead with reason "Refactoring accepted"
Then the bead status is "closed"
And the bead has 1 comment with prefix "STATUS:"