spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

[Bug]: /speckit-converge is not idempotent — re-runs append duplicate remediation tasks

Open jabelk opened this issue 3 months ago • 2 comments

Version

spec-kit v1.0.1 (.claude/skills/speckit-converge/SKILL.md)

Description

/speckit-converge only checks that tasks.md exists before assessing the codebase and appending remediation tasks. It keeps no persisted evidence that /speckit-implement actually ran against the current task list, and it does not map its findings onto existing unchecked tasks before appending.

Two consequences:

  1. Invoked early (before implement has run, or after a partial implementation), it appends remediation tasks for work that is already represented by existing unchecked tasks — now under new IDs, splitting traceability for the same work across two task entries.
  2. Invoked twice (e.g. converge → partial fix → converge again), gaps found both times are appended both times.

Expected behavior

  • Converge verifies prerequisite state (an implementation checkpoint, or at minimum warns loudly when tasks.md contains unchecked tasks that overlap its findings).
  • Before appending, each finding is compared against existing unchecked tasks; covered work is reused/updated rather than duplicated, and only genuinely new gaps get new IDs.

Context

Found while upgrading a template fleet from 0.5.0 to v1.0.1 and reviewing the newly vendored command. Related in spirit to the duplicate-detection work in #2968, but on the tasks.md side rather than GitHub issues.

jabelk avatar Aug 21 '26 22:08 jabelk

I also have a problem with converge : it loses the verdict between two sessions. It seems it has no memory of having been running. I'm going to experiment putting a rule in CLAUDE.md to try to overide this problem. (Speckit Version 1.0.2.dev0)

jeanlucgo avatar Aug 26 '26 16:08 jeanlucgo

This issue has been automatically marked as stale because it has had no activity for 30 days. It will be closed in 30 days unless there is a substantive update. If the problem still applies, please provide updated context such as whether it is still reproducible, the affected version or environment, its current impact, and any new reproduction details. A comment that only states that the issue is "still relevant" does not give maintainers enough information to reconsider it.

github-actions[bot] avatar Nov 17 '26 00:11 github-actions[bot]