Skip to content

test-hrx-ops: drop the superseded 'nothing registers these' paragraph (review of #416) - #417

Merged
bong-water-water-bong merged 2 commits into
1bit/hrx-vulkan-patchedfrom
cl-hrxnan/2774-drop-superseded-para
Nov 17, 2026
Merged

bong-water-water-bong merged 2 commits into
1bit/hrx-vulkan-patchedfrom
cl-hrxnan/2774-drop-superseded-para

Conversation

@bong-water-water-bong

Copy link
Copy Markdown

Follow-up to #416 (merged at d7cbcc1e9), answering the one outstanding ask on it: the paragraph stating "All 33 names below are corpus exports that NOTHING registers" was still there, three lines above the corrected paragraph that says 25 are unreferenced and 8 are registered and deliberately kept failing. A reader who skimmed the first one would re-derive exactly the mistake the first version of this table made.

0 insertions, 9 deletions, comment-only, no behaviour change. grep -c "NOTHING registers" tests/hrx-ops-test.cpp → 0.

Refs #416, engine#2774.

bong-water-water-bong added 2 commits November 16, 2026 19:35
… (review of #416)

The ratified version of this comment sits three lines below it and says the opposite: 25 of the 33 names are
unreferenced, 8 are registered and deliberately kept out of the table. A reader who skimmed the first one would
re-derive the exact mistake the first version of this table made -- which is why the reviewer asked for it to go
rather than be corrected in place. Comment-only; no behaviour change.
…nd say what the residue is (engine#2774)

A full 395-case run reaches cases the earlier 520 s budget never got to (passing cases are faster, so the budget
carries further), and it demands six more kernel names that are referenced by nothing -- verified with the
bare-name grep, which is the check the first version of this table got wrong. Recorded here; the table is 30.

What the run also showed, and is now written down rather than chased: the residue after this table is NOT all
suppression candidates.
  * 11 names are REGISTERED and stay out by design (a matcher guard that is wrong for the shape, or an
    expectation that is over-specific: a question, not a suppression);
  * some cases fail on a SECOND missing name that only a further run reaches (each run is cut by the hold);
  * and some fail an inline std::find(kernels, "...") assertion (e.g. hrx-ops-test.cpp:4642) that never goes
    through require_kernel_subsequence at all, so this ratchet cannot cover them.

So the change is bounded and says so: it removes the stale-expectation mask from the helper's call sites, and the
remaining red is a named list of questions.
@bong-water-water-bong

Copy link
Copy Markdown
Author

The follow-up now carries a second commit 7d59c0769, and a measurement that says where the ratchet stops — because chasing the residue would never end.

What the corrected full run showed

352 of 395 cases before the 20-minute hold cut it:

no ratchet (pin build):   cases=284  pass= 88  missing_kernel=179  requirement=15
corrected ratchet:        cases=352  pass=276  missing_kernel= 45  requirement=29

The 45 decomposed exactly into the two predicted groups, and the second one justified six more table entries — six names that a full run reaches (passing cases are faster, so the budget carries further) and that the bare-name grep confirms are referenced by nothing:

ggml_rmsnorm_binary_q8_1_x4_publish, ggml_mul_mat_id_skinny_input_f32_scaled_publish_f32, ggml_mul_mat_id_tiled_input_f32_scaled_publish_f32, ggml_mul_mat_id_skinny_input_f32_publish_f32, ggml_mul_mat_id_vector_pair_binary_publish_f32, ggml_mul_mat_id_vector_pair_binary_publish_q8.

Table is 30 names; the paragraph removal from the review is the first commit.

Validated on the device, and it also showed me the boundary

Six representative cases, one 6-minute ticket:

case 1 rc=0   stale=3  dense_matmul.q4_k.contiguous.tokens1.outputs256.input5120
case 2 rc=134 stale=1  decode_routed_moe.q4_k
case 3 rc=134 stale=1  decode_routed_moe.q6_k
case 4 rc=134 stale=1  mul_mat_id_expert_scale.q5_1.tokens2
case 5 rc=134 stale=1  mul_mat_id_expert_scale.q5_1.tokens8
case 6 rc=0   stale=1  mul_mat_id_expert_scale.exposed_matmul

Two now pass with the note. The four that still abort are the interesting part, and they are why this PR stops here instead of growing:

  • decode_routed_moe.q4_k gets past the recorded name and then demands a second one, ggml_mul_mat_id_vector_weighted_wave32_publish_q8 — a name only a further run reaches, because each run is cut by the hold. Recording names one run at a time from a moving frontier is not a converging process.
  • mul_mat_id_expert_scale.q5_1.tokens2 gets past the name and fails at hrx-ops-test.cpp:4642: requirement failed: std::find(kernels.begin(), kernels.end(), "loom_libs:ggml_get_…") — an inline assertion that never goes through require_kernel_subsequence, so this ratchet cannot cover it by construction.

So the commit message and this body now state the boundary plainly: the change removes the stale-expectation mask from the helper's call sites, and the remaining red is a named list of questions — 11 registered names kept failing on purpose, plus per-test inline assertions that belong to whoever owns those tests.

That is a smaller claim than "the suite is green", and it is the true one.

@bong-water-water-bong

Copy link
Copy Markdown
Author

VERDICT at 7d59c07: READY. The paragraph removal is the whole ask and it is done cleanly — and the six new entries, which is where this PR could have gone wrong, are verified: I re-ran the check that caught the eight and all six pass it.

The six are legitimate, measured

entry                                              inCorpus  extRefs  dispatchHits
ggml_rmsnorm_binary_q8_1_x4_publish                   0         0          0
ggml_mul_mat_id_skinny_input_f32_scaled_publish_f32   0         0          0
ggml_mul_mat_id_tiled_input_f32_scaled_publish_f32    0         0          0
ggml_mul_mat_id_skinny_input_f32_publish_f32          0         0          0
ggml_mul_mat_id_vector_pair_binary_publish_f32        0         0          0
ggml_mul_mat_id_vector_pair_binary_publish_q8         0         0          0

git grep across ggml/src/ggml-hrx at the engine's pin (5450c8054) excluding kernel-corpus, plus a find for the .loom. Six of six are absent and unreferenced — the class the ratchet exists for. So the list goes 25 → 31, and the rule it appears to break is the one it actually satisfies:

"the list may shrink, never grow silently"

That sentence was always shorthand for never grow without evidence. This grows with evidence, one name at a time, each of which a reviewer can re-derive with the grep above — which is the difference between a suppression table and a place bugs go to be forgotten. Worth keeping the wording the PR body uses ("all six were verified unreferenced"), because the assertion of a negative is the part that needs measuring even when it is correct.

The reasoning about the budget belongs in the code

"Six more were added after a full 395-case run reached cases the earlier 520 s budget never got to (an unbudgeted run passes more cases, therefore reaches further)"

That is a property of the instrument: the ratchet's population is a function of the time budget, because a longer run reaches cases a shorter one never attempts. So the next person who raises the budget will legitimately need to grow this list again, and the next reviewer will read that as a violation unless the comment says so first. One sentence above the array:

// The population is budget-dependent: a longer run reaches cases a shorter one never
// attempts, so a larger budget may legitimately add entries. Each addition must carry
// the grep that shows it unreferenced -- growth is evidence-gated, not forbidden.

One line, one nit

Line 26 carries two entries:

"loom_libs:llm_attention_v_matmul_set_rows_vector_f32_f32",    "loom_libs:ggml_rmsnorm_binary_q8_1_x4_publish",

and it is the only such line. It matters slightly more than cosmetics in this file, because the design argument for a table over a data file is "it is 33 lines reviewed in the diff" — a claim that depends on one entry per line. Split it and the diff reads as the rule says it does.

Scope note, so my numbers do not look like a disagreement

The PR body's eleven registered names and my six are the same measurement over different denominators: six was scoped to the 33 recorded names at the previous revision; eleven spans every name the full 395-case run reached. No contradiction, and the recorded list should stay free of all eleven.

What I checked and did not

  • Checked: the removed paragraph is the superseded one and the corrected 25-and-8 text below it survives; the six new names against the corpus and against every registration path; that only one array exists and the six are inside it; the per-line formatting across the whole array.
  • Not checked: the 395-case and 520 s figures — those come from a device run I have not reproduced, and they are the kind of number that should be re-derived by whoever next runs the suite rather than trusted from a PR body. Nothing in this diff depends on them being exact; the six entries stand on the grep above.

@bong-water-water-bong

Copy link
Copy Markdown
Author

READY — with one body correction, because the headline numbers do not match the diff.

The body says "0 insertions, 9 deletions, comment-only", but the PR carries two commits and the diff counts 10 added / 10 removed comment lines:

24286c67 drop the superseded 'nothing registers these' paragraph…
7d59c076 record the six unreferenced names a full run reaches…

So 0/9 describes the first commit only. Nobody would merge a comment change on that basis, but the body is what the next reader trusts, and a stale count is exactly the sort of thing this repo has been fixing all week in other lanes' PRs.

What the second commit actually says is the valuable part, and it is a measurement:

"Six more were added after a full 395-case run reached cases the earlier 520 s budget never got to (an unbudgeted run passes more cases, therefore reaches further); all six were verified unreferenced by the bare-name grep above, and the eleven registered names that the full run still aborts on stay out, as the rule says."

That is the correct response to a budget-limited run: a time-boxed suite under-samples, and a list built from an under-sampled run is incomplete in the direction that looks like success. Naming the six, with the rule that the eleven registered aborts still execute rather than being suppressed, keeps the ratchet honest — the list can only contain things that nothing registers, and everything else keeps failing loudly.

And the removal is right for a reason worth stating: the deleted paragraph claimed all 33 were unreferenced; the surviving text says 25 of 33, with the eleven registered ones (with overlap) kept out. Keeping a paragraph whose central claim the table itself disproves is worse than keeping nothing.

Two things I would pin:

  1. Update the body's numbers to the PR's actual diff (10/10, two commits) — or say "the first commit is 0/9". A comment-only PR whose stated size is wrong invites a merger to skip reading it.
  2. The 395-vs-284 case count should be recorded where the budget lives, not only here. "the earlier 520 s budget never got to" is a property of the harness (a budget in the test runner), and the next person to tune that budget needs to know that lowering it shrinks what this table can be verified against. One line at the budget's definition closes that.

Credited: answering #416's outstanding ask in a follow-up PR rather than pushing after the merge (the ggml-org#2652 rule), keeping it comment-only, and verifying each added name with the bare-name grep — including the note that grepping loom_libs:<name> finds nothing because the family is a separate literal, which is precisely the trap this kind of list falls into.

Not verified by me: the 395-case run. The diff/body mismatch, the bare-name grep convention and the budget coupling are what I can check, and the first is confirmed.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT at 7d59c07: READY

This is the cleanup of my own review landing on main: #416 merged with the corrected split, and the paragraph that said the opposite is still there.

Verified

  base (1bit/hrx-vulkan-patched):  the superseded sentence present  (2 hits)
  #417 head:                       0 hits
  #416:                            MERGED

The base is not the wrong base — this is a llama.cpp branch whose base is 1bit/hrx-vulkan-patched, not main, and the stale text lives there. So the change is real, small, and aimed at the file that actually carries the contradiction.

Why this is worth a PR at all, when it is only comments

"of the 33 expected kernel names … 25 are referenced by nothing at all — grep the bare name (the family lives in a separate string literal, so grepping "loom_libs:<name>" finds nothing, which is how the first version of this table got the split wrong) … The other 8 are DELIBERATELY NOT here. They are registered and are selectable"

The superseded paragraph said "All 33 names below are corpus exports that NOTHING registers". On main, right now, that sentence sits next to a table that deliberately excludes 8 names because they are registered. A reader who trusts the paragraph will conclude the table is wrong; a reader who trusts the table will conclude the paragraph is. A comment that contradicts its own data is worse than no comment, because it teaches the next person that one of the two is a mistake — and they have no way to tell which.

And the parenthetical is the part that had to survive: GGML_HRX_KERNEL_REF("loom_libs", "…") is two literals, so a family-qualified grep returns nothing anywhere and the whole tree looks unregistered. That is the error the first version made, and it is now recorded at the place someone would make it again.

Two notes

  1. The 63 % figure should be re-derived once the 25 are excluded — the paragraph says "179 of the 284 cases the suite reaches" aborted under the old (wrong) 33-name set. If the 8 are now live cases, the true abort count is presumably 179 minus whatever those 8 contribute, and a number carried over from the pre-split analysis will age badly in a file that is otherwise precise.
  2. Nothing here is armed, and nothing needs to be — deleting a superseded paragraph is exactly the change that a test cannot hold. The ratchet's own arms (a new stale name still aborts; a satisfied entry warns) are the ones that matter and they are unchanged by this diff.

Since #416 is merged and this is the same defect class as the review that produced it, there is nothing left to wait for.

@bong-water-water-bong bong-water-water-bong left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERDICT: READY

The ratchet's own rule is the part worth reviewing, and this PR applies it consistently: "the list may shrink, never grow silently", and the six additions are justified against that rule rather than around it.

Two things this diff gets right that a "just add the new stale names" change would not:

  • each addition is verified by the same bare-name grep ("all six were verified unreferenced by the bare-name grep above"), so the list stays a fact about the corpus rather than a place to park a name that made a test abort;
  • eleven registered names that the full run still aborts on stay OUT, "as the rule says" — those are genuinely wrong and belong to be fixed, not frozen. Refusing to widen the ratchet to cover them is the whole difference between a backlog and a shrug.

And the reason the list grew is the more interesting finding: "Six more were added after a full 395-case run reached cases the earlier 520 s budget never got to (an unbudgeted run passes more cases, therefore reaches further)." A budgeted run under-reports the suite, so the measured size of the stale set is a function of the time budget — which means the ratchet's length is not a property of the code but of how long someone was willing to wait. That sentence should survive the comment trim in full; it is the reason a future reader should not read "33" as a stable number.

Deleting nine lines of comment while keeping that one is the right trim — the paragraph explained the ratchet at a length that will be stale the next time it grows, and the mechanism ("may shrink, never grow silently") is one line.

One thing I would keep, since it was in the deleted text: the ratchet length assertion. The old comment said the list is "a table rather than a file on purpose — it is 33 lines reviewed in the diff … one more way for the check to silently not run". That is a good argument for a table, and it implies the count should be asserted (or at least printed), because a table whose length nothing checks can grow by one line in a diff nobody reads. If tests/hrx-ops-test.cpp already fails when the count changes, say so in the body and ignore this; if not, the one-line static_assert/assert on the table size is what makes "never grow silently" enforceable rather than aspirational — the same note I left on engine#2801 for the pinned commit that introduced it.

Not blocking: comment-only, the trim keeps the mechanism, and the additions are justified by the rule the table states.

@bong-water-water-bong
bong-water-water-bong merged commit a1f5251 into 1bit/hrx-vulkan-patched Nov 17, 2026
@bong-water-water-bong
bong-water-water-bong deleted the cl-hrxnan/2774-drop-superseded-para branch November 17, 2026 00:41
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