Skip to main content

check_trifecta

Function check_trifecta 

Source
pub fn check_trifecta<I>(tags: I, allow_trifecta: bool) -> TrifectaVerdict
where I: IntoIterator<Item = TrifectaTag>,
Expand description

Pure Rule-of-Two check. Folds the tags of a granted tool set (OR across legs) and judges the accumulated budget:

Structural only — it never inspects tool content and never asks the model to judge; it is a budget on co-located capability. Call it over the tags of the already-narrowed grant and before the grant is handed out: refusing once a child already holds the capability is too late.