pub fn render_checked(
doc: &Document,
bindings: &Bindings,
counter: &impl TokenCounter,
) -> Result<RenderedPrompt, Vec<Diagnostic>>Expand description
Bind and validate the entire document, returning immutable text, exact tokenizer measurement, budget report, and non-overlapping section provenance.