Skip to content

gap_prevalence: key the census's bare LayoutError source-defect families (Part of #5865, #7644) - #7658

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7644-20261104T0440Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7644-20261104T0440Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5865. Refs #7644.

What

The census's bare refused: LayoutError collapsed two translator refusal families that _REFUSALS in tests/tools/gap_prevalence.py had no key for. Both are source defect: messages raised by the translator itself (det/source.py cut_literal, det/layout.py _missing_period):

Both keys are fixed strings (no source slice, so no census name can leak), and OWNERS gets a line saying they are source defects in the estate's own text, not engine gaps (step 2 of the issue; the issue stops there).

Evidence level

Classification by tool and translator text only; no census code opened. The census clones are not on this box (only the burned corpora), so I could NOT re-run the census survey: census_summary.json and gap_prevalence.md are unchanged and still show the bare key (9 programs, era 2). The lead from blockers_history.jsonl (2026-10-07 rows: the past-column-72 message as only_non_burned 7) supports it but does not prove all 9 are this family; the remaining 2 may be the missing-period family or another message. A box with the census clones re-runs gap_prevalence.py --census-survey DIR --census-corpora DIR --write to move the 9 under the new keys and confirm.

Class / Sibling gaps

Class: LayoutError refusal messages the translator raises that _REFUSALS leaves bare. Members: VALUE not modelled / not a number, REDEFINES not found / not a sibling, level without an 01, DATA DIVISION does not parse (already keyed, #6613); source defect past column 72 and data entry without a period (keyed here). Unkeyed remainder: the generic raise LayoutError(why) at det/layout.py parse() (refusal(lines): national / DBCS text, IDMS, several programs), and det/program.py VALUE {e} re-raise. Sibling gaps: those two, status unkeyed (bare); not here because their census counts are unknown until the survey is re-run and a key without a census hit is speculative; source: det/source.py refusal, det/program.py:698.

Remaining slices

  1. Re-run the census survey on a box with the clones and commit regenerated census_summary.json + gap_prevalence.md (generated, not hand-written).
  2. Key the generic refusal(lines) messages if the re-run still shows a bare remainder.

Gates

pytest tests/tools/test_gap_prevalence.py: 109 passed. pr_gates / ratchets not run (tests/tools-only change, no engine parsing touched).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 4, 2026 04:44
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 04:51
@squid-shepherd
squid-shepherd Bot merged commit b72d312 into main Nov 4, 2026
61 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7644-20261104T0440Z branch November 4, 2026 05:18
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