pub fn build_context(
graph: &EntityGraph,
entity_id: &str,
all_entities: &[SemanticEntity],
token_budget: usize,
) -> Vec<ContextEntry>Expand description
Build a context set for a target entity within a token budget.
Greedy knapsack by priority:
- Target entity (full content)
- Direct dependents (full content)
- Transitive dependents (signature only)