fix(aidd-dev/plan): plan check hook reports false positives on a two-step plan and on a plan in progress
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start with plugins/aidd-dev/skills/01-plan/scripts/validate-plan.cjs and plugins/aidd-dev/skills/02-implement/actions/01-prepare.md; trace how the hook calls the validator at PostToolUse and Stop. Check the hook configuration and existing tests for these paths. Done means changed plans still in pending are checked, missing phase files are ignored while writing and required at Stop, and in-progress or done plans are not flagged.
索引モデルが issue の本文から書いたものです。
説明
Description
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.mdis written, the validator reportsphase-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) setsstatus: in-progress, and a finished plan isdone. A hook run at end of turn flags both as invalid.
Affected file(s)
plugins/aidd-dev/skills/01-plan/scripts/validate-plan.cjsplugins/aidd-dev/skills/02-implement/actions/01-prepare.md
Expected behaviour
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 missingbetween theplan.mdwrite and thephase-1.mdwrite. - Case 2: a plan with
status: in-progressorstatus: doneis reported invalid.
Suggested fix, validated on a test hook:
- Keep a baseline (sha1 of
plan.mdat 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
buglabel 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.
- 主要言語
- TypeScript
- スター
- 481
- フォーク
- 45
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 91
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ai-driven-dev/framework のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ai-driven-dev/framework#1311 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ai-driven-dev/framework#1244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ai-driven-dev/framework#1197 ·
メンテナーはふだん 1 日以内に返信
-
refactor(aidd-context): apply the new skill template to learn対応中かも @blafourcade が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ai-driven-dev/framework#1186 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ai-driven-dev/framework#1163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ai-driven-dev/framework の issue をすべて見る
似ている issue
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
elastic/kibana#306401 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
agentes-chat/agentes-chat#927 ·
メンテナーはふだん 1 日以内に返信
-
comp/desktop P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#157702 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
e2e-failure ready-to-code
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
redhat-developer/rhdh-plugin-export-overlays#4794 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信