Skip to content

census: review SimulatedForTestingClass as not-a-family, and keep the committed summary honest (Fixes #2814) - #2816

Merged
bong-water-water-bong merged 1 commit into
mainfrom
cl-1051/2814-simulated-census
Nov 17, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
cl-1051/2814-simulated-census

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

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 !! UNCOVERED line was one model, example/simulated, class SimulatedForTestingClass: Hugging
Face's own simulated model for testing Transformers tooling. There is no pretrained weight set, no config.json a 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. 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 in
    its family note;
  • docs/arch-gaps.md: a short section, because tests/census_watch_test.py fails otherwise — "every one of the 45 reviewed
    classes 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 a
declined class made it drift:

census: the committed summary is what its own raw block implies (drift: {'declined_architectures': (24, 23)})

Fixed by recomputing rather than hand-guessing (census.coverage(raw)):

declined_architectures  23 -> 24    (one more reviewed-and-declined class)
declined_models        465          (unchanged: the class has no rows in the 16 Nov raw block)
mapped_models          326870       checked_models 219637   (unchanged)

Verified

python3 tests/census_watch_test.py          all checks passed
python3 tools/registry_build.py --check-gaps   none of the 45 reviewed significant classes is mapped without a reason

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-gaps fails if anyone later maps it without recording why. The distinction matters for the next
watcher run — the two cheap-and-costly reactions to an unreviewed class are mapping something nobody asked to serve, and
silencing a real gap.

… 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.
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

2814 - Partially compliant

Compliant requirements:

  • Review the uncovered SimulatedForTestingClass architecture and determine it is not a family to be served
  • Record the decision in registry/significant.json with "watch": "report"
  • Update docs/arch-gaps.md to document the review decision
  • Recompute the census summary in registry/census.json to reflect the new declined architecture

Non-compliant requirements:

  • None

Requires further human verification:

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

Census Summary Drift

The declined_architectures count in registry/census.json was manually updated, but it should be recomputed from the raw data to avoid drift. The PR description mentions that the summary is now recomputed, which is the correct approach.

"declined_architectures": 24,

@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 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-gaps fails 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, no config.json a 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

  1. mapped_ok is the escape hatch and it is only checked one way. The guard fires when the class is mapped without mapped_ok; nothing fires when mapped_ok is 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.
  2. --check-gaps reports "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.

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

VERDICT: READY 2816

"As a review answer, not a mapping" — and the refusals are the substance: "there is no pretrained weight set, no config.json a 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 exercises."

That is the right call, and it is the harder one. A watcher row that says !! UNCOVERED invites a registry entry; adding one would make the census green and the repo less true. Refusing an entry and documenting why is how a coverage number stays meaningful — the same reasoning that made #2763's baseline worth measuring against a real CI log instead of the issue text.

Three asks:

  1. the exemption needs a home the watcher can read — if example/simulated is legitimately unmapped, the next run of the watcher will report it again, and the answer will be re-derived. Put the reason where the watcher (or the registry's own schema) can see it — an ignore list with a mandatory reason, or a field on the entry — or the !! row never goes quiet;
  2. say what happens when a real model looks like this — a genuinely unservable model and a test fixture are different cases with the same signature; if the exemption is by name, say so plainly so the next one is a decision rather than a pattern;
  3. the answer should cite what proves it — "Hugging Face's own simulated model" is checkable (a source link or the file in the HF repo). One line of provenance turns an assertion into a finding, which matters because this is a claim about not doing work.

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 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: 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.json a 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:

  1. Say what the watcher does about it on the next run — if the model stays in the listing, the !! UNCOVERED line 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;
  2. the rule should be about provenance, not about the name: "published under example/ for testing transformers tooling" generalises; SimulatedForTestingClass alone invites the next FooForTesting-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.

@bong-water-water-bong
bong-water-water-bong merged commit 69c8316 into main Nov 17, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the cl-1051/2814-simulated-census branch November 17, 2026 02:19
@bong-water-water-bong

Copy link
Copy Markdown
Collaborator Author

Heads-up: the class this PR reviewed does not exist — SimulatedForTestingClass / example/simulated are census-watch.yml's own literals from the simulate_alert dispatch input, i.e. a fixture row the workflow appends to exercise the alert path. I ran three of those dispatches tonight (that is where the issue you answered came from), so the finding was mine and the noise was mine too.

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 SimulatedForTestingClass entry from registry/significant.json (and recomputes declined_architectures 24 -> 23 in registry/census.json from its own raw block, because tests/census_watch_test.py re-derives that summary and failed until it was), and puts a banner at the top of every simulated issue saying the row is a fixture that needs no mapping and no review. So the next lane does not have to work this out.

Nothing for you to do; flagging it so the record on #2816 is not left claiming a class was reviewed.

bong-water-water-bong pushed a commit that referenced this pull request Nov 17, 2026
…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.
bong-water-water-bong added a commit that referenced this pull request Nov 17, 2026
… 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]>
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.

census: new HF model class uncovered by the registry

1 participant