Repository navigation
gap_prevalence: key the census's bare LayoutError source-defect families (Part of #5865, #7644) - #7658
Merged
Conversation
… owner line (Part of #5865, #7644) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5865. Refs #7644.
What
The census's bare
refused: LayoutErrorcollapsed two translator refusal families that_REFUSALSintests/tools/gap_prevalence.pyhad no key for. Both aresource defect:messages raised by the translator itself (det/source.pycut_literal,det/layout.py_missing_period):source defect: source text past column 72 (...)(a literal cut open, or text lost past column 72, det translator: 32 programs refused across the keyed corpora and estate-crucible (code pages, free format, multi-program sources, grammar gaps); KYUYJP crashes #4462 / det: name source defects (text past column 72 in EXEC SQL, ISPF screen captures, undeclared items) instead of 'no such item' / SystemExit #4735) ->refused: LayoutError: source defect: text past column 72source defect: data entry N NAME (...) has no period before the next level number->refused: LayoutError: source defect: data entry without a periodBoth keys are fixed strings (no source slice, so no census name can leak), and
OWNERSgets 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.jsonandgap_prevalence.mdare unchanged and still show the bare key (9 programs, era 2). The lead fromblockers_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-runsgap_prevalence.py --census-survey DIR --census-corpora DIR --writeto move the 9 under the new keys and confirm.Class / Sibling gaps
Class: LayoutError refusal messages the translator raises that
_REFUSALSleaves 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 genericraise LayoutError(why)atdet/layout.pyparse()(refusal(lines): national / DBCS text, IDMS, several programs), anddet/program.pyVALUE {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.pyrefusal,det/program.py:698.Remaining slices
census_summary.json+gap_prevalence.md(generated, not hand-written).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