pub fn compile(
candidates: &[CompileCandidate],
budget: TokenBudget,
mode: CompileMode,
) -> CompileResultExpand description
Compile a minimal context package from candidates under budget constraints.
This implements a greedy knapsack: pinned items first, then by efficiency (Phi/token), with automatic view downgrade under budget pressure.