pub fn active_source(
conn: &Connection,
year: i32,
) -> Result<ActiveSource, CliError>Expand description
Which source is active for year, mirroring resolve.rs precedence (committed full return, then
tax_profile, then neither).
★ M-5: this uses crate::return_inputs::exists (a cheap SELECT 1), so a schema-STALE committed
row still reports FullReturn — that is correct, not a bug to “fix” to get. The stale row IS the
active source (it is what shadows the tax_profile and what resolve.rs would refuse to compute
from); reporting Neither/TaxProfile here would be a false display, hiding the row that is actually
blocking the toggle.