Repository navigation
tooling: cics_census blockers -- rank gaps by programs made whole (#4270) - #4587
Merged
Merged
Conversation
) `cics_census.py blockers DIR [--label before]` reads a whole-estate det survey and ranks every gap class (CICS command / option, EXEC SQL, grammar #4462, missing copybook, refusal) by the programs fixing it would make translate WHOLE: programs for which it is the only gap class left (burned / non-burned), programs it leaves one gap class from whole, and all it touches; plus programs whole / total and a histogram of distinct gap classes per program. CICS programs only unless --all-programs. det_survey: a refactor-controller sys.exit() ("No executable COBOL files found") ended the whole survey with status 0 and no survey.json; it is now a per-corpus result. `survey` reports a run that wrote no survey.json. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6
Contributor
squid-protocol
marked this pull request as ready for review
October 6, 2026 22:17
This was referenced Oct 6, 2026
design: one declarative CICS command spec for engine, translator, runtimes and harness (#4270)
#4586
Merged
squid-protocol
added a commit
that referenced
this pull request
Oct 7, 2026
…on, unmask, pr_check (#4270, 1 of 2) (#4596) * tooling: blocker baseline cache, history, provision, unmask (#4270) - cics_census survey --baseline: one survey per main SHA with that commit's own translator, cached at <root>/census-cache/<sha>/ (a no-op once cached, locked); blockers --baseline and compare --before-baseline read it. - cics_census history append/show: docs/language_status/blockers_history.jsonl, seeded with #4587 / #4590 / #4592 (approximate SHAs, noted) and #4593. - equivalence_env --provision: private cics-crucible at the pin + census clones (INELIGIBLE_LIST minus burned; estate4 candidate names refused), provision.json with SHAs, the exports; --check WARNs on an off-pin shared checkout. - blockers --unmask GAPKEY: what-if re-translation of the programs one whole-program refusal stops, with that check off via det.source.survey_unmask (survey-only; det_survey.py is its only caller). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6 * cics_census: --no-census reads no $CICS_CENSUS_CORPORA either (survey, usage, compare, blockers) (#4270) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6 * cics_census: --no-census with --census-corpora is an error; regression test over survey, usage, compare (#4598) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6 --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
4 tasks done
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 #4270 (direction change: pick the next slice by programs made whole, not by keyword frequency).
What
tests/tools/cics_census.py blockers DIR [--label before] [--all-programs] [--top N] [--json]reads a whole-estate det survey (surveywith no--verb) and, for every distinct gap class (line numbers and data / map / class names stripped; CICS command / option,EXEC SQL, grammar det translator: 32 programs refused across the keyed corpora and estate-crucible (code pages, free format, multi-program sources, grammar gaps); KYUYJP crashes #4462,missing copybook X,refused: <error kind>, any other statement hole), counts:Plus programs whole / total and a histogram of distinct gap classes per program. Programs with an
EXEC CICScommand only, unless--all-programs. Ranked by only-gap, then non-burned only-gap, then one-away, then touched. Reusesload_surveys/whole/ the hole dedupe.det_survey.py: the refactor controllersys.exit(0)s on "No executable COBOL files found" (seen on the Cobol-DB2-Cursor census clone); that ended the WHOLE survey with status 0 and nosurvey.json. It is now a per-corpus result.cics_census.py surveynow reports a run that wrote nosurvey.jsoninstead of exiting 0.tests/tools/test_cics_census.py(normalisation, ranking, CLI; fixture surveys, no translator needed).The ranking (before survey,
blockers)Before survey, every CICS program (no --verb): burned corpora + 7 non-burned census clones with CICS programs.
refused: LayoutError: national / DBCS text (…) is not modelled: the translator reads a single-byte code page*COMPUTE FUNCTION RANDOMrefused: ExprError: the PROCEDURE DIVISION does not parse*refused: LayoutError: DATA DIVISION does not parse near expanded line(…)*missing copybook CMQGMOV*EXEC CICS FORMATTIME RESPmissing copybook BAQRINFO*refused: ExprError: paragraph_header does not parse*EXEC CICS RETURN IMMEDIATEEXEC CICS not a data area: Length of <name>dynamic CALLEXEC CICS (no reason given)EXEC CICS ASKTIME NOHANDLEEXEC CICS READ GENERIC GTEQEXEC CICS RECEIVE MAP ASISmissing copybook CEEIGZCT*missing copybook CMQODV*EXEC CICS LINK SYNCONRETURNSET: NULL: pointers are not modelled<name>: no such itemEXEC CICS READ GTEQEXEC CICS FETCHEXEC CICS RUN CHANNELEXEC CICS no generated screen for map <name>* refuses the whole program (no statements translated): fixing it reveals that program's holes, so its count is an upper bound.
34 more gap classes unlock nothing alone and leave no program one away; most touched of them:
EXEC CICS INQUIRE(7),EXEC CICS BIF DEEDIT(5),COMPUTE FUNCTION NUMVAL in a floating-point expression(4),EXEC CICS WEB CLOSE(4),EXEC CICS WEB CONVERSE(4),EXEC CICS WEB OPEN(4),EXEC CICS DOCUMENT CREATE(3),EXEC CICS DOCUMENT RETRIEVE(3).Not CICS verbs among the top: the national / DBCS refusal (one non-burned estate: an em dash in source),
COMPUTE FUNCTION RANDOM(burned), PROCEDURE / DATA DIVISION parse refusals (#4462), missing system copybooks (MQCMQGMOV/CMQODV, LECEEIGZCT, z/OS ConnectBAQRINFO),dynamic CALL. The first CICS option that unlocks a non-burned program alone isFORMATTIME RESP(1).Run notes: the census repos were re-cloned into scratch (INELIGIBLE_FOR_BLIND_ESTATE.md minus burned; read only through translator output; nothing committed). The three census clones with no CICS program (the two martinluc DB2 repos and cobol-db2-refatorado) were left out of the rerun after the det_survey abort above;
dsf/zopeneditor-samplewere surveyed but have no CICS program.Checks
pytest tests/tools/test_cics_census.py: 31 passed.ruff format/ruff checkclean oncics_census.py;mypy tests/tools/cics_census.pyclean apart from a pre-existingpr_gates.py:111error it imports.🤖 Generated with Claude Code
https://claude.ai/code/session_011wnQoeeAZP4npeyGnDviK6