Skip to content

Commit 0891140

Browse files
committed
chore: Update implementation roadmap phases for clarity and formatting
1 parent 394d236 commit 0891140

1 file changed

Lines changed: 30 additions & 17 deletions

File tree

roadmap.md

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
520520

521521
**Implementation Roadmap** (5 Phases, 10 Weeks):
522522

523-
##### Phase 1: Dependency Model & Parsing (Weeks 1-2)
523+
#### Phase 1: Dependency Model & Parsing (Weeks 1-2)
524+
524525
- [ ] Update `templates/tasks-template.md` with `depends: [T001, T002]` syntax + examples
525526
- [ ] Create `scripts/bash/parse-dependencies.sh` with DAG validation (cycles, cross-phase violations, missing refs)
526527
- [ ] Create PowerShell equivalent: `scripts/powershell/Parse-Dependencies.ps1`
@@ -529,15 +530,17 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
529530

530531
**Testing**: Sample tasks.md with 10+ tasks across 3 phases; verify DAG validation
531532

532-
##### Phase 2: Phase-Aware Orchestration (Weeks 3-4)
533+
#### Phase 2: Phase-Aware Orchestration (Weeks 3-4)
534+
533535
- [ ] Create `scripts/bash/orchestrate-tasks.sh` with phase-sequential + [P] parallelization logic
534536
- [ ] Create PowerShell equivalent: `scripts/powershell/Orchestrate-Tasks.ps1`
535537
- [ ] Extend `/implement` template to call orchestration logic
536538
- [ ] Add phase-aware progress reporting ("Phase 1/3: 2/3 tasks complete")
537539

538540
**Testing**: Full workflow on test project with 10+ tasks; verify sequential Setup, parallel Foundational
539541

540-
##### Phase 3: Worktrunk Integration (Optional) (Weeks 5-6)
542+
#### Phase 3: Worktrunk Integration (Optional) (Weeks 5-6)
543+
541544
- [ ] Create `scripts/bash/spawn-task-worktree.sh` with worktree creation + branch hierarchy
542545
- [ ] Create PowerShell equivalent: `scripts/powershell/Spawn-TaskWorktree.ps1`
543546
- [ ] Generate `.config/wt.toml` template with pre-merge dependency validation hooks
@@ -546,15 +549,17 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
546549

547550
**Testing**: Run with Worktrunk available and without; verify isolation and fallback
548551

549-
##### Phase 4: Remote Async Agent Integration (Weeks 7-8) *(Tier 1.3 + 1.4 enablement)*
552+
#### Phase 4: Remote Async Agent Integration (Weeks 7-8) *(Tier 1.3 + 1.4 enablement)*
553+
550554
- [ ] Extend `dispatch_async_task()` to include worktree branch SHA + path (if available)
551555
- [ ] Create `scripts/bash/package-task-context.sh` bundling spec, plan, research, task spec
552556
- [ ] Update delegation template with task dependency metadata
553557
- [ ] Extend `tasks-meta-utils.sh` to track async task status from remote agents
554558

555559
**Testing**: Delegate ASYNC task with full worktree context; verify agent receives branch info
556560

557-
##### Phase 5: Monitoring & Documentation (Weeks 9-10)
561+
#### Phase 5: Monitoring & Documentation (Weeks 9-10)
562+
558563
- [ ] Create monitoring dashboard script: `scripts/bash/monitor-parallel-tasks.sh`
559564
- [ ] Update `/implement` output to show phase progress, pending dependencies, agent status
560565
- [ ] Create comprehensive guide: `docs/parallel-execution-guide.md`
@@ -598,7 +603,7 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
598603
**References**:
599604

600605
- incident.io: "Shipping faster with Claude Code and Git Worktrees" (Jun 2025) - validates multi-agent + worktree pattern
601-
- Worktrunk: https://github.com/max-sixty/worktrunk - git worktree management for parallel AI workflows
606+
- Worktrunk: [https://github.com/max-sixty/worktrunk](https://github.com/max-sixty/worktrunk) - git worktree management for parallel AI workflows
602607
- Existing SYNC/ASYNC triage (line 72-87) + [P] markers (line 56-61) provide foundation
603608

604609
---
@@ -621,24 +626,28 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
621626

622627
### **Beads-Backed Task Execution Tracker** *(0% Complete)* - **MEDIUM PRIORITY** - Agent-native persistent work tracking
623628

624-
**Problem Statement**:
629+
**Problem Statement**:
630+
625631
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:
632+
626633
- Agents losing context about task generation decisions across sessions (inter-session amnesia)
627634
- Inability to query ready-to-execute tasks without parsing markdown
628635
- Lost work discovery when agents encounter issues during implementation but lack structured recording mechanism
629636
- Suboptimal agent behavior near context limits (workarounds instead of updating task status)
630637

631638
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.
632639

633-
**Solution**:
640+
**Solution**:
634641
Integrate Beads (native issue tracker) with `/tasks` command as dual-output system:
642+
635643
- `/tasks` continues generating tasks.md (no breaking changes to current workflow)
636644
- **NEW**: `/tasks` also populates beads issues with explicit dependencies, SYNC/ASYNC classification, and phase structure
637645
- Agents can query beads during `/implement` for ready work: `bd ready --json --assignee me`
638646
- Discovered work automatically recorded to beads by agents without context pressure
639647
- Task status updates via `bd update` provide persistent progress tracking across sessions
640648

641649
**Scope** (Conservative Approach - Option A):
650+
642651
-`/tasks` generates beads issues in parallel with tasks.md (coexistence, not replacement)
643652
- ✅ Each task becomes a beads issue with:
644653
- Title: Task name from tasks.md
@@ -656,6 +665,7 @@ Integrate Beads (native issue tracker) with `/tasks` command as dual-output syst
656665
**Integration Points**:
657666

658667
| Component | Current | Change | Impact |
668+
659669
|-----------|---------|--------|--------|
660670
| `/tasks` command | Generates tasks.md only | Also calls `bd create` for each task | Dual output, no breaking changes |
661671
| `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 |
@@ -666,59 +676,62 @@ Integrate Beads (native issue tracker) with `/tasks` command as dual-output syst
666676
**Implementation Roadmap**:
667677

668678
**Phase 1: Beads Issue Generation from `/tasks`** (Weeks 1-3)
679+
669680
- ❌ Modify `/tasks` template to call `scripts/bash/tasks-to-beads.sh` after tasks.md generation
681+
670682
- ❌ Create `scripts/bash/tasks-to-beads.sh` (+ PowerShell equivalent):
671-
- Parse generated tasks.md
683+
- Parse generated tasks.md
672684
- Extract: task ID, title, description, phase, SYNC/ASYNC classification, dependencies
673685
- Call `bd create` with formatted issue + labels
674686
- Link parent/child tasks via beads dependency relationships
687+
675688
- Handle duplicate runs (update existing issues vs. create new)
676689
- ❌ Add beads initialization to `/tasks` workflow: `bd init` if `.beads/` doesn't exist
677690
- ❌ Document beads setup in `/tasks` help text: "Beads database available at .beads/issues.jsonl"
678691
- ❌ Test with single feature: Generate tasks.md + beads issues, verify structure
679-
680692
**Phase 2: Agent Work Discovery & Status Tracking** (Weeks 4-6, deferred)
681693
- ❌ Guide agents to use `bd create` when discovering issues during implementation
682694
- ❌ Inject prompt guidance into `/implement` delegation template about recording work
683695
- ❌ Enable agents to update task status: `bd update --status in_progress` as they work
684696
- ❌ Test: Run `/implement` with beads tracking, verify discovered issues recorded
685-
686697
**Phase 3: Query-Based Task Fetching** (Weeks 7-9, deferred - Option B migration)
687698
- ❌ Modify `/implement` to use `bd ready --json` instead of parsing tasks.md
688699
- ❌ Implement task batching: agents fetch tasks in phases (Setup → Foundational → Stories)
689700
- ❌ Enable dynamic task re-ordering based on discovered blockers (via beads dependency updates)
690-
- ❌ This phase represents migration from Option A (coexistence) to Option B (full beads execution)
691701

702+
- ❌ This phase represents migration from Option A (coexistence) to Option B (full beads execution)
692703
**Relationship to Async Work** (Tier 1.4 - Tier 1.6):
693704
- Beads issues can be tagged `async-ready` during `/tasks` generation (integrates with Tier 1.5)
694705
- Remote async agents query `bd ready --json --label async-ready` for delegatable work
695706
- Webhook callbacks from remote agents update beads issue status (Tier 1.4)
696707
- Full artifact context packaging (Tier 1.6) includes beads issue descriptions for agent briefing
697-
698708
**Success Metrics**:
699709
- Phase 1 Complete: 100% of tasks.md tasks also exist as beads issues with correct dependencies
700710
- Phase 1 Quality: Agents report improved context retention across `/tasks` regenerations
711+
701712
- Phase 2 Complete: Discovered issues automatically recorded to beads (no manual prompting)
702713
- Phase 3 Complete: Agents prefer `bd ready --json` queries over tasks.md parsing
703-
704714
**Risks & Mitigation**:
705715
- Risk: Agents delete/corrupt beads database (like markdown plans in Yegge's experience)
706716
- Mitigation: Beads backed by git, easy recovery; document git workflow in guide
707717
- Risk: Tasks.md and beads get out of sync during development
708718
- Mitigation: Phase 1 only generates beads at `/tasks` time; `/implement` still uses tasks.md (Phase 3 solves this)
709719
- Risk: Beads adoption overhead for users
720+
710721
- Mitigation: Optional feature (graceful fallback); native beads install keeps dependencies simple
711722

712723
**Related Commands**:
724+
713725
- Complements `/trace` command (which captures session decisions) by making them queryable
726+
714727
- Enables future `/levelup` enhancements (extract patterns from beads issue history)
715728
- Works with existing `/implement` (Phase 1) and enhances it (Phase 2-3)
716-
717729
**References**:
718-
- Beads Article: https://steve-yegge.medium.com/introducing-beads-a-coding-agent-memory-system-637d7d92514a
719-
- Beads GitHub: https://github.com/steveyegge/beads
730+
- Beads Article: [https://steve-yegge.medium.com/introducing-beads-a-coding-agent-memory-system-637d7d92514a](https://steve-yegge.medium.com/introducing-beads-a-coding-agent-memory-system-637d7d92514a)
731+
- Beads GitHub: [https://github.com/steveyegge/beads](https://github.com/steveyegge/beads)
720732

721733
**Notes**:
734+
722735
- Conservative scope (Option A) chosen to minimize risk: coexists with tasks.md, no breaking changes
723736
- Full vision (Option B) available for future consideration: agents work directly from beads queries
724737
- Implementation depends on users having `bd` CLI installed (documentation will cover setup)

0 commit comments

Comments
 (0)