Skip to content

[bug-fix] Fix specify-step-self-reference: renumber duplicate step 6 in specify.md#3618

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/2407-specify-step-self-reference-e2c4ec9b6ef40516
Draft

[bug-fix] Fix specify-step-self-reference: renumber duplicate step 6 in specify.md#3618
github-actions[bot] wants to merge 1 commit into
mainfrom
fix/2407-specify-step-self-reference-e2c4ec9b6ef40516

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bug fix — specify-step-self-reference

Proposed fix for issue #2407, applying the remediation from the bug assessment.

Verdict: Valid · Severity: low

Summary

templates/commands/specify.md contained two consecutive top-level list items both numbered 6. — the "Follow this execution flow" step and the "Write the specification" step. This caused the "Specification Quality Validation" section to appear as step 7 when it should be step 8, which historically produced a self-referencing proceed to step 7 instruction inside the step already labelled 7.

Changes

File Change Notes
templates/commands/specify.md modified Renumbered duplicate 6. (write-spec step) → 7. and 7. (quality-validation step) → 8.
tests/test_specify_template_numbering.py added test Regression test asserting the main execution list is sequential with no duplicate ordinals

Tests Added or Updated

  • tests/test_specify_template_numbering.py::test_no_duplicate_top_level_ordinals — pins that the main list has no duplicate ordinal numbers
  • tests/test_specify_template_numbering.py::test_main_execution_list_is_sequential — pins that the steps run 1, 2, 3, ... N without gaps

Local Verification

  • No project test command available in this environment (no installed virtualenv/pytest). Verified correctness by running the test helper logic directly with python3 -c ... — main execution ordinals resolved to [1, 2, 3, 4, 5, 6, 7, 8], which is sequential.
  • Preset files (presets/lean/, presets/scaffold/, presets/self-test/) are all ≤23-line stubs and do not embed the numbered list; no changes required there.

Deviations from Assessment

None. The preferred (root-cause) remediation from the assessment was applied exactly as described (renumber line 142 from 6. to 7. and line 144 from 7. to 8.). A regression test was added as the assessment recommended.

Risks & Review Notes

  • Low blast radius — only tutorial numbering changes; no runtime logic or generated output is affected.
  • Preset files confirmed to be stubs — no propagation required.
  • The symptom fix (proceed to step 7proceed to the Mandatory Post-Execution Hooks section) was already shipped in an earlier commit; this PR applies the structural root-cause fix only.

Refs #2407 · cc @BigBandaid2

Generated by 🛠️ Fix Bug from Labeled Issue for issue #2407 · 513.5 AIC · ⌖ 15.1 AIC · ⊞ 34K ·

Apply the remediation from the bug assessment on issue #2407.
The top-level numbered list in templates/commands/specify.md had two
consecutive items both labelled 6. — the execution-flow step (line 117)
and the write-spec step (line 142). This caused the Specification Quality
Validation section to be numbered 7 when it should be 8, which led to
a self-referencing 'proceed to step 7' instruction inside step 7 itself.

Changes:
- Line 142: 6. Write the specification → 7. Write the specification
- Line 144: 7. Specification Quality Validation → 8. Specification Quality Validation
- Add regression test tests/test_specify_template_numbering.py that
  asserts the main execution list is sequential with no duplicates

Refs #2407

Assisted-by: GitHub Copilot (model: claude-sonnet-4.6, autonomous)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automated bug-fix Trigger the bug-fix agentic workflow labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated bug-fix Trigger the bug-fix agentic workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Proceed to step 7", but it's already in step 7

0 participants