Skip to content

classes_found[css] red on a 0 median: a CSS class is a selector, and #1295 already ruled it out of scope on the other two charts #2798

Closed

Description

@squid-protocol

classes_found css 1, median 0 — red, on the one language where "class" means something else entirely.

Measured 2026-09-05 on engine main a59ecf6b / corpus main 2038a86, docs/bias_variance_chart.svg row classes_found. Ledger: container-construct-reads-as-class.

The measurement

c.css declares the rule that carries the planted expression()/behavior() bypasses:

.rosetta-risk { ... }

That is a CSS class selector. css's class_start rule names it, class_count records 1, and it lands red against the corpus's 0 median.

The point

css is a special case inside the family, and it is worth separating from cobol/jcl rather than folding in: those two read 1 because the language's compilation unit requires a container declaration. css reads 1 because the word "class" is overloaded — a CSS class is a selector, not an OOP-shaped entity, and the corpus needed a selector to hang the risk plant on.

The project has already ruled on exactly this distinction one layer down. The tree_sitter_accuracy_chart.svg scope note records it as settled:

css and html show n/a on the class panels by DESIGN, not as an unmeasured gap — named class extraction was decided permanently out of scope for them (epic #1295): their class_start targets selectors/tags, not OOP-shaped entities.

The bias chart's own scope note says the same ("css/html class panels are out of scope by design"). So the same measurement is n/a on the tri-comparison chart, out-of-scope in the accuracy chart's prose — and a red dot on the bias chart's classes_found row, because that row has no n/a mechanism at all (see #2795).

This is the cheapest cell in the sweep to settle: the decision exists, it is documented in two places, and it just is not wired into bias_report.py.

Candidate shapes

(a) Wire the #1295 out-of-scope decision into the bias tooling. css and html are marked n/a on class_start and classes_found, matching what the other two charts already show. Mechanical, already argued, no new judgement — the only new work is that classify_na currently keys on rule absence, and css's rule is present-but-out-of-scope, so the exemption needs an explicit source (the same docs/ list #1295 produced) rather than an inference.

(b) Treat it under the general banding fix. #2796's stratum proposal would also take this cell out of the red without a css-specific exemption. Fewer moving parts, but it files a documented scope decision under a generic mechanism and loses the reason.

(a) states the actual reason and matches the two charts that already agree. (b) is a fallback if the family is fixed wholesale first.

Corpus pairing

None. Reporting-layer only; no plant change, no engine change, no re-bless. container-construct-reads-as-class narrows by one language.

Part of #2669 (STRUCTURE COUNTS sweep). Primary: #2796. Related: #1295, #2570 (both closed).

Activity

  1. added
    enhancement
    metrics
    on Sep 6, 2026
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

    data-qualityenhancementmetrics

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions