Repository navigation
fix: train -- #4307, #4331, #4352, #4354 - #4379
Merged
Merged
Conversation
Broken: PROGRAM-ID. NAME padded with blanks to col 72, and PROGRAM-ID NAME. (no keyword period), left class_data empty. Fix: class_start terminator lookahead allows trailing blanks; keyword period optional for PROGRAM-ID/CLASS-ID/INTERFACE-ID (FACTORY/OBJECT keep it). Evidence: test_cobol.py cases; galaxyscope on CBLDB22/TEST16 repros records class_data CBLDB22 and TEST16 (was empty). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
#4331) Broken: DSN=X(+1) / X(-1) captured as the truncated 'X(' while X(0) kept whole. Fix: the _dependency_capture DSN group excludes bare parens and strips (0)/(+n)/(-n); a PDS member (MEM) stays whole. Evidence: test_jcl.py cases; galaxyscope on the issue reproducer gives raw_imports [PROD.ACCT.HIST, PROD.ACCT.MASTER] (was three entries incl. two dangling '('). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…4352) Broken: COPY<U+3000>member. gave no import. Fix: U+3000 added to the blank classes of the import and _dependency_capture rules. Evidence: test_cobol.py cases + near misses; galaxyscope on a COPY<U+3000>KYUYCPY. repro gives raw_imports [KYUYCPY] (was []). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…otes (#4354) Broken: VALUE G'...' recorded value_literal 'G' (bareword alternative). Fix: _VALUE_CLAUSE takes an optional literal-class prefix glued to the quote; the record value is e.g. G'漢字欄名' (matches the H-0042 key). Evidence: test_dbcs_items.py tests; galaxyscope on the KYUYO01 shape gives record_data value_literal G'漢字欄名' and X'C1C2'. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
…4354 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Contributor
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 independent engine fixes: one golden regeneration, one ledger run, one CI run. The fix branches are code + regression tests only; each was reproduced on main and verified with a real scan (by the second coder agent).
#4307: PROGRAM-ID with no separator period (
fix/4307-program-id-no-period)class_startneeded[ \t]*\.after the name, so these got no class_data row:PROGRAM-ID. CBLDB22padded with blanks to column 72;PROGRAM-ID TEST16., with no period after the keyword.cobol.pyclass_start, the keyword's period is optional, and the name may be followed by trailing blanks and the line end.CBLDB22R.jcl, which gives the one new import edge and CBLDB22's popularity / blast radius;#4331: JCL GDG relative generation (
fix/4331-jcl-gdg-import)DSN=X.Y(+1)was captured truncated in raw_imports.jcl.py,(0)/(+n)/(-n)are stripped to the base DSN.#4352: COPY separated by an ideographic space (
fix/4352-copy-ideographic-space)COPY/EXEC SQL INCLUDEfollowed by U+3000 (full-width space) drew no import.cobol.py, the import rule and_dependency_captureaccept U+3000 as a separator.#4354: prefixed VALUE literals (
fix/4354-dbcs-value-literal)mainframe_boundary._VALUE_CLAUSE, aG'...',N'...',NX,X,BorZliteral was recorded as its bare prefix letter. For example,VALUE X'25'was recorded asX.XtoX'..': 66 with upper-caseX'and 10 with lower-casex". Examples: Z-SMS-GatewayWS-NLX→X'25', carddemoDFHAID.cpy/DFHBMSCA.cpy, CBSAPROCTRAN.cpy. No B or Z literal occurs in the crucible.G'漢字欄名'value now passes. The 2 data moves left are COBOL engine: data_moves drops moves whose operands are Japanese / full-width names, and truncates mixed names #4353's.Golden masters (vs
417b0a794fe6)full-precision (
tests/golden_master_audit): 15 fixture file(s), 15 channel(s), 14 scanned file(s) moved (cobol 13, jcl 1).cobol/Z-SMS-Gateway/BALANCE.cbl,cobol/Z-SMS-Gateway/HISTORY.cbl,cobol/Z-SMS-Gateway/MESSAGES.cbl(+6)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+2)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+2)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+1)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+1)jcl/cobol-programming-course/CBLDB22R.jclcobol/cobol-programming-course/CBLDB22.cblcobol/cobol-programming-course/CBLDB22.cblMost-moved scanned files (channels):
cobol/cobol-programming-course/CBLDB22.cbl(6),cobol/che-che4z_lsp_project_fixtures/TEST16.CBL(4),cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(4),cobol/che-che4z_lsp_project_fixtures/TEST51.CBL(4),jcl/cobol-programming-course/CBLDB22R.jcl(3)zero-dependency (
tests/golden_master_zero_dep_audit): 15 fixture file(s), 15 channel(s), 14 scanned file(s) moved (cobol 13, jcl 1).cobol/Z-SMS-Gateway/BALANCE.cbl,cobol/Z-SMS-Gateway/HISTORY.cbl,cobol/Z-SMS-Gateway/MESSAGES.cbl(+6)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+2)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+2)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+1)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+1)jcl/cobol-programming-course/CBLDB22R.jclcobol/cobol-programming-course/CBLDB22.cblcobol/cobol-programming-course/CBLDB22.cblMost-moved scanned files (channels):
cobol/cobol-programming-course/CBLDB22.cbl(6),cobol/che-che4z_lsp_project_fixtures/TEST16.CBL(4),cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(4),cobol/che-che4z_lsp_project_fixtures/TEST51.CBL(4),jcl/cobol-programming-course/CBLDB22R.jcl(3)Per-fix attribution
Train
train/train-aon base417b0a794fe6-- each row is the delta that merge alone introduced (full-precision scan vs the previous step).origin/fix/4307-program-id-no-period@c98b9b0b82origin/fix/4331-jcl-gdg-import@cea2b235b9origin/fix/4352-copy-ideographic-space@e1de827010origin/fix/4354-dbcs-value-literal@bb4af58bcc1. origin/fix/4307-program-id-no-period
full-precision: 14 fixture file(s), 14 channel(s), 5 scanned file(s) moved (cobol 4, jcl 1).
cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+2)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+2)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+1)cobol/che-che4z_lsp_project_fixtures/TEST16.CBL,cobol/che-che4z_lsp_project_fixtures/TEST51.CBL,cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(+1)jcl/cobol-programming-course/CBLDB22R.jclcobol/cobol-programming-course/CBLDB22.cblcobol/cobol-programming-course/CBLDB22.cblMost-moved scanned files (channels):
cobol/cobol-programming-course/CBLDB22.cbl(6),cobol/che-che4z_lsp_project_fixtures/TEST16.CBL(4),cobol/che-che4z_lsp_project_fixtures/TEST61.CBL(4),cobol/che-che4z_lsp_project_fixtures/TEST51.CBL(4),jcl/cobol-programming-course/CBLDB22R.jcl(3)4. origin/fix/4354-dbcs-value-literal
full-precision: 1 fixture file(s), 1 channel(s), 9 scanned file(s) moved (cobol 9).
cobol/Z-SMS-Gateway/BALANCE.cbl,cobol/Z-SMS-Gateway/HISTORY.cbl,cobol/Z-SMS-Gateway/MESSAGES.cbl(+6)Most-moved scanned files (channels):
cobol/aws-mainframe-modernization-carddemo/CSUTLDTC.cbl(1),cobol/aws-mainframe-modernization-carddemo/DFHAID.cpy(1),cobol/aws-mainframe-modernization-carddemo/DFHBMSCA.cpy(1),cobol/cics-banking-sample-application-cbsa/PROCTRAN.cpy(1),cobol/Z-SMS-Gateway/MESSAGES.cbl(1)After merging current main (
1af1ab20f) into the train, the kit re-blessed both legs: fixture unchanged (main's newer commits move no golden).Ground-truth ledger
Ground-truth ledger: no change.
Estate-crucible horrors
Estate-crucible (
1af1ab20f9d4->e6822aa9f426): horrors passing 34/49 -> 37/49; checks pass 822->835, fail 21->17, missing 23->14, phantom 19->16.Fixes #4307
Fixes #4331
Fixes #4352
Fixes #4354
🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo