Documentation
¶
Overview ¶
Package staleness detects rules/skills that are no longer actively used or that contradict observed user behavior.
Index ¶
- func FormatReport(stale []StaleRule) string
- func RecommendAction(sr StaleRule) string
- type Contradiction
- type 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
- type StaleRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatReport ¶
FormatReport generates a human-readable staleness report.
func RecommendAction ¶
RecommendAction suggests what to do with a stale rule.
Types ¶
type Contradiction ¶
Contradiction records when a user consistently does the opposite of what a rule says.
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector tracks which rules have influenced agent behavior and identifies stale ones.
func (*Detector) CheckStaleness ¶
CheckStaleness returns rules that haven't been used within the threshold duration.
func (*Detector) RecordContradiction ¶
RecordContradiction records when user behavior contradicts what a rule prescribes.
func (*Detector) RecordRulePath ¶
RecordRulePath associates a filesystem path with a rule ID.
Click to show internal directories.
Click to hide internal directories.