pub fn enforce_project_scope(entry_file: &Path) -> Result<(), String>Expand description
Enforce per-file scoping for a project WITHOUT codegen. The interpreter and
other lightweight tiers call this so transitive leakage is rejected uniformly
with largo build — a program that fails scoping on one tier fails on all.
Returns Ok(()) when every reference stays within its file’s scope, else the
clean scope-violation message.