Skip to content

scanner/det: refuse macro-level CICS and CICS Assembler by name (Part of #5121) - #5157

Merged
squid-protocol merged 5 commits into
mainfrom
churn/5121-macro-level-cics
Oct 14, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/5121-macro-level-cics

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5121.

Macro-level CICS and CICS Assembler programs are now two named refusal families instead of reading as broken COBOL. Detection only; nothing is translated.

Design: one pure detector, gitgalaxy/core/cics_macro_level.py, used by the det translator and the feature inventory.

  • macro-level CICS: DFHxx TYPE= macro calls (BMS BP DC DI FC IC JC KC PC SC SP TC TD TR TS WT) in assembler or COBOL (CALL 'DFHxx'), CSA / TCA addressing (USING / COPY DFHCSADS / DFHTCADS, CSATCA, obsolete EXEC CICS ADDRESS CSA / TCA).
  • CICS Assembler: DFHEIENT / DFHEISTG / DFHEIEND / DFHEIRET / DFHEIGBL or EXEC CICS in an assembler source, or any macro-level assembler program (counted in both families).
  • Not hit: command-level EXEC CICS, DFHRESP / DFHVALUE, CALL 'DFHEI1', macro TABLES (DFHFCT / PCT / PPT / DCT / TST / SIT ... = resource definitions, CICS macro tables (DFHFCT/PCT/PPT/DCT/TST) into the resource map; CSD+macro merge names conflicts (Part of #5120) #5153), BMS map macros, comments, literals.

Where it lands

  • det/source.py: MacroLevelCics raised in program_lines BEFORE COPY expansion (a missing DFHCSADS is not "missing copybook"); also a refusal() check cics-macro-level (unmaskable for a survey).
  • feature_inventory.py + schema: refusal_families (per-estate counts, .asm/.mac members too), emitted only when non-empty.
  • support_matrix.py, refusal_map.json (two entries, two charters), definition_of_done.md, cics_census.error_key (one blocker gap per family), register X55, core README.

Class table (macro families and hosts): every macro family x {assembler, COBOL} has a test; CSA/TCA forms in both hosts; command-level assembler; every table macro negative; BMS maps; pathological inputs.

Evidence: swept all six burned estates + cics-crucible pin + estate-crucible with the detector: zero false positives. zecs has 2 real CICS Assembler programs (ZECS002.asm, ZECSNC.asm), so only zecs.json gains refusal_families; the other five fixtures are byte-identical (feature_inventory.py --all-burned --check clean). Golden masters untouched (the detector is not on the scan path).

IBM: DFHMSCAN ("Identify macro-level programs", CICS TS reference) and the assembler translation output. IBM does not enumerate the macro names on those pages, so the list is ASSUMED to the extent X55 says; every pattern needs the macro name AND TYPE=, so a missed name is a missed detection, never a false refusal.

Cross-repo / coordination: no companion PRs. #5150 (era tags) merged first; main is merged in, eras and refusal_families coexist. #5153 (macro tables, cics_macro_tables.py) is independent: tables are not refused here; no shared files.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 14, 2026 18:10
… of #5121)

Two refusal families (macro-level CICS, CICS Assembler) from one detector shared by the det translator and the
feature inventory; refusal_map, charter, register X55, per-estate counts, fixtures for each host. Macro tables,
BMS maps and command-level EXEC CICS are not hit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 22:24
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 22:33
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5157 @ 758b3f9: 1 failed check(s)

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38647419334/job/116137624725
repro: python -m pytest -q tests/tools/test_evidence_report.py::test_the_inputs_cover_what_the_translator_imports
failing tests: tests/tools/test_evidence_report.py::test_the_inputs_cover_what_the_translator_imports
errors:
fail-on-cache-miss: false
E AssertionError: gitgalaxy.core is read by the translator but not fingerprinted
tests/tools/test_evidence_report.py:601: AssertionError
FAILED tests/tools/test_evidence_report.py::test_the_inputs_cover_what_the_translator_imports - AssertionError: gitgalaxy.core is read by the translator but not fingerprinted
##[error]Process completed with exit code 1.
log tail:
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid["fn (a: i32, b: i32)"] - Known limitation: No block shielding for args inside strings
XFAIL tests/extraction/languages/test_zig.py::test_zig_args_invalid[// fn (a: i32, b: i32)] - Known limitation: No block shielding for args inside comments
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/*] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
FAILED tests/tools/test_evidence_report.py::test_the_inputs_cover_what_the_translator_imports - AssertionError: gitgalaxy.core is read by the translator but not fingerprinted
assert ('gitgalaxy/core.py' in {'gitgalaxy/core/aperture.py', 'gitgalaxy/core/bms_screen_fields.py', 'gitgalaxy/core/bms_symbolic.py', 'gitgalaxy/core/cobol_source_format.py', 'gitgalaxy/core/compiler_options.py', 'gitgalaxy/core/ebcdic_cod
1 failed, 9771 passed, 21 skipped, 8 xfailed, 3 xpassed, 2 warnings in 620.32s (0:10:20)
##[error]Process completed with exit code 1.
##[group]Run python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/9af905e8-2fd0-40f0-a98f-b4a8d05fe4b4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 14, 2026
squid-protocol and others added 2 commits October 14, 2026 18:52
… import it by name in det/source.py (Part of #5121)

CI full-suite part 3/3: test_the_inputs_cover_what_the_translator_imports saw
'from gitgalaxy.core import ...' (the package) as an unfingerprinted input.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (b4afa68) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 23:15
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit de18dae into main Oct 14, 2026
53 checks passed
@squid-protocol
squid-protocol deleted the churn/5121-macro-level-cics branch October 14, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant