Expand description
Evidence model and collectors.
Evidence is the only input the rules engine consumes. Cases and log
lines are normalized into Evidence items here; diagnose() never
reads a Case or a raw log line directly. That separation is what
keeps the rules engine a pure function over evidence.
Two collection paths exist:
collect_evidencetakes aCaseplus the contents of its log file and produces the union, with cross-source dedup (see [is_redundant_with] below).parse_logtakes only a log string and is used by thediagnose-logsubcommand for ad-hoc analysis when no JSON case is available. The log markers it recognizes are documented indocs/architecture.md.
Enums§
- Evidence
- A single normalized signal extracted from a request/response, env context, or a log line.
Functions§
- collect_
evidence - Collect evidence from a
Caseand the contents of its log file. - parse_
log - Parse a log buffer into evidence items by scanning for known markers.