Skip to main content

Module chapter_size_cap

Module chapter_size_cap 

Source
Expand description

Gate: a chapter stays within its line cap, or within the ceiling its project recorded for it.

Chapters get 200 lines; catalogs — gates, checklists, glossaries, READMEs — get 300. A recorded ceiling in .spec-driven-docs/debt.yaml is judged instead of the cap and only comes down. The older flat list at .spec-driven-docs/chapter-size-debt.txt is still honoured with its skip semantics until sdd debt migrate --apply converts it; both files present is a failure rather than a precedence. Vendored trees are pruned. Which caps exist is the format spec’s business; this gate only counts.

Constants§

CITES
The rules this gate can cite.

Functions§

measure
Measure every chapter and catalog: one lines count per file.
run
Judge every chapter and catalog against its cap or its recorded ceiling.