Skip to content

Tools: an evidence index of what is qualified, on which commit, at which grade, and whether it is stale - #2621

Merged
ashhart merged 2 commits into
mainfrom
lead/evidence-index
Nov 8, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/evidence-index

Conversation

@ashhart

@ashhart ashhart commented Nov 8, 2026

Copy link
Copy Markdown
Owner

tools/evidence_index.py (standard library only) answers "for family F on backend B, what is qualified, on which commit, at which grade, and is that evidence stale?" from what the repository already records. It walks docs/receipts/**, docs/optimization-ledger.md, the conformance profiles (tools/conformance_profiles/*.json), the LFM3 qualification ledger, docs/known-issues.md, and a tensorfold-native capabilities --json file when one is passed, and writes one JSON index: per family x backend x capability, each piece of evidence (file, the commit when the source records one, date, what was measured), its grade, and whether it is stale or failed.

  • Grades: host test, kernel contract, served exactness, served speed. A grade is taken only from what the source states; when it states none, the grade is unknown, never inferred.
  • Stale: the recorded commit is older than the last change to the files it covers (git log over the family's source folder, plus the CUDA kernels for CUDA evidence).
  • Failed: an unambiguous failed result, or an open known issue.

docs/evidence-index.md says how to run it and read the grades. It extends the existing ledgers and conformance kit rather than adding another qualification record.

On today's main: 1,063 entries; by grade, host test 7, kernel contract 2, served exactness 12, served speed 12, unknown 1,030 (the optimization ledger's status cells don't state a grade, and they dominate); 11 stale and 17 failed. Most of the value now is that the unknowns are visible.

Checks

  • tools/tests/test_evidence_index.py: 18 tests (each reader against a fixture tree, the grade extractors, staleness against a real temporary git history, the grouped index), passing on macOS and Windows.
  • python3 tools/evidence_index.py --root . runs on main and writes the index above; no engine code changes.

Part of the engineering audit's qualification work (an index over existing evidence, not a new conformance driver).

tools/evidence_index.py walks the checkout's qualification-evidence sources
(the receipts, the optimization ledger, the conformance profiles, the LFM3
evidence ledger, the known-issue list, and a capabilities file when one is
passed) and writes one JSON index. Each entry is a family, backend and
capability with its evidence (the file, the commit when the source records
one, the date, what was measured), its grade (host test, kernel contract,
served exactness, served speed) and whether it is stale or failed. A grade
the source does not state stays unknown, and staleness is computed with git
log over the files a measurement covers.

docs/evidence-index.md says how to run it and how to read the grades and the
stale, failed and unknown fields. tools/tests/test_evidence_index.py covers
the extractors, the source readers, staleness and the grouped index against
fixture trees.
@ashhart
ashhart force-pushed the lead/evidence-index branch from ae8ffa2 to 8c38e42 Compare November 8, 2026 23:52
@ashhart
ashhart merged commit 4a8168a into main Nov 8, 2026
14 of 20 checks passed
@ashhart
ashhart deleted the lead/evidence-index branch November 10, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant