mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-04-03 08:19:14 -06:00
Phase 0: TDD Autopilot Dry-Run Foundation #31
Labels
No labels
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:ai-models
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:cli
area:installation
area:installation
area:installation
area:installation
area:installation
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:mcp
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:task-management
area:vscode-extension
area:vscode-extension
area:vscode-extension
area:vscode-extension
area:vscode-extension
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
documentation
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
feedback
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
good first issue
help wanted
help wanted
help wanted
help wanted
help wanted
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
high-priority
integration request
integration request
integration request
integration request
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
low-priority
low-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
medium-priority
provider:anthropic
provider:anthropic
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:claude-code
provider:gemini-cli
provider:openai
provider:perplexity
question
question
question
question
question
question
question
question
question
question
question
question
question
question
refactor
refactor
wontfix
wontfix
wontfix
wontfix
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/claude-task-master#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Crunchyman-ralph on 10/7/2025
🎯 Overview
Implements Phase 0 of the autonomous TDD workflow system - a complete dry-run foundation with orchestration architecture for future execution.
This PR delivers a working
tm autopilot <taskId> --dry-runcommand that validates the environment, analyzes tasks, and displays a complete execution plan without making any changes.✨ What's New
🏗️ Core Services (
tm-core)PreflightChecker (
packages/tm-core/src/services/preflight-checker.service.ts)Validates environment prerequisites before autopilot execution:
package.jsongit,gh,node,npm)TaskLoaderService (
packages/tm-core/src/services/task-loader.service.ts)Comprehensive task validation and dependency analysis:
🖥️ CLI Command
Autopilot Command (
apps/cli/src/commands/autopilot.command.ts)New command:
tm autopilot <taskId> [options]Options:
--dry-run- Show execution plan without performing actions--format <text|json>- Output format (default: text)--project <path>- Project root directoryFeatures:
📚 Architecture Documentation
Phase 0 Completion (
.taskmaster/docs/tdd-workflow-phase-0-spike.md)Orchestration Model Clarification (
.taskmaster/docs/autonomous-tdd-git-workflow.md)Added "Execution Model" section clarifying the orchestration approach:
Orchestrator Role (tm-core):
Executor Role (Claude Code/AI via MCP):
Why This Architecture?
Phase 1 Roadmap (
.taskmaster/docs/tdd-workflow-phase-1-orchestrator.md)New comprehensive specification for next phase:
getNextWorkUnit,completeWorkUnit,getRunState)🚀 Example Usage
🔧 Technical Details
Preflight Validation
The
PreflightCheckerruns 4 comprehensive checks:package.jsonhas a test scriptgit,gh,node,npmavailabilityTask Validation
The
TaskLoaderServiceperforms multi-step validation:Error Handling
Comprehensive error types with actionable suggestions:
task_not_found→ suggests usingtask-master listtask_completed→ suggests choosing different taskno_subtasks→ suggeststask-master expand --id=<id>circular_dependencies→ shows dependency chainmissing_dependencies→ lists invalid referencesinvalid_structure→ suggests re-expansion🎨 Architecture Highlights
State Machine Design
Phase transitions follow strict rules:
Preconditions:
Work Unit API (Phase 1)
MCP Integration (Phase 1)
New tools to be added:
mcp__task_master_ai__autopilot_start(taskId, dryRun?)mcp__task_master_ai__autopilot_next_work_unit(runId)mcp__task_master_ai__autopilot_complete_work_unit(runId, workUnitId, result)mcp__task_master_ai__autopilot_get_state(runId)mcp__task_master_ai__autopilot_pause/resume(runId)📦 Files Changed
New Files
apps/cli/src/commands/autopilot.command.ts(425 lines)packages/tm-core/src/services/preflight-checker.service.ts(317 lines)packages/tm-core/src/services/task-loader.service.ts(390 lines).taskmaster/docs/tdd-workflow-phase-1-orchestrator.md(500+ lines)Modified Files
apps/cli/src/command-registry.ts- Added autopilot commandapps/cli/src/index.ts- Exported AutopilotCommandpackages/tm-core/src/services/index.ts- Exported new services.taskmaster/docs/autonomous-tdd-git-workflow.md- Added execution model section.taskmaster/docs/tdd-workflow-phase-0-spike.md- Marked complete.taskmaster/tasks/tasks.json- Updated task statuses✅ Success Criteria Met
tm autopilot <taskId> --dry-runcommand functional🚫 Out of Scope (Phase 0)
The following are intentionally deferred to Phase 1:
🔜 Next Steps (Phase 1)
Phase 1 will implement the WorkflowOrchestrator state machine:
.taskmaster/reports/runs/See
.taskmaster/docs/tdd-workflow-phase-1-orchestrator.mdfor detailed roadmap.🧪 Testing
Manual Testing Performed
npm run buildsuccessfulAutomated Tests
📝 Migration Notes
No breaking changes - This is purely additive:
tm autopilot@tm/core🤝 Review Focus
Please review:
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Chores