Skip to content

census: EXEC SQL: other splits by IBM statement keyword; blind re-measure (Part of #8075) - #8081

Merged
squid-shepherd[bot] merged 8 commits into
mainfrom
churn/8075-20261108T0441Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 8 commits into
mainfrom
churn/8075-20261108T0441Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #8075 (blind trial #8073, tools only; owner family #8060).

Changes

  • tests/tools/gap_prevalence.py: scrub_key no longer collapses every unkept EXEC SQL hole into EXEC SQL: other. The key is EXEC SQL: other (<VERB>) for a verb in a closed IBM vocabulary (Db2 for z/OS SQL Reference: _SQL_WORDS plus _SQL_OTHER_VERBS), EXEC SQL: other (host variable / WHENEVER / SQLCA / SQLDA) for a fixed hole class, else EXEC SQL: other. The key is always the table's string, never source text.
  • tests/tools/test_gap_prevalence.py: every vocabulary verb parametrized (a table/column name after it never survives), the class keys, the census entry-point leak test updated.
  • tests/tools/det_survey.py (is_program_path), tests/tools/cics_census.py, tests/tools/test_survey_hidden_dir_copies_8075.py: root cause of the T0 "10 programs": they were .expanded/ compile-listing copies of 10 Db2 programs, surveyed as second programs (aperture skips hidden dirs; the copy's statements carry the listing's line numbers, so no generated Db2 repository method). Program enumeration in the survey and the census now skips programs under a hidden directory. No Db2 verb was unmodelled (17 statements: INSERT 7, SELECT INTO 4, SET 2, cursor OPEN/FETCH/CLOSE 4).

Owner decision needed: the denominators in #8073 ("14 of 58 whole") and #8074 ("21 of 58") counted the 29 .expanded copies; the survey now has 29 programs.

Re-measure (blind estate, tools only, counts only, cics_census.py survey --baseline --blind-root then gap_prevalence.py --census-survey, engine 727635f)

29 programs, 25 translate whole, 0 programs hold an EXEC SQL gap. Remaining: EXEC: other in 3 programs (#8076, PR #8088), 1 clone-defect copybook (rule 10, already named). The "10 of 58" at T0 predates the hidden-directory-copy exclusion (#8075 survey commits) and main fixes since; no EXEC SQL form is left to model. No blind source was read, copied or edited.

Checklist: done [c:ab419637]
Checklist: partial [c:e11c3928] -- nothing left to model on the current blind measurement; a later run that shows an SQL gap reopens it
Checklist: partial [c:4cf0d87f] -- no EXEC SQL form is a candidate; rule 10 untouched
Checklist: done [c:4779b787]

Class / Sibling gaps

Class: EXEC SQL holes whose census key was one undifferentiated other bucket, so a statement form could not be named from counts. Every statement keyword outside the previously kept set is now its own key (all members in this PR, each with a parametrized test). Sibling gaps: EXEC: other (non-SQL, non-CICS holes) is the same collapse, owned by #8076 / PR #8088 (touches the same file; merge order: that PR first, rebase this one). det/sql.py forms: none currently reached by the blind estate, so none modelled.

Cross-repo: none. No companion PRs; nothing re-runs after merge except the blind per-merge measurement.

Remaining slices

None for this issue unless a later blind measurement shows an EXEC SQL gap (then: model the form in det/sql.py with an authored Db2 fixture, files det/sql.py, a test, register entry).

Lessons for agents

cics_census.py survey --blind-root takes the PARENT of the clone directory (the root holding corpora), not the clone itself.

Gates: pr_gates.py --fast 9/9 pass (mypy local 2.4.0 vs CI 2.4.1, gate used its cached 2.4.1). Ratchets: not run, no engine/golden change.

🤖 Generated with Claude Code

…8075)

example-health-apis ships .expanded/ compile-listing copies of each program. The scan (aperture) skips them, so the
estate's forge builds one Db2 repository per program from the real source; det_survey and cics_census counted the copy
as a second program, whose statements carry the expanded file's line numbers and found no repository method (the 10 of
58 "EXEC SQL forms not modelled", all .expanded copies; no verb was unmodelled).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

Waiting on an owner decision (asked privately, 2026-11-08). Nothing is needed from contributors; work resumes once it is answered.

@squid-protocol squid-protocol changed the title survey: a program under a hidden directory is not a program (Part of #8075) census: EXEC SQL: other splits by IBM statement keyword; blind re-measure (Part of #8075) Nov 8, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 23:26
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 23:26
@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 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

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