Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quality gates

Every claim is a gate that can go red, and a gate is proven able to fail before its pass is believed. A check that has never failed is not evidence. A check that can silently examine zero items is not a check.

Test-first, against first-party references

  • Anchors come first. Golden outputs come from the model’s own reference stack, never a transliteration. They are vendored with self-describing pins and gated by a defect matrix: every planted defect must turn the gate red where it should.
  • Tolerances carry provenance. They are measured from fp32 floors on at least two weight draws before the kernel exists. A tolerance picked to make a kernel pass is not a tolerance.
  • Red proofs are recorded. Every new gate ships with a run that shows it failing.

What runs

gatechecks
duplication (jscpd)zero clones, on every build
CodeScene10/10 across the whole tree
line caps1200 lines hard, 800 soft
clippy, warningsdenied as errors workspace-wide
paritygreedy token ids identical to the pinned reference
perplexity gatespaired per-token NLL inside a pre-registered equivalence band
bit-identityevery Rust kernel byte-identical to its HIP C++ predecessor
kernel censusevery launcher has an oracle and a production caller
invariant registryevery documented invariant has a test, and the reverse
docs registryevery doc carries status, scope and verdict

Measurement discipline

  • The GPU is sole-tenant. Every device run takes a lock and samples a contention witness. Any arm with another tenant present is discarded.
  • Quality is ranked on paired dNLL, never on a perplexity column. An interval that straddles zero is inconclusive, not a pass.
  • Run the A-vs-A control. Some streaming configurations are not bit-reproducible, so the noise floor is measured per arm. A difference below it is not a measurement.
  • An unwitnessed number is unciteable.