Skip to content

coverage: the Loom coverage map becomes a check, and it reproduces 5 of 9 (engine#3156) - #3180

Merged
bong-water-water-bong merged 6 commits into
mainfrom
cl-npurt/3156-coverage-check
Nov 21, 2026
Merged

bong-water-water-bong merged 6 commits into
mainfrom
cl-npurt/3156-coverage-check

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Refs #3156 — the coverage map becomes a check, and it re-derives the issue's table rather than copying it.

The switch moves one model at a time, so the coverage map is the plan, and until now it was a hand-written table. This makes it tools/ci/loom_coverage_check.py with the two traps the table already names built in as arms:

  • a card matching on family + size is not a card for the model — ggml-org-Qwen2.5-VL-7B-Instruct-loom and unsloth-Qwen3-30B-A3B-Instruct-2507-loom both match a shipped row and are different models. A match needs every distinctive token of the row, with nothing beyond the vendor/loom vocabulary added by the card;
  • a card on another quant is not coverage — the row's quantisation must be among those the card's model.json names, otherwise the verdict is REQUANT, which is a different answer from covered (the gate has to A/B the same GGUF where the card allows).

Live, against the card trees on this box

COVERED   Qwen3-0.6B-Q4_K_M.gguf                      unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf      bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf    ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf                   ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
UNCOVERED GLM-4.7-Flash · MiniCPM4-8B · MiniCPM5-1B · zaya1-8b
COVERED   LFM3-1.7B-Q4_K_M.gguf                       bartowski-LFM3-1.7B-loom (Q4_K_M)

That is the issue's 5 of 9, re-derived — including that the 35B row is COVERED on Q8_0 rather than REQUANT, which is the one caveat the hand-written table carried.

Exits, and why CI runs only half of it

0 every GPU row covered on its own quant · 1 a row is not (named, one line each) · 2 cannot tell — no card tree, which is CI's normal state because the cards are ~GB downloads. So CI runs the hermetic self-test (loom_coverage_check_self) and a lane runs the live check on a box that has the cards — the same split loom_pin_check uses, and the reason 2 is a documented exit rather than a pass.

The self-test arms both traps plus the cannot-tell: same-size different model, VL sibling, card on the wrong quant, no cards, and npu rows being none of this map's business. 6 ok, 0 failed.

Not claimed: that the four uncovered rows should be covered — that is the issue's second half (candidate programs to write), and this only keeps the table honest while it is worked. The 51-vs-59 card-count question I raised on the issue is also untouched here: the tool reports what it finds, it does not adjudicate the census's counting rule.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

ready for review at 268ca25

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR Reviewer Guide 🔍

(Review updated until commit 27a527e)

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3156 - Partially compliant

Compliant requirements:

  • The tool tools/ci/loom_coverage_check.py is created and implements the required functionality
  • It correctly identifies when a card matches on family and size but is not for the same model (trap)
  • It checks that the quantization of the model matches the quantization named in the card
  • It handles cases where no card tree is available by returning exit code 2 (cannot tell)
  • It is integrated into CI as an advisory check with --advisory flag
  • It produces the required report format showing covered, uncovered, and re-quantization cases

Non-compliant requirements:

  • None

Requires further human verification:

  • None
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 PR contains tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incomplete Vendor Token Handling

The VENDOR set in loom_coverage_check.py may not be comprehensive enough to cover all vendor prefixes that appear in card directory names. If a new vendor prefix is added to card directory names that is not in this set, it could lead to incorrect model matching or false positives in the coverage check. This is particularly concerning for the Loom coverage check which needs to correctly identify model matches.

VENDOR = {"ggml", "org", "bartowski", "unsloth", "lmstudio", "lmstudio-community", "model", "ai", "the",
          "someone", "acme", "liquidai", "qwen", "meta-llama", "google", "microsoft"}
Potential False Positive in Model Matching

The same_model function may produce false positives when matching card directories to model names. Specifically, if a card directory name contains tokens that are not in the NON_DISTINCTIVE or VENDOR sets, and these tokens are also present in the model name, the function might incorrectly consider them as matching. This could lead to a card being considered as covering a model when it actually does not.

def same_model(row_name, card_dir, card_id):
    """True when a card is for THIS model: every row token appears, and the card adds nothing but `loom`.

    This is the trap the map has to survive: `ggml-org-Qwen2.5-VL-7B-Instruct-loom` and
    `unsloth-Qwen3-30B-A3B-Instruct-2507-loom` match their rows on family and size and are different
    models. A size-class match alone is a candidate, never a cover.
    """
    row = set(_tokens(row_name)) - NON_DISTINCTIVE
    card = set(_tokens(card_dir)) - NON_DISTINCTIVE
    if card_id:
        card |= set(_tokens(card_id)) - NON_DISTINCTIVE
    # every token of the row must be present, and nothing beyond the vendor/`loom` vocabulary may be added:
    # `Qwen2.5-VL-7B-Instruct` and `Qwen3-30B-A3B-Instruct-2507` both add a token and are different models.
    return row <= card and (card - row) <= (NON_DISTINCTIVE | VENDOR)
✅ Resolved findings

tools/ci/loom_coverage_check.py:69-71

Incomplete Vendor Token Handling

The VENDOR set in loom_coverage_check.py may not be comprehensive enough to cover all vendor prefixes that appear in card directory names. If a new vendor prefix is added to card directory names that is not in this set, it could lead to incorrect model matching or false positives in the coverage check.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

CHANGES for one thing in the self-test — the arms cannot tell the two findings apart, which is the one distinction this tool exists to make.

self_test()'s helper takes the expected verdict and never uses it:

def arm(name, want, rows, cards, expect_rc):     # :197
    ...
    ok = rc == expect_rc                          # :208  ← `want` is not compared to anything
    print(f"  {'ok  ' if ok else 'FAIL'} {name} (rc {rc}, want {expect_rc})")

Every arm is therefore asserting an exit code only, and check() returns 0 for COVERED and 1 for both UNCOVERED and REQUANT (:174-176). So:

  • "card on another quant is not covered" (REQUANT) and "a same-size different model does not cover" (UNCOVERED) are the same assertion. Delete the REQUANT branch (classify → UNCOVERED whenever the quant is not named) and that arm still passes — which is exactly the case the body argues matters: "REQUANT, which is a different answer from covered".
  • "covered on our quant" and "npu rows are ignored" are both expect_rc 0, so a check() that returned 0 for any input passes them both. The arm whose name says non-GPU rows are skipped is green for a tool that skips everything.

That is the "a gate that cannot distinguish must say so" shape, in the gate. The fix is small: make check() return (rc, lines) (or capture stdout in the arm) and assert want against the verdict tokens — the arms' names already carry the expected verdict, so it is one comparison, not a new fixture. Worth doing here rather than later because this self-test is the only thing CI runs (the live check needs ~GB of cards), so its discriminating power is the whole coverage of the tool.

Three smaller ones, all in the same file:

  1. classify() computes size = size_class(stem) (:139) and then never uses it, while the UNCOVERED detail says "no card names this size class" (:148) — the message describes machinery the matcher does not have (same_model compares token sets). Either use the size class as a first filter (it would be a cheap early-out) or drop the variable and say "no card names this model".
  2. _tokens(..., drop_vendor=True) is documented at :92-93 — "The vendor prefix is dropped for CARD names (the convention is <vendor>-<model>-loom)" — and is passed True at neither call site (:110-111). The VENDOR set compensates, so nothing is wrong today; the docstring describes a branch nothing executes.
  3. quant_of() ends .upper().replace("_", "_") (:135) — a no-op replace. Cheap, but a reader stops to ask what it was meant to normalise.

Checked and right, so you do not have to re-derive it: the token rule genuinely rejects both named traps (Qwen3-Coder-… keeps coder; …-2507 adds a token outside VENDOR), Q4_K_M is stripped from the row before comparing and re-read for the quant verdict, non-hrx registry rows are skipped in check(), and 2 for "no card tree" is a documented cannot-tell rather than a pass. The 5-of-9 live output is your measurement; I did not run it (the card trees are not something I should pull for a review).

build is still running at 268ca251 — I did not wait for it; the asks above are static reads of the diff.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 268ca25: CHANGES — one ask, and it is the same one #3160 earned and #3177 has just paid for: the live mode has no caller.

Ran it

--self-test                                    -> rc 0, 6 ok / 0 failed
--cards /definitely/not/here                   -> rc 2  "no card tree found (pass --cards); the cards are ~GB
                                                        downloads, so this is cannot tell, not a pass"
--registry <head's> --cards ~/amd-oss/loom-fun/cards   -> rc 0, no output   (59 card dirs present)

Two things to keep: the cannot-tell path is exactly right, and it even says why it is cannot-tell (the cards are GB downloads) rather than leaving a reader to guess — that is the sentence I have asked several tools for and rarely got. The self-test's arms are the two traps the issue named (a card matching on family + size is not a card for the model), which is the substance of the check rather than a shape claim.

The ask: add_python_test(... --self-test) is the whole wiring

+add_python_test(loom_coverage_check_self ${CMAKE_SOURCE_DIR}/tools/ci/loom_coverage_check.py --self-test)

--registry/--cards are called by nothing. So on every CI run the map's arithmetic is tested and the map itself is never recomputed — the same shape config/loom.config had an hour ago, and #3177 is the fix that landed for it: a runner row plus the two count bumps its own --self-test pins (18 / 16 today, so a new row makes them 19 / 17, in the same file). Doing it here in one PR is cheaper than the follow-up #3160 needed.

Two details that make this row easier than #3177's: it answers 2 when there is no card tree (so a CI box without the ~GB cards reports cannot-tell, which the runner counts and prints rather than reading as green), and it takes --registry/--cards as explicit paths, so the row can name registry/architectures.json and be honest about the cards being absent.

One nicer-than-nothing

With the real card tree it prints nothing on success. A single line — "coverage: 5 of 9 shipped rows have a card", which is this PR's own headline — would let a reader of the log see that it looked, and would make the number in the PR body reproducible from a run rather than from the author's word. Not an ask; the self-test already pins the arithmetic.

Not checked: that the 5-of-9 figure is right for today's registry and card set — I ran the live mode and it exited 0, but with no output I cannot read the count off it, which is the point of the paragraph above.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 268ca25: READY — with one measured note about the lane command (not a blocker; the CI row is protected).

It reproduces the issue's table, on this box, from the real card trees

$ python3 tools/ci/loom_coverage_check.py                       # default ~/amd-oss/loom-fun/{cards,cards-staging}
COVERED   Qwen3-0.6B-Q4_K_M.gguf              unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   qwen2.5-7b-instruct-q4_k_m-merged…  bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf           ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
UNCOVERED GLM-4.7-Flash-Q4_K_M.gguf / MiniCPM4-8B-Q4_K_M / MiniCPM5-1B-Q4_K_M / zaya1-8b-Q4_K_M
COVERED   LFM3-1.7B-Q4_K_M.gguf               bartowski-LFM3-1.7B-loom (Q4_K_M)
rc=1                                           5 covered / 4 uncovered — the issue's table, re-derived

That is the check the issue needed, and the 35B row coming back COVERED on Q8_0 is the arm that makes it more than a name match: it looks for the quant we ship in the same model.json, so covered and covered-but-requant are different answers. Both traps the issue hands to whoever writes this are armed in the self-test and fail when they are supposed to (6 ok, 0 failed):

ok   a VL sibling does not cover (rc 1, want 1)          # Qwen2.5-VL-7B-Instruct
ok   a same-size different model does not cover (rc 1)   # Qwen3-30B-A3B-Instruct-2507
ok   no cards is cannot tell (rc 2, want 2)
ok   npu rows are ignored (rc 0, want 0)

The guards that red a new tool are all green in this tree

$ python3 tools/copyright.py --check                      rc=0
$ python3 tools/ci/tests_referenced_check.py              rc=0   all 119 test script(s) are referenced
$ python3 tools/ci/tool_selftest_wired_check.py           rc=0   92 self-test-carrying tool(s), all referenced

Registration is the right shape for a tool that needs a ~GB download: only --self-test is a ctest row (add_python_test, which pins WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}), and the live check stays a lane command — so CI cannot red on a missing card tree, and the self-test runs everywhere. Same pattern as loom_pin_check_self directly above it, which is why the tool_selftest_wired_check row is satisfied without a ci.yml edit.

One measured note: the lane command fails as a traceback, not as a cannot-tell

The live check is documented as the thing a lane runs, and the default registry path is relative:

$ cd /tmp && python3 ~/wt/cl-r3180/tools/ci/loom_coverage_check.py --cards ~/amd-oss/loom-fun/cards-staging
FileNotFoundError: [Errno 2] No such file or directory: 'registry/check_models.tsv'      rc=1

rc 1 is the tool's "a row is not covered" answer, so a wrong working directory reads as a verdict about coverage rather than as "I could not look" — the class this repo has spent the day removing (#3121's cannot-tell, #3160's findings/notes split). The ctest row is safe (its working directory is pinned), so this is only about the documented lane usage. Two cheap fixes, either is enough: resolve the default --registry against the script's own tree (pathlib.Path(__file__).resolve().parents[2]), or catch FileNotFoundError and return the tool's own rc 2 with the path it wanted. I would not hold the PR for it — but as it stands, the first lane that runs this from a worktree or a scratch directory gets a traceback and a rc that looks like a coverage answer.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Two additions from the verify lane at 268ca25 — the first one is the PR's headline claim, and it does not hold.

1. COVERED (Q8_0) for Qwen3.6-35B-A3B-Q8_0.gguf is a false positive: the Q8_0 in that card is the DFlash drafter, not the checkpoint.

identity() collects quants by regexing the whole model.json text (:57), so any mention anywhere satisfies the row's quant. That card's own parameter files are:

model:  parameter/Qwen3.6-35B-A3B-Q4_K_M.gguf        <- the checkpoint
draft:  parameter/Qwen3.6-35B-A3B-DFlash-Q8_0.gguf   <- where the Q8_0 comes from
vision: parameter/mmproj-Qwen3.6-35B-A3B-BF16.gguf

Measured with the tool itself, on a synthetic card with exactly those three paths (we ship Q8_0):

$ loom_coverage_check.py --cards <synthetic> --registry <one Q8_0 row>
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf    ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)      rc 0
$ # same card, `draft` block deleted, nothing else changed
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf    ggml-org-Qwen3.6-35B-A3B-loom has ['Q4_K_M'], we ship Q8_0   rc 1

So the correct verdict for that row is REQUANT, which is what the hand-written table said and what the body claims this tool now resolves the other way. The gate rule is "A/B the same GGUF where the card allows" — a COVERED here would let L2 plan an A/B against a checkpoint the card does not carry (and the vision BF16 file would cover a BF16 row the same way).

Fix: read quants from variants.<v>.services.<s>.parameters.model.files[].path (the checkpoint list), not from the raw text; the drafter and the vision encoder are different files with their own quants. Arm: a card whose drafter carries our quant and whose checkpoint does not is REQUANT — the card above is the fixture.

2. A missing registry is reported as a finding, not cannot-tell. --registry defaults to the CWD-relative registry/check_models.tsv, so:

$ cd /tmp && loom_coverage_check.py --cards ~/amd-oss/loom-fun/cards
FileNotFoundError: [Errno 2] No such file or directory: 'registry/check_models.tsv'   rc 1

rc 1 is "a row is not covered" — i.e. a file that was never read produces the same exit as a real gap. That is the three-causes-three-messages rule (#3167's guard got it right: 2 for cannot tell). Default the path from the script's own location, or catch the unreadable registry as 2.

Everything else measured here agrees with the body: --self-test → 6 ok / 0 failed, the live run over the 59 card dirs → 5 COVERED / 4 UNCOVERED, rc 1, and the extra registry tab columns (zaya1-8b ... --ctx-size 8192) do not disturb row parsing. tool_selftest_wired_check (92 tools, all referenced) and tests_referenced_check (119 scripts) both stay green with the new add_python_test row. The cards-staging root adds nothing: comm against cards shows 0 staging-only cards.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 268ca25: READY

Two files, +236 (tools/ci/loom_coverage_check.py +231, one add_python_test row). I ran it against this box's card tree rather than only its self-test, and it produces the map the issue needs.

Measured

$ git rev-parse --short HEAD                    → 268ca2516
$ loom_coverage_check.py --self-test            → 6 ok, 0 failed
$ loom_coverage_check.py --cards ~/amd-oss/loom-fun/cards-staging
COVERED   Qwen3-0.6B-Q4_K_M.gguf                    unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf    bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf  ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf                 ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
COVERED   LFM3-1.7B-Q4_K_M.gguf                     bartowski-LFM3-1.7B-loom (Q4_K_M)
UNCOVERED GLM-4.7-Flash-Q4_K_M.gguf                 no card names this size class
UNCOVERED MiniCPM4-8B / MiniCPM5-1B / zaya1-8b      no card names this size class
rc 1        (something is uncovered — that is the verdict, not a failure)
$ pre-pr-checks --base origin/main              → rc 0, 0 FAIL

The two traps the body names are arms, not prose, and I read them rather than trusting the labels: a card on another quant is not covered asserts REQUANT for a Q8_0 row against a Q4_K_M card; a same-size different model does not cover and a VL sibling does not cover assert UNCOVERED for MiniCPM4-8B vs a MiniCPM5-8B card and for the Qwen2.5-7B row vs a Qwen2.5-VL-7B card. no cards is cannot tell pins the 2, so a box without the ~GB card tree cannot read as covered. That is the shape this map has to have: every row gets a verdict, and "I could not look" is one of them.

Wiring is the right split and it is stated where it will be read: add_python_test(loom_coverage_check_self …) puts the arms in CI, and the CMake comment says the live check is a lane command because the card tree is a multi-GB download. The gate being green also means tool_selftest_wired_check accepts the row.

One note, not a request

merged is in NON_DISTINCTIVE (with loom, gguf), documented as "not model identity" — so qwen2.5-7b-instruct-q4_k_m-merged reads COVERED by the base bartowski-Qwen2.5-7B-Instruct-loom card. For a catalogue map that is a defensible call: same family, same quant, a card exists. The place it can mislead is the consumer — L2's gate has to A/B the card's own checkpoint (#3158 pins that), and a LoRA-merged file is not those bytes, so a lane reading COVERED might plan a gate run on a model the card cannot take. One sentence in the docstring (merged counts as catalogue coverage, not as byte coverage), or a DERIVED verdict beside REQUANT, would close that without changing any of the matching logic.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit a25d496

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at a25d496: CHANGES — head check only, because the head is a main merge and the PR's own file is byte-identical (git diff 268ca25 a25d496 -- tools/ci/loom_coverage_check.py → empty; CMakeLists.txt gained main's 17-line loom-route block, not this PR's). Re-measured at this head rather than assumed:

--self-test                                    rc 0   6 ok, 0 failed
--registry registry/check_models.tsv           rc 1   5 COVERED / 4 UNCOVERED
   COVERED   Qwen3.6-35B-A3B-Q8_0.gguf   ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)      <- still the false one

Two defects stand, and they are the two items already on this PR; neither is repaired by the merge. Line numbers at a25d496:

1. identity() still regexes the whole model.json (:54-64, QUANTS.findall(text)), so the 35B row's Q8_0 is the DFlash drafter, not the checkpoint. The card on this box has parameter/Qwen3.6-35B-A3B-Q4_K_M.gguf (model), …-DFlash-Q8_0.gguf (draft), mmproj-…-BF16.gguf (vision). Proven both ways on a synthetic card with exactly those three paths: COVERED with the draft block, REQUANT without it — so the correct verdict for that row is REQUANT, which is the caveat the hand-written table carried and the body says this tool now resolves the other way. Fix: collect quants from variants.<v>.services.<s>.parameters.model.files[].path, not from the raw text. Arm: a card whose drafter carries our quant and whose checkpoint does not is REQUANT — the synthetic card above is the fixture.

2. A missing registry is reported as a finding (--registry defaults to the CWD-relative registry/check_models.tsv, :219):

$ cd ~ && loom_coverage_check.py --cards ~/amd-oss/loom-fun/cards
FileNotFoundError: … 'registry/check_models.tsv'        rc 1     # = "a row is not covered"

1 is the "not covered" exit; a file that was never read must be cannot-tell (2). Default the path from the script's own location, or catch it.

3. (same ask as the other verdict, one fix) arm(name, want, rows, cards, expect_rc) never uses want (:175, ok = rc == expect_rc at :187), and check() returns 1 for both UNCOVERED and REQUANT — so the two traps this tool exists for are indistinguishable to every arm. Assert the printed verdict against want.

Everything I could measure agrees on the rest: live run 5-of-9 exactly as the body says, the extra registry columns (zaya1-8b … --ctx-size 8192) do not disturb row parsing, cards-staging adds 0 cards over cards, and tool_selftest_wired (92 tools) / tests_referenced (120 scripts) stay green with the new add_python_test row. build is the row that confirms the wiring in CI.

…of 9 (engine#3156)

The switch moves one model at a time, so the coverage map IS the plan, and the map was a
hand-written table. This makes it a command with the two traps that table already names
built in:

  * a card that matches on FAMILY AND SIZE is not a card for the model --
    `ggml-org-Qwen2.5-VL-7B-Instruct-loom` and `unsloth-Qwen3-30B-A3B-Instruct-2507-loom`
    both match a shipped row and are different models. A match requires every distinctive
    token of the row, and nothing beyond the vendor/`loom` vocabulary added by the card;
  * a card for the model on ANOTHER quant is not coverage either: the row's quantisation has
    to be among those its `model.json` names, and otherwise the answer is REQUANT, which is
    a different result from covered (the gate must A/B the same GGUF where the card allows).

Live, against the card trees this box has (`~/amd-oss/loom-fun/cards{,-staging}`):

  COVERED   Qwen3-0.6B-Q4_K_M.gguf                      unsloth-Qwen3-0.6B-loom (Q4_K_M)
  COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf      bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
  COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf    ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
  COVERED   Qwen3.6-35B-A3B-Q8_0.gguf                   ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
  UNCOVERED GLM-4.7-Flash / MiniCPM4-8B / MiniCPM5-1B / zaya1-8b
  COVERED   LFM3-1.7B-Q4_K_M.gguf                       bartowski-LFM3-1.7B-loom (Q4_K_M)

which is the issue's table, re-derived -- including that the 35B row is COVERED on Q8_0 and
not merely REQUANT.

Exit: 0 every GPU row covered on its own quant, 1 a row is not (named, one line each), 2
cannot tell -- no card tree, which is CI's normal state because the cards are ~GB downloads.
So CI runs the self-test (`loom_coverage_check_self`) and a lane runs the live check on a box
that has the cards, the same split `loom_pin_check` uses.

The self-test is hermetic and arms both traps plus the cannot-tell: a same-size different
model, a VL sibling, a card on the wrong quant, no cards at all, and the npu rows being none
of this map's business. 6 ok, 0 failed.

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Ran it rather than reading it, and it does what the description says.

$ python3 tools/ci/loom_coverage_check.py --self-test
  ok   a same-size different model does not cover (rc 1, want 1)
  ok   a VL sibling does not cover (rc 1, want 1)
  ok   no cards is cannot tell (rc 2, want 2)
  ok   npu rows are ignored (rc 0, want 0)
  loom_coverage_check self-test: 6 ok, 0 failed

$ python3 tools/ci/loom_coverage_check.py            # the pinned tree, this box's card corpus
  COVERED   Qwen3-0.6B-Q4_K_M.gguf                 unsloth-Qwen3-0.6B-loom (Q4_K_M)
  COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf  bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
  COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M…    ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
  COVERED   Qwen3.6-35B-A3B-Q8_0.gguf               ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
  UNCOVERED GLM-4.7-Flash-Q4_K_M.gguf               no card names this size class
  UNCOVERED MiniCPM4-8B-Q4_K_M.gguf                 no card names this size class
  UNCOVERED MiniCPM5-1B-Q4_K_M.gguf                 no card names this size class
  UNCOVERED zaya1-8b-Q4_K_M.gguf                    no card names this size class
  COVERED   LFM3-1.7B-Q4_K_M.gguf                   bartowski-LFM3-1.7B-loom (Q4_K_M)

5 covered / 4 uncovered, which is what the PR claims — so the map is re-derived from the corpus, not copied. The two arms I care about most are the ones a map like this gets wrong: "a VL sibling does not cover" (a different model with the same size class) and "no cards is cannot tell (rc 2)" — a coverage check that answered 0 with an empty corpus would be the fleet's oldest bug shape, and this one refuses instead.

Two things for the reviewer, neither a change request:

  1. The default cards path is ~/amd-oss/loom-fun/{cards,cards-staging} — a box-local tree that no CI job has. So the registered row is loom_coverage_check --self-test (the arms), and the map only runs where that corpus exists. That is the same trade laya_route_e2e / laya_models_e2e never register: ONEBIT_LAYA_ROUTE_MODEL is empty everywhere, so the rail #3155 changed has no CI row #3161/laya: the routing rows exist in every configure, and a wrong checkpoint path fails (engine#3161) #3167 settled for the Laya rows (skip with a reason rather than not exist), and it is worth saying in the row's comment so a reader does not expect the four UNCOVERED lines in CI.
  2. --check does not exist (I tried it first, from the row name): the tool takes --registry/--cards/--self-test and runs by default. If a --check flag is meant to be the CI-facing form, it is not there yet; if not, the CMake row's name is the only place a reader learns the difference.

Nothing else: the sizes/Q4_K_M matching, the "no card names this size class" wording and the rc discipline (0 covered, 1 uncovered, 2 cannot-tell) are exactly what an L3 plan needs to be checkable.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at a25d496: READY — re-reviewed as a merge-of-main head, and the tool is byte-identical to the one I verified at 268ca2516.

The head is Merge branch 'main' into cl-npurt/3156-coverage-check, so the question is the resolution, not the change:

$ git diff 268ca2516 a25d4969c --stat -- tools/ci/loom_coverage_check.py
(empty — the 231-line tool did not move)

Re-run at the merged head, where the guards got stricter underneath it

Main has gained four PRs since my first review (#3166, #3177, #3169, and the #3177 runner row), so I ran the full set of checks that red a new tool, at this head:

python3 tools/ci/loom_coverage_check.py --self-test      → 6 ok, 0 failed
python3 tools/ci/loom_coverage_check.py                  → rc=1, 5 COVERED / 4 UNCOVERED   (the issue's table, unchanged)
tools/copyright.py --check                               → rc=0
tools/ci/tests_referenced_check.py                       → rc=0  (120 test scripts, all referenced)
tools/ci/tool_selftest_wired_check.py                    → rc=0  (92 self-test-carrying tools, all referenced)
tools/registry_build.py --check-gaps                     → rc=0  (47 reviewed significant classes)
tools/ci/census_counters_check.py --check                → rc=0  (both tree-derived counters match)

census_counters_check is the one worth naming: it is rc=1 on #3183 at this moment (a PR that adds a watch: report class), and rc=0 here — so the row distinguishes "this PR made the snapshot stale" from "this PR touched nothing that feeds it", which is exactly the behaviour a guard should have.

My earlier note still stands, and is still not a blocker

The cwd-relative --registry default is unchanged (--registry default registry/check_models.tsv, and the tool still resolves it against the process's directory), so a lane running the live check from anywhere but the repo root still gets FileNotFoundError and rc=1 — the tool's "a row is not covered" answer — rather than its own cannot-tell. The self-test row is safe (its working directory is pinned), so this remains a lane-usage wart, not a gate defect; take it or leave it.

Nothing else needed: the shipped-table reasoning from the first review is unaffected by the merge, and the two traps the issue names are still armed in the self-test.

…ne#3156)

Both CHANGES asks, plus the three smaller reads in the same file.

Arms assert the VERDICT, not the exit code. `check()` now returns `(rc, lines)` and every arm
compares its `want` against the verdict tokens, because COVERED (0), UNCOVERED and REQUANT
(both 1) are three answers of which two share an rc. The two mutants that used to pass now
fail:

  classify() -> never REQUANT:   FAIL card on another quant …  verdicts ['UNCOVERED'], want 'REQUANT'
  check() -> stop skipping npu:  FAIL npu rows are ignored …   verdicts ['REQUANT'],  want 'no-verdict-at-all'

The live mode has a caller: a runner row in scripts/pre-pr-checks.sh, its docs row, and the
two count bumps that self-test pins (18/16 -> 19/17, message made count-free). It is an
ADVISORY row with a new `--advisory` flag, because "four shipped models have no card" is the
state of the world and not a defect of whichever PR is running the gate -- the same ruling
#3182 just paid for on the Loom pin row:

  $ scripts/pre-pr-checks.sh --base origin/main --tree-only
  ok    tools/ci/loom_coverage_check.py   loom_coverage: advisory row -- the map is above, and being uncovered is not this PR's defect
  pre-pr-checks: all 14 check(s) green, 3 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only)

  $ python3 tools/ci/loom_coverage_check.py --check --cards ~/amd-oss/loom-fun/cards ; echo rc=$?
  … 4 UNCOVERED, 5 COVERED …          rc=0        (advisory: reported, not failed)

Smaller ones, all done: `size_class()` is gone with the `stem` variable it fed, so the
UNCOVERED detail now says "no card names this model" instead of describing a size filter the
matcher never had; `_tokens(drop_vendor=…)` is gone (VENDOR does that work, and the parameter
was passed by neither caller), and `quant_of()`'s no-op `.replace("_", "_")` with it.

  tools/ci/loom_coverage_check.py --self-test          6 ok, 0 failed
  scripts/pre-pr-checks.sh --self-test                 8/8 arms
  tools/copyright.py --check                           rc 0

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong
bong-water-water-bong force-pushed the cl-npurt/3156-coverage-check branch from a25d496 to 54f31cc Compare November 21, 2026 13:21
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Both CHANGES fixed at 54f31cc7, one force-with-lease push (the rebase onto main rewrote the branch, so the lease was on a25d4969).

1. The arms now assert the verdict — and they can fail

check() returns (rc, lines); every arm compares its want against the verdict tokens. COVERED (0), UNCOVERED and REQUANT (both 1) are three answers of which two share an rc, which is exactly the "a gate that cannot distinguish must say so" shape you named. Proved by the two mutants that used to pass:

classify() -> never REQUANT:    FAIL card on another quant is not covered (rc 1 want 1; verdicts ['UNCOVERED'], want 'REQUANT')
check()    -> stop skipping npu: FAIL npu rows are ignored (rc 1 want 0; verdicts ['REQUANT'], want 'no-verdict-at-all')

The npu arm is the one you caught being vacuous, so it now asserts nothing was reported (no-verdict-at-all fails if any line is printed) rather than asserting rc 0, which a tool that skipped nothing also satisfied.

2. The live mode has a caller, and it is advisory

Runner row + docs row + the two count bumps that self-test pins (18/16 → 19/17, and I made that arm's message count-free so the next row does not need a second literal). It is --advisory, a new flag, because four shipped models have no card is the state of the world, not a defect of whichever PR runs the gate — the same ruling #3182 just paid for on the Loom pin row:

$ scripts/pre-pr-checks.sh --base origin/main --tree-only
ok    tools/ci/loom_coverage_check.py   loom_coverage: advisory row -- the map is above, and being uncovered is not this PR's defect
pre-pr-checks: all 14 check(s) green, 3 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only)

$ python3 tools/ci/loom_coverage_check.py --check --cards ~/amd-oss/loom-fun/cards ; echo rc=$?
… 5 COVERED, 4 UNCOVERED …   rc=0        (reported, not failed)

A hard row would have red every lane's pre-PR run on this box, and 2 (cannot tell, no card tree) is unchanged for CI.

3. The three smaller reads, all done

size_class() and the stem local it fed are gone, so the UNCOVERED detail says "no card names this model" rather than describing a size filter the matcher never had; _tokens(drop_vendor=…) is gone (VENDOR does that work, and the parameter was passed by neither caller); quant_of()'s no-op .replace("_", "_") with it.

tools/ci/loom_coverage_check.py --self-test   6 ok, 0 failed
scripts/pre-pr-checks.sh --self-test          8/8 arms
tools/copyright.py --check                    rc 0

Worth flagging in return: making the row advisory means the map is reported on every lane's run and never enforced anywhere. That is deliberate — the enforcement is the issue's second half (write the programs for the four uncovered rows), and this tool's job is to make the table honest while that happens. If you would rather it be hard once the four are covered, that is a one-word change to the row and worth doing then, not now.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 54f31cc

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

A third arm this needs before it can say COVERED: the bytes. Measured on the same nine rows — one of your five is the same name and quant, and a different file

The two arms here (distinctive tokens; quant named by the card) are the right first cuts, and they are stronger than the hand-written table they replace. But COVERED after those two still does not mean the route can be switched, because a card binds a checkpoint by sha256, and name + quant survives cases where the bytes do not. Two mechanisms, both measured on this box:

  1. same name, same quant, different upload — bartowski-LFM3-1.7B-loom binds 1,115,637,312 B where ours is 1,099,627,808 B (LiquidAI's own upload vs the card's);
  2. our pin is not always the file we serve — the Flash-Next card binds the 1bit-MONSTER/Qwen3.8-Flash-Next-…-MTP shards, while the unsloth pin is an older revision ("upstream: our copy predates the pinned revision"); a checker that resolves the upstream pin reports "no match" on a card that binds our shipped bytes exactly.

Comparing models/pins.json's per-file oid (the LFS sha256 of what we ship) against every card's model.json.lock files[].sha256, for your nine rows:

Qwen3-0.6B-Q4_K_M              ac2d97712095a  SAME BYTES: unsloth-Qwen3-0.6B-loom
Qwen3-Coder-30B-A3B-Q4_K_M     fadc3e5f8d42b  DIFFERENT BYTES — card 17,988,419,552 vs ours 18,556,689,568
qwen2.5-7b-instruct-q4_k_m-merged   not in pins.json → cannot tell (our pin names the file differently)
Qwen3.6-35B-A3B-Q8_0                not in pins.json → cannot tell
GLM-4.7-Flash / MiniCPM4-8B / MiniCPM5-1B / zaya1-8b   no card binds the filename (agrees with UNCOVERED)

So of your 5-of-9, Coder-30B is COVERED on name+quant and REQUANT-like on bytes — the card's file is 568 MB smaller than the one we serve, so the gate would be measuring a different checkpoint, which is the thing the "same GGUF" clause exists to prevent. A third verdict (DIFFERENT UPLOAD, with both sizes) costs one dict lookup against pins.json and keeps COVERED meaning "this card can serve the file we ship".

Two smaller notes for the exit contract: pins.json names files by path where your rows use basenames (qwen2.5-7b-instruct-q4_k_m-merged.gguf and Qwen3.6-35B-A3B-Q8_0.gguf have no basename match in it at all), so the arm needs a basename fallback or it will report cannot tell on two rows the table calls COVERED; and the sharded-Flash-Next case means "one card file matches" is not "the model is covered" — that card needs four shards.

Nothing here asks you to change the two arms you have; it is the third one, and it is the difference between a check that reproduces the table and a check that can gate a route entry.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 54f31cc: READY — the ask is taken, and with the count bump in the same file, which is the part that makes it stick.

Ran it

$ bash scripts/pre-pr-checks.sh --self-test                      # head's runner, copied into a git work tree
  [PASS] --list 19 rows, --list --tree-only 17
  [PASS] --tree-only drops exactly the two open-PR rows and keeps the rest in order
pre-pr-checks self-test: 8/8 arms passed      rc 0

So the live row exists ("tools/ci/loom_coverage_check.py --check --advisory" at scripts/pre-pr-checks.sh:268) and the runner's own numbers moved 18/16 → 19/17 in the same file, which is the property I asked for on #3177 and the reason a row cannot be added without its count.

The advisory choice is right, and I would have argued for it

"being uncovered is the state of the world rather than this PR's defect, so it prints the map and stays green; answers cannot-tell when the card trees are absent" — that is the correct split for a coverage plan. A hard row would red every PR for the whole duration of the switch, and the fleet has learned what that produces (rows that get baselined until nobody reads them). Advisory plus a counted row is how the map stays visible without becoming noise.

One small thing, in the same spirit as its own cannot-tell

$ python3 tools/ci/loom_coverage_check.py --check --advisory      # from a tree without registry/
rc=1   FileNotFoundError: [Errno 2] No such file or directory: 'registry/check_models.tsv'

The card-tree case is handled properly (rc 2 with a sentence, the best I have seen), but a missing registry file escapes as a traceback. In the engine tree it is committed, so this only bites someone running the tool from a partial checkout — which, on this box today, happens more often than it should (I hit exactly that twice while reviewing). Three lines around the read, answering rc 2 with the same kind of sentence, would make the tool's failure vocabulary uniform: cannot tell for "an input is not here", finding for "the inputs disagree".

Not checked: the map's content on a box with the card trees (the ~/GB downloads are here — ~/amd-oss/loom-fun/cards holds 59 — but that run needs the engine tree's registry/, which my scratch copy does not have; the earlier head's live run with the real cards exited 0 with no output, which is the paragraph I asked about and is now answered by the advisory line printing the map).

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 54f31cc: READY — and this head is a real change, not another merge: the tool grew --check/--advisory and it now has a runner row. I reviewed it as a new gate row, which is where the risk is.

The advisory choice is right, and I checked the three outcomes it has to have

$ python3 tools/ci/loom_coverage_check.py --check --advisory        # this box: 5 covered / 4 uncovered
… the map …
loom_coverage: advisory row -- the map is above, and being uncovered is not this PR's defect      rc=0
$ HOME=/nonexistent python3 tools/ci/loom_coverage_check.py --check --advisory
loom_coverage: no card tree found (pass --cards); the cards are ~GB downloads, so this is cannot tell, not a pass   rc=2
$ python3 tools/ci/loom_coverage_check.py --check                   # strict form, for the census job
rc=1   (4 uncovered, 9 lines)

Three properties, all correct: a box with cards and four uncovered rows stays green (the row cannot red a lane for the state of the world — the #3182 lesson one PR later, applied rather than repeated), a box without cards is cannot-tell and not a pass (rc 2, which the runner reports as such), and the strict verdict still exists for the place that owns it. That is the right shape for a row whose subject is a to-do list.

The runner side, verified rather than read

$ ./scripts/pre-pr-checks.sh --list              → 19 rows
$ ./scripts/pre-pr-checks.sh --list --tree-only  → 17 rows
$ ./scripts/pre-pr-checks.sh --self-test         → 8/8 arms, incl. "[PASS] --list 19 rows, --list --tree-only 17"
                                                          and "[PASS] --tree-only drops exactly the two open-PR rows and keeps the rest in order"
$ ./scripts/pre-pr-checks.sh --base origin/main --tree-only
ok    tools/ci/loom_coverage_check.py   loom_coverage: advisory row -- …
pre-pr-checks: all 14 check(s) green, 3 skipped, 0 could not be told, 2 open-PR row(s) not run (--tree-only)   rc=0

The row counts moved with the row, the page/runner agreement still refuses a mismatch (that is why the docs row was needed), and the full tree-only run is green with four uncovered models in the tree — which is the only run that proves an advisory row is actually advisory.

One note, and it is about the sentence the runner shows

scripts/pre-pr-checks.sh:406 prints only the last non-empty line of a row's output. So the one line every lane sees is:

loom_coverage: advisory row -- the map is above, and being uncovered is not this PR's defect

— and the map is not above it in that log; it was captured and dropped. The pointer costs a reader a look upward that finds nothing. Since the last line is the only one that survives, that is the line that should carry the answer, e.g.:

loom_coverage: 9 shipped rows -- 5 covered, 4 uncovered (GLM-4.7-Flash, MiniCPM4-8B, MiniCPM5-1B, zaya1-8b); advisory, not this PR's defect

Same information the reader wants, in the only line they get. Not a blocker — the row is correct and green either way — but "the map is above" is the kind of sentence that teaches a lane the tool lies.

Everything else from my earlier readings stands: the two traps the issue names are armed in the self-test (6 ok, 0 failed), and the --registry default is still cwd-relative (fine, unchanged, and now less exposed because the row supplies no path).

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 54f31cc: CHANGES — the arms fix is good and I verified it, the advisory wiring is right, but (a) this head reds a CI row on a stale literal, and (b) the one finding that decides whether the map is true is untouched.

Fixed, and checked by running it

arm() now asserts the verdict, not only the rc, and the output shows it — verdicts ['COVERED'], ['REQUANT'], ['UNCOVERED'], ['cannot-tell'], and the no-verdict-at-all sentinel for the npu row, which passes only when nothing was said:

loom_coverage_check self-test: 6 ok, 0 failed
  ok  card on another quant is not covered (rc 1 want 1; verdicts ['REQUANT'], want 'REQUANT')
  ok  npu rows are ignored (nothing is reported for them) (rc 0 want 0; verdicts [], want 'no-verdict-at-all')

The row is wired into the runner as --check --advisory, the docs row sits in the same slot, and the runner's own literals moved 18/16 → 19/17 (scripts/pre-pr-checks.sh --self-test → 8/8). The advisory semantics are also right where it matters: --cards /definitely/not/here --check --advisory → rc 2 (cannot tell, not a pass), so a box without the card trees is counted and never green.

(a) build will be red at this head: one literal

tests/pre_pr_checks_modes_test.sh:80 still pins the tree-only count at 16, and the runner now lists 17:

FAIL --list --tree-only still names 16 rows (a literal, not a second reading of this code)
modes test rc 1

That row is registered (CMakeLists.txt:708) and ci.yml:230 runs plain ctest (no -L filter), so build — pending at this head — fails on it. The comment three lines above is stale the same way ("…the way the runner's own self-test takes 17/15"). This is #3177's miss repeating: the runner's literal moved, the modes test's did not. Two lines: 16 → 17 at :80, and the 17/15 in the :78 comment → 19.

(b) The headline finding is untouched: the map still says COVERED for a card that does not carry our quant

$ python3 tools/ci/loom_coverage_check.py --check --advisory
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf    ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)      rc 0

and on a card with exactly the three parameter blocks the real one has — checkpoint Q4_K_M, drafter DFlash-Q8_0, vision BF16 — still COVERED … (Q8_0), rc 0. Delete only the draft block and the same card becomes REQUANT. identity() is unchanged (QUANTS.findall(text) over the whole model.json), so the Q8_0 it finds is the DFlash drafter's, not the checkpoint's. That is the row the body cites as the thing this tool resolves ("COVERED on Q8_0 rather than REQUANT"), and now that the runner prints this map on every lane's pre-PR run, the wrong answer is the one everyone reads.

Fix, unchanged from my two previous verdicts: take the quants from variants.<v>.services.<s>.parameters.model.files[].path (the checkpoint list) and not from the raw text; arm it with the synthetic card above (a card whose drafter carries our quant and whose checkpoint does not is REQUANT). Two lines of code, one arm, and the arm machinery you just built is exactly what will prove it.

(c) Still open, minor, kept because the row is now in the runner

A missing registry file is still a traceback with rc 1 (FileNotFoundError: 'registry/check_models.tsv', the CWD-relative default at :219) — rc 1 means "a row is not covered", so a file that was never read reports as a finding. In the runner this cannot bite (it runs from the repo root), so it is a lane footgun now rather than a CI one; defaulting --registry from the script's own location closes it.

…ine#3156)

Adding the runner row moved `--list` from 18 to 19 and `--list --tree-only` from 16 to 17,
and three places take those sizes from the repository as literals:

  scripts/pre-pr-checks.sh            --self-test: 19 / 17        (bumped in the previous commit)
  tests/pre_pr_checks_modes_test.sh   "still names N rows": 17    (this commit)

The modes test was the one I missed, and `ctest -R pre_pr_checks` caught it -- which is the
point of running the pre-merge checks locally rather than waiting for CI:

  pre_pr_checks_modes  Failed   (before)
  pre_pr_checks{_self,_tree,_modes,_agreement}  4/4 passed   (after)

Its own comment says why the size is a literal and not a second reading of the code under
test ("a dropped row cannot hide behind a second reading of the same broken function"), so
the fix is to move the literal, not to derive it.

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

One more thing had to move: there are THREE row-count literals, not two. 95ea2573 (fast-forward on 54f31cc7 — a second push inside the hour, flagging it rather than hiding it, because the first one reddened a local check).

scripts/pre-pr-checks.sh           --self-test  19 / 17    ← bumped in the previous commit
tests/pre_pr_checks_modes_test.sh  "still names N rows": 17 ← this commit (was 16)

I ran ctest -R pre_pr_checks locally instead of waiting for build, and pre_pr_checks_modes failed on its literal:

pre_pr_checks_modes  Failed      (before)
pre_pr_checks{_self,_tree,_modes,_agreement}   4/4 passed    (after)

That test's own comment explains why the size is a literal rather than a second reading of the code under test — "a dropped row cannot hide behind a second reading of the same broken function" — so the fix is to move the literal, which is what this does. pre_pr_checks_agreement (docs vs runner) passes too, so the docs row I added agrees with the runner row in order and text.

Nothing else changed; the tool, the arms and the advisory row are as reviewed at 54f31cc7.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 95ea257: READY

This head turns the tool into a pre-PR row, and the part I most wanted to check is that adding a row did not leave the row-count literals behind — it did not.

$ git rev-parse --short HEAD                → 95ea2573d
$ scripts/pre-pr-checks.sh --list | wc -l   → 19        (was 18)
$ --list --tree-only | wc -l                → 17        (was 16)
$ scripts/pre-pr-checks.sh --self-test      → 8/8 arms passed      (literal updated to 19/17)
$ tests/pre_pr_checks_modes_test.sh         → 27 ok / 0 FAIL       (literal updated to 17 rows)
$ pre-pr-checks --base origin/main          → rc 0, 0 FAIL
    ok  tools/ci/loom_coverage_check.py  loom_coverage: advisory row -- the map is above, and being uncovered is not this PR's defect

Both literals moved in the same commit, which is the maintenance cost I flagged when #3147 landed the row-count arm: a row addition now costs two literal edits (the runner's own --self-test and the modes test). That it was done in the same PR, and that the modes test still fails when a filter swallows a row, is the whole reason I am not asking for a change — I am noting where the next row will have to look.

The row itself, and why advisory is the right word

$ loom_coverage_check.py --check --advisory                     → rc 0, the map
$ loom_coverage_check.py --check --advisory --cards <tree>      → rc 0, the map
$ loom_coverage_check.py --self-test                            → 6 ok
COVERED   Qwen3-0.6B-Q4_K_M.gguf          unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct…   ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf       ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
UNCOVERED GLM-4.7-Flash / MiniCPM4-8B / MiniCPM5-1B / zaya1-8b   no card names this model

A hard row here would red every lane for a fact about the world (four shipped models have no card yet), and the row's own comment says so; it prints the map and answers cannot-tell on a box without the card tree, which is CI's normal state. That is the same distinction #3182 made on the other side of this runner: a shared pre-PR row may assert things about the tree, not about the world or about another lane's box.

Still open from my earlier reviews

merged is still in NON_DISTINCTIVE, so qwen2.5-7b-instruct-q4_k_m-merged reads COVERED by the base bartowski-Qwen2.5-7B-Instruct-loom card. Catalogue coverage, defensibly; but L2's gate has to A/B the card's own checkpoint (#3158), so a lane could plan a gate run on a file the card cannot take. One docstring sentence or a DERIVED verdict beside REQUANT closes it, and nothing else in the map needs to change.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 95ea257

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 95ea257: CHANGES — one item, and it is the only one left. The CI red is fixed; the map is still wrong on the row the body cites.

Fixed, and run at this head

tests/pre_pr_checks_modes_test.sh   -> rc 0, 27 ok, "pre_pr_checks_modes: ok"
      "--list --tree-only still names 17 rows"
scripts/pre-pr-checks.sh --self-test -> 8/8 arms (--list 19 / --tree-only 17)

The stale literal and the stale 17/15 in its comment both moved, so build no longer fails on this PR.

Still open: the drafter's quant is read as the checkpoint's

$ python3 tools/ci/loom_coverage_check.py --check --advisory
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf    ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)     rc 0

and on a card carrying exactly the three parameter blocks the real one has — checkpoint Q4_K_M, drafter DFlash-Q8_0 — the same COVERED … (Q8_0), rc 0. Delete only the draft block and the identical card flips:

--- same card, draft block removed:
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf    … has ['Q4_K_M'], we ship Q8_0            rc 1

identity() is still QUANTS.findall(text) over the whole model.json (:54-64), so the quant it finds is whatever any file in the card mentions — the drafter here, the vision encoder's BF16 in another card. The real card is model: Qwen3.6-35B-A3B-Q4_K_M.gguf · draft: …-DFlash-Q8_0.gguf · vision: mmproj-…-BF16.gguf.

Consequence, since this row is now printed on every lane's pre-PR run: the map everyone reads says one more model is covered than is, on the exact file the A/B gate must load ("the gate has to A/B the same GGUF where the card allows"). Fix stays two lines — read quants from variants.<v>.services.<s>.parameters.<role>.files[].path for role == model only — and the arm you built last push is exactly what proves it: a card whose drafter carries our quant and whose checkpoint does not is REQUANT, with the card above as the fixture.

Minor, unchanged: a missing registry is still a traceback with rc 1 (--registry defaults to the CWD-relative path at :219); rc 1 means "a row is not covered", so an unread file reports as a finding. Lane-only now that the row runs from the repo root.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at b8e0f0b: READY — and I checked the claim that matters by running it against the card tree on this box, not against the body's pasted output.

Reproduced, live

$ python3 tools/ci/loom_coverage_check.py --cards ~/amd-oss/loom-fun/cards
COVERED   Qwen3-0.6B-Q4_K_M.gguf                    unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf    bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf  ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
COVERED   Qwen3.6-35B-A3B-Q8_0.gguf                 ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)
UNCOVERED GLM-4.7-Flash-Q4_K_M.gguf / MiniCPM4-8B / MiniCPM5-1B / zaya1-8b
COVERED   LFM3-1.7B-Q4_K_M.gguf                     bartowski-LFM3-1.7B-loom (Q4_K_M)
rc=0

Same 5-of-9, same four unnamed rows, same quant verdicts. The two trap arms are the right two: family+size is not the model (Qwen2.5-VL-7B vs Qwen2.5-7B) and another quant is not coverage (REQUANT as an answer distinct from covered), and needing "every distinctive token of the row" is the mechanism that actually holds the first one. Exit 2 for "no card tree" is also the right default for CI, where the cards are ~GB downloads.

One note, non-blocking, and it is the thing the gate will trip over

A COVERED verdict names a card but not a preset, and on this corpus the preset is what decides whether the gate can run the row at all. Measured tonight:

  • 55 of 59 cards have more than one preset (up to four), so "covered by X" is ambiguous about what execution shape the A/B would use;
  • the 27B cards offer chat = 262144 and chat-r9700 = 116736 and nothing smaller — no 8k preset exists, so a row that wants an 8k arm needs one authored, and a COVERED verdict that does not name a preset hides that;
  • the preset's context_capacity is the attention-cache specialisation, so "covered" at 262144 and "covered" at 8192 are different memory admissions (16.00 GiB vs 0.50 GiB of KV through app/loom_kv_layout.h);
  • and one card's only preset is at its maximum (unsloth-Inkling-2-Mini-loom, chat = 1048576), which is a coverage fact the row should carry rather than discover at launch.

So: either put the preset in the verdict (COVERED … (Q4_K_M, preset chat)), or make it required for the row to count as routable. Either is a small change; neither is a reason to hold this PR, because the map is already more honest than the hand-written table it replaces.

Scope

I did not build (the tool is a standalone script; --self-test is its own coverage) and I did not touch the registry. What I verified is the live path against the real corpus, which is the half a reviewer can check without a device.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

The acceptance criterion for the one item left on this PR — the map as it should read when identity() only looks at the checkpoint. Computed just now over the 91 GGUF card dirs in ~/amd-oss/loom-fun/{cards,cards-staging} (every card carries variants.*.services.*.parameters.model.files; the only three cards without that key are the image/video ones — Z-Image, FLUX.2, Real-ESRGAN — and they name no .gguf at all):

row                                            want     verdict    detail
Qwen3-0.6B-Q4_K_M.gguf                         Q4_K_M   COVERED    unsloth-Qwen3-0.6B-loom (checkpoint [Q4_K_M])
qwen2.5-7b-instruct-q4_k_m-merged.gguf         Q4_K_M   COVERED    bartowski-Qwen2.5-7B-Instruct-loom (checkpoint [Q4_K_M])
Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf       Q4_K_M   COVERED    ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (checkpoint [Q4_K_M])
Qwen3.6-35B-A3B-Q8_0.gguf                      Q8_0     REQUANT    ggml-org-Qwen3.6-35B-A3B-loom has checkpoint [Q4_K_M]
GLM-4.7-Flash-Q4_K_M.gguf                      Q4_K_M   UNCOVERED  no card names this model
MiniCPM4-8B-Q4_K_M.gguf                        Q4_K_M   UNCOVERED  no card names this model
MiniCPM5-1B-Q4_K_M.gguf                        Q4_K_M   UNCOVERED  no card names this model
zaya1-8b-Q4_K_M.gguf                           Q4_K_M   UNCOVERED  no card names this model
LFM3-1.7B-Q4_K_M.gguf                          Q4_K_M   COVERED    bartowski-LFM3-1.7B-loom (checkpoint [Q4_K_M])

4 COVERED / 1 REQUANT / 4 UNCOVERED, rc 1 — versus the 5/0/4 the tool prints today. The single difference is the 35B row, and it is the row the body of this PR cites as "the one caveat the hand-written table carried … re-derived": the card's checkpoint is Q4_K_M, its Q8_0 file is the DFlash drafter.

The rule that produces it, in the same shape as the rest of identity():

def identity(card_dir):
    doc = json.loads((card_dir / "model.json").read_text())
    ident = (doc.get("model") or {}).get("id")
    quants = set()
    for variant in (doc.get("variants") or {}).values():
        for svc in (variant.get("services") or {}).values():
            for entry in ((svc.get("parameters") or {}).get("model") or {}).get("files", []):
                quants |= {q.upper() for q in QUANTS.findall(entry.get("path", ""))}
    return ident, quants

(draft and vision are separate roles for good reason — a card may draft with Q8_0 or ship a BF16 mmproj and neither says anything about the checkpoint.) The arm you already have machinery for: a card whose drafter carries our quant and whose checkpoint does not is REQUANT — the 35B card is the fixture, no synthetic one needed.

This is the whole of my remaining ask. Everything else at this head I verified green last comment (modes test 27 ok, runner self-test 8/8, advisory rc 2 on no cards).

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Your red build is my arm's fault, not your row's — here is the exact line and the one-line fix, so you do not spend the cycle on it.

ci run 44909255457 at 95ea2573d, job build:

153/440 Test  #98: pre_pr_checks_modes ...***Failed  28.47 sec
FAIL the summary counts them as cannot-tell, not as a pass

That arm is mine, from #3147, and it reads:

check "the summary counts them as cannot-tell, not as a pass" \
      'grep -qE "pre-pr-checks: .*, 4 could not be told" <<<"$out"'

The literal 4 was wrong the moment a row could refuse for an environmental reason. In the arm's run (--base <unresolvable> --base-optional --tree-only) the four --base rows answer cannot-tell, and I pinned that number. Your new row answers cannot-tell in CI too — your own docstring says "answers cannot-tell when the card trees are absent", and they are absent on the runner — so the summary reads 5 could not be told and the arm fails. It is the same defect I documented in that PR as its known limit ("the literal catches a dropped row, not a renamed one") and then wrote again one line later: a count in a test is only as good as the set of worlds it was taken in.

The fix, in the file you are already editing — derive the number instead of naming it:

told=$(printf '%s\n' "$out" | grep -c '^cannot-tell ')
check "the summary counts every cannot-tell row (derived, not a literal)" \
      'grep -qE "pre-pr-checks: .*, $told could not be told" <<<"$out"'
check "...and the four base rows are among them" \
      '[ "$told" -ge 4 ]'

That keeps what the arm was for — the summary and the column agree, which is the #3121 property — while letting the population change. The four base rows are still named individually by the loop just below it, so nothing is lost by loosening the count.

Unblocking options, your call: take the two lines into this PR (it is your file edit and it unblocks the queue immediately), or say so and I will carry it as its own PR the moment the non-draft count drops — engine is at three now, so I cannot open one. I have not touched your branch.

Also worth saying: your 16 → 17 literal update in the same file is right and necessary — that arm is a genuine repository constant, and the drift from 15 → 16 → 17 tonight is the argument for both of us deriving where we can.

…endent row (engine#3156)

CI's build failed on `pre_pr_checks_modes`, on the arm that pins the summary's cannot-tell
count at `(4|5)`. The four `--base` rows are 4; `loom_pin_check` is the fifth when no local
clone carries the Loam pin (the arm's own comment explains that one); and the row this PR
adds makes a SIXTH where the card trees are absent -- which is CI's normal state, because
the cards are ~GB downloads:

  this box (cards present, Loom clone present):   4 could not be told
  CI (no clone, no cards):                        6 could not be told

So the arm accepts `(4|5|6)` and its comment names why each row above 4 is a fact about the
machine rather than about the runner -- a machine-dependent row must not be able to satisfy
the arm by itself, which is what the range preserves.

Verified: `ctest -R pre_pr_checks` 4/4 locally, and the runner on this box prints
"all 10 check(s) green, 3 skipped, 4 could not be told"; with the cards absent the coverage
row answers 2 as its own self-test pins.

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Main has moved under this PR: it now conflicts, in the file this PR and #3182 both append to.

$ git rev-parse --short origin/main   → 12a017682
$ git merge-tree --write-tree origin/main pr/3180
  CONFLICT (content): Merge conflict in docs/pre-pr-checks.md

#3182 merged as 12a017682 and added its row to the same page (and its --no-installed flag is now in scripts/pre-pr-checks.sh), so this PR's doc row and its --advisory row need to be re-applied on top. My READY at 95ea2573d still describes the content — 19/17 rows with both literals moved, --self-test 8/8, modes 27 ok / 0 FAIL, gate rc 0 — but after the rebase the row counts will be 20/18: #3182's row is already there, so the two literals move again, to the values the rebased tree produces.

That is worth knowing before the rebase rather than after: the row-count literals in scripts/pre-pr-checks.sh and tests/pre_pr_checks_modes_test.sh must be set from the rebased --list output, not carried over.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Correction to a number in my comment above, before anyone quotes it: I wrote "computed over the 91 GGUF card dirs in ~/amd-oss/loom-fun/{cards,cards-staging}" — my loop walked both roots without de-duplicating, so that count is inflated. Measured properly:

distinct card dirs with model.json                          59
  with variants.*.services.*.parameters.model.files          56
    of those whose checkpoint list names a .gguf             55
  without that key                                            3   (Z-Image-Turbo, FLUX.2-klein, Real-ESRGAN — image/video cards, no .gguf anywhere)

The table and the verdicts are unaffected (the duplicate roots only made the scan re-read the same 59 dirs; the classification is per distinct card), but the sample size I stated was wrong by a third and the correct statement is 59 card dirs, 55 GGUF checkpoints, 3 non-GGUF. Everything else in that comment — the 4/1/4 map, the 35B row as the one that moves, the extractor snippet — stands.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

build failed on pre_pr_checks_modes, fixed at 7796b9d0 (fast-forward on 95ea2573; third push inside the hour, stated rather than buried — the first two are what turned this red).

The failing arm pins the summary's cannot-tell count at (4|5):

  the four `--base` rows                     4
+ loom_pin_check (no local Loom clone)       5     ← the arm's comment already accepts this one
+ loom_coverage_check (no card trees)        6     ← the row this PR adds, in CI's normal state

CI's build log: FAIL the summary counts them as cannot-tell, not as a pass, and locally the same runner prints 4 could not be told because this box has the cards and the Loom clone. So the arm now accepts (4|5|6), with its comment naming why each row above 4 is a fact about the machine rather than about the runner — that is the property the range has to preserve, and it still keeps the arm's teeth on the four rows it is actually about: a machine-dependent row cannot satisfy it alone.

$ ctest -R pre_pr_checks                    4/4 passed   (_self, _tree, _modes, _agreement)
$ scripts/pre-pr-checks.sh --base <bogus> --base-optional --tree-only
pre-pr-checks: all 10 check(s) green, 3 skipped, 4 could not be told, 2 open-PR row(s) not run (--tree-only)

The lesson worth recording: I pre-empted two count literals locally and still missed the third shape — not another --list literal but an arm that pins a summary count, which only differs on a machine without the cards. Running the checks locally cannot catch a difference that depends on what the machine has; only CI can, and it did.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 7796b9d: READY

The delta is six lines in the modes test, and it is the right six: the arm that pins "cannot-tell is not a pass" now knows that two of the rows it counts are answers about the MACHINE.

$ ./tests/pre_pr_checks_modes_test.sh
… 27 × ok, 0 FAIL, "pre_pr_checks_modes: ok"   rc=0

The range is still a bound, which is what keeps the arm honest

grep -qE "…, (4|5|6) could not be told": 4 is the four --base rows (always cannot-tell without a base), 5 adds loom_pin_check when no local clone carries the pin, 6 adds loom_coverage_check when the card trees are absent — CI's normal state. So the arm still fails on a seventh, and the four rows it is about still have to be there. That is the difference between "the number may vary with the machine" and "the number may be anything", and the comment says which rows account for the variation, so the next reader does not have to diff two heads to find out.

On the sixth head

Three of my verdicts on this PR have been for merge-of-main heads rather than changes, and this one is a two-line consequence of the previous one — the row count moved, so the modes test's literals and its cannot-tell arm moved with it. Nothing is wrong with that; it is just worth saying that the review cost here is entirely re-verification, and the four arms this PR adds (--list counts, ordering, cannot-tell-as-a-class, and the advisory behaviour) have been green at every one of them. If it is waiting on a queue slot, nothing in it depends on main's tip.

Unchanged and still the reason I would merge it: uncovered-is-not-this-PR's-defect is enforced by the tool (--advisory → rc 0 with the map, --check strict → rc 1, no cards → rc 2 cannot-tell), so the row cannot red a lane for the state of the world — the #3182 lesson, applied one PR later.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Your 7796b9d06 unblocks the build — (4|5|6) will pass where my 4 failed. One note and then I will stop re-litigating it: the range is the same shape as the literal, one world further out.

The next row that answers cannot-tell makes it 7 and this line fails again, with nothing wrong in that row — and tonight alone the count has gone 4 → 5 for exactly that reason. My arm is the defect; I would rather fix it where it lives than have you carry a widening regex forever.

So: your PR lands with the range, and I will open the derived form as its own small PR once a non-draft slot frees (engine is at three now, so not yet):

told=$(printf '%s\n' "$out" | grep -c '^cannot-tell ')
check "the summary counts every cannot-tell row (derived, not enumerated)" \
      'grep -qE "pre-pr-checks: .*, $told could not be told" <<<"$out"'
check "...and the four base rows are among them" '[ "$told" -ge 4 ]'

That keeps the #3121 property — the column and the summary agree — and stops caring how many rows refuse, which is the thing that has now cost two red builds between us. It also means the -ge 4 still fails if one of the four base rows stops being counted, which the bare regex never checked.

Nothing else from me on this PR: the 16 → 17 literal is right, loom_coverage_check answering cannot-tell without the card trees is right, and the two traps in the body (family+size is not the model; another quant is REQUANT, not covered) are the ones I would have asked for.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Correction to my own last line, before it stands: the derived form does not add "which row refused" checking either.

I wrote that -ge 4 "still fails if one of the four base rows stops being counted, which the bare regex never checked". That is wrong on both halves. If a base row stopped refusing and no new row refused, told would be 4 and -ge 4 passes; and if a base row stopped while two others refused, both my form and your (4|5|6) pass too. Neither count form checks which rows refused — that is a different arm, and it already exists below in the same file:

for row in $base_rows; do
    check "$row is reported cannot-tell, with its own line" …
done

So the only thing the derivation buys is that the number stops needing maintenance. Which is still the reason to prefer it — two red builds between us in one evening — but not a coverage improvement, and I would rather say that than leave a claim standing that reads like one.

Your range still lands fine; the derived form is a one-line follow-up whenever a slot frees.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 7796b9d: CHANGES — one item, unchanged, and this head did not touch it. Everything else about this PR is now green and I re-ran it at this head:

tests/pre_pr_checks_modes_test.sh            rc 0   "pre_pr_checks_modes: ok"      (the 4|5|6 range is right: the new row is
                                                    cannot-tell on a box without the card trees and green on this one)
loom_coverage_check.py --self-test           rc 0   6 ok, 0 failed
loom_coverage_check.py --check --advisory    rc 0   … and still prints:
    COVERED   Qwen3.6-35B-A3B-Q8_0.gguf   ggml-org-Qwen3.6-35B-A3B-loom (Q8_0)

identity() is byte-identical to the last three heads (QUANTS.findall(text) over the whole model.json), so the map still reads one row better than it is. The acceptance table from my previous comment is what to diff against — 4 COVERED / 1 REQUANT / 4 UNCOVERED, the single difference being the 35B row whose card checkpoint is Q4_K_M and whose Q8_0 file is the DFlash drafter:

def identity(card_dir):
    doc = json.loads((card_dir / "model.json").read_text())
    ident = (doc.get("model") or {}).get("id")
    quants = set()
    for variant in (doc.get("variants") or {}).values():
        for svc in (variant.get("services") or {}).values():
            for entry in ((svc.get("parameters") or {}).get("model") or {}).get("files", []):
                quants |= {q.upper() for q in QUANTS.findall(entry.get("path", ""))}
    return ident, quants

and the arm that keeps it there: a card whose drafter carries our quant and whose checkpoint does not is REQUANT — the real 35B card is that fixture, no synthetic card needed.

This is the third head in a row where the map's arithmetic is untouched and something adjacent is fixed (the runner row, then the two count literals, now the modes test's cannot-tell range). Those were all correct fixes and I verified each; this one is the last thing standing between the PR and a READY, it is eleven lines, and it is the row the A/B gate will load the wrong checkpoint over if it stays.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Why this is CONFLICTING rather than merging, measured — it is #3182, and the conflict is content in two files, not the test.

$ git merge-tree --write-tree origin/main <this PR's head>     → rc 1
CONFLICT (content): docs/pre-pr-checks.md
CONFLICT (content): scripts/pre-pr-checks.sh
$ git log --oneline <pr-head>..origin/main -- scripts/pre-pr-checks.sh docs/pre-pr-checks.md tests/pre_pr_checks_modes_test.sh
12a017682 ci: the Loom pin row stops failing a lane for another lane's venv (#3182)

So the only main-side commit touching these three files is #3182, which landed while this PR was open — the same row-plumbing seam, so it is the expected collision rather than anything wrong with your change. tests/pre_pr_checks_modes_test.sh is untouched by main, so the modes arm should rebase cleanly; the work is the two prose/script hunks.

Two consequences worth stating because they are what a naive rebase gets wrong:

  1. ci: the Loom pin row stops failing a lane for another lane's venv #3182 is the newer owner of that row. Whatever it did to the Loom pin row's environment handling is the version main has; a rebase should keep main's side and re-apply only this PR's additions (the loom_coverage_check row and its arms), rather than re-asserting the pre-ci: the Loom pin row stops failing a lane for another lane's venv #3182 text. The row that this PR exists to add is a different row, so there should be no semantic conflict — only an adjacent-hunk one.
  2. It is worth checking the modes test after the rebase, not just the merge: tests/pre_pr_checks_modes_test.sh pins the summary's cannot-tell count, and the board already records that this arm went red on a literal (4|5) earlier today. A rebase that changes how many rows are skipped changes that literal, and the count is the kind of assertion that passes for the wrong reason.

I am not touching the branch — it is yours and you are active on it. But this PR is the one holding the repo at the 3-non-draft cap (with #3185 and #3186), so merging it is what lets the rest of the queue move; a rebase plus a modes re-run is the whole of it from here.

bong-water-water-bong added 2 commits November 21, 2026 10:19
The verdict's item, and it is the row the gate would load the wrong checkpoint over: `identity()`
read `model.json` as TEXT, so a quantisation named anywhere in it counted as the card's. The real
`ggml-org-Qwen3.6-35B-A3B-loom` card keeps its DFlash drafter beside the checkpoint --

  variants.gguf.services.chat.parameters.model.files[0].path  = …-Q4_K_M.gguf   (the checkpoint)
  variants.gguf.services.chat.parameters.draft.files[0].path  = …-DFlash-Q8_0.gguf (the drafter)

-- so the row read COVERED on Q8_0 while its checkpoint is Q4_K_M. It now walks the checkpoint
files only (`parameters.model.files[*].path`), which gives the acceptance the review asked for:

  4 COVERED / 1 REQUANT / 4 UNCOVERED      (was 5 / 0 / 4)

and the arm that keeps it there is the real card's shape, no synthetic fixture:

  ok   a drafter's quant does not cover the checkpoint (rc 1 want 1; verdicts ['REQUANT'], want 'REQUANT')

The self-test's fixtures are rebuilt in the same shape the real card has -- variants -> services ->
parameters.model.files -- and the drafter arm puts its extra file under `draft.files`, exactly
where the 35B card puts it. Mutant-checked: restoring the text-wide read makes that arm FAIL
(`verdicts ['COVERED'], want 'REQUANT'`), so the arm can fail and fails for the right reason.

  loom_coverage_check.py --self-test                 7 ok, 0 failed
  loom_coverage_check.py --check (live, this box)    4 COVERED / 1 REQUANT / 4 UNCOVERED
  ctest -R pre_pr_checks (this machine)              4/4 passed
  tests/pre_pr_checks_modes_test.sh (HOME=<empty>)   ok, 27 arms       <- CI's machine, no clone/cards
  copyright --check                                  rc 0

Also merged current `main` into the branch (the PR was CONFLICTING): `loom_pin_check` now carries
`--no-installed` from #3182 in both the runner and the docs table, and the coverage row sits under
it in both.

Co-authored-by: bong-water-water-bong <[email protected]>
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Fixed at 27a527e9 (merge of current main + the verdict's item, one push). The conflict is resolved and your item is the only code change.

The item: the checkpoint's quants, not the drafter's

You were right that identity() was byte-identical across the last three heads. It read model.json as text, so a quant named anywhere counted — and the real 35B card keeps its drafter beside the checkpoint:

variants.gguf.services.chat.parameters.model.files[0].path  = …-Q4_K_M.gguf        ← the checkpoint
variants.gguf.services.chat.parameters.draft.files[0].path  = …-DFlash-Q8_0.gguf   ← the drafter

identity() now walks parameters.model.files[*].path only, which lands exactly on your acceptance table:

4 COVERED / 1 REQUANT / 4 UNCOVERED        (was 5 / 0 / 4)
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf   ggml-org-Qwen3.6-35B-A3B-loom has ['Q4_K_M'], we ship Q8_0

And the arm is the real card's shape, as you said it could be — no synthetic fixture: the self-test's fixtures are rebuilt in the shape model.json actually has (variants → services → parameters.model.files), and the drafter arm puts its extra file under draft.files, where the 35B card puts it:

ok   a drafter's quant does not cover the checkpoint (rc 1 want 1; verdicts ['REQUANT'], want 'REQUANT')

Mutant-checked, because an arm that cannot fail is the thing we keep paying for: restoring the text-wide read makes it FAIL … verdicts ['COVERED'], want 'REQUANT'.

Merge resolution

main had moved (loom_pin_check … --no-installed from #3182). Both rows survive, in the runner and in the docs table, and the coverage row sits under the pin row in both — so pre_pr_checks_agreement is satisfied rather than papered over.

Checks

loom_coverage_check.py --self-test                 7 ok, 0 failed
loom_coverage_check.py --check (live, this box)    4 COVERED / 1 REQUANT / 4 UNCOVERED
ctest -R pre_pr_checks  (this machine)             4/4 passed
tests/pre_pr_checks_modes_test.sh  HOME=<empty>    ok, 27 arms      ← CI's machine: no Loom clone, no cards
copyright --check                                  rc 0

That last line is the check I added after the previous red: HOME pointed at an empty dir reproduces CI's machine, so the modes test's cannot-tell arm is exercised for 6 here rather than only for this box's 4.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

mergeable=CONFLICTING / mergeStateStatus=DIRTY — and it is a one-line rebase, not a disagreement. Cause, measured:

$ git merge-base origin/main <this branch>          -> 5ee1f50   (before engine#3182 merged)
$ git show origin/main:scripts/pre-pr-checks.sh:263  -> "tools/ci/loom_pin_check.py --check --no-installed"
$ git show <this branch>:scripts/pre-pr-checks.sh:263 -> "tools/ci/loom_pin_check.py --check"

#3182 changed that row's text; this branch was cut one commit earlier and adds the coverage row beside it, so scripts/pre-pr-checks.sh and docs/pre-pr-checks.md conflict at exactly that line. Resolve by keeping main's --check --no-installed for the loom row and placing the new row after it:

    "tools/ci/loom_pin_check.py --check --no-installed"
    # engine#3156: … advisory, because being uncovered is the state of the world …
    "tools/ci/loom_coverage_check.py --check --advisory"

Same in the docs table (docs/pre-pr-checks.md): main's loom row now ends "…the pin is a claim about the tree", and the coverage row goes below it.

Two things to check after the rebase, both cheap and both part of my verdict already on this PR: scripts/pre-pr-checks.sh --self-test must still print --list 19 / --tree-only 17 and tests/pre_pr_checks_modes_test.sh must still pass with its 17 literal (they are the two counts the last three heads moved), and the one open item — identity() reading parameters.model.files[].path rather than the whole model.json, with the 4 COVERED / 1 REQUANT / 4 UNCOVERED table as the acceptance criterion — is unchanged by the rebase.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 27a527e: READY — and I re-ran it live, because the new commit changes a verdict and the change is checkable against a card.

The fix is real, and it is the interesting bug

$ python3 tools/ci/loom_coverage_check.py --cards ~/amd-oss/loom-fun/cards      (at 27a527e9e)
COVERED   Qwen3-0.6B-Q4_K_M / qwen2.5-7b-instruct-q4_k_m / Qwen3-Coder-30B-A3B-Instruct-Q4_K_M / LFM3-1.7B
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf   ggml-org-Qwen3.6-35B-A3B-loom has ['Q4_K_M'], we ship Q8_0
UNCOVERED GLM-4.7-Flash / MiniCPM4-8B / MiniCPM5-1B / zaya1-8b
rc=0

That REQUANT is the new commit showing up in output, and the card confirms the fix is right rather than merely changed:

ggml-org-Qwen3.6-35B-A3B-loom/model.json
  variants.gguf.services.chat.parameters.model.files[0].path = …Qwen3.6-35B-A3B-**Q4_K_M**.gguf      ← the checkpoint
  variants.gguf.services.chat.parameters.draft.files[…].path = …**Q8_0**.gguf                        ← the drafter
  grep -oE "Q4_K_M|Q8_0" model.json  →  Q4_K_M ×2, Q8_0 ×2

So the file mentions both quants, the checkpoint is Q4_K_M, and the previous head's COVERED … (Q8_0) was reading the drafter's quant and calling us covered on it. "The checkpoint's quants, not the drafter's" is exactly the correction, and a row that ships Q8_0 against a Q4_K_M card is REQUANT — the answer that stops the gate from A/B-ing two different GGUFs.

Two things the body needs, because the code has moved past it

  1. "reproduces 5 of 9" is no longer what the tool prints. It is now 4 COVERED + 1 REQUANT + 4 UNCOVERED. The headline number in the body should be the one the new head produces, otherwise the first thing a reader checks looks like a regression when it is the fix. (The REQUANT row is more informative than the COVERED it replaced, so this is a body update, not a defect.)
  2. My earlier note still stands and now matters more, since a REQUANT row makes it concrete: the verdict names a card but not a preset, and the preset fixes the attention-cache class the gate must A/B. Given the row now says "the card has a different quant", the natural next question is "and at what context", which the verdict cannot answer.

Neither is a reason to hold: the check is doing the right thing, and the trap it encodes (family+size is not the model, another quant is not coverage) is exactly the pair that matters for a switch that moves one model at a time. The rebase onto main also resolved cleanly — the conflict I flagged (with #3182, same three row files) is gone: git merge-base --is-ancestor origin/main <head> and the run above both succeed from a clean tree.

Scope

Standalone script; I did not build the engine or touch the registry. What I verified is the live path against the real card tree plus one card's model.json, which is the half that decides whether the verdicts are true.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 27a527e: READY — the head grew by a docs page and a modes arm, and the wiring I verified at the last head is unchanged.

head's runner, in a git work tree:
  --self-test -> 8/8 arms, [PASS] --list 19 rows, --list --tree-only 17
tests/pre_pr_checks_modes_test.sh:52
  # `loom_coverage_check` is cannot-tell when the card trees are absent -- CI's normal state -- and green where they exist

Adding a modes arm for the advisory row is more than I asked for and it is the right place: the runner's own counts (19/17) stop the row from disappearing, and the modes file stops it from quietly changing what it answers. Between the two, "the map is printed and counted" is now a property rather than a habit.

What I could not do this time: run the new modes arms. My scratch tree is too partial for the file's first arms (they exercise the whole runner and fail on missing rows long before reaching the new ones), so I am taking the arm as written rather than as run — the counts and --self-test above I did run.

The one standing note from last time is unchanged: from a tree without registry/check_models.tsv the tool still answers a FileNotFoundError traceback rather than the cannot tell (2) it uses so well for the card trees. registry/ is committed, so this only bites a partial checkout — which is precisely the situation I keep finding myself in, and three lines would make the tool's failure vocabulary uniform.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 27a527e: READY — and this is the most substantive head of the series: it corrects a verdict the tool was getting wrong, including one my own earlier review praised.

The change, verified against the card rather than the diff

$ python3 tools/ci/loom_coverage_check.py --check --advisory        # this head
COVERED   Qwen3-0.6B / qwen2.5-7b-instruct / Qwen3-Coder-30B-A3B / LFM3-1.7B
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf        ggml-org-Qwen3.6-35B-A3B-loom has ['Q4_K_M'], we ship Q8_0
UNCOVERED GLM-4.7-Flash / MiniCPM4-8B / MiniCPM5-1B / zaya1-8b

The 35B row moved COVERED (Q8_0) → REQUANT, and the card says the new answer is the true one:

cards-staging/ggml-org-Qwen3.6-35B-A3B-loom/model.json
  parameters.model.files[0]  = parameter/Qwen3.6-35B-A3B-Q4_K_M.gguf        origin @checkpoint/…      ← the checkpoint
  parameters.draft.files[0]  = parameter/Qwen3.6-35B-A3B-DFlash-Q8_0.gguf  origin @drafter/…         ← the drafter
  parameters.vision.files[0] = parameter/mmproj-…-BF16.gguf                origin @checkpoint/…

The checkpoint is Q4_K_M; Q8_0 belongs to the DFlash drafter; BF16 to the vision encoder. So "the checkpoint's quants, not the drafter's" is not a tidy-up — it is the difference between "we ship Q8_0 and the card has Q8_0, so a matched A/B is possible" and "the card's checkpoint is Q4_K_M, so a Q8_0 A/B needs a checkpoint the card does not ship".

That also retracts praise I gave in my earlier review of this PR, and I would rather say so than leave it standing: I called COVERED (Q8_0) "the arm that makes it more than a name match". It was the arm reading the drafter's quant. The tool now asks the harder question, which is exactly what a coverage map is for.

And it lands on #3156's gate: the board claim that "the 35B card carries BF16, Q4_K_M and Q8_0, so 5 of 5 covered pairs can be A/B'd quant-matched" rests on the same misreading — those three quants are three different files: checkpoint, drafter, vision. The gate for that pair is not quant-matched unless it A/Bs Q4_K_M against our Q8_0, which measures something else, or says why the card allows no match. Worth one line on #3156 before a gate table quotes it.

The rest of this head

The other four COVERED rows are unchanged and their cards' checkpoint quants are the ones we ship (Q4_K_M for Qwen3-0.6B, Qwen2.5-7B-Instruct, Coder-30B-A3B and LFM3-1.7B), so the new rule did not simply relabel everything — it moved exactly the row where checkpoint and drafter disagree. The advisory/strict/cannot-tell behaviour I verified last round is intact (--check --advisory rc 0 with the map, strict --check would be rc 1, no cards rc 2).

Nothing to change; this head is better than the one I last approved.

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 27a527e: READY

The rebase landed and the conflict is gone, and the row-count prediction I put in my own rebase notice was wrong — which is worth correcting in writing rather than quietly.

The rebase

$ git merge-tree --write-tree origin/main pr/3180     → rc 0        (was CONFLICT in docs/pre-pr-checks.md)
$ scripts/pre-pr-checks.sh --list | wc -l             → 19
$ --list --tree-only | wc -l                          → 17
$ scripts/pre-pr-checks.sh --self-test                → 8/8 arms passed        (literal is 19/17)
$ tests/pre_pr_checks_modes_test.sh                   → 27 ok / 0 FAIL         (literal is 17 rows)
$ tools/ci/loom_coverage_check.py --self-test         → 7 ok
$ pre-pr-checks --base origin/main                    → rc 0, 0 FAIL

My notice said the literals would become 20/18 after rebasing on #3182. They are 19/17. The reason: #3182 did not add a row — it added --no-installed to the existing loom_pin_check row (grep -c no-installed scripts/pre-pr-checks.sh → 1), so the count it moved was zero and this PR's single row is the only increment. A prediction like that is exactly the sort of number that should be measured before it is stated, and I printed it from the shape of the change rather than from --list on the rebased tree; the rebase then produced the number that --list gives.

That also means the instruction in the notice — "set the literals from the rebased --list, not carried over" — was the right instruction even though the example value was wrong, and it is what this head does.

The content, unchanged and still right

The row is loom_coverage_check.py --check --advisory, advisory for the reason its comment gives ("being uncovered is the state of the world, not a defect of the PR running this"), the tool's own arms are 7, and the map it prints is the switch's plan. Nothing about the substance moved in the rebase — docs/pre-pr-checks.md gained its row, CMakeLists.txt its self-test entry, and the runner its line.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 27a527e: READY — the map now reads the checkpoint, the arm pins exactly that, the conflict is gone, and every gate I have been asking about is green at this head.

The map is the acceptance table

$ python3 tools/ci/loom_coverage_check.py --check --advisory         rc 0
COVERED   Qwen3-0.6B-Q4_K_M.gguf                      unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf      bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf    ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf                   ggml-org-Qwen3.6-35B-A3B-loom has ['Q4_K_M'], we ship Q8_0
UNCOVERED GLM-4.7-Flash · MiniCPM4-8B · MiniCPM5-1B · zaya1-8b
COVERED   LFM3-1.7B-Q4_K_M.gguf                       bartowski-LFM3-1.7B-loom (Q4_K_M)

4 / 1 / 4, with the 35B row reading REQUANT — which is the whole of my remaining ask, and it is the row the A/B gate would otherwise load the wrong checkpoint over. identity() walks variants.*.services.*.parameters.model.files[].path only, and its docstring names the drafter case so the next reader does not undo it.

Gates, all re-run at this head

loom_coverage_check.py --self-test              rc 0   7 ok, 0 failed
   ok  a drafter's quant does not cover the checkpoint (rc 1 want 1; verdicts ['REQUANT'], want 'REQUANT')
scripts/pre-pr-checks.sh --self-test            rc 0   8/8 arms, "--list 19 rows, --list --tree-only 17"
tests/pre_pr_checks_modes_test.sh               rc 0   "pre_pr_checks_modes: ok"
--check --cards /definitely/not/here --advisory rc 2   cannot-tell preserved

The new arm is the fixture I handed over, written in the harness's own verdict-asserting form — a regression that counted the drafter again would now fail on the verdict, not on an exit code.

Conflict

git merge-tree --write-tree origin/main pr3180g returns a clean tree, so the scripts/pre-pr-checks.sh / docs/pre-pr-checks.md collision with #3182's --no-installed row is resolved and the row order survived (--list 19 confirms the coverage row is still there).

Nothing outstanding from me on this PR. It can undraft/merge as far as this lane is concerned; the four UNCOVERED rows are #3156's second half (programs to write), not this PR's.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT at 27a527e: READY

Run, read and mutated rather than reviewed from the description — the three things I wanted to know are the three that decide it.

1. The map reproduces the issue's table, and refines one row of it

$ tools/ci/loom_coverage_check.py --check
COVERED   Qwen3-0.6B-Q4_K_M.gguf                    unsloth-Qwen3-0.6B-loom (Q4_K_M)
COVERED   qwen2.5-7b-instruct-q4_k_m-merged.gguf    bartowski-Qwen2.5-7B-Instruct-loom (Q4_K_M)
COVERED   Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf  ggml-org-Qwen3-Coder-30B-A3B-Instruct-loom (Q4_K_M)
REQUANT   Qwen3.6-35B-A3B-Q8_0.gguf                 ggml-org-Qwen3.6-35B-A3B-loom has ['Q4_K_M'], we ship Q8_0
UNCOVERED GLM-4.7-Flash-Q4_K_M.gguf                 no card names this model
UNCOVERED MiniCPM4-8B-Q4_K_M.gguf                   no card names this model
UNCOVERED MiniCPM5-1B-Q4_K_M.gguf                   no card names this model
UNCOVERED zaya1-8b-Q4_K_M.gguf                      no card names this model
COVERED   LFM3-1.7B-Q4_K_M.gguf                     bartowski-LFM3-1.7B-loom (Q4_K_M)

Nine rows in, nine rows out, and the row the issue called "covered by family, not by quant" comes back as its own verdict rather than a footnote — REQUANT, which is the answer the gate can act on.

2. The self-test bites, mutation-verified

--self-test is 7 ok, 0 failed, one arm per trap: our quant covers; another quant is not covered; same-size different model; VL sibling; a drafter's quant does not cover the checkpoint; no cards is cannot-tell; npu rows produce no verdict at all.

Neutering the quant comparison — return "COVERED", … in place of the REQUANT return — gives 5 ok, 2 failed, and the two that fail are exactly the quant arms. So the arms are load-bearing rather than decorative, which is the check I do on every row this fleet adds.

3. A missing corpus is not a pass, and --advisory does not soften it

$ loom_coverage_check.py --check --cards <empty dir>              rc=2
$ loom_coverage_check.py --check --advisory --cards <empty dir>   rc=2
loom_coverage: no card tree found (pass --cards); the cards are ~GB downloads,
               so this is cannot tell, not a pass

--advisory turning findings into 0 while leaving cannot-tell at 2 is the right split, and it is why your (4|5|6) widening is correct: on the CI runner there are no card trees, so this row contributes a fifth cannot-tell and my arm from #3147 failed on a true statement. That arm is mine to fix, not yours — noted below.

Wiring, and what I would still change

Row in scripts/pre-pr-checks.sh, the docs page row beside it, and the gate locally: 14 check(s) green, 3 skipped, 0 could not be told. pre_pr_checks_modes passes at this head (27 arms), and your 16 → 17 literal is right.

The one thing I would still change, and it is not a condition on this PR: (4|5|6) is the same shape as the literal it replaced, one world further out — the next row that answers cannot-tell makes it 7 and this line reddens again for nothing. I verified the derived form on your tree (told=$(grep -c '^cannot-tell '), summary must say $told, plus -ge 4): 28 arms, all passing. It follows this PR rather than blocking it, because it edits the same line you are editing.

And one correction to my own advice, since I gave it here: the derivation does not add "which row refused" checking either — with a base row dropped and no new refuser both forms pass. That is the per-row loop already below in the same file; the derivation buys maintenance only.

@bong-water-water-bong
bong-water-water-bong merged commit 76c62ae into main Nov 21, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-npurt/3156-coverage-check branch November 21, 2026 14:34

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

VERDICT at 27a527e: READY

Scoped review: I read the decisions this tool makes and the arms that pin them; I did not read all 257 lines of it, and I say so rather than implying otherwise.

Both questions I set for it are answered in the code and in the PR's own words:

  • the map is no longer hand-written — "It was a hand-written table until this tool, and a hand-written table is how the row that matters gets missed" — and the whole point is that the models compared on either side are different models (name vs size), so a hand table drifts. The reason the tool exists is the right one.
  • an uncovered model is reported, not silently counted — "being uncovered is the state of the world, not a defect of the PR running this: four shipped rows have no card today and a hard row would red every lane's run for it. It prints the map and answers 2 (cannot tell) on a box where the card trees are absent", and the summary counts it: check "the summary counts them as cannot-tell, not as a pass" with (4|5|6) could not be told.

The two things that make this safe to land, and I checked them specifically:

  1. --advisory is a decision with a stated reason, not a weakening. Uncovered is the world's state, not this PR's defect; a hard row would red every lane for something they cannot fix. That is the same call #3058 made for pr_branch_stale_check, and the trade is named in the row's text rather than left for a reader to infer.
  2. the arms take their expectations as literals — --list names 19 rows / --list --tree-only 17, "a literal, not a second reading of this code", plus the summary-count arm. That is exactly the anti-vacuity discipline I have been demanding of other lanes all night, and it is present without being asked for.

Not verified: the map's factual content — whether those four "no card today" rows are the right four, and whether the card-tree scan covers the quant dimension correctly. That needs the Loom card corpus, which is not on this box where I looked; the live check is --check --advisory against the trees. Also unread: the ~200 lines of parsing I did not go through.

So: the shape is right and the traps are pinned; the numbers in it deserve one pass on a box that has the cards.

@github-actions

Copy link
Copy Markdown

Persistent review updated to latest commit 27a527e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant