Repository navigation
loom coverage: --manifest resolves the stick's own ids (engine#3156) - #3510
Merged
Merged
Conversation
The manifest this was written for is the stick's /etc/1bit/onebit-models.txt, whose ids carry the
distribution suffix ('GLM-4.7-Flash-1bit'), so the first cut resolved 0 of 24 ids. Strip the
catalogue suffixes (-1bit/-npu/-gguf) and require the remainder after the id to be a QUANT spec,
not any prefix: 'qwen3-4b-q4_k_m.gguf' is Qwen3-4B, 'qwen3-4b-instruct-2507-q4_k_m.gguf' is not.
Against the real file: 18 of 24 ids resolve, 6 are reported unresolved rather than guessed, and the
map now answers for the shipped catalogue. Self-test unchanged (11 ok, 0 failed).
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 25, 2026
…#3156) #3510 fixed --manifest to resolve the stick's own ids, but the self-test had no arm for that path -- which is exactly why the wrong input shape shipped in #3509: it was validated against a manifest synthesised from the issue's row names, and against the real file it resolved 0 of 24 ids and printed an empty map that read like a clean one. This adds arm()'s manifest counterpart, manifest_arm, which asserts the resolved (device, model) ROWS and the unresolved list rather than only the verdict, because "no rows" is a state a verdict-only arm cannot see. 11 arms: - the stick's -1bit suffix is the distribution's, not the model name (hrx GLM-4.7-Flash-1bit) - a resolved id earns a real verdict (COVERED on bytes), and can still be DIFFERENT-UPLOAD - an id resolves on stem + quant spec, not prefix: qwen3-4b must not claim qwen3-4b-instruct-2507-q4_k_m.gguf - a repo-style id ending -GGUF resolves; a bare .gguf id is a file name - an id we pin nothing for is reported unresolved, never name-matched - npu rows are skipped, and are not counted as unresolved either - one id owning several pins yields one row per file (the REQUANT mechanism) - mode=, comments, blank and junk lines are not rows The card-writing half of arm() is factored into make_card() so both arms build the same tree; no existing arm changes behaviour (11/11 still pass unchanged). Control: with rows_from_manifest reverted to the #3509 resolver, the new self-test reports 17 ok / 5 failed -- the three -1bit arms resolve to nothing (rows [], unresolved ['GLM-4.7-Flash-1bit']), the instruct arm does the same, and the prefix arm resolves BOTH files for Qwen3-4B (qwen3-4b-instruct-2507-q4_k_m.gguf and qwen3-4b-q4_k_m.gguf), i.e. it claims the instruct model's bytes for the base model. Against the fixed resolver: 22 ok, 0 failed. Real artifact, unchanged by this commit: --manifest on /etc/1bit/onebit-models.txt as the box generates it (24 hrx ids) still resolves 18 of 24, with 6 reported unresolved (MiniCPM-V-4.6, Qwen3-Reranker-0.6B, ZAYA1-8B-PM, flint-40b-a2.5b, jina-reranker-v1-tiny-en, nomic-embed-text-v2-moe) and 5 rows COVERED on bytes. pre-pr-checks.sh --tree-only --base origin/main: 15 green, 3 skipped, 0 could not be told.
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 25, 2026
…#3156) (#3511) #3510 fixed --manifest to resolve the stick's own ids, but the self-test had no arm for that path -- which is exactly why the wrong input shape shipped in #3509: it was validated against a manifest synthesised from the issue's row names, and against the real file it resolved 0 of 24 ids and printed an empty map that read like a clean one. This adds arm()'s manifest counterpart, manifest_arm, which asserts the resolved (device, model) ROWS and the unresolved list rather than only the verdict, because "no rows" is a state a verdict-only arm cannot see. 11 arms: - the stick's -1bit suffix is the distribution's, not the model name (hrx GLM-4.7-Flash-1bit) - a resolved id earns a real verdict (COVERED on bytes), and can still be DIFFERENT-UPLOAD - an id resolves on stem + quant spec, not prefix: qwen3-4b must not claim qwen3-4b-instruct-2507-q4_k_m.gguf - a repo-style id ending -GGUF resolves; a bare .gguf id is a file name - an id we pin nothing for is reported unresolved, never name-matched - npu rows are skipped, and are not counted as unresolved either - one id owning several pins yields one row per file (the REQUANT mechanism) - mode=, comments, blank and junk lines are not rows The card-writing half of arm() is factored into make_card() so both arms build the same tree; no existing arm changes behaviour (11/11 still pass unchanged). Control: with rows_from_manifest reverted to the #3509 resolver, the new self-test reports 17 ok / 5 failed -- the three -1bit arms resolve to nothing (rows [], unresolved ['GLM-4.7-Flash-1bit']), the instruct arm does the same, and the prefix arm resolves BOTH files for Qwen3-4B (qwen3-4b-instruct-2507-q4_k_m.gguf and qwen3-4b-q4_k_m.gguf), i.e. it claims the instruct model's bytes for the base model. Against the fixed resolver: 22 ok, 0 failed. Real artifact, unchanged by this commit: --manifest on /etc/1bit/onebit-models.txt as the box generates it (24 hrx ids) still resolves 18 of 24, with 6 reported unresolved (MiniCPM-V-4.6, Qwen3-Reranker-0.6B, ZAYA1-8B-PM, flint-40b-a2.5b, jina-reranker-v1-tiny-en, nomic-embed-text-v2-moe) and 5 rows COVERED on bytes. pre-pr-checks.sh --tree-only --base origin/main: 15 green, 3 skipped, 0 could not be told. Co-authored-by: bong-water-water-bong <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#3509's
--manifestwas written against a manifest I synthesised from the checklist's row names, and against the real file it resolves nothing:The stick's ids carry the distribution's own suffix (
GLM-4.7-Flash-1bit), and the first cut only stripped-gguf, so no id matched a pinned file name. That is a broken feature the tests did not catch because the test input was the wrong shape.Fix
-1bit,-npu,-gguffrom the id before resolving.qwen3-4b-q4_k_m.ggufisQwen3-4B, whileqwen3-4b-instruct-2507-q4_k_m.ggufis a different model that merely starts with the same text._is_quant_spec()matches the quant first and requires whatever it leaves over to be a size qualifier (ud,xl,xs,xxs).Against the real file
/etc/1bit/onebit-models.txtas shipped on the box (24hrx+ 2npuids), card trees = the corpus +cards-staging+ the staged1bit-*cards:18 of 24 ids resolve; the 6 that do not —
MiniCPM-V-4.6,Qwen3-Reranker-0.6B,ZAYA1-8B-PM,flint-40b-a2.5b,jina-reranker-v1-tiny-en,nomic-embed-text-v2-moe— are printed as unresolved rather than matched by eye, which is the honest answer for ids whose pinned files are not named after them.Note what the expansion shows: an id can legitimately own several pinned files (the 0.6B/1.7B
q8_0rows, GLM'sud-q4_k_xl, zaya'sf16), so the map reports a verdict per FILE, not per catalogue entry. A "shipped" row that pins two quants gets two answers, and the REQUANT lines above are that mechanism working — the card covers the model on one quant and not the other.Self-test:
11 ok, 0 failed, unchanged. It does not yet cover the manifest path — that is the follow-up I owe (the arms are verdict-shaped, and a manifest arm needs a fixture manifest plus a pins file), and it is the reason the wrong input shape got through the first time.