fn document_projection_retained_bytes(
facts: &BTreeMap<String, Cow<'_, MarkdownFacts>>,
control: &IndexWorkControl,
) -> Result<u64, CliError>Expand description
Count document projection state that can survive the per-candidate filters.
Same-file links without a fragment are discarded before resolution and never enter the emitted relation, occurrence, dependency, or reason state. Keep those candidates out of the preflight estimate so incremental admission and the post-projection aggregate use the same ownership boundary.