You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 🚀 **NEXT PHASE** (Deferred - Complete After Current Phase)
505
505
506
+
### **Worktrunk-Integrated Parallel Execution with Dependency-Aware Orchestration***(0% Complete)* - **HIGH PRIORITY** - Incident.io workflow pattern enabling 5+ agents in parallel with git worktree isolation
507
+
508
+
**Purpose**: Enable safe parallel execution of SYNC/ASYNC tasks with explicit dependency tracking and phase-respecting orchestration. Validates the incident.io pattern (multiple agents, branch isolation, clean merge workflow) using Worktrunk as optional infrastructure for parallel development.
509
+
510
+
**Design Foundation** (locked design from validated patterns):
511
+
512
+
| Aspect | Decision | Validation |
513
+
|--------|----------|-----------|
514
+
| Branch Structure | Hierarchical: `feature/spec-name/task-NNN-description-[sync\|async]`| Nests task branches under spec branch from `/specify`; prevents collision |
515
+
| Dependencies | Explicit in tasks.md: `depends: [T001, T002]`| Human-writable during `/plan`; pre-merge hooks validate; enables sophisticated scheduling |
The `/tasks` command generates dependency-ordered tasks.md files, but agents lack persistent cross-session visibility into task state, dependencies, and execution progress. This leads to:
626
+
- Agents losing context about task generation decisions across sessions (inter-session amnesia)
627
+
- Inability to query ready-to-execute tasks without parsing markdown
628
+
- Lost work discovery when agents encounter issues during implementation but lack structured recording mechanism
629
+
- Suboptimal agent behavior near context limits (workarounds instead of updating task status)
630
+
631
+
Per Steve Yegge's Beads manifesto, agents naturally work better with issue trackers than markdown plans because structured dependency queries and persistent memory solve these problems.
632
+
633
+
**Solution**:
634
+
Integrate Beads (native issue tracker) with `/tasks` command as dual-output system:
635
+
-`/tasks` continues generating tasks.md (no breaking changes to current workflow)
636
+
-**NEW**: `/tasks` also populates beads issues with explicit dependencies, SYNC/ASYNC classification, and phase structure
637
+
- Agents can query beads during `/implement` for ready work: `bd ready --json --assignee me`
638
+
- Discovered work automatically recorded to beads by agents without context pressure
639
+
- Task status updates via `bd update` provide persistent progress tracking across sessions
640
+
641
+
**Scope** (Conservative Approach - Option A):
642
+
- ✅ `/tasks` generates beads issues in parallel with tasks.md (coexistence, not replacement)
643
+
- ✅ Each task becomes a beads issue with:
644
+
- Title: Task name from tasks.md
645
+
- Description: Task description + rationale for SYNC/ASYNC classification
- ✅ Graceful fallback: If beads unavailable, tasks.md workflow still works
652
+
- ❌ NOT replacing tasks.md as execution format (yet)
653
+
- ❌ NOT for multi-feature pattern learning
654
+
- ❌ NOT for cross-project agent coordination
655
+
656
+
**Integration Points**:
657
+
658
+
| Component | Current | Change | Impact |
659
+
|-----------|---------|--------|--------|
660
+
|`/tasks` command | Generates tasks.md only | Also calls `bd create` for each task | Dual output, no breaking changes |
661
+
|`tasks-meta-utils.sh`| Tracks task metadata in tasks_meta.json | Sync SYNC/ASYNC classification to beads issue labels | Beads becomes single source of execution mode truth |
662
+
|`/implement` command | Parses tasks.md for task list | Optional: Query `bd ready --json` for better structure (Phase 2) | Phase 1 uses tasks.md, Phase 2 uses beads |
0 commit comments