waf: each heuristic holds its own settings and parts (closes #441) #462

Open
clawbot wants to merge 1 commits from issue-441-heuristic-structs into next
pull from: issue-441-heuristic-structs
1 Commits
Author SHA1 Message Date
sneak 622109cea6 waf: each heuristic holds its own settings and parts (closes #441)
check / check (push) Waiting to run
Every heuristic is a struct built once in newHandler with the settings
and collaborators it reads; no check reads the handler. The six lists
are handler fields built there. Code several heuristics share takes what
it needs as arguments or lives on a struct they hold: banMaker for bans
and their alerts, reputationHitNoter for reputation hits,
biasedThresholds for limit percentages. The handler keeps blocklists,
rateLimits, trapPaths, ruleFiles and coreRuleSet as fields too, since
refusedWhateverTheAnswer and findBesideLookup use them.

Model: opus-5-5
2026-11-19 18:02:23 +00:00