Skip to content

det: name source defects (column 72, ISPF screens, undeclared items) (Fixes #4735) - #4747

Merged
squid-protocol merged 1 commit into
mainfrom
fix/4735-source-defect-refusals
Oct 9, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix/4735-source-defect-refusals

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4735 (part of #4270).

The det translator now reports defective sources by name instead of no such item / SystemExit: 0. It never repairs source (det_port_design.md principle).

  • Text past column 72 (source.cut_literal, same survey switch cut-literal): fixed-form text past column 72 that carries code punctuation (, ' " : ( )) refuses the program: source defect: source text past column 72 (PORTO,) truncates :HV-SO-IM``, or is cut off after X when a comma is lost in column 73 (NEND-DAY lines 411, 308, 309, 316). Identification-area tags (`COF00010`, `00000100`, a lone `-` / `.`) and `*>` comments are not flagged; free-format source is never cut. Checked against every local mainframe corpus (270 members): zero new refusals.
  • ISPF editor screen: ispf_screen (two of: menu bar, EDIT ... Columns, Command ===> ... Scroll ===>, Top/Bottom of Data banners, =COLS> rulers). The translator raises NotCobol; the refactor controller prints not a COBOL program: ISPF editor screen: <file> and leaves it out; det_survey reports generation failed: not a COBOL program: ISPF editor screen (...) (cobol-db2-cursor, cobol_db2_stringsearch).
  • Undeclared names: hole text is X: undeclared item / X: undeclared paragraph (was no such item / no such paragraph); the CICS / DL/I interface names the translator must supply (DFH*, EIB*, DIB*) stay no such item. A hole, not a whole-program refusal, so partly translatable programs keep translating. Census gap_key groups both under <name>: ....
  • Docs: deliberate-refusals table in det_port_design.md; translator-refuses-source-defect ledger summary extended.

Evidence: det_port.py check vs origin/main: 79/79 ports unchanged. pr_gates --ratchets: 7/7 pass (fact-crosscheck ledger needs no entry changes: the affected programs are in corpora not in the ledger). pr_gates --fast: audits/secrets/xray/gauntlet pass; one lint finding fixed afterwards (ruff_audit --ci clean). 19 new tests (test_det_source_defects_4735.py) plus census tests; the NexusBank / refatorado / cursor corpora are not fetched here, so the census output was not re-run (cics_census.py blockers needs a survey of them).

🤖 Generated with Claude Code

https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D

…ed items) instead of reporting them confusingly (Fixes #4735)

Text past column 72 of a fixed-form line that carries code punctuation (a host
variable cut short, a lost separator comma) is a named refusal, as the cut
literal of #4590 is; identification-area tags and *> comments are not flagged.
A saved ISPF editor screen is NotCobol in the translator and is named by the
refactor controller and the survey (was SystemExit: 0). A name no data entry,
COPY or INCLUDE declares is `undeclared item` / `undeclared paragraph`; the
CICS / DL/I interface names stay `no such item`. Nothing is repaired.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MQNoe4wPJgr7dbUvs3DG6D
@squid-protocol squid-protocol added enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging labels Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol marked this pull request as ready for review October 9, 2026 04:20
@squid-protocol
squid-protocol merged commit 239ce0d into main Oct 9, 2026
41 checks passed
@squid-protocol
squid-protocol deleted the fix/4735-source-defect-refusals branch October 9, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature, sensor, or structural signature legacy-modernization COBOL refractor, dead-code extraction, and JCL forging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

det: name source defects (text past column 72 in EXEC SQL, ISPF screen captures, undeclared items) instead of 'no such item' / SystemExit

1 participant