Repository navigation
GUIDE SDD v1.16.2
v1.16.2 — fold_check reads whole clauses (per SDD-amend-v1.16.2, 2026-10-16)
No invariant change; still ten.
fold_check(closes #10) reported false failures on HTML specs. The fixes:- A clause is its definition span. It runs from the line that defines it (an
id=/name=or{#..}anchor whose value is a clause-id, or a Markdown heading / list / table / bold line that starts with the id) to the next definition or heading. One pin anywhere in the span covers the clause, so a pin at the end of a multi-line<li id="X.N">counts. Before, the pin had to sit on the same line or the next one. - Only definitions are checked. A clause-id cited in another clause's text (
... (DISC.8) ...) defined nothing and was reported UNPINNED in a shard that never defined it. - Only changed clauses are checked. The gate checked every clause-id in every changed shard. Now it reads
git diff -U0against the base and checks only clauses whose span holds a changed line. A pure deletion inside a span counts as a change. With git absent, every clause is checked as before. - The newest pin decides. When a span holds several pins, the unit with the latest date is resolved.
- A shard with no definitions at all falls back to the old rule (a pin on the clause-id line or the next one) and prints a NOTE.
- Mode B single-file backlogs resolve. A unit resolves by a
<unit>*file underbacklogRoot(as before), or by a heading or anchor naming it inside any file there.backlogRootmay also name one backlog file.UNRESOLVED-UNITnow says what was searched, and so does a strictresolveCmdfailure.
- A clause is its definition span. It runs from the line that defines it (an
- Smoke on both twins: a pin at the end of a multi-line HTML clause, a cross-referenced id, an unchanged unpinned clause, an edited unpinned clause, a single-file backlog, a heading in a backlog directory, and an unknown unit.