Skip to content

ci: registry content is never checked — a hand-edited architectures.json merges green (registry_pins compares only the recorded sha) #2698

Closed

Description

@bong-water-water-bong

What

registry/architectures.json has two axes that a pin bump can move: the sources pin (one sha) and the content (which architectures, which backends, which GGUF names the runtime builds). Only the first is checked by CI.

  • --check-pins (ctest registry_pins, in the build job) compares sources["llama.cpp (hrx)"] with the gitlink. It never reads the fork, so it cannot see a content edit.
  • --check — regenerate from the pinned fork and compare — is the form that reads content, and no PR job runs it. census.yml runs it daily but only opens a PR when the regenerated file differs, and exits early when that day's branch already exists.
  • --check-gaps (ctest registry_gaps) only looks at the 44 reviewed classes in registry/significant.json.

Why it matters

The content is compiled. CMakeLists.txt:138-151 reads gguf_architectures.hrx out of this file and writes build/generated/hrx_archs.h, and app/serve.cpp refuses an architecture that is not in it. So a content edit is a change to what 1bit serve will accept, and a backends edit is a change to what the registry claims the product runs.

Measured on main 3e591b1 (fork checked out at the pin 148e7f329)

Control:

$ tools/registry_build.py --check        -> rc 0   "matches the pinned sources"
$ tools/registry_build.py --check-pins   -> rc 0   "records the committed pins"

Arm 1 — delete one entry from the compiled list (gguf_architectures.hrx, 171 -> 170; one line, sources untouched):

$ tools/registry_build.py --check-pins   -> rc 0   "records the committed pins"      <- the only CI row
$ tools/registry_build.py --check        -> rc 1   "is stale: run tools/registry_build.py"

Arm 2 — change one per-architecture row (AfmoeForCausalLM backends ["hrx"] -> ["npu"], one line):

$ tools/registry_build.py --check-pins   -> rc 0
$ tools/registry_build.py --check-gaps   -> rc 0   "none of the 44 reviewed significant classes ..."
$ tools/registry_build.py --check        -> rc 1

Both edits also leave counts disagreeing with the file's own rows, and neither CI row notices that either.

Fix

A ctest row registry_content = tools/registry_build.py --check, in the job that already checks out third_party/llama.cpp (build, ci.yml:77), skipping (rc 77) where the fork is not checked out — the same shape as hrx_f16_narrowing_check (engine#1962). Plus a hermetic arm (a fake fork + a fake gitlink) so the row's own mutant is in the suite, and one line in docs/registry.md.

Activity

  1. bong-water-water-bong commented on Nov 16, 2026

    @bong-water-water-bong
    CollaboratorAuthor

    CLAIM cl-game 16:0xZ (finder; the lane's own rows are all closed). Fix: ctest registry_content = registry_build.py --check, rc 77 where the fork is not checked out, a hermetic arm, one docs line. Evidence in the issue is measured on main 3e591b1. -> PR #2699 at 5633652.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions