mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

Add task tracking to issue-assessment

Open LeanAndMean opened this issue 7 months ago • 1 comments

Summary

Add TaskCreate/TaskUpdate progress tracking to the issue-assessment command. This command reads the issue, explores the codebase with parallel agents, assesses the issue, recommends actions with a multi-path selection (4+ action types), and drafts/executes the chosen action with an approval loop. Task tracking will ensure the exploration and assessment phases complete before action recommendations.

Part of #81 (Tier 2 -- HIGH priority). See #81 for task tracking conventions and overall context.

File: commands/issue-assessment.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

All 4 tasks are created in a single block after Step 1 (input parsing). Each task starts as pending.

Task Subject activeForm in_progress completed
T1 Read issue Reading issue Before Step 2 After Step 2 (issue body and comments read)
T2 Explore the codebase Exploring the codebase Before Step 3 After Step 3 (agents return, key files read)
T3 Assess the issue Assessing issue Before Step 4 After Step 5 (assessment presented, user selects action)
T4 Draft and execute approved action Executing action Before Step 6 (draft begins) After Step 6 (action executed, confirmed)

Notes:

  • T3 combines Steps 4 and 5 because the assessment and recommendation are one conceptual checkpoint -- the assessment informs the recommendation directly.
  • T4 covers the entire draft/modify/approve/execute flow for the selected action.
  • The "Track Interaction Findings" instruction (Step 4a) is a persistent behavior, not a discrete task.

Delegation Notes

  • Step 3 delegates to feature-dev:code-explorer subagents via the Task tool. T2 brackets this delegation.
  • The subagents' internal steps are not tracked by this command.

Acceptance Criteria

  • [ ] All 4 tasks are created after input parsing, before any work begins
  • [ ] Each task transitions in_progress -> completed at the boundaries described above
  • [ ] T2 brackets the exploration agent delegation
  • [ ] T4 covers the approval loop (modify cycles stay within T4's in_progress window)
  • [ ] If user cancels at action approval, T4 remains in_progress
  • [ ] allowed-tools in frontmatter includes Task (if not already present)

LeanAndMean avatar Apr 09 '26 17:04 LeanAndMean

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.

LeanAndMean avatar Apr 13 '26 19:04 LeanAndMean