pub fn build_enriched_task_pack(
root: &Path,
goal: &str,
files: &[String],
symbols: &[String],
budget: Option<usize>,
hook: bool,
) -> Result<ContextPack>Expand description
pack with scorer + beads + hindsight and its post-enrichment token
count. NO Surface delta, NO ContextLedger mutation, NO visibility side
effects. Pack-only callers (context compress, build_task_pack)
MUST use this — NEVER build_task_context, which also builds a delta
and records its rendered ids in the ledger: throwing the delta away
would mark Surface APIs “already visible” the agent never saw, breaking
the ledger invariant (ledger = content actually shown to the agent).