You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(aidd-dev/plan): plan check hook reports false positives on a two-step plan and on a plan in progress #1190
A hook that checks plan.md with validate-plan.cjs (PostToolUse on plan.md plus Stop) reports false positives in two cases. Measured in a disposable test with claude -p (haiku).
Plan written in two steps. After plan.md is written, the validator reports phase-1.md: listed in plan.md, file missing. The agent has not written the phase file yet, so the message is wrong mid-work.
Plan already in progress. The validator requires status: pending. 02-implement (actions/01-prepare.md) sets status: in-progress, and a finished plan is done. A hook run at end of turn flags both as invalid.
The hook is silent when the plan is valid or still being written. It only judges a plan created or modified during the turn. Phase files are required only at the end of the turn.
Observed behaviour
Case 1: message phase-1.md: listed in plan.md, file missing between the plan.md write and the phase-1.md write.
Case 2: a plan with status: in-progress or status: done is reported invalid.
Suggested fix, validated on a test hook:
Keep a baseline (sha1 of plan.md at SessionStart and at Stop) and judge only plans that changed in the turn.
Judge only plans still pending.
At PostToolUse, ignore "listed in plan.md, file missing". At Stop, require the phase files.
AI tool
Claude Code
aidd-cli version
Not applicable (reproduced with a standalone hook and the validate-plan.cjs script, not the CLI).
OS
macOS
Additional context
No bug label exists in the repo. The issue type is set to Bug.
Not applicable to the Code of Conduct checkbox of the form: left to the reporter.
Activity
blafourcade commentedon Nov 22, 2026
Delivered by #1317, merged into next (2a3a53c): Stop judges only what the turn wrote, PostToolUse only marks, the plan contract accepts in-progress.