Commit graph

3 commits

Author SHA1 Message Date
6719e21b51 Use ctx.States() for headline and diagnoses in HTML report
Drive listed-count and action-required cards from rule states when
available; fall back to raw observation data when states are absent.
2026-05-19 22:12:26 +08:00
c437339bda Separate observation from evaluation in blacklist sources
Each source's Query() method previously set r.Listed and r.Severity,
embedding verdict logic inside the prober. Evaluation now lives in a
dedicated Evaluate(SourceResult) (bool, string) method per source,
keeping Query() as pure observation.

A package-level EvaluateResult() helper looks up the source by ID and
delegates to its Evaluate method; rules.go, report.go, types.go, and
provider.go all call this instead of reading pre-set r.Listed/r.Severity
values. An unknownSource sentinel handles results whose source is no
longer registered.
2026-05-15 18:04:17 +08:00
66cf1fc9aa Initial commit 2026-04-26 19:44:05 +07:00