- N1: never call Lines() on inline nodes; locate empty ATX headings after the
end of all preceding blocks (no panic, correct line after `***`)
- N2: take reference definition lines from ast.LinkReferenceDefinition and
drop refCtx/defRe
- N3: reject docs/adr and docs/plans that resolve outside the repository
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Check every link reference definition, decode destinations per CommonMark,
report correct lines for empty headings, autolinks and nested definitions,
reject symlinked record directories and wrong-case path components, and
refuse titles that cannot pass. Only top-level headings count (spec section 6).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
docs new creates ADRs and plans from embedded templates; docs check reports
path:line: message problems per docs/docs-format.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>