- run() second arg is runner metadata from run-with-flags.js, not the
environment; read controls from options.env || process.env so
ECC_CONTEXT_GATE_PCT / ECC_CONTEXT_GATE_EMERGENCY_PCT work in the
registered hook path (they were silently ignored before). Regression
test exercises the metadata-second-arg shape against process.env.
- resolvePct: require a whole decimal integer before conversion;
parseInt accepted '90abc' (-> 90) and '0x1' (-> 0, silently disabling
the gate) instead of falling back.
- Test summary now emits the 'Passed: N' / 'Failed: N' tokens that
tests/run-all.js parses; the lowercase format contributed zero to
repo totals.