Repository navigation
fix: train -- #4329, #4391, #4392, #4393 - #4398
Merged
Merged
Conversation
The last DATA DIVISION entry's clause window runs into the PROCEDURE DIVISION. Its USAGE was found there: a `DISPLAY` verb, or `'BINARY'` inside a MOVE literal, which sized `PIC 9(4)` as 2 bytes. USAGE is now read from the entry cut at its separator period with literals blanked, as NATIONAL already was (#3816). estate-crucible H-0009 now passes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…4392) Without SOURCE-COMPUTER ... WITH DEBUGGING MODE, the compiler reads a fixed-format line with D in column 7 as a comment. Prism now moves such lines to the comment stream, so they neither start nor extend a unit. CBSA BANKDATA CDW010 is now 1407-1433 (it was 1436). With the mode on they stay code. The #4300 DB1024 fixture now carries the source's own WITH DEBUGGING MODE. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
) A fixed-format literal that runs to column 72 and resumes after a quote on a continuation line (- in column 7) was stored with the raw continuation line (CardDemo CBSTM03A HTML-L08 / HTML-L10, 11 items). The value is now the concatenation per the Enterprise COBOL continuation rules: the first line through column 72, then each continuation line after its opening quote. Anything else keeps the raw text. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…#4393) The #4377 referee panel found five patterns where the key, not the engine, was wrong. The reader now handles each one: - signed numeric VALUEs (+18 / -1); - prefixed literals kept with their quotes (X'0D25'); - continued nonnumeric literals joined; - no clause read past the DATA DIVISION (the last entry's VALUE / USAGE came from the procedure); - 10 PIC X(20) as an implicit FILLER (#4246, already in the reader; the keys were stale). A new redraft-records command re-reads every program's records with the current reader, keeping each entry's stored fields and its sign-off, and adds a verification note. It also brings in #4359's 77-as-root parents. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…quence area cobol-check COPYR001 writes code from column 1, and ` 02 D PIC` lost its data item. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…lone (column 8 blank) cobol-check COPYR001's ` DEPENDING ON B OF A.` starts in column 7. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…edger for #4329 #4391 #4392 #4393 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Contributor
squid-protocol
marked this pull request as ready for review
October 5, 2026 02:20
This was referenced Oct 5, 2026
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.
Train of four fixes: one golden regeneration, one ledger run, one CI run. The CICS crucible was run locally on this train with JDK 17:
--ci, rc 0, 108 pass / 44 fail, the same 44 baselinejavafails.hc-abend-linkjava-ported passes 5/5 now that #4390 is in.Note on the per-fix attribution below: step 1 shows 55 channels. That is a base-scan cache artifact (the base estate reads "None"); the totals at the top, measured against base
a7c3de531, are the real diff, and each channel is explained per fix below.#4329: USAGE read only from the entry's own text (
fix/4329-usage-leak, unblocked by #4390)DISPLAYverb or a'BINARY'literal there, andPIC 9(4)was sized as 2 bytes.Usagein 78 files, the same as in train B's first build:DISPLAY→ None;CBL0401WS-TEMAlost aCOMP-2taken from past a COPY;CCHECKWS.CPYFILLER lost a leakedCOMP-3;XML3.cblVERSION(underGROUP-USAGE NATIONAL) now inheritsNATIONAL.#4391: continued nonnumeric VALUE literal joined (
fix/4391-continued-value)-continuation line was stored with the raw continuation line. CardDemo CBSTM03AHTML-L08read'<table ... styl\n - '.mainframe_boundary._continued_literalbuilds the value per the Enterprise COBOL continuation rules: the first line's characters through column 72, then each continuation line's characters after its opening quote, until one closes the literal. Any other shape keeps the raw text.Valuein 108 files. All 337 changed values are ones that held a raw\ncontinuation; no other value moves. Most are NIST CCVS85, plus CardDemo CBSTM03A's HTML lines.#4392: a
Dline is a comment unless WITH DEBUGGING MODE (fix/4392-debug-lines-extent)Broken: column-7
D(debugging) lines were code even when SOURCE-COMPUTER does not sayWITH DEBUGGING MODE. CBSA BANKDATA CDW010 ran to its trailingD DISPLAYlines (1407-1436).Fix: Prism moves such a fixed-format line to the comment stream unless the program (outside comment lines) says
DEBUGGING MODE. The indicator counts only after a real sequence area: an unbroken cols 1-6 field (064000D), or blank cols 1-6 with a blank column 8 (D DISPLAY).This rule was tightened twice inside this train. cobol-check
COPYR001.CBLis written from column 1, so02 D PIC(a data nameD) andDEPENDING ON B OF A.both put aDin column 7. The first build of this train lost the item and its ODO object; both are pinned in the test now. The COBOL engine: a cols 1-6 sequence number is read as the operand when PERFORM / GO TO / CALL / COPY continues on the next line #4300 DB1024 fixture now carries that source's ownWITH DEBUGGING MODE(lines 45-47).Golden effect:
DB1034.2.cblloses exactly 2 units,DEBUG-LINE-TEST-03A@638andDEBUG-LINE-TEST-05-A@665. They are debug-line paragraphs, and DB1034 compiles with the debugging switch off; its own header says debug lines are "treated as comments". No unit is added.Ledger: CBSA BANKDATA
CDW010extent mismatch (fp L1407-1436 / fn L1407-1433) fixed.#4393: answer-key drafting reader, five error patterns (
fix/4393-key-reader, test tooling only)Fix:
cobol_answer_key._data_itemsnow reads:The fifth pattern,
10 PIC X(20)as an implicit FILLER, was already in the reader since COBOL: unnamed elementary item (2 PIC X(31) ..., implicit FILLER) is read as a field namedPIC#4246; the keys were stale.New
redraft-recordscommand: re-reads every program's records with the current reader, keeps each entry's stored fields and its sign-off, and adds a verification note. All seven keys were re-drafted. Each changed field belongs to one of the five patterns:PIC→ FILLER names: 10, with theirPIC X(20)parentfixes: 68 (the key-side twin of Fix #4359: Ensure COBOL level-77 items are always roots #4361)Ledger / referee: the ledger is unchanged by this step, because the ledger's record rows compare field names, not values. I did not re-run the referee panel;
tests/tools/referees/can confirm the patterns are gone.Golden masters (vs
a7c3de531a98)full-precision (
tests/golden_master_audit): 54 fixture file(s), 54 channel(s), 528 scanned file(s) moved (cobol 291, assembly 41, shell 23, rexx 19, typescript 17, yaml 14, dockerfile 13, zig 13).abap/SOURCES.md,assembly/linux_1_0_kernel/COPYING,assembly/linux_1_0_kernel/boot_bootsect.S(+320)assembly/linux_1_0_kernel/COPYING,assembly/linux_1_0_kernel/boot_bootsect.S,assembly/linux_1_0_kernel/boot_head.S(+264)cobol/CICS-Cobol/CBL0103v01DivisionData.cbl,cobol/CICS-Cobol/CBL0104v01ProcedureDivision.cbl,cobol/CICS-Cobol/CBL0105v01DeclararElementoGrupo.cbl(+182)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ACCDB2.cpy,cobol/cics-banking-sample-application-cbsa/ACCTCTRL.cpy(+22)c/cpython/typeobject.c,c/micropython/compile.c,cobol/che-che4z_nist_ccvs85/DB1034.2.cbl(+20)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+9)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+9)cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl,cobol/cics-banking-sample-application-cbsa/BNK1CCS.cbl(+9)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+8)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+7)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+4)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl,cobol/cics-banking-sample-application-cbsa/BNK1CCS.cbl(+2)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl,cobol/cics-banking-sample-application-cbsa/BNK1TFN.cbl(+1)cobol/cics-banking-sample-application-cbsa/CREACC.cbl,cobol/cics-banking-sample-application-cbsa/CRECUST.cbl,cobol/cics-banking-sample-application-cbsa/INQCUST.cblcobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BNK1CCS.cbl,cobol/cics-banking-sample-application-cbsa/CREACC.cblcobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cblcobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cblMost-moved scanned files (channels):
cobol/che-che4z_nist_ccvs85/DB1034.2.cbl(32),cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(25),cobol/cics-banking-sample-application-cbsa/INQCUST.cbl(20),cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl(20),cobol/cics-banking-sample-application-cbsa/CREACC.cbl(20)zero-dependency (
tests/golden_master_zero_dep_audit): 54 fixture file(s), 54 channel(s), 528 scanned file(s) moved (cobol 291, assembly 41, shell 23, rexx 19, typescript 17, yaml 14, dockerfile 13, zig 13).abap/SOURCES.md,assembly/linux_1_0_kernel/COPYING,assembly/linux_1_0_kernel/boot_bootsect.S(+320)assembly/linux_1_0_kernel/COPYING,assembly/linux_1_0_kernel/boot_bootsect.S,assembly/linux_1_0_kernel/boot_head.S(+264)cobol/CICS-Cobol/CBL0103v01DivisionData.cbl,cobol/CICS-Cobol/CBL0104v01ProcedureDivision.cbl,cobol/CICS-Cobol/CBL0105v01DeclararElementoGrupo.cbl(+182)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ACCDB2.cpy,cobol/cics-banking-sample-application-cbsa/ACCTCTRL.cpy(+22)c/cpython/typeobject.c,c/micropython/compile.c,cobol/che-che4z_nist_ccvs85/DB1034.2.cbl(+20)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+10)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+9)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+9)cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl,cobol/cics-banking-sample-application-cbsa/BNK1CCS.cbl(+9)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+8)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+7)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(+4)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl,cobol/cics-banking-sample-application-cbsa/BNK1CCS.cbl(+2)cobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl,cobol/cics-banking-sample-application-cbsa/BNK1TFN.cbl(+1)cobol/cics-banking-sample-application-cbsa/CREACC.cbl,cobol/cics-banking-sample-application-cbsa/CRECUST.cbl,cobol/cics-banking-sample-application-cbsa/INQCUST.cblcobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BNK1CCS.cbl,cobol/cics-banking-sample-application-cbsa/CREACC.cblcobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cblcobol/che-che4z_nist_ccvs85/DB1034.2.cbl,cobol/cics-banking-sample-application-cbsa/BANKDATA.cblMost-moved scanned files (channels):
cobol/che-che4z_nist_ccvs85/DB1034.2.cbl(32),cobol/cics-banking-sample-application-cbsa/BANKDATA.cbl(25),cobol/cics-banking-sample-application-cbsa/INQCUST.cbl(20),cobol/cics-banking-sample-application-cbsa/ABNDPROC.cbl(20),cobol/cics-banking-sample-application-cbsa/CREACC.cbl(20)Ground-truth ledger
Ground-truth ledger: 2 mismatch(es) fixed, 0 introduced.
cics-banking-sample-application-cbsa :: engine | unit extents | src/base/cobol_src/BANKDATA.cbl | CDW010 L1407-1433 | fncics-banking-sample-application-cbsa :: engine | unit extents | src/base/cobol_src/BANKDATA.cbl | CDW010 L1407-1436 | fpEstate-crucible horrors
Estate-crucible (
a7c3de531a98->bb2e4add0c91): horrors passing 44/49 -> 45/49; checks pass 912->916, fail 14->10.Fixes #4329
Fixes #4391
Fixes #4392
Fixes #4393
🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo