Skip to content

feat(cobol-to-java): PL/I programs through the pipeline (#3623, part 1) - #3721

Merged
squid-protocol merged 1 commit into
mainfrom
feat/pli-pipeline-3623
Sep 26, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/pli-pipeline-3623

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part 1 of #3623; part 2 is #3720. Part of #3625.

What

Until now, no PL/I program reached the Java pipeline: the engine's IR only knew COBOL PROGRAM-IDs. DSF's 1,473 PL/I files, with 8,012 call sites, 3,251 CICS operations, 1,761 unit-of-work rows and 29,414 DECLARE items, produced nothing.

  1. The engine names PL/I programs (galaxy_ir._name_pli_programs). A PL/I file whose external procedure is OPTIONS(MAIN | FETCHABLE) (the existing raw_arch_api signal, Completeness report: score PL/I and HLASM programs, not only COBOL #3576) is a program, and its name is its member (CICS coverage: PL/I parity -- CICS call sites, handlers / UOW, data moves #3491's load-module rule). An %INCLUDE member stays a non-program, like a copybook. That's 431 programs in DSF.
  2. The refractor carries them. Each gets an engine-built IR dump (engine_ir_dump: metadata, units, %INCLUDEs, CICS-ness, unresolved external calls; nothing inferred) and a verified skeleton. The language-scoped joins are computed for PL/I too when the estate has PL/I programs. A PL/I-only estate no longer exits early.
  3. Every language-independent forge runs on PL/I facts. In DSF:
DSF (PL/I)
CICS programs → @Transactional services 409 (22 commit points, 131 rollback points, 321 abends, 517 handlers)
LINK / XCTL wired to the callee's service 447 / 366, plus 54 data-driven dispatches
VSAM entities + repositories 58
TS queue sites (messaging) 20
traceability artifacts / worklist items 3,034 / 4,682

Mixed estate (zopeneditor): its PL/I programs PSAM1, PSAM1LIB and MACSAMP get services. A Spring Batch job also appears: ZDEPSM1's JCL runs PSAM1, which the batch classifier (#3622) now sees as an estate program.

What is not here (#3720)

PL/I storage widths (CHAR(n), FIXED DEC, BIT, ALIGNED padding, …) aren't in the engine's record layout yet. Three things wait on them:

  • PL/I COMMAREA DTOs: DSF gets 14 of 409, via caller records. The PL/I COMMAREA is the main procedure's BASED parameter.
  • VSAM keys as single fields: 0 of 58.
  • DECLARE-structure DTOs.

DSF's BMS sources aren't in its repository, so its 2,384 SEND/RECEIVE MAP sites are precise "no single BMS source defines it" TODOs.

Also fixed

  • A mock service's class and file were named by two different sanitisers. DSF's INSERT_HEND_OG_DE_ØVRIGE_SEGMENTER gave InsertHendOgDeØvrigeSegmenterService in a file named …DeVrige…, a compile error. Both now use java_class_base.
  • The worklist says "program sources", not "COBOL sources".

Evidence

  • Compiles: 34/34 (DSF with 1,025 generated files, and zopeneditor × 17 configs).
  • Pure-COBOL corpora are byte-identical (CardDemo, CBSA, GENAPP and zECS × 3 configs, 0 diffs). DSF and zopeneditor change only by additions.
  • Engine: 0 of 49 IR joins move on any corpus, and the ledger is unchanged and clean.
  • Snapshots re-blessed: only the worklist wording changed.
  • Tests: full suite 11,813 passed; preflight --java all PASS. test_pli_pipeline.py runs a real PL/I CICS scan: a main procedure with LINK, WRITEQ TS, SYNCPOINT and an internal CALL, a second program, and an %INCLUDE member that must not be a program. It checks through to the IR dump, skeleton, service wiring and manifest.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

A PL/I program has no PROGRAM-ID. GalaxyIR now names it: a PL/I file whose external procedure is
OPTIONS(MAIN | FETCHABLE) (raw_arch_api, #3576) is a program named after its member (#3491's
load-module rule); an %INCLUDE member stays a non-program. The default (COBOL-scoped) joins are
unchanged: 0 of 49 IR joins move on any corpus.

Refractor: with the engine DB, each PL/I program gets an engine-built IR dump (engine_ir_dump:
metadata, units, %INCLUDEs, CICS-ness, unresolved external calls) and a verified skeleton; the
language-scoped joins (call_contracts, data_flows, commarea_contracts, program_interfaces, ...) are
computed for PL/I too when the estate has PL/I programs. A PL/I-only estate no longer exits.

Java: every language-independent forge now runs on PL/I facts. DSF (431 PL/I programs):
- 409 @transactional CICS services (22 commits, 131 rollbacks, 321 abends, 517 handlers);
- 447 LINK / 366 XCTL wired, 54 data-driven dispatches;
- 58 VSAM entities + repositories;
- TS queue messaging;
- traceability and worklist.
zopeneditor gains its PL/I services and a Spring Batch job (ZDEPSM1 runs PSAM1).

Also:
- a mock service's class is named with the same java_class_base as its file (DSF's
  `..._ØVRIGE_...` made them differ: a compile error);
- the worklist says "program sources", not "COBOL sources".
PL/I record widths / COMMAREA / DECLARE DTOs: #3720.

Compiles 34/34 (DSF, zopeneditor x 17 configs). Pure-COBOL corpora byte-identical (CardDemo,
CBSA, GENAPP, zECS x 3 configs). Ledger clean. Snapshots re-blessed (worklist wording only).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 95e5682 into main Sep 26, 2026
36 checks passed
@squid-protocol
squid-protocol deleted the feat/pli-pipeline-3623 branch September 26, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant