Pure helper that extracts the strongest lead sentence from
an Executive Brief artifact.
The aggregator's Executive Brief section is rendered first; this module
is consumed by buildArticleMeta (and by metadata fall-backs) to
surface a single concise lead — the journalistic "nut graf" — that
sharpens both the SEO description and the structured data emitted next
to article.md.
The rules are deterministic:
Prefer the first non-empty paragraph under a ## BLUF /
## Bottom Line Up Front heading in executive-brief.md (or
extended/executive-brief.md).
Fall back to the first non-empty paragraph under ## Top Findings
/ ## Key Judgments in intelligence/synthesis-summary.md.
Fall back to the first non-empty paragraph in any of the canonical
sources.
Return the first sentence (split on . / ! / ? ), capped at
MAX_LEAD_CHARS characters with a trailing ellipsis.
Description
Pure helper that extracts the strongest lead sentence from an Executive Brief artifact.
The aggregator's Executive Brief section is rendered first; this module is consumed by buildArticleMeta (and by metadata fall-backs) to surface a single concise lead — the journalistic "nut graf" — that sharpens both the SEO description and the structured data emitted next to
article.md.The rules are deterministic:
## BLUF/## Bottom Line Up Frontheading inexecutive-brief.md(orextended/executive-brief.md).## Top Findings/## Key Judgmentsinintelligence/synthesis-summary.md../!/?), capped at MAX_LEAD_CHARS characters with a trailing ellipsis.