Skip to content

T-IDW6-task-inflight-project-scans

State: closed/done · Impact: medium · Complexity: medium

count_inflight_tasks reads task frontmatter, leases, and PRs, and its only caller (orchestrate) speaks exclusively in “in-flight tasks” — it is a task op, not a service. find_todos and scan_planning_candidates are read-only scans of the project. Port all three to their final homes: task inflight and the depth-3 project scan {todos, candidates} group.

LocationRole today
plugin/scripts/count_inflight_tasks.tscategorizes task/worktree/lease/PR pairs against sdlc.yaml limits; orchestrate parses its output
plugin/scripts/find_todos.tsTODO/FIXME/HACK scanner for review-todos
plugin/scripts/scan_planning_candidates.tswalks a root for planning-shaped prose; JSON manifest for import-planning
plugin/lib/model/entities/task/ops/no inflight op

model/entities/task/ops/inflight.ts (sdlc task inflight, on the task noun per the re-homing decision); services/project/ops/{scan-todos,scan-candidates}.ts (sdlc project scan todos|candidates, the one group that earns depth-3). Output contracts preserved via render hooks where text is consumed.

  1. Goldens for all three (inflight summary format, todos table, candidates JSON manifest).
  2. Port inflight — gh pr list via ctx.gh, worktree helpers via util/git.
  3. Port scan-todos, then scan-candidates under the project scan group.
  4. CLI-spawned parity tests; sdlc project scan --help lists both leaves.
LocationKindChange
plugin/lib/model/entities/task/ops/inflight.tsnewtask inflight op
plugin/lib/services/project/ops/scan-todos.tsnewdepth-3 leaf
plugin/lib/services/project/ops/scan-candidates.tsnewdepth-3 leaf
plugin/scripts/count_inflight_tasks.tsmodifythins to forwarder until deletion
plugin/scripts/find_todos.tsmodifysame
plugin/scripts/scan_planning_candidates.tsmodifysame
  • AC-1: sdlc task inflight output matches the golden orchestrate consumes (per-status buckets).
  • AC-2: sdlc project scan todos and sdlc project scan candidates match their goldens; the candidates JSON drives import-planning’s existing eval fixture unchanged.
  • AC-3: sdlc project scan --help renders the group with both leaves; sdlc task --help shows inflight.
  • AC-4: full bun test green.
  • Adversarial synthesis: task inflight re-homing fixed the consensus “worst guess” of the original flat surface (inflight count); docs/planning/notes/N-M2QH-op-substrate-full-sweep.md §1a.

T-NV49-op-path-substrate


← Back to Tasks