cernlydocs

Facts and evidence

TL;DR A fact is one observation about one commit: a kind, a stable key, attributes, the plugin that found it, and the file and line that prove it. No evidence, no fact.

{
  "kind": "env_var",
  "key": "env_var:STRIPE_API_KEY",
  "plugin": "env",
  "attrs": { "name": "STRIPE_API_KEY", "origins": ["code", "compose"] },
  "evidence": [
    { "path": "api/payments.go", "line": 18 },
    { "path": "docker-compose.yml", "line": 31, "unit": "api" }
  ]
}

Rules

Normalisation

Plugins translate their stack's syntax into shared concepts, so rules only read those:

In the code

fact (the types and encoding), repo (the read-only view of a commit), pipeline (scan and map). Kinds: fact kinds.