Files
reims-vgpu/scripts
Anees Iqbal 839b8ae9ca ✨ The gate was blind to the two classes that lose guest work most quietly
`scripts/visual-gate` is this repo's stated sign-off harness — three probes plus
a budget over the silent-loss counters — and it watched six classes. Two that
belong were not among them, and both read zero on every boot in the tree, which
is exactly the state in which a gate is worth adding rather than argued about.

Component: `scripts/visual-gate`. Harness only; no device code touched.

- **`render_unimplemented`** — the class a green run hides best. AGENTS.md
  already says it in so many words: an `Ok` from `render::decode` is not a
  decode, because `Kind::OtherAccepted` is the catch-all for "no arm claimed
  this". The draw completes, the guest is stamped, and the only trace is this
  one line. It is deduped per opcode, so the count is a count of *kinds* lost.
- **`device_info truncated`** — the device-info reply could not carry every
  capability key the guest's own key-table length admits. The guest asks once
  per boot, frees the buffer and answers every later reader from what it
  parsed, so a firing is a capability gone for that boot's life.

Both enter `baseline.tsv` at **0** with their measurement written beside them,
which is the file's own rule: zero is the default and needs no argument, a
non-zero budget is an admission about the device. `render_unimplemented` is zero
across all seventeen archived boots, driven and idle; `device_info truncated` is
zero by construction on the guests measured here — a whole page of pair slots
against a table of a few dozen keys.

The parser is proved to see them rather than assumed to. `self-test.sh` gains
three cases: one per class firing on text quoted from the emitter, and one
asserting an `OFF `-prefixed lookalike is *not* counted — the channel inversion
AGENTS.md warns about when ranking `reason=` slugs. Its class-count guard goes
6 → 8, which is what caught the headers this commit also fixes; that guard
exists so a class can never quietly stop being parsed.

Verified: `self-test.sh` PASS, 17/17 cases. `counter-budget.sh` against the
archived driven boot at this branch's head
(`journal/2026-08-06-driven-boot-at-head.log`) prints all eight classes at 0 and
exits 0. Synthetic firings of both new classes take it to exit 1. A full
`visual-gate.sh --quick` on a live x86/PCI boot of this head passed earlier this
session — 3/3 probes green, counters all zero over 1.27 MB of fail log — but
that run predates these two classes; what covers them is the archived-log check
above, not that run.

Not verified: no live gate run since the classes were added, and neither class
has ever been observed firing on real hardware — that is the point of the zero,
not a gap in it.
2026-08-06 15:10:55 +03:00
..