Skip to main content
Headings produce a derived section tree that downstream metrics (MCC, Filler / Lazy Risk, Section Balance) read from. Every section has a heading level, byte/line range, parent/child IDs, word count, and per-section artifact and link counts.

Structure

Each section node carries:

Quality flags

mehen marks three structural smells on the section tree: These flags surface on the PR comment as advisory callouts.

How downstream metrics use the tree

  • MCC reads heading-level changes to charge nesting penalties.
  • Filler / Lazy Risk reads section sizes to detect “shallow big doc”.
  • Section Balance penalizes oversized sections at the 95th percentile.
  • Evidence Coverage computes per-section evidence anchor density.

References

See also