Skip to content

repoBaseRate

repoBaseRate(rules, opts?): number

Defined in: src/learnings-lifecycle.ts:92

Compute the repo’s base helpful rate across ALL rules (active + promoted + retired). Using all rules (not just active) prevents a survivorship cascade where retiring bad rules inflates the base rate, then that higher rate retires the next-worst, etc.

Only rules with injectedCount > 0 contribute to the denominator. If total injected < minN, falls back to defaultRate (not enough data).

Learning[]

number

number

number