Skip to content

gap_prevalence: census 'undeclared item' / 'undeclared paragraph' are source defects (Part of #5865, #7647) - #7661

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7647-20261104T0458Z
Nov 4, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7647-20261104T0458Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Part of #5865. Refs #7647.

Settles the premise of #7647 by tool only (no census code opened or read; counts below) and moves the two rows out of the "unowned engine gap" ranking.

Facts checked:

  • Surveyed the 9 provisioned census clones (translation only, cics_census.py survey). The rows reproduce the page: <name>: undeclared item = 4 programs / 2 corpora (37 holes, 22 distinct names); PERFORM: undeclared paragraph = 1 program / 1 corpus (1 hole).
  • A name-free scratch counter (in-process; prints counts only) looked for a declaration of each name in its own member and in every file of its clone (level number, 66/77/78/88, FD/SD/CD; for paragraphs a label): 0 of 22 names declared anywhere; 0 of 1 paragraph. Also 0 programs with COPY ... REPLACING, 0 nested programs (END PROGRAM more than once), 0 - continuation of a name. Every COPY target of the 3 programs checked resolves to a .cpy in the clone, and none holds the name.
  • 21 of the 22 names occur in the program text with no declaration (a source defect). For 3 programs, 1 name each (3 names, 4 holes) is absent from the program and its copybooks altogether: one is the SQL communication-area name (EXEC SQL used without declaring it); the translator references it implicitly (see Sibling gaps).
  • pr_gates --fast: only affected is red, 2 failures in tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_... (asynccc-crdtchk, zecs-zecs001 case.json); the same 2 fail on pristine origin/main (b72d312), so not from this PR. 1510 other affected tests pass.
  • Tests: tests/tools/test_gap_prevalence.py 109 passed; test_source_reads + test_generated_branch 44 passed; audit_check.py all clear.

Changes (4 files, 2 hand-written): tests/tools/gap_prevalence.py (two owner lines, "source defect", like the ISPF row), tests/tools/test_gap_prevalence.py (new pin; the old "PERFORM: undeclared paragraph is unowned" assertion removed). Regenerated: docs/language_status/gap_prevalence.md, census_summary.json. No engine change: nothing to fix in declaration resolution, so step 3 of the issue does not apply.

Class / Sibling gaps

Class: census gap rows whose cause is the source, not the translator ("undeclared X" refusals: item, paragraph; the sibling no such item stays a translator gap because _SUPPLIED names are DFH/EIB/DIB). Members: <name>: undeclared item handled (source defect); PERFORM: undeclared paragraph handled; GO TO / ALTER / PROCEDURE "undeclared paragraph" share the same refusal text and fall under the same pattern family but have 0 census programs today.
Sibling gaps:

  • Implicit SQL communication-area reference (3 programs, 1 name each, 4 holes): the name is absent from the source, so "undeclared item" mislabels a translator-side implicit reference. Status: open question whether the Db2 path should supply it like _SUPPLIED; why not here: different mechanism (Db2 det-port, Db2 support: COBTUPDT translated with no model and proven on real IBM Db2 #4098); source: det/gen.py _missing_item.
  • The status column still reads "not modelled" for both rows (same as the ISPF precedent); a "source defect" status value would be a status_of change.

Lessons for agents

  • cics_census.py survey hole text is line N: <stmt> <name>: undeclared item; match the name as the token before : undeclared, not at line start.

…aragraph' as source defects, owner #7647 (Part of #5865, #7647)

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 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 05:14
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 05:18
@squid-shepherd

squid-shepherd Bot commented Nov 4, 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 disabled auto-merge November 4, 2026 05:23
@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 4, 2026
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (032cb63) 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 4, 2026 05:32
@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 4, 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 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 06:10
@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 4, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 4, 2026 06:10
@squid-shepherd squid-shepherd Bot added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels 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 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 4, 2026
@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 4, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit c98eab5 into main Nov 4, 2026
38 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7647-20261104T0458Z branch November 4, 2026 07:42
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