SCAN_OBJECTIVES
#Every ranking objective a scan accepts, as DATA — the single source the type, the runtime guard and the error message are all derived from.
RV11 — these were three copies: a hand-written union here, a hand-written array in optimizer.ts, and a third hand-written list inside the error string. The string copy drifted and kept teaching pop|ev after both were renamed, because plain prose is invisible to a rename of the quoted literals. One tuple, and .join(', ') for the message, is what makes that impossible rather than merely fixed.
'return' became 'returnOnRisk' in the same pass: it ranked by returnOnRisk and the candidate output already called that number returnOnRisk, so one quantity carried two public names.
import { SCAN_OBJECTIVES } from '@insiderfinance/totalfinance/strategy/scanner';
export declare const SCAN_OBJECTIVES: readonly ['probabilityOfProfit', 'expectedValue', 'returnOnRisk', 'expectedValuePerRisk'];Stability: stable-by-law (pre-1.0; not a 1.0 stability guarantee). Units come from declared names; “unitless by name” means the name alone does not establish a unit. See conventions and errors and warnings.