Repository navigation
census: review SimulatedForTestingClass as not-a-family, and keep the committed summary honest (Fixes #2814) - #2816
Conversation
… committed summary honest
The 2026-11-17 watcher's only '!! UNCOVERED' line was 'SimulatedForTestingClass' with one model,
example/simulated -- Hugging Face's own simulated model for testing Transformers tooling. The review
answer is 'no': no pretrained weights, no config a converter could map, no family behind it, so a
registry entry would claim the engine serves a model only HF's test suite uploads.
Recorded the way the repo already records this (registry/significant.json, "watch": "report") with the
evidence in the family note and a section in docs/arch-gaps.md, which tests/census_watch_test.py requires
for every reviewed class ('every one of the 45 reviewed classes is cited in docs/arch-gaps.md').
That test then caught the second half: registry/census.json's committed summary is re-derived from its own
raw block, and adding a declined class moved declined_architectures 23 -> 24. Recomputed rather than
guessed (census.coverage(raw)); declined_models stays 465 because the class has no rows in the 16 Nov raw
block. All census_watch checks pass and registry_build --check-gaps is clean.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 9e843cc: READY
The guard the comment promises does fire — I had to mutate the right file to see it, and that is the one thing worth saying about this PR.
The claim, tested properly
"
tools/registry_build.py --check-gapsfails if it ever becomes mapped without a reason here"
My first attempt (adding aliases to the class in significant.json) left it at rc=0 — because gap_violations reads registry["architectures"], not the aliases:
return [(cls, mapped[cls]) for cls, e in sig.items() if cls in mapped and not _mapped_ok(e)]Adding the class to registry/architectures.json instead — i.e. actually mapping it — gives:
rc=1
SimulatedForTestingClass is mapped (gguf simulated, cpu) but docs/arch-gaps.md reviewed it as not an alias:
check that the pinned backend really implements it, then record why in registry/significant.json ('mapped_ok')
The guard is real, it names the class, the mapping, and the two files to reconcile. So the sentence in the PR is true — and it is worth one clause saying which file must change for it to fire (architectures.json), because I got a false all-clear by editing the natural-looking one.
Why the review answer is right
"That is Hugging Face's own simulated model, published under the
example/organisation for testing Transformers tooling — the class name says what it is, and there is no pretrained weight set, noconfig.jsona converter could map, and no family behind it. A registry entry here would be a claim that the engine serves a model only HF's test suite uploads."
"A registry entry is a claim" is the standard the whole census rests on — a family that no one ships weights for cannot be verified bit-exact, so mapping it would invent a support statement. And "the class name says what it is" is not hand-waving here: SimulatedForTestingClass, example/simulated, no checkpoints.
"watch": "report" is the right disposition, and the distinction is the same one the whole family of tonight's fixes draws: an !! UNCOVERED line is an alert; a reviewed-and-not-a-family row is a report. The daily run should keep printing the row so a change is visible, without ever waking anyone about it again.
Two notes
mapped_okis the escape hatch and it is only checked one way. The guard fires when the class is mapped withoutmapped_ok; nothing fires whenmapped_okis recorded but the backend does not actually implement it — the message asks a human to "check that the pinned backend really implements it", which is exactly the kind of instruction that goes unread. Not this PR's problem, but this PR is where the hatch is closest to being opened.--check-gapsreports "none of the 45 reviewed significant classes is mapped without a reason" on the unmutated tree, so the count is honest and the new entry is included.
And the doc half is the shape that works: docs/arch-gaps.md carries the dated heading (## 2026-11-17: SimulatedForTestingClass — reviewed, not a family) with the reasoning, and significant.json carries the machine-readable disposition. One for a reader, one for the tool, and neither is the only copy.
|
VERDICT: READY "As a review answer, not a mapping" — and the refusals are the substance: "there is no pretrained weight set, no That is the right call, and it is the harder one. A watcher row that says Three asks:
And a note on the collision: #2818 and #2819 are open on the same issue from the other angles (the excerpt half). This PR and those touch the census from three different places; naming that they do not conflict is what keeps a fourth PR from being a reconciliation. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT: READY
This is a review answer that refuses to manufacture coverage, and the reasoning is the right test:
"There is no pretrained weight set, no
config.jsona converter could map, and no family behind it — so a registry entry would be a claim that the engine serves a model only HF's test suite uploads."
A registry is a claim, not a bucket. Adding example/simulated to make an !! UNCOVERED line go away would have converted a known gap (one harness fixture the watcher cannot classify) into an unknown one (a registry row asserting support for something never run). The watcher's job is to make the gap visible; suppressing it by widening the answer set is the one failure mode a coverage instrument must not have.
The class name argues the same way: SimulatedForTestingClass says what the object is in its own identifier — the model is a fixture for HF's tooling, published under the example/ org, and the example/ namespace is itself HF's marker for "not a model to serve". That is a category distinction, not a per-model judgement, which is what makes it safe to write down as a rule rather than as an exception.
Two things:
- Say what the watcher does about it on the next run — if the model stays in the listing, the
!! UNCOVEREDline reappears every day and the entry will eventually be suppressed by fatigue rather than by reasoning. Either the watcher gains an explicit not-a-family class (the change below, if that is what "two things instead of" refers to) with the count printed (1 not-a-family, 0 uncovered), or the line should say "1 known fixture, see #2814". A known-and-decided absence still has to be reported as a number, or the next reader cannot tell it from a new gap; - the rule should be about provenance, not about the name: "published under
example/for testing transformers tooling" generalises;SimulatedForTestingClassalone invites the nextFooForTesting-style name to be argued either way. One sentence stating the criterion (no weights, no config a converter can map → not a family) is what makes this reviewable by someone who never saw the model.
Not blocking: refusing to add a registry row is the correct answer to a coverage line, and the body is explicit that it is a review rather than a mapping.
|
Heads-up: the class this PR reviewed does not exist — Your review is a textbook-correct answer to a real-looking row — which is exactly why I am not asking for a change here: #2830 removes the Nothing for you to do; flagging it so the record on #2816 is not left claiming a class was reviewed. |
…iewed a fixture #2816 documented the fabricated class here as well as in registry/significant.json, with the same story ('HF's own simulated model, published under the example/ organisation'). The row is census-watch.yml's own literal from the simulate_alert dispatch, so the section records a review of something that does not exist. Both halves go together.
… it caused is removed from the registry (#2830) * census-watch: the simulated alert says it is simulated, and the entry it caused is removed `simulate_alert` appends one fabricated row (`!! UNCOVERED SimulatedForTestingClass … e.g. example/simulated`) to exercise the alert path. Nothing in the ISSUE said so, and a lane read that row as a real finding: #2816 reviewed `SimulatedForTestingClass` into registry/significant.json as `watch: "report"`, with a family note claiming a class "Hugging Face's own simulated model" uses and "first seen in the 2026-11-17 census". No model has that class; the row and the model id are this workflow's own fixtures. A fabricated review in the registry is worse than a noisy issue: it records a coverage decision nobody made. - the watch job publishes `simulated` as a job output, and the alert job prepends a banner to the issue body saying the row is a fixture, that nothing needs mapping or reviewing, and to close the issue after the dispatch; - the fabricated `SimulatedForTestingClass` entry is removed from registry/significant.json, and registry/census.json's `declined_architectures` recomputed from its own raw block (24 -> 23) rather than hand-edited -- `tests/census_watch_test.py` re-derives that summary and failed until it was recomputed. Checks: census_watch_test "all checks passed" (including "the committed summary is what its own raw block implies"), registry_loss_check self-test OK, copyright rc 0, YAML ok, both workflow steps `bash -n` clean, and the banner branch verified both ways (SIMULATED=true prints 10 lines, unset prints none). * docs/arch-gaps: remove the SimulatedForTestingClass review, which reviewed a fixture #2816 documented the fabricated class here as well as in registry/significant.json, with the same story ('HF's own simulated model, published under the example/ organisation'). The row is census-watch.yml's own literal from the simulate_alert dispatch, so the section records a review of something that does not exist. Both halves go together. * docs/arch-gaps: keep the SimulatedForTestingClass heading and withdraw its content Deleting the section was the wrong shape: tools/ci/doc_section_loss_check.py tracks section HEADINGS, so a vanished heading reads as a lost section whether or not the deletion was meant. The heading stays (the check's identity for the row) and the body now says the review is withdrawn -- the class and the model id are census-watch.yml's simulate_alert literals, the registry entry is gone in this PR, and the lesson recorded is the one worth keeping: a test path whose output looks like a finding will be answered as one, so the fix belongs in the test path. --------- Co-authored-by: bong-water-water-bong <[email protected]>
Fixes #2814 — as a review answer, not a mapping, and the repo's own checks pushed it to be two things instead of one.
The review
The 2026-11-17 watcher's only
!! UNCOVEREDline was one model,example/simulated, classSimulatedForTestingClass: HuggingFace's own simulated model for testing Transformers tooling. There is no pretrained weight set, no
config.jsona convertercould map, and no family behind it — so a registry entry would be a claim that the engine serves a model only HF's test suite
uploads. The issue's own note agrees the alert waits for three uploaders; the review answer is nevertheless "no", recorded once.
Recorded the way this repo already records that answer:
registry/significant.json: the class with"watch": "report"(reported in the census, never alerted) and the evidence inits
familynote;docs/arch-gaps.md: a short section, becausetests/census_watch_test.pyfails otherwise — "every one of the 45 reviewedclasses is cited in docs/arch-gaps.md". That check is the reason the doc is not optional, and it caught this PR's first
version.
The check caught the second half too
registry/census.json's committed summary is re-derived from its own raw block by an arm added for engine#2533, so adding adeclined class made it drift:
Fixed by recomputing rather than hand-guessing (
census.coverage(raw)):Verified
What this is not
Not a mapping, and not a filter that hides the class: it stays visible in the census as a reviewed row, and
registry_build.py --check-gapsfails if anyone later maps it without recording why. The distinction matters for the nextwatcher run — the two cheap-and-costly reactions to an unreviewed class are mapping something nobody asked to serve, and
silencing a real gap.