Skip to content

feat: report orphan task directories in repository-check - #54

Merged
hkwuks merged 2 commits into
mainfrom
feat/orphan-task-dirs
Sep 22, 2026
Merged

hkwuks merged 2 commits into
mainfrom
feat/orphan-task-dirs

Conversation

@hkwuks

@hkwuks hkwuks commented Sep 22, 2026

Copy link
Copy Markdown
Owner

Summary

hooks/repository-check now lists every task directory (active and
achieved/) that has prd.md/plan.md but no backticked - Task: line in
todo.md. Orphans set needs (exit 2); the hook is report-only and never
deletes. Uncommitted-artifact lines stay needs-neutral. Smoke covers
unreferenced active/achieved dirs, clearing via Task:, and the clean set.

TaskFlow traceability

  • Task: TaskFlowDocs/2026-09-23-orphan-task-dirs/
  • Scope: hooks/repository-check; hooks/smoke-test
  • Base branch: main
  • Target repository: hkwuks/TaskFlow

Verification

  • bash hooks/smoke-testALL SMOKE PASSED
  • git diff --check → clean
  • Relevant Skill/plugin validation → quick_validate.py skills/taskflow → Skill is valid; claude plugin validate . --strict → pass
  • Results recorded in the TaskFlow Plan

Review boundaries

  • No secrets or opaque remote payloads included
  • No unrelated task or user files changed
  • Remote/base assumptions are stated
  • Known limitations and follow-ups are documented
    (live tree has known historical orphan
    achieved/2026-09-10-repository-document-placement; fixing that is data,
    not code; reverse Todo→missing-dir check not in this PR)

Complete 454ac4 after PR #53 merged.
A directory with prd/plan that no Todo - Task: line names is a lost
record beside live documents. repository-check lists active and
achieved orphans and sets needs; the hook never deletes. Uncommitted
artifact reporting stays needs-neutral. Smoke covers both directions
of the reference.
@hkwuks
hkwuks merged commit 6e37035 into main Sep 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant