Repository navigation
census-watch: non-Transformers checkpoints are reported, not alerts (engine#296) - #327
Merged
Merged
Conversation
…engine#296) The watcher exempts a custom-code one-off only when the config carries `auto_map`. The `GPT` class in engine#296 comes from Ihatetomatoes/nanoBeard-sloop-14M, a raw `library_name: pytorch` nanoGPT checkpoint (`model_type: nanobeard-gpt`, no `auto_map`, `architectures: ["GPT"]`). Transformers has no implementation of it and no backend can map the class, yet it alerted because the heuristic only looked at `auto_map`. `is_remote_code()` now also returns true for a model published through a non-Transformers runtime library and carrying no `transformers` tag. The three-uploader spread rule, the reviewed-class rule and the conservative unknown-library case are unchanged, so a genuine unmapped class still alerts. tests/census_watch_test.py gets 8 cases, including the same class published through Transformers still alerting and a mapped class staying covered. Co-authored-by: agent <agent@local>
bong-water-water-bong
force-pushed
the
census-watch-non-transformers
branch
from
October 6, 2026 07:29
df35e87 to
318b402
Compare
This was referenced Nov 12, 2026
Merged
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
…2138) Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
At llama.cpp #327, common/jinja/value.cpp works through common_json (common/json.cpp) and global_from_json takes one. At that pin 1bit and npu_template_test failed to link (undefined common_json::is_null() and the rest, then global_from_json<ordered_json>). - onebit_jinja compiles common/json.cpp. Its JSON_ASSERT is GGML_ASSERT, and the binary does not link ggml, so app/jinja_ggml_abort.cpp defines ggml_abort(): the same file:line message on stderr, then abort(). ggml.h is read for the declaration only. - render_chat_template hands the renderer common_json::parse(in.dump()). common_json is an ordered_json underneath, so the request's key order survives the round trip. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
#327 squash-merged into 1bit/hrx-vulkan-patched as 2f7f04f0d, which is that branch's head. It contains the old pin e6c80014 and fork #335 (039edcc55), the commit #327's head lacked. Regenerated at that tree, the registry changes only the recorded pin: the same 350 mappings and the same six mapped_ok classes as at 2c178f44. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 13, 2026
…2368) The one UNCOVERED line of the 2026-11-13 run (Skyl4r-Ai/Skylar2-1B-Instruct). Read from its config.json and safetensors header: a from-scratch KDA + GQA hybrid in a 3:1 pattern. Its KDA layers have low-rank f/g gates and per-q/k/v short convs, and its GQA layers a per-head output gate. Every norm is a gated RMSNorm (rank 16), every sublayer has an attention-residual mixer, and the FFN uses situ_glu. No pinned graph has those tensors. It is neither KimiLinear nor llama.cpp #327's Kimi K3 (MLA, full-rank gate, latent MoE). significant.json records it as report-only, and docs/arch-gaps.md carries the dated review. census_watch_test checks that the run's upload exits 0 and is listed REVIEWED; dropping the entry fails all three checks. Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
…2138) Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
At llama.cpp #327, common/jinja/value.cpp works through common_json (common/json.cpp) and global_from_json takes one. At that pin 1bit and npu_template_test failed to link (undefined common_json::is_null() and the rest, then global_from_json<ordered_json>). - onebit_jinja compiles common/json.cpp. Its JSON_ASSERT is GGML_ASSERT, and the binary does not link ggml, so app/jinja_ggml_abort.cpp defines ggml_abort(): the same file:line message on stderr, then abort(). ggml.h is read for the declaration only. - render_chat_template hands the renderer common_json::parse(in.dump()). common_json is an ordered_json underneath, so the request's key order survives the round trip. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
#327 squash-merged into 1bit/hrx-vulkan-patched as 2f7f04f0d, which is that branch's head. It contains the old pin e6c80014 and fork #335 (039edcc55), the commit #327's head lacked. Regenerated at that tree, the registry changes only the recorded pin: the same 350 mappings and the same six mapped_ok classes as at 2c178f44. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
912c079d8 is 2f7f04f plus llama.cpp#337 (b1fd5e8eb: the parser tools, HRX ctest rows and working files the #327 squash missed) and #339 (13 HRX tests return 77 without an HRX0 device). Both are tests and tools only, with no src/ggml/include/common change. Regenerated, the registry changes only the recorded pin. Full build + ctest at this pin: the same 2 non-linking NPU targets; the only steady failure is hrx_f16_narrowing_check. Four tests failed under a load average of ~58 (spec_decode_acceptance, tool_help_check_tests, npu_pack_import, npu_serve_smoke_self) and passed rerun on their own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 13, 2026
…t definitions + #341) 912c079d8 could not link its routed MoE kernels (unresolved exact declaration '@ggml_codebook_f16_vector4', measured by pi-os3 serving flint). llama.cpp#345 defines the motifs the #327 merge left declared; #341 aligns the HRX suites' kernel-name checks with the merged tree. Registry regenerated for the pin. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 13, 2026
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 14, 2026
…ixes and the #2392 labels) 15 fork commits past 6485e5d69. They include the four host-tier checks the #327 merge left asserting retired forms (#352, engine#2388, now closed: loom host tier 87/0), HostWeightCache's gauges and the misaligned-pointer refusal (#356/#357/#358, engine#2393), and the add-on case labels (#355/#359/#362, engine#2392). Registry regenerated. hrx_f16_narrowing --write records one guard GAINED (flash_attention/online_softmax: #347 floors the max before the scale); none lost. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 14, 2026
…337/#339), and the engine builds and tests against it (refs #2138) (#2357) * third_party/llama.cpp: pin to llama.cpp #327's head 2c178f44 (engine#2138) Co-Authored-By: Claude Opus 5.5 <[email protected]> * chat template: build against #327's common_json (engine#2138) At llama.cpp #327, common/jinja/value.cpp works through common_json (common/json.cpp) and global_from_json takes one. At that pin 1bit and npu_template_test failed to link (undefined common_json::is_null() and the rest, then global_from_json<ordered_json>). - onebit_jinja compiles common/json.cpp. Its JSON_ASSERT is GGML_ASSERT, and the binary does not link ggml, so app/jinja_ggml_abort.cpp defines ggml_abort(): the same file:line message on stderr, then abort(). ggml.h is read for the declaration only. - render_chat_template hands the renderer common_json::parse(in.dump()). common_json is an ordered_json underneath, so the request's key order survives the round trip. Co-Authored-By: Claude Opus 5.5 <[email protected]> * registry: regenerate at 2c178f44, six reviewed classes are now real architectures (engine#2138) registry_pins failed after the pin move (recorded e6c80014e, pinned 2c178f44b); tools/registry_build.py regenerates it (hrx 350, npu 9). Then registry_gaps failed: six classes docs/arch-gaps.md had declined are mapped at the new pin. Each has its own converter class, LLM_ARCH_ entry and src/models/*.cpp graph at 2c178f44, so each gets a mapped_ok reason and a dated note: HrmTextForCausalLM, MuseSparkForConditionalGeneration, Glm5NextForConditionalGeneration, GraniteSwitchForCausalLM, Lfm3ForCausalLM, and DFlash2DraftModel. For DFlash2 this is the condition the page set: the converter writes the conv and selector keys and codebooks, and dflash.cpp builds both heads. Co-Authored-By: Claude Opus 5.5 <[email protected]> * census_watch_test: the classes pin 2c178f44 implements are covered, not declined (engine#2138) After the registry regenerated at 2c178f44, 22 checks failed. Each one used DFlash2, Muse Spark, Granite Switch, LFM3, MiniCPM-V 4.7 or MiniCPM-OCR as its example of a declined or unmapped class, and the live registry now maps all six for hrx. - Section 15b asserts the four reviewed classes as covered and silent, each with a mapped_ok reason and a dated docs/arch-gaps.md note, the way DeepseekV41 moved at 5e6388a5a. - The FLM pack rows for MiniCPM-V 4.7, MiniCPM-OCR, DFlash2 and LFM3 take the hrx-only NPU-gap branch Hy-Memory already used. - The unmapped FLM example is the same recorded listing against a registry without MiniCPM-V 4.7 (the one before this pin), so the listing payload is not edited. The live registry's `!! NPU FLM` line for it is checked too. - The declined-pack example is an inline NeedleForToolCalling entry; LFM3 is no longer declined. A mutant that drops Lfm3ForCausalLM's mapped_ok fails 15b. Co-Authored-By: Claude Opus 5.5 <[email protected]> * third_party/llama.cpp: pin to #327's merge commit 2f7f04f0 (engine#2138) #327 squash-merged into 1bit/hrx-vulkan-patched as 2f7f04f0d, which is that branch's head. It contains the old pin e6c80014 and fork #335 (039edcc55), the commit #327's head lacked. Regenerated at that tree, the registry changes only the recorded pin: the same 350 mappings and the same six mapped_ok classes as at 2c178f44. Co-Authored-By: Claude Opus 5.5 <[email protected]> * third_party/llama.cpp: pin to the fork head 912c079d8 (engine#2138) 912c079d8 is 2f7f04f plus llama.cpp#337 (b1fd5e8eb: the parser tools, HRX ctest rows and working files the #327 squash missed) and #339 (13 HRX tests return 77 without an HRX0 device). Both are tests and tools only, with no src/ggml/include/common change. Regenerated, the registry changes only the recorded pin. Full build + ctest at this pin: the same 2 non-linking NPU targets; the only steady failure is hrx_f16_narrowing_check. Four tests failed under a load average of ~58 (spec_decode_acceptance, tool_help_check_tests, npu_pack_import, npu_serve_smoke_self) and passed rerun on their own. Co-Authored-By: Claude Opus 5.5 <[email protected]> * engine#2138: pin llama.cpp to 6485e5d69 (the fork head: #345's dequant definitions + #341) 912c079d8 could not link its routed MoE kernels (unresolved exact declaration '@ggml_codebook_f16_vector4', measured by pi-os3 serving flint). llama.cpp#345 defines the motifs the #327 merge left declared; #341 aligns the HRX suites' kernel-name checks with the merged tree. Registry regenerated for the pin. Co-Authored-By: Claude Opus 5.5 <[email protected]> * engine#2138: record the 34 narrowing bodies and 11 f16 accumulators the AMD merge brings, by what feeds them hrx_f16_narrowing.py --write at the #2357 pin (6485e5d69). It refuses to write a smaller guard set, and none was lost: the 10 guarded bodies are unchanged. The narrowing baseline header groups the new bodies by the producer of the narrowed operand: unguarded f32 activations into f16 WMMA tiles (engine#1962's open question), AMD's routed f16_projection_q{4,5,6}k without this line's guard marker (engine#2127), dequantized weights, attention probabilities/scales, published f16 outputs, q8_1 d/s, gated-delta-net state, and one test kernel. dequant.loom 20 -> 21 is #345's ggml_codebook_f16_vector4. The stale attention_postprocess_f32_f16 line is dropped (3 -> 0). Co-Authored-By: Claude Opus 5.5 <[email protected]> * engine#2138: pin llama.cpp to ca5aac715 (fork head: the #2388/#2393 fixes and the #2392 labels) 15 fork commits past 6485e5d69. They include the four host-tier checks the #327 merge left asserting retired forms (#352, engine#2388, now closed: loom host tier 87/0), HostWeightCache's gauges and the misaligned-pointer refusal (#356/#357/#358, engine#2393), and the add-on case labels (#355/#359/#362, engine#2392). Registry regenerated. hrx_f16_narrowing --write records one guard GAINED (flash_attention/online_softmax: #347 floors the max before the scale); none lost. Co-Authored-By: Claude Opus 5.5 <[email protected]> * engine#2138: pin llama.cpp to e1be68de6 (fork head: #364, test-hrx-buffer agrees with #356) The 04:10Z CHANGES at f7d3265 named a regression the #2393 fixes introduced: after #356 HostWeightCache::clear() keeps the lifetime counts, as AMD's does, but our test-hrx-buffer still asserted hits == 0 after a clear. #364 makes that test expect the lifetime counts, so both suites assert one contract. The fork diff ca5aac715..e1be68de6 is that one test file. Registry regenerated; the narrowing baselines are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * engine#2138: pin llama.cpp to a21b25099 (fork head: #365 and two test-only commits) #365 makes AMD's hrx-loom-jit-test pass the compile configs this line's kernels require (value_stride, ssm_conv n_t/n_s, copy_transpose_f16 shape), the remaining unexplained suite in the 05:42Z CHANGES at 1afedb3. The other two commits (#1c436c2ee, 8ce550f08) are also tests only: e1be68de6..a21b25099 touches no ggml/, src/ or common/ file. Registry regenerated; the narrowing baselines are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> * engine#2138: pin llama.cpp to ea2d2eb07 (fork head: #2404's hrx-loom-jit-test fixes) a21b25099..ea2d2eb07 is one test file (tests/hrx-loom-jit-test.cpp, ed1e594f7 and ea2d2eb07): the Dynamic-workload gap is labelled known-fail instead of failing, so AMD's hrx-loom-jit-test is 6/0/1 known-fail (pi-os3, 07:35Z) and engine#2404 is closed. No ggml/, src/ or common/ change. Registry regenerated; narrowing baselines unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: bong-water-water-bong <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Nov 14, 2026
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 14, 2026
…the MTP one-request test, and Flash-Next's load fix Three commits on the fork head 59967468e, seven files, none of them in ggml-hrx's runtime or kernel corpus: 1f107b11d qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381) 550d06f92 hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380) a74752b64 tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379) 1f107b11d is taken at the reviewer's request rather than bumping twice: Linux #381 merged 80 s after this PR opened, so the first version could not carry it. Verified at this pin (fork build-ops, 1f107b11d checked out): * BUILD_RC=0 * the load fix needs the architecture table, and it runs with no device: test-llama-archs -> Summary: all 149 test(s) passed, 0 GGML_ASSERT, zamba2 and zaya included * the dispatch change is plan-level, so its own cases also need no device. Run of the two discriminating cases at this pin: 2 passed, 0 failed, 0 known-fail, 0 unexpected-pass [PASS] mixed_format_swiglu_decode.q4k_q6k.t1 <- FAILS at the pre-#380 base, so the case does the work [PASS] mixed_format_swiglu_decode.q6k_q6k.t1 (the third, q4k_q6k.t2, is the labelled known-fail; I ran all three at 59967468e and t2 reported known-fail as labelled -- 2 passed, 1 known-fail, 0 unexpected-pass) * registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0 Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both need the GPU, which another lane holds (the run I did printed 'test skipped: no device available'). Nothing in these three commits touches a buffer, an import or the MTP drafter: #380 is a matcher predicate, #379 is a script plus a ctest row, and #381 is two model files plus a synthetic-GGUF fixture.
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 14, 2026
… load fix, the decode policy, the MTP test Four commits on the fork head 59967468e, eight files, none of them in ggml-hrx's runtime or kernel corpus: a621453cd test-llama-archs: zaya's mixed-batch column is SKIP, not a coin toss (engine#2444) (#382) 1f107b11d qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381) 550d06f92 hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380) a74752b64 tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379) This pins the head rather than a sha behind it, per the review: 550d06f92 was the exact tree whose row in #381 read "abort at context creation", so pinning short of it would ship a llama.cpp in which Flash-Next cannot load. #382 is test-only (7 lines) and converts zaya's mixed-batch column to SKIP with the reason -- chunked and mixed decodes differ ~1e-8 and its top-1 router over n_expert+1 flips about 1 seed in 20, so the column was a coin toss rather than a check. Verified at this pin (fork build-ops, a621453cd checked out): * BUILD_RC=0 * test-llama-archs -> Summary: all 149 test(s) passed, 0 GGML_ASSERT, 352 rows, zamba2 and zaya included. One disclosure: the FIRST run at this head died with rc=135 (SIGBUS) at the third row while the box showed 11.4 % iowait and four processes in D state on folio_wait_bit_common; an immediate retry of the same binary on the same tree passed all 149. Environmental, not the pin -- and reported because a SIGBUS at row 3 is otherwise indistinguishable from a model regression. * the dispatch change is plan-level, so its own cases need no device. At 1f107b11d: 2 passed, 0 failed, 0 known-fail, 0 unexpected-pass of the two discriminating cases; at 59967468e all three ran as 2 passed / 1 known-fail / 0 unexpected-pass, and q4k_q6k.t1 FAILS at the pre-#380 base, so the case does the work it claims. * registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0 Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both need the GPU, which another lane holds (the run I did printed 'test skipped: no device available'). Nothing in these four commits touches a buffer, an import or the MTP drafter: #380 is a matcher predicate, #379 a script plus a ctest row, #381 two model files plus a synthetic-GGUF fixture, and #382 a test column.
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 14, 2026
… load fix, the decode policy, and per-arch test isolation Five commits on the fork head 59967468e, nine files, none of them in ggml-hrx's runtime or kernel corpus: c84f0fc6e test-llama-archs: one child process per architecture, so an abort marks its row (engine#2444) (#383) a621453cd test-llama-archs: zaya's mixed-batch column is SKIP, not a coin toss (engine#2444) (#382) 1f107b11d qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381) 550d06f92 hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380) a74752b64 tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379) Why the head and not a sha behind it: 550d06f92 is the exact tree whose row in #381 read "abort at context creation", so pinning short of it ships a llama.cpp in which Flash-Next cannot load. The last two commits are test-only (7 and 143 lines in tests/test-llama-archs.cpp). Verified at this pin (fork build-ops, c84f0fc6e checked out): * BUILD_RC=0 * test-llama-archs -> Summary: all 172 architecture(s) passed, each in its own process The count is not comparable to the 149 reported before #383: that number counted test rows, this one counts architectures, one child each. The harness now says so in its own summary line, which is the property that matters -- an assert, a SIGBUS or an OOM kill reddens THAT row instead of ending the table. Which is not hypothetical: my first run at a621453cd died rc=135 (SIGBUS) at row 3 with 11.4 % iowait and four D-state processes, and an immediate retry of the same binary passed all 149. Under the old harness that crash was indistinguishable from a model regression from the exit code alone. * the dispatch change is plan-level, so its own cases need no device. At 1f107b11d: 2 passed, 0 failed, 0 known-fail, 0 unexpected-pass of the two discriminating cases; at 59967468e all three ran as 2 passed / 1 known-fail / 0 unexpected-pass, and q4k_q6k.t1 FAILS at the pre-#380 base. * registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0 Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both need the GPU, which other lanes' hw-gate run and tickets have held all evening (the run I did printed 'test skipped: no device available'). Nothing in these five commits touches a buffer, an import or the MTP drafter.
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 14, 2026
… load fix, the decode policy, and per-arch test isolation (#2448) Five commits on the fork head 59967468e, nine files, none of them in ggml-hrx's runtime or kernel corpus: c84f0fc6e test-llama-archs: one child process per architecture, so an abort marks its row (engine#2444) (#383) a621453cd test-llama-archs: zaya's mixed-batch column is SKIP, not a coin toss (engine#2444) (#382) 1f107b11d qwen4exp: drop two pre-#327 blocks AMD's design replaced (Flash-Next could not load); blackmamba loads (#381) 550d06f92 hrx: one-token decode with a mixed-format gate/up runs unfused (+1.5 % on Qwen3.8-27B Q4_K_M) (#380) a74752b64 tests: test-mtp-one-request, one llama-server request with MTP drafting on the CPU (engine#2433) (#379) Why the head and not a sha behind it: 550d06f92 is the exact tree whose row in #381 read "abort at context creation", so pinning short of it ships a llama.cpp in which Flash-Next cannot load. The last two commits are test-only (7 and 143 lines in tests/test-llama-archs.cpp). Verified at this pin (fork build-ops, c84f0fc6e checked out): * BUILD_RC=0 * test-llama-archs -> Summary: all 172 architecture(s) passed, each in its own process The count is not comparable to the 149 reported before #383: that number counted test rows, this one counts architectures, one child each. The harness now says so in its own summary line, which is the property that matters -- an assert, a SIGBUS or an OOM kill reddens THAT row instead of ending the table. Which is not hypothetical: my first run at a621453cd died rc=135 (SIGBUS) at row 3 with 11.4 % iowait and four D-state processes, and an immediate retry of the same binary passed all 149. Under the old harness that crash was indistinguishable from a model regression from the exit code alone. * the dispatch change is plan-level, so its own cases need no device. At 1f107b11d: 2 passed, 0 failed, 0 known-fail, 0 unexpected-pass of the two discriminating cases; at 59967468e all three ran as 2 passed / 1 known-fail / 0 unexpected-pass, and q4k_q6k.t1 FAILS at the pre-#380 base. * registry regenerated for the new pin, tools/registry_build.py --check-pins rc 0 Not run, and not claimed: hrx-buffer-test's 9 device cases and #379's test-mtp-one-request.sh both need the GPU, which other lanes' hw-gate run and tickets have held all evening (the run I did printed 'test skipped: no device available'). Nothing in these five commits touches a buffer, an import or the MTP drafter. Co-authored-by: bcloud <agent@local>
bong-water-water-bong
pushed a commit
that referenced
this pull request
Nov 14, 2026
…aimed
SKIP_DIRS had tests/data/ and the docstring said tests/ - so the docstring described a blind
spot the code did not have, and the code had one the docstring did not describe: a guard-shaped
line deleted from any test file was reported, and would have turned the new pre-pr-checks row
red for a deliberate assertion rewrite.
The decision, measured rather than argued:
* the code was the wrong half. A test's REQUIRE/CHECK is a fixture, not the product's refusal,
and the heuristic cannot see that style in any case - REQUIRE is not in GUARD_KEYWORDS, so
"REQUIRE(!x)" replaced by "REQUIRE(true)" produced NO hit before or after this change. The
skip therefore loses nothing the tool could catch.
* what it does remove is noise that is decided on purpose: over 55 no-merge commits of the fork
branch, 72 LOST hits, 8 of them in tests/, every sampled one a deliberate assertion rewrite.
(Those 72 are not a false-positive rate: the fork branch at that point was a chain of #327's
guard-dropping merges, and the first one sampled is #371's alignment guard, a TRUE positive.
The number that matters for the row is the engine, where it runs: 0 LOST over 11 open heads.)
Two arms pin the boundary in both directions, because the failure mode of a skip is being too
wide: a guard deleted under tests/ is not reported, and the SAME guard under src/ still is.
Reverting the skip turns the first arm red; adding src/ to SKIP_DIRS turns the second red; both
restored green.
bong-water-water-bong
added a commit
that referenced
this pull request
Nov 14, 2026
…osed on the rewrite path (#2451) * pre-pr-checks: run guard_loss_check, and fix the crash it exposed on the rewrite path The check landed in #2429 with a false-positive rate measured over 15 open PR heads and no runner, deliberately: a hit needs a human to decide re-shape vs loss. Wiring it for real is what found the first defect in it. **The bug.** check()'s print loop unpacks `moved` entries as 3-tuples, and the "guard rewritten in place, identifiers still present" path appended 2-tuples. So any diff that rewrites a guard - the common, benign shape - raised ValueError, and Python's traceback exits **1**, which is the LOST exit code. A crash wearing a verdict, in the tool whose subject is exactly that. Fixed, with a self-test arm (rewritten in place -> note, rc 0) that turns red when the 2-tuple is put back. Nothing else in the tool changes: the rarity rule, the head-tree search, the three-way exits and the 15 arms are as merged. **The row.** `tools/ci/guard_loss_check.py --check --base $base`, beside the other --base checks and before hip_f16_audit (which is the one row that depends on a fetched tree). Added to docs/pre-pr-checks.md at the same position, because the runner refuses to run when the page and the array disagree about which checks run or their order. Measured on this branch: `all 10 check(s) green, 1 skipped`, and the row prints its own verdict ("0 removed guard-shaped line(s), 0 lost, 0 rewritten"). A non-zero rc from it becomes a failed row like any other - which is what makes the LOST exit code mean something now. The row is a real check, not a note tier: a LOST means a refusal was deleted and nothing replaced it, which is the class six restore PRs in one night were written for. The human decision ("is this a re-shape or a loss?") happens after the row goes red, the same as registration_loss and branch_stale. * docs: the pre-pr-checks counts and order sentence, without a cardinal to age Adding a row made two prose statements wrong, and both were already wrong before this branch: docs/pre-pr-checks.md "runs the first ten" -> the runner has eleven rows CONTRIBUTING.md "the six host-side checks" -> stale by five docs/pre-pr-checks.md "the check that needs a revision (registration_loss_check --base) last" -> four checks take --base, and the last row needs a fetched tree, not a revision The runner enforces that its array and the page's *table* agree in content and order, and that is the check that matters, but it cannot see prose: a number in a sentence is a fact that ages the moment a row is added, and this page has already drifted twice in one night over exactly this. So the numbers are gone rather than bumped -- "runs every command in the table below", "one further check is an author's check", "last the checks that need a revision (--base) or a fetched tree" -- and the page can now gain a row without a doc edit. Measured after: `bash scripts/pre-pr-checks.sh` -> 10 green, 1 skipped, rc 0, including its own page/array agreement step. * guard_loss_check: skip tests/, which is what the docstring already claimed SKIP_DIRS had tests/data/ and the docstring said tests/ - so the docstring described a blind spot the code did not have, and the code had one the docstring did not describe: a guard-shaped line deleted from any test file was reported, and would have turned the new pre-pr-checks row red for a deliberate assertion rewrite. The decision, measured rather than argued: * the code was the wrong half. A test's REQUIRE/CHECK is a fixture, not the product's refusal, and the heuristic cannot see that style in any case - REQUIRE is not in GUARD_KEYWORDS, so "REQUIRE(!x)" replaced by "REQUIRE(true)" produced NO hit before or after this change. The skip therefore loses nothing the tool could catch. * what it does remove is noise that is decided on purpose: over 55 no-merge commits of the fork branch, 72 LOST hits, 8 of them in tests/, every sampled one a deliberate assertion rewrite. (Those 72 are not a false-positive rate: the fork branch at that point was a chain of #327's guard-dropping merges, and the first one sampled is #371's alignment guard, a TRUE positive. The number that matters for the row is the engine, where it runs: 0 LOST over 11 open heads.) Two arms pin the boundary in both directions, because the failure mode of a skip is being too wide: a guard deleted under tests/ is not reported, and the SAME guard under src/ still is. Reverting the skip turns the first arm red; adding src/ to SKIP_DIRS turns the second red; both restored green. --------- Co-authored-by: t <[email protected]>
This was referenced Nov 22, 2026
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.
Fixes #296.
The watcher exempted a custom-code one-off only when the config carried
auto_map. TheGPTclass in #296 isIhatetomatoes/nanoBeard-sloop-14M:library_name: pytorch,model_type: nanobeard-gpt,architectures: ["GPT"], noauto_map. Transformers has no implementation ofnanobeard-gptand no pinned backend accepts aGPTarchitecture, so the class is a one-off, but it alerted.is_remote_code()now also returns true when a model is published through a non-Transformers runtime library and carries notransformerstag. Everything else is unchanged: the same class fromREMOTE_CODE_SPREAD(3) uploaders still alerts, a reviewed class still alerts, and a model with an unknownlibrary_nameis still treated as native, soLlavaLlamaForCausalLMand the like keep alerting.Checks:
python3 tests/census_watch_test.py- 8 new cases, all pass: the exact census: new HF model class uncovered by the registry #296 record now exits 0 and is printed asREMOTE-CODE GPT; the same class throughtransformersstill exits 1; a mapped class stays covered; apytorchlibrary with thetransformerstag still alerts.python3 tools/copyright.py --check- clean.python3 tests/registry_gaps_test.py- pass.census_watch.pysweep of the newest 120: no false negative; the two classes it quiets are the pre-existingauto_mapone-offs.Files:
tools/census_watch.py,tests/census_watch_test.py,docs/registry.md.