kilo-gsd.py plan-discovery loads wrong verify plan; #23 would have been falsely closed #36
Labels
No labels
blocked:needs-decision
blocked:preflight
bug
in-progress
in-progress
lint-cleanup
needs-decompose
quickfix
triage-approved
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/pc2cad#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kilo-gsd.py plan-discovery picks the wrong plan for issue #23
What
Ran
kilo-gsd.py --repo Mark/pc2cad --issue 23on 2026-06-20. Thepipeline loaded the wrong verification plan and was about to close
issue #23 as "complete" without doing the actual OCP port work.
Killed the run before that could happen.
Sequence (from
/tmp/kilo-gsd-runner-pc2cad-23.log)Phase 1/8: Research— 13:37:27 → 13:39:29 (~2 min) ✓Phase 2/8: Plan— 13:39:29 → 13:41:01 (~1.5 min) ✓Phase 3/8: Implement— 13:41:01 → 13:41:33 (32 seconds)Phase 4/8: Lint—ruff check .passedPhase 5/8: Verify— running commands frompc2cad-16-organic-strategy.md, NOT a plan for #23The Kilo run during Implement was doing the right thing (grepping
for
_freecad_import,export_step,STEPControlin pc2cad.py —that's the #23 work). But the implement phase produced no diff
to any tracked file (
git diff --statis empty after the run).The Verify phase started running commands from
pc2cad-16-organic-strategy.md: checkingdocs/STRATEGY-ORGANIC.mdexists, running
scripts/generate_organic_fixtures.py, executingspikes/organic_surface_reconstruction/spike_organic_fitter.py—all the acceptance commands for issue #16, not #23.
If left to complete, the pipeline would have closed #23 as
"complete" because all the #16 commands pass.
Suspected root cause
~/.hermes/scripts/kilo-gsd.pyline 461:The verify phase looks for a plan file containing "verify" in its
name. None match (existing plan files in
~/Projects/pc2cad/.kilo/plans/don't have "verify" in theirnames). Falls back to "any plan file." The order it then iterates
isn't documented; in this run, it picked
pc2cad-16-organic-strategy.mdinstead of generating a verifyplan for #23 (or picking the issue-named plan
pc2cad-23-...md, which doesn't exist).There is no
.kilo/plans/pc2cad-23-*.mdfile in the repo, soeven with correct discovery, the pipeline has no plan to use. It
should either:
--planCLI override to point at the right plan.Reproduction
Impact
would mark the OCP port issue as complete without porting any
code.
.kilo/plans/*.mdfiles in pc2cad are the only plans. Issues#11, #12, #13, #14, #15, #17, #18, #21, #22, #23, #25, #28-35
either have no plan or have plans for the wrong scope.
to the repo, but the log shows it ran the wrong verification
commands and would have declared success.
Suggested fix (not for me to implement)
Either:
kilo-gsd.pyfail loudly when no issue-specific planexists, with a clear error pointing to where the user should
put the plan, OR
--plan <path>CLI flag to point at the right plan file,OR
body and stores it before the Verify phase runs.
Related
.kilo/plans/*.mdfiles in pc2cad are theonly plans on disk. None of them is for issue #23.
session
kilo-gsd-runner-pc2cad-23(killed), log files at/tmp/kilo-gsd-pc2cad-23.logand/tmp/kilo-gsd-runner-pc2cad-23.log(still on disk forinspection).