Skip to main content

render

Function render 

Source
pub fn render(vault: &str, items: &[Item], budget_tokens: usize) -> String
Expand description

Render items for the agent within budget_tokens (an item that does not fit is skipped whole). Header vault @<ns>/<name> · <d>, d a digest of the delivered (node id, bucket) pairs; other members’ text is fenced as data.

Every item whose id follows the reference grammar carries its node:<id> (v5 2.6.1), and the section says once how to cite it: a claim that names the id in its refs gets a derived_from edge (capture::derived), the only evidence of verified reuse (BAUPLAN §5.3). The hint line is counted against the budget with the first citable item; a section without one carries no hint.