Expand description
2026-09-26: The PR intent taxonomy (.github/pr-taxonomy.json): a tree of
what a change is for (performance/decode, correctness/kv-cache), and
the benchmarks each path implies. crate::gate::taxon is the separate
hardware taxonomy derived from kernels/ paths.
Owner: bench gate (intent). Invariants:
benches_foris the union of_benchesalong the matched prefix, so descending further never removes a benchmark.loadreturns only a tree that passedvalidate: at least two roots, kebab-case keys, no single-child node, and every_benchesid incoverage::REQUIRED.
Structs§
- Node
- 2026-09-26: One node of the parsed tree. Children keep the JSON file’s key
order (the workspace enables serde_json’s
preserve_order).
Functions§
- benches_
for - 2026-09-26: Every benchmark a path implies: the union of
_benchesalong it, so an ancestor’s benchmarks apply to every descendant. The walk stops at the first unknown segment and returns what matched so far. - benches_
for_ matched - 2026-09-26:
benches_for, plus how many leading segments matched, so a caller can report a stale segment (performance/decodesimplies the same set asperformance). - is_
complete - 2026-09-26: Whether
pathmatches and ends at a leaf. - load
- 2026-09-26: Load and validate
.github/pr-taxonomy.jsonfrom a repo root. - options_
at - 2026-09-26: The children of the node at
path, when there are at least two.Nonefor a leaf, a lone child (whichresolvefollows) or a path that does not match. - resolve
- 2026-09-26:
pathextended through every single-child step below it.validaterefuses single-child nodes, so on a loaded tree this returnspathunchanged.