2026-02-21 19:41:50 -05:00
|
|
|
# L3 — State Management
|
|
|
|
|
|
|
|
|
|
Add issue tracking with beads for structured work.
|
|
|
|
|
|
|
|
|
|
## What You'll Learn
|
|
|
|
|
|
|
|
|
|
- Using `/plan` to decompose work into issues
|
|
|
|
|
- Beads commands for issue lifecycle
|
|
|
|
|
- Tracking dependencies between tasks
|
|
|
|
|
- Session close protocol
|
|
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
|
|
|
|
|
- Completed L2-persistence
|
|
|
|
|
- Comfortable with `.agents/` directory
|
2026-06-19 21:35:50 -04:00
|
|
|
- br (beads_rust) CLI installed; invoke as `BEADS_DIR="$(ao beads dir)" br`
|
2026-02-21 19:41:50 -05:00
|
|
|
|
|
|
|
|
## Available Commands
|
|
|
|
|
|
|
|
|
|
| Command | Purpose |
|
|
|
|
|
|---------|---------|
|
|
|
|
|
| `/plan <goal>` | Decompose goal into beads issues |
|
|
|
|
|
| `/research <topic>` | Same as L2 |
|
|
|
|
|
| `/implement [id]` | Execute specific issue, then close it |
|
2026-07-01 17:51:23 -04:00
|
|
|
| `/post-mortem [topic]` | Same as L2 |
|
2026-02-21 19:41:50 -05:00
|
|
|
|
|
|
|
|
## Beads Commands
|
|
|
|
|
|
2026-06-19 21:35:50 -04:00
|
|
|
All commands take `BEADS_DIR="$(ao beads dir)"` so linked worktrees use the canonical private ledger:
|
docs(destale): wave 1 — P1 docs stop referencing retired tech (age-docs-staleness-remediation-cko)
The 16 highest-risk live docs (onboarding, L3/L5 tutorials, demo storyboards,
gate-authority doctrine, troubleshooting) that would actively mislead an agent.
13 rewritten to current truth, 3 historical-by-nature docs bannered RETIRED:
- bd <cmd> → BEADS_DIR=$PWD/_beads br <cmd>; .beads/issues.jsonl → _beads/;
pip install beads → install br; dropped bd vc status/Dolt → git -C _beads push
- Gas City/gastown/gt-sling/mayor/using-gc → NTM + MCP Agent Mail; /rpi & ao rpi
framed load-bearing legacy, operating loop is primary
- "CI is authoritative / branch protection blocks main / open a PR" → push-to-main,
local pre-push Go gate is routine authority, validate.yml a backstop
- bannered RETIRED/HISTORICAL (body kept): runbooks/bd-server-mode-closeout.md,
runbooks/beads-failure-recovery.md, contracts/remote-compute.md
Verified: git scope = exactly the 16 P1 files; independent grep finds no residual
live stale pattern in rewrites; all 3 banners present. Wave 2 (P2/P3) next.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-17 10:13:30 -04:00
|
|
|
|
2026-02-21 19:41:50 -05:00
|
|
|
```bash
|
2026-06-19 21:35:50 -04:00
|
|
|
BEADS_DIR="$(ao beads dir)" br ready --json # Show unblocked issues
|
|
|
|
|
BEADS_DIR="$(ao beads dir)" br list --status open --json # All open issues
|
|
|
|
|
BEADS_DIR="$(ao beads dir)" br show <id> --json # View issue details
|
|
|
|
|
BEADS_DIR="$(ao beads dir)" br update <id> --claim --json
|
|
|
|
|
BEADS_DIR="$(ao beads dir)" br close <id> --reason "Done"
|
|
|
|
|
BEADS_DIR="$(ao beads dir)" br sync --flush-only # Export the git-JSONL ledger (never touches git itself)
|
2026-02-21 19:41:50 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Key Concepts
|
|
|
|
|
|
|
|
|
|
- **Issues**: Atomic units of work
|
|
|
|
|
- **Dependencies**: Issues can block each other
|
2026-06-19 21:35:50 -04:00
|
|
|
- **Session close**: `BEADS_DIR="$(ao beads dir)" br sync --flush-only` after issue updates, then `git -C "$(ao beads dir)" push` to share the private ledger
|
2026-02-21 19:41:50 -05:00
|
|
|
|
|
|
|
|
## What's NOT at This Level
|
|
|
|
|
|
|
|
|
|
- No parallel execution
|
|
|
|
|
- No `/crank` (autonomous execution)
|
|
|
|
|
|
|
|
|
|
## Next Level
|
|
|
|
|
|
|
|
|
|
Once comfortable with issue tracking, progress to [L4-parallelization](../L4-parallelization/) to execute waves.
|