Findings format
Findings are machine-readable: findings.json, written by hand (or by an agent) after looking at a result. They're validated by lib/hww/findings.py check, applied by report.py (and report.py --refresh <result dir> after an edit), and shown on the site.
Where they live:
results/<vendor>/<model>/<version>/findings.json: one published release;results/<vendor>/findings.json: the vendor as a whole (build environment, release channel, documentation), with"version": null.
A longer analysis can go in a findings.md next to the JSON; findings reference it.
json
{
"schema": "cverif-hww/findings/1",
"target": "trezor/t1b1",
"version": "1.14.3",
"findings": [
{
"id": "usb-volatile-reload",
"kind": "mismatch-triage",
"severity": "info",
"verdict": "cverif-false-alarm",
"confidence": "medium",
"title": "One line",
"summary": "Markdown: what was found and why the verdict.",
"functions": ["dwc_ep_stall_set", "dwc_poll"],
"detail_match": "binary omits the source's 4-byte read of the volatile object",
"cverif_issue": 3,
"references": ["findings.md#usb", "https://..."]
}
]
}| field | required | meaning |
|---|---|---|
id | yes | unique within the file; used in URLs and in functions.tsv cross-references |
kind | yes | mismatch-triage, reproducibility, integrity, supply-chain, documentation, coverage, scope, security |
severity | yes | info, low, medium, high, critical: how much it matters to a user of the device. A cverif false alarm is info |
title, summary | yes | a line, and Markdown |
confidence | no | low, medium, high |
verdict | for mismatch-triage | real-difference (the published code doesn't do what the source says), unspecified-behaviour (differs only where C leaves it open), cverif-false-alarm, untriaged |
functions, detail_match | one of them for mismatch-triage | the mismatches it covers: function names, or a regular expression (Python syntax) searched in cverif's detail text. The first finding that applies to a mismatch wins |
cverif_issue | no | the number of the issue in cverif-issues.md |
references | no | URLs or paths relative to the result directory |
Every MISMATCH cverif reports is either covered by a mismatch-triage finding or counted as untriaged; findings.py check lists results with untriaged mismatches, and the site shows them as such.