Title: feature-plan: PR #582's plan_check.py silently drops a step whose number duplicates an earlier step — same-wave file collisions pass as 'ok' · Issue #585 · developing-today/code · GitHub
Open Graph Title: feature-plan: PR #582's plan_check.py silently drops a step whose number duplicates an earlier step — same-wave file collisions pass as 'ok' · Issue #585 · developing-today/code
X Title: feature-plan: PR #582's plan_check.py silently drops a step whose number duplicates an earlier step — same-wave file collisions pass as 'ok' · Issue #585 · developing-today/code
Description: Finding PR #582 adds .agents/skills/feature-plan/scripts/plan_check.py, the mechanical gate the rewritten feature-plan skill runs before the fresh-context validator (SKILL.md step 11; references/validation.md §1: "Fix everything it print...
Open Graph Description: Finding PR #582 adds .agents/skills/feature-plan/scripts/plan_check.py, the mechanical gate the rewritten feature-plan skill runs before the fresh-context validator (SKILL.md step 11; references/va...
X Description: Finding PR #582 adds .agents/skills/feature-plan/scripts/plan_check.py, the mechanical gate the rewritten feature-plan skill runs before the fresh-context validator (SKILL.md step 11; references/va...
Opengraph URL: https://github.com/developing-today/code/issues/585
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feature-plan: PR #582's plan_check.py silently drops a step whose number duplicates an earlier step — same-wave file collisions pass as 'ok'","articleBody":"## Finding\n\nPR #582 adds `.agents/skills/feature-plan/scripts/plan_check.py`, the mechanical gate the rewritten feature-plan skill runs before the fresh-context validator (SKILL.md step 11; `references/validation.md` §1: \"Fix everything it prints before launching the validator\"). Its `parse()` stores steps in a dict keyed by step number with no duplicate guard:\n\n```python\n# .agents/skills/feature-plan/scripts/plan_check.py:37 (PR #582 head d6d5c7a17e39d606ad7f1f73c7ac63afdbe8ca68)\nsteps[step] = {\"wave\": wave, \"parallel\": bool(found[2]), \"text\": \"\"}\n```\n\nA second step with the same number silently overwrites the first, so the overwritten step is never checked at all — and two same-numbered steps in one wave defeat the same-wave file-collision check, because both steps collapse into one dict entry.\n\n## Evidence\n\nReproduced against PR #582's head (`d6d5c7a1`) with a plan containing two complete steps, both numbered `1`, both in Wave 1, both writing ``scripts/shared.py``:\n\n```text\n$ python3 -I .agents/skills/feature-plan/scripts/plan_check.py plan.md\nok: 1 steps in 1 waves (exit 0)\n```\n\nExpected: a duplicate-step-number diagnostic (exit 1), and/or `wave 1: scripts/shared.py written by steps 1, 1`. Instead the checker reports one step and `ok`. A cross-wave variant (step `1` in Wave 1 and again in Wave 2) likewise produces no duplicate diagnostic — the Wave 1 step simply disappears from every check (fields, requires, files).\n\nStep numbers are load-bearing in this format, which is why the silent overwrite matters:\n\n- `references/plan-outline.md` §4 (PR #582): \"Numbering. One sequence across the whole plan… Once issues exist, numbers never change.\"\n- `references/issues.md` §1 (PR #582): implement-issue markers carry the step number (`\"step\":\"3\"`), and `blockedBy` links are built from `Requires:` step numbers — a duplicated number makes two steps indistinguishable downstream.\n- `references/validation.md` §1 lists the file-collision and missing-field checks as what `plan_check.py` guarantees before the validator runs; both are void for an overwritten step.\n\n## Why it matters\n\n`plan_check.py` is the only mechanical check in the S7 flow; everything after it (validator, zero-context readers, issue creation) trusts its `ok`. A plan author who renumbers or copy-pastes a step — the exact accident a mechanical checker exists to catch — gets a green `ok` while one step escapes every field, wave and file-collision check, and two colliding writers can be scheduled into the same wave.\n\n## Acceptance criteria\n\n- [ ] `plan_check.py` exits 1 and prints a clear diagnostic (e.g. `step 1: duplicate step number`) when a plan reuses a step number, in the same wave or across waves.\n- [ ] The same-wave/same-file repro above no longer prints `ok`.\n- [ ] A regression test or fixture covers duplicate step numbers (same-wave and cross-wave).\n- [ ] Existing behaviour is unchanged for well-formed plans (the PR body's sample outputs still reproduce).\n\nFound by the pr-diff-review sweep reviewing PR #582 (open, head `d6d5c7a17e39d606ad7f1f73c7ac63afdbe8ca68`). plan_check.py does not exist on `main` yet — this is a defect in the PR's new code, filed so it is not lost if the PR merges as-is.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-22T12:12:24Z","url":"https://github.com/developing-today/code/issues/585"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:82e1361d-5505-1413-62b0-d51e054d8c9d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9634:3F8E32:A2C2BA:D9571C:6B063EC3 |
| html-safe-nonce | bab8fc510bfece7e6bdf3cae69ffaf0badeb8df2ac46650aeff4843c2996e44d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjM0OjNGOEUzMjpBMkMyQkE6RDk1NzFDOjZCMDYzRUMzIiwidmlzaXRvcl9pZCI6IjUyNzQ0NjAwMzczMjk2MDAxOTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9dc66fcdeab8c84f3e269ed3e0bd9fbda0897aeaa1964a2ef14d15d5379028b6 |
| hovercard-subject-tag | issue:5979049500 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/585/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a14896f38f919c07cc0c9ff542bc7ddcb40cb90e6bc2b317d62141f05de0fb5/developing-today/code/issues/585 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a14896f38f919c07cc0c9ff542bc7ddcb40cb90e6bc2b317d62141f05de0fb5/developing-today/code/issues/585 |
| og:image:alt | Finding PR #582 adds .agents/skills/feature-plan/scripts/plan_check.py, the mechanical gate the rewritten feature-plan skill runs before the fresh-context validator (SKILL.md step 11; references/va... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f38f5735226749ec5e08a8649dce4cb2613d9ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width