Repository navigation
CICS coverage: symbolic maps generated from BMS source (#3490) - #3500
Merged
Merged
Conversation
Contributor
A program's COPY of its mapset names a BUILD artefact (the DFHMAPS symbolic map) that repositories rarely ship -- CBSA has none of its ten -- so every screen field (CUSTNAMI, MESSAGEO ...) stayed unresolved and field lineage stopped at the terminal. core/bms_symbolic.py generates the COBOL symbolic map from the #3347 screen fields as copybook text: TIOA prefix, L/F/A/I per named field, the O record REDEFINES, extended-attribute bytes (DSATTS / EXTATT=YES, C P H V U M T order), PICIN / PICOUT, OCCURS (IBM's D / DFHMSn form). It matches all 21 generated copybooks CardDemo checks in, line for line. GalaxyIR parses it with the engine's record parser and attaches it (EngineFile.symbolic_copies, never in `files`) to a program whose COPY member no real COBOL copybook answers; copybook resolution, storage spans and qualified lookups see it. A mapset several BMS sources define resolves to the file named after it. GalaxyIR.symbolic_map_layouts lists every map. CBSA: unresolved move targets 779 -> 0 (sources 105 -> 1); the lineage of UPDCUST COMM-NAME now reaches BNK1DCS's CUSTNAMI (cics MAP BNK1DC read). Answer key: independent layout by arithmetic (add-symbolic-maps), scored field "symbolic maps" (CardDemo 5307/5307, CBSA 1320/1320), ledger flag symbolic_validated. Golden masters unchanged. Closes #3490 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
squid-protocol
force-pushed
the
feat/bms-symbolic-3490
branch
from
September 24, 2026 15:51
856b02e to
d6d639f
Compare
This was referenced Sep 24, 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.
Part of epic #3489 (CICS estate coverage gaps).
Problem
A CICS program COPYs its screen's symbolic map, which is the copybook the BMS assembler (DFHMAPS) generates at build time. Repositories rarely ship it: CBSA has none of its ten. So every screen field (
CUSTNAMI,MESSAGEO, …) stayed unresolved, and field lineage (#3452) stopped at the terminal.What it does
core/bms_symbolic.pygenerates the COBOL symbolic map as copybook text from the screen fields we already extract (Engine: extract BMS symbolic-map field layouts as a fact channel #3347). That covers:L/F/A/Iitems per named field, plus theOrecord REDEFINES;…D/DFHMSnform.It matches all 21 generated copybooks CardDemo checks in, line for line. That comparison is a test whenever the corpus is present.
GalaxyIR parses the text with the engine's own record parser. It attaches the result (
EngineFile.symbolic_copies, never added tofiles) to any program whoseCOPY <mapset>has no real COBOL copybook. Copybook resolution, storage spans and qualified lookups all see it. A real copybook always wins. A mapset defined in several BMS sources resolves to the file named after it: CBSA'sBNK1TFMis in both BNK1B2M.bms and BNK1TFM.bms.GalaxyIR.symbolic_map_layouts()lists every generated map asNAME @offset+bytes.Effect (CBSA)
field_lineage(UPDCUST, COMM-NAME, backward)now reaches BNK1DCS'sCUSTNAMI, tagged with the endpointcics MAP BNK1DC read.Ground truth
add-symbolic-maps; new scored field "symbolic maps"; ledger flagsymbolic_validated.A blind census of the new key section is still owed. CardDemo's layouts are also checked against the real generated copybooks, which serve as an external oracle.
Checks
Closes #3490
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g