shouldRetire
shouldRetire(
rule,baseRate,opts?):boolean
Defined in: src/learnings-lifecycle.ts:122
A rule should be auto-retired when:
- It has been flagged ineffective at least once (ineffectiveCount > 0).
- There is enough injection data (injectedCount >= nMin).
- Its Wilson lower bound on helpfulness is below the repo base rate.
All three gates must hold simultaneously.
Parameters
Section titled “Parameters”baseRate
Section titled “baseRate”number
number
number
Returns
Section titled “Returns”boolean