Add task tracking to issue-plan
Summary
Add TaskCreate/TaskUpdate progress tracking to the issue-plan command. This is one of the most complex planning commands (7 steps) with two rounds of parallel agent delegation, multiple user interaction points (clarifying questions, architecture selection, plan approval), and a final posting + branch creation step. Task tracking will ensure no exploration or interaction step is skipped.
Part of #81 (Tier 1 -- VERY HIGH priority). See #81 for task tracking conventions and overall context.
File: commands/issue-plan.md
What Is Task Tracking?
mach10 commands should use TaskCreate and TaskUpdate to establish visible progress checkpoints. Tasks are created upfront after input parsing, then transitioned to in_progress / completed as work proceeds. This makes long-running commands observable and forces the execution to explicitly pass through each checkpoint. See #81 for the full conventions.
Task Graph
The task graph follows the 1-to-1 step mapping convention: one task per command step, with a Step 0 bootstrap that handles input parsing and task list creation. All 8 tasks are created sequentially in Step 0 after input parsing. Each task starts as pending.
| Task | Subject | activeForm |
|---|---|---|
| Step 0 | Step 0: Parse input and create task list | Parsing input |
| Step 1 | Step 1: Read the issue | Reading issue |
| Step 2 | Step 2: Explore the codebase | Exploring codebase |
| Step 3 | Step 3: Ask clarifying questions | Asking clarifying questions |
| Step 4 | Step 4: Design architecture | Designing architecture |
| Step 5 | Step 5: Draft implementation plan | Drafting plan |
| Step 6 | Step 6: Post plan and create branch | Posting plan and creating branch |
Note: The existing command numbers Steps 1-7, with Step 4 = Clarifying Questions and Step 7 = Post and Branch. The task table above uses the command's existing step numbers, prepended with Step 0.
Delegation Notes
- Step 2 (Explore the codebase): delegates to
feature-dev:code-explorersubagents via the Task tool. No re-anchoring needed -- Task subagent calls do not consume the outer model's context. - Step 4 (Design architecture): delegates to
feature-dev:code-architectsubagents via the Task tool. Same -- no re-anchoring needed. - Neither delegation uses the Skill tool, so no post-delegation re-anchoring or phase tracking is required.
Sync Obligations
Adding task tracking touches the CLAUDE.md Step 0 bootstrap sync bullet. The current bullet lists 4 command files; issue-plan.md must be added as the 5th.
No other sync points are affected -- step numbers are not changed, so existing sync references (contributing-guide lookup at Step 3a, plan marker at Step 7, assignment logic at Step 7 sub-steps 3 and 4) remain valid.
Acceptance Criteria
- [ ]
TaskCreate, TaskUpdateadded toallowed-toolsin frontmatter - [ ] Step 0 block inserted before existing Step 1, with bootstrap paragraph and task table
- [ ] Each step (1-7) has "Mark Step N in progress." at the start and "Mark Step N complete." at the end
- [ ] Step 7 Cancel path uses "Leave Step 7 as
in_progress" instead of marking complete - [ ] CLAUDE.md Step 0 bootstrap sync bullet updated to list
issue-plan.mdas the 5th command file
Note: The task tracking conventions have been revised (see comment on issue 81). The task graph in this issue body follows the old "3-5 compound tasks" convention and is now stale. When implementing this sub-issue, derive the task graph using 1-to-1 step mapping: one task per command step, with a Step 0 that handles input parsing and task list creation. See the updated CLAUDE.md conventions and commands/pr-review.md for the reference implementation.
Independent Assessment
An independent assessment was conducted to evaluate readiness for implementation.
Current state: The command has 7 well-defined steps (Steps 1-7) with no task tracking. Four other commands (pr-review, pr-review-fix, pr-pre-merge, doc-review) already implement the pattern, providing a consistent reference.
Key finding: The original task graph in the issue body used the old "3-5 compound tasks" convention (T1-T5), which was superseded by the 1-to-1 step mapping convention. The issue body has been updated to reflect the current conventions.
Scope: Small-medium mechanical change. The command's step numbers are not changing, so the multiple sync obligations that reference issue-plan.md by step number remain valid.
No blockers identified. Ready for /mach10:issue-plan.
Implementation Plan: Add task tracking to issue-plan
Stage 1: Add task tracking to issue-plan and update CLAUDE.md sync bullets
Files: commands/issue-plan.md, CLAUDE.md
changes to commands/issue-plan.md
-
Frontmatter: Add
TaskCreate, TaskUpdateafterTaskinallowed-tools -
Step 0 bootstrap: Replace
## Step 1: Parse Inputwith## Step 0: Parse input and create task list, absorbing the parsing logic and adding the canonical bootstrap paragraph ("remaining 6 steps") + 7-row task table +Mark Step 0 complete. -
Rename headings: Steps 2 to 1, 3 to 2 (including 3a to 2a, 3b to 2b), 4 to 3, 5 to 4, 6 to 5, 7 to 6
-
Add state-transition markers: Each step gets
Mark Step N in progress.as first body line,Mark Step N complete.as last body line -
Cancel path: Step 6 cancel adds
Leave Step 6 as in_progress. -
Internal cross-references (8 updates):
- Step 2a: "plan drafting in Step 6" becomes "Step 5"
- Step 2b: "identified in Step 3a" becomes "Step 2a"
- Step 3: "codebase findings from Step 3" becomes "Step 2"
- Step 5: "architecture selected in Step 5" becomes "Step 4", "recorded in Step 3a" becomes "Step 2a"
- Step 6 Decision Log: "Step 4" becomes "Step 3", "Step 5" becomes "Step 4", "Step 4 produced...Step 5 had" becomes "Step 3 produced...Step 4 had"
Task table
| Task | Subject | activeForm |
|---|---|---|
| Step 0 | Step 0: Parse input and create task list | Parsing input |
| Step 1 | Step 1: Read the issue | Reading the issue |
| Step 2 | Step 2: Explore the codebase | Exploring the codebase |
| Step 3 | Step 3: Ask clarifying questions | Asking clarifying questions |
| Step 4 | Step 4: Design architecture | Designing architecture |
| Step 5 | Step 5: Draft the plan | Drafting the plan |
| Step 6 | Step 6: Post plan and create branch | Posting plan and creating branch |
changes to CLAUDE.md
- Contributing-guide lookup sync (line 61):
(Step 3a)becomes(Step 2a) - Plan marker sync (line 62):
(Step 7)becomes(Step 6) - Issue auto-assignment sync (line 66):
(Step 7, sub-step 3)becomes(Step 6, sub-step 3),(Step 7, sub-step 4)becomes(Step 6, sub-step 4) --commentstwo-call sync (line 68):(Step 2)becomes(Step 1)- Step 0 bootstrap sync (line 70): "four command files" becomes "five command files", add
commands/issue-plan.mdto list, "all five locations" becomes "all six locations"
Testing
This is a pure plugin definition repo with no build system or test suite. Verification is manual: read the final files, confirm cross-references are consistent, confirm Step 0 bootstrap wording matches reference implementations verbatim (modulo step count).
Decision Log
Clarifying Questions (Step 3)
Q: Should steps be renumbered (0-6) or preserved (0-7)? A: Renumber. Old Step 1 (Parse Input) is absorbed into Step 0, old Steps 2-7 become Steps 1-6. This matches all 4 reference implementations and the issue's task table.
Q: Should CLAUDE.md sync bullets that reference step numbers be updated? A: Yes, update all 5 sync bullets that reference issue-plan.md step numbers, not just the bootstrap sync bullet.
Architecture Choice (Step 4)
Selected the comprehensive approach (full internal cross-reference audit). Both the minimal and clean architecture approaches converged on the same mechanical change. The comprehensive approach was chosen because the additional 8 internal cross-reference updates have zero risk and prevent body text from referencing old step numbers.
This plan will guide staged implementation via /mach10:issue-implement.
Plan review note: In Step 6, place "Mark Step 6 complete." before the CLI next-step suggestion line, not after. Claude tends to skip the completion marker when it sees the suggestion text as the endpoint. Same applies to any other step that ends with informational output.
Progress: Stage 1 complete
Implemented task tracking for the issue-plan command per the implementation plan.
Changes (commit 073a85a)
commands/issue-plan.md:
- Added
TaskCreate, TaskUpdatetoallowed-toolsfrontmatter - Inserted Step 0 bootstrap (absorbs old Step 1 parsing logic) with canonical bootstrap paragraph and 7-row task table (Steps 0-6)
- Renumbered old Steps 2-7 to Steps 1-6 (including sub-steps 3a/3b to 2a/2b)
- Added state-transition markers (
Mark Step N in progress./Mark Step N complete.) to all steps - Updated 8 internal cross-references to use new step numbers
- Added cancel-path handling: "Leave Step 6 as
in_progress." - Placed completion marker before CLI next-step suggestion per plan review decision
CLAUDE.md:
- Updated 5 sync bullets to reflect new step numbers (contributing-guide lookup, plan marker, issue auto-assignment, two-call sync, Step 0 bootstrap)
- Added
commands/issue-plan.mdas 5th command file in Step 0 bootstrap sync bullet ("five command files", "all six locations")