Skip to content

gap_prevalence: itemise census refused: <Class> buckets (Part of #5865) - #6613

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5865-20261025T0831Z
Oct 25, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/5865-20261025T0831Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5865.

Checklist: partial [c:c7bddb8f] -- the census summary and page need a re-run where the census clones exist (gap_prevalence.py --census-survey DIR --census-corpora DIR --write) to pick up the new keys; they are not on this box.

scrub_key collapsed every census refusal to its exception class (refused: LayoutError = 9 programs, plus ExprError, LayoutDisagrees, UnitRefused). Added a closed table _REFUSALS of name-free construct keys, anchored on the translator's own raise texts (det/layout.py, expr.py, engine_layout.py, source.py). The key is the table's string, never a slice of the source; an unmatched message keeps the bare class. The burned page is unchanged.

Class / Sibling gaps

Class: census gap keys reduced to a bare exception class instead of a per-construct key. Handled here: LayoutError (6 families), LayoutDisagrees (3), UnitRefused (5), ExprError (9 forms); each has a parametrized test, plus a test that every anchor still occurs in the translator source.
Sibling gaps: refused: generation (message family unknown without reading census output; no burned program needs it); the census re-run itself (clones absent); owners stay unowned for layout/expression classes (no open issue, none invented; no burned program hits them); coverage-if-closed is still unvalidated against a translation run.

Tests: tests/tools/test_gap_prevalence.py 90 pass; pr_gates --fast 7/7. No engine change, no golden bless.

🤖 Generated with Claude Code

…-free keys from the translator's own refusal texts (Part of #5865)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 25, 2026 08:49
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 08:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant