fix(aidd-dev/plan): plan check hook reports false positives on a two-step plan and on a plan in progress
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 74/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- developer-experience, tooling
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 481
- Fork
- 45
- Merge medio
- 1g 13h
- PR unite (30g)
- 91
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ai-driven-dev/framework
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
ai-driven-dev/framework#1311 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
ai-driven-dev/framework#1244 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ai-driven-dev/framework#1197 ·
I maintainer di solito rispondono entro 1 giorno
-
refactor(aidd-context): apply the new skill template to learnForse già presa @blafourcade l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ai-driven-dev/framework#1186 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
ai-driven-dev/framework#1163 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ai-driven-dev/framework
Issue simili
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elastic/kibana#306401 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
agentes-chat/agentes-chat#927 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Webapp workspace fails to render in Safari — "Can't find variable: requestIdleCallback"Apertacomp/desktop P2 type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NousResearch/hermes-agent#157702 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
e2e-failure ready-to-code
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
redhat-developer/rhdh-plugin-export-overlays#4794 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno