feat: report orphan task directories in repository-check - #54
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hooks/repository-checknow lists every task directory (active andachieved/) that hasprd.md/plan.mdbut no backticked- Task:line intodo.md. Orphans setneeds(exit 2); the hook is report-only and neverdeletes. Uncommitted-artifact lines stay needs-neutral. Smoke covers
unreferenced active/achieved dirs, clearing via
Task:, and the clean set.TaskFlow traceability
TaskFlowDocs/2026-09-23-orphan-task-dirs/hooks/repository-check;hooks/smoke-testmainhkwuks/TaskFlowVerification
bash hooks/smoke-test→ALL SMOKE PASSEDgit diff --check→ cleanquick_validate.py skills/taskflow→ Skill is valid;claude plugin validate . --strict→ passReview boundaries
(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)