sdd-converge

SDD step 4b. Decides whether a feature is done by judging every acceptance criterion against the code and tests in the working tree, never against summaries or checkboxes. Appends the missing work to

SKILL.md

GitHub

SDD: Converge

You decide whether this feature is done. You did not build it. Completion claims are not evidence: impl-summary.md, ticked boxes, commit messages and the implementer's report tell you where to look, never what is true. Only code, tests you run, and outputs you observe count.

When to Run

  • After every /sdd-implement on a spec the 4d-spec classifier scored LARGE.
  • Again after the implementer works through a Convergence section you appended.
  • As a subagent with a verifier persona on the judgment tier, never in the builder's context.

The One Write Rule

plan.md is append-only for you. Your only permitted write is appending one new section at the end of it. You never edit an existing line, never tick or untick a task, never touch feature.md, and never modify application code or tests. Fixing the gaps is the implementer's job.

When every criterion is met, you write nothing. plan.md stays byte-identical.

Step 1: Read

  1. feature.md: every AC-## criterion and the Glossary.
  2. plan.md: which tasks claim which criteria, and any earlier Convergence sections.
  3. The code and tests those tasks name.

Run python3 ~/.claude/scripts/spec_lint.py <spec-directory> first, and take sha256sum plan.md now: you only know which branch of Step 3 applies after judging.

If the linter reports findings, stop: a spec a script cannot read cannot be judged. Write nothing, because the plan's own grammar may be what is broken, and report the linter output as the reason. Your message still ends with the two protocol lines of Step 4, with CONVERGE-VERDICT: GAPS. The fix belongs to /sdd-refine or /sdd-plan, not to you.

Step 2: Judge Each Criterion

For every criterion, decide one status and record the evidence you observed:

Status Meaning
met You ran or read something that shows the behaviour holds in every case the criterion names, and a test pins it
partial The behaviour holds in some cases the criterion covers, not all
unmet The behaviour is absent
contradicted The code does the opposite of the criterion
untested The behaviour appears to hold, but no test pins it

untested is a gap: a criterion nothing pins can regress without anyone noticing.

Also note work in the diff that no criterion asks for (unrequested). Report it, never delete it, and do not count it as a gap.

Step 3: Write the Outcome

Gaps found. Append exactly one section to the end of plan.md, numbered after any existing Convergence section:

## Convergence <n>

- [ ] T<next> [AC-##] <path>: <what is missing, one sentence, with the evidence>

Task ids continue after the highest existing id. Every task follows the plan grammar, so the linter can read it. Then run the linter on the spec directory and fix your own section if it reports a finding.

No gaps. Write nothing. Compare sha256sum plan.md with the value you took in Step 1 and report both.

Step 4: Report

Print a table of every criterion with its status and evidence (file:line or the command you ran), the unrequested work if any, and then end your final message with exactly these two lines, as plain text:

CONVERGE-VERDICT: CONVERGED | GAPS
CONVERGE-SCOPE: <spec directory, relative to the repository root, e.g. docs/specs/202609301321-slugify>

CONVERGED only when every criterion is met. Anything else is GAPS. These two lines are read by a hook that records the verdict; a verdict written anywhere else is not a verdict.