Repository navigation
Description
The census's last open population: css, dockerfile, html, markdown, sqlite, yaml all record raw_state_unreferenced 0.00 against a 2.50 median — six of the corpus's 26 remaining open-defect cells (23% of the total, the single largest metric share at 6 of 46). All six are claimed by the ledger's orphan-detection-is-name-recurrence (upstream-bug, still_reproduces: true), the one census entry #2806 did not retire.
Measured 2026-09-07 on corpus main (docs/bias_data.json cell_categories, all six extraction), engine main a87cb26d. The unreferenced_by_name contract itself is stated (#2806 → #2825, docs/unreferenced_by_name_contract.md); its audit table closes with exactly this family: "no callable units to census — either nothing is extracted (html, markdown) or every extracted unit is a synthetic bucket (corollary 6). This is the undefined family of #2549, not this contract's." This issue is that deferred half.
The measurement
A census over a population is 0 for two different reasons, and the cell cannot say which:
- Nothing is extracted at all — html, markdown. markdown is measured on the literary plane (no
func_startrule,markdown-lit-plane-morphology); html'sfunc_startis the html func_start is unreachable end-to-end: the polyglot splitter consumes <script>/<style> tags before html's rules run #2549 script/style shape. - Everything extracted is a synthetic bucket — css (
@media/@keyframesigniter buckets), dockerfile (Mode-ARUN/CMD/HEALTHCHECKlabels), sqlite (Mode-ECREATE_Statement/Declarative_Block), yaml (run:steps). Corollary 6 (orphan census counts non-function shapes on non-call-graph languages, making orphan→api conversion unauditable #2547/detector: slicer keyword buckets (dockerfile RUN, css keyframes) reach the duplicate/orphan checks as if they were functions #2728) rightly excludes keyword buckets from the census — a keyword cannot be unreferenced — so the censusable population is empty even thoughfunctions_foundis not.
Both read 0, and per the jcl precedent (jcl-steps-have-no-invocation-by-name): 0 here means UNANSWERABLE, not clean. These six 0s sit red against the 2.50 median exactly the way functions_found/markdown sat red before #2795 — a metric scored for a language whose governing mechanism the report itself says is incomparable.
What makes this more than an n/a stamp
Several of the six have real name-and-reference forms the extraction currently gives no named unit to:
- yaml: yaml: every extracted step is named
run— func_start captures no name, so orphan/duplicate census and per-step identity are all dead #2767 already extracts steps by theirname:key — a named step is referenced byneeds:/job dependencies; anchors&nameare referenced by*name. - dockerfile:
FROM base AS builderdeclares a named stage;COPY --from=builderand a laterFROM builderreference it by name. - css:
@keyframes slideis referenced byanimation-name: slide/animation: slide 2s. - sqlite:
CREATE TABLE t/CREATE INDEX iare referenced by every later statement naming them (theorphan-conversion-opaque-countsentry already observed main.sql reading 7 "orphans" for 4 indexes before corollary 6 zeroed it). - html:
id="x"is referenced byhref="#x"/getElementById; markdown likewise has reference-style link definitions.
So per language the decision is one of three, and it is the whole issue:
- contract-level absence — the census is not computed where the censusable population cannot exist (the jcl
invocation_modelshape, or functions_found[markdown] −100%: func_start is n/a for markdown but functions_found scores it anyway — the structure-count rows have no n/a mechanism #2795's n/a inference extended to the census: n/a whenfunc_startis n/a or when every extracted unit is corollary-6 synthetic), the cell becomes n/a, comparable count drops; - census over real nameable units — where the language genuinely declares reachable-by-name units, extract them as such (or census them without extraction) so the cell measures the language honestly;
- corpus re-plant — where the plant simply never asked the question the language can answer.
Option 2's bar is the contract's own warning: "the census reads 100%" and "the language cannot be asked" are different claims — check the crucible before the control corpus, per language.
The point
After this family, raw_state_unreferenced has zero open cells and orphan-detection-is-name-recurrence is narrowed or retired — the census is then fully governed by its stated contract, every remaining 0 either n/a by mechanism or a measured answer. Open-defect share drops 26 → 20 of ~2645 (or fewer comparable, if cells go n/a).
References
docs/unreferenced_by_name_contract.md— the stated contract, corollaries 4/6, "The remaining family" note- html func_start is unreachable end-to-end: the polyglot splitter consumes <script>/<style> tags before html's rules run #2549 (html func_start unreachable), functions_found: the function population counts slicer buckets that #2547/#2728 already agreed are not identifiers — sqlite +131%, dockerfile +31% #2792/functions_found[markdown] −100%: func_start is n/a for markdown but functions_found scores it anyway — the structure-count rows have no n/a mechanism #2795/classes_found: five red cells on a 0 median are language morphology, not extraction — the row needs a declaration-requirement stratum #2796 (structure-count synthetic buckets + n/a mechanism)
- keyword-rosetta ledger:
orphan-detection-is-name-recurrence,jcl-steps-have-no-invocation-by-name,slicer-segments-statements-not-functions,duplicate-check-counts-slicer-buckets - Epic: contracts at every layer — stream, count, score (the rosetta roadmap; child of #2560) #2812 Phase 3 (the epic; this is the
raw_state_unreferencedfamily session)
Activity
fix(ci): the census test imports the detonation harness via the langu…
test: flip the css positive-extraction pin -- @Keyframes yields its c…
Add IBM DB2 SQL / SQL PL (db2_sql), resolving the .sql collision with…
db2_sql is positional: the extracted units are Mode E statement bucke…
db2_sql joins the pinned positional family (#2866 corollary 4 tripwire)
Add IBM DB2 SQL / SQL PL (db2_sql), resolving the .sql collision with…
test(tree-sitter-audit): add embedded_python + sqlite (classes) to th…