Skip to content

census: ExprError is a named source defect, UnitRefused a copy member; both rows owned (Part of #7847, #7709) - #7885

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7847-20261106T0226Z
Nov 6, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7847-20261106T0226Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7847, #7709. Also answers the UnitRefused item (copy member, basis change left to #7709) and adds the no-unowned test, but ticks only the ExprError item.

Checklist: done [c:d98d978f]

What changed

  • tests/tools/gap_prevalence.py: two census owners. ExprError: the PROCEDURE DIVISION does not parse gets a name-free key and a "source defect" owner (counts as accounted, 36 -> 37 / 40). UnitRefused gets an owner too: the existing _REFUSALS pattern no PROGRAM-ID never matched the census text, because the census scrub (_generic) rewrites the member file and PROGRAM-ID first (<class>.<property>: no <name>: a member to be copied); the pattern now accepts that form.
  • tests/tools/test_gap_prevalence.py: scrub/owner pins for both forms, and a test that no whole-program refusal in the committed census summary is unowned.
  • census_summary.json and gap_prevalence.md: the two rows re-keyed (exact-string rename of the two gap keys; counts unchanged), owners re-applied by gap_prevalence.py --write.

Findings (name-free probe, tools only, census source never printed)

  • ExprError: the grammar parses everything up to the end of the PROCEDURE DIVISION's first run, then one ERROR node swallows the rest. The cause is two comment banner lines whose asterisks start in column 8 instead of the indicator column 7 (the file's other comment lines are in column 7). In fixed form that is text in Area A, a syntax error in Enterprise COBOL, so this is a named source defect, not a parser gap. Checked on a scratch copy of the parse input: with the banner's asterisks moved to column 7 the same text parses with no error nodes. No parser change, so no golden or det re-proof.
  • UnitRefused: the member has no division header and no PROGRAM-ID and holds only data description entries (levels 03/05/88). The unit detector is right; the inventory counted a copybook. Owner text says so and does not use "source defect", so the accounted count is unchanged for this row.

Basis change to report on #7709 (not edited here)

The 40-program census basis includes one copy member. Dropping it gives 39 programs; that is the owner-visible change the issue asks to be reported, not made silently.

Class / Sibling gaps

Class: census whole-program refusals with no owner (gap_prevalence census half keys that fall to the bare class and "unowned"). Members: ExprError (done, source defect), UnitRefused (done, owner names the basis change). After this the committed census summary has no unowned whole-program refusal, pinned by a test. Sibling gaps: none in the census whole-program refusals (<name>: bytes overlap another item is already owned by #7845 on main). Both rows are census-only: no burned estate program needs either, so no scope change for the burned ladder. Left for #7709: record the 40 -> 39 basis change, and decide whether the inventory should drop copy members by rule.

Facts checked: the ExprError text in det/stmt.py is unchanged and the census error_key strips the line number, so the key matches; test_gap_prevalence.py, test_cics_census*.py, test_source_reads.py, test_change_classifier.py pass.

🤖 Generated with Claude Code

…; both rows owned (Part of #7847, #7709)

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 Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 09:39
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 09:40
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 6, 2026 10:02
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (452a444) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 6, 2026 10:05
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 6, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 6, 2026 10:06
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 6, 2026 10:07
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 6, 2026
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 6, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 6, 2026
@squid-shepherd
squid-shepherd Bot merged commit db373dc into main Nov 6, 2026
79 of 100 checks passed
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