Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + func FormatReport(stale []StaleRule) string + func RecommendAction(sr StaleRule) string + type Contradiction struct + RuleID string + Timestamp time.Time + UserBehavior string + type Detector struct + func NewDetector() *Detector + func (d *Detector) AllUsages() map[string]*RuleUsage + func (d *Detector) CheckStaleness(threshold time.Duration) []StaleRule + func (d *Detector) RecordContradiction(ruleID string, userBehavior string) + func (d *Detector) RecordRulePath(ruleID, path string) + func (d *Detector) RecordRuleUsed(ruleID string, timestamp time.Time) + type RuleUsage struct + LastUsed time.Time + Path string + RuleID string + UseCount int + type StaleRule struct + ContradictionCount int + Contradictions []Contradiction + DaysSinceUsed int + ID string + LastUsed time.Time + Path string