pub fn derive_subtask_scope(
instruction: &str,
def_sites: &impl Fn(&str) -> Vec<String>,
) -> Vec<String>Expand description
Derive one subtask’s file scope from the harness’s OWN grounding —
grep_terms(instruction) → def-site grep → the defining files. PURE over
the injected def_sites (path:line:content grep lines), so it is
unit-testable with no fs. Order-preserving dedup; ambiguous terms (defs in
more than AMBIGUOUS_DEF_FILES files) are skipped entirely — no signal,
not weak signal; git-quoted ("-prefixed, core.quotePath) and empty
paths are dropped as unusable fence entries. (#812)