Skip to content

Rebuild on GitGalaxy's verified mainframe corpora, with behavioural equivalence - #2

Merged
squid-protocol merged 3 commits into
mainfrom
redesign/verified-examples
Sep 26, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
redesign/verified-examples

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Rebuilds this repository on GitGalaxy's current COBOL→Java pipeline (epic squid-protocol/gitgalaxy#3625) and adds behavioural-equivalence evidence. Depends on squid-protocol/gitgalaxy#3748: the provenance currently cites that PR's commit. Once it merges I'll re-run the publisher from main and push here before this merges.

What changes

  • Removed: the 10 pre-epic scaffolds (2026-08-31). They came from an older pipeline, with committed target/ folders and no record of how they were made. Several sources weren't mainframe applications (editor, compiler, fake repo).
  • Added: six verified corpora, the pinned, answer-keyed estates GitGalaxy's fact channels are checked against:
example estate Java files services entities DTOs batch jobs generated / JCL jobs
carddemo AWS CardDemo (CICS, BMS, VSAM, DB2, IMS, MQ, batch) 237 44 36 72 16 / 55
cbsa IBM CICS Bank Sample Application 167 31 14 74 1 / 46
genapp IBM CICS GenApp 153 31 9 61 0 / 29
zecs Walmart zECS (HLASM + COBOL CICS) 33 6 6 5 0 / 10
zopeneditor IBM Z Open Editor sample 30 9 5 3 2 / 8
dsf-pli NAV DSF, 431 PL/I programs 1029 456 66 10 0 / 0

Each example holds:

  • java/: the project as generated;

  • PROVENANCE.md: source commit, source licence, generator commit and commands;

  • scan_comparison.md: GitGalaxy's scan of the source next to its scan of the Java.

  • Added: equivalence/carddemo-intcalc/. CardDemo's CBACT04C (the interest calculator) runs as COBOL under GnuCOBOL and as the Java on the same inputs, diffed record by record, decimals exact:

    • 100/100 records equal with the hand port;
    • 4/100 as generated.

    The run found a defect in the original: the last account's interest is never posted to its balance, because the loop's EOF branch is unreachable.

  • Added: .github/workflows/compile.yml, which builds every example (JDK 17, Maven; actions pinned by SHA).

  • README rewritten around evidence. It says what is generated from verified facts, what is not (business logic, a traced TODO per program), and where the proof is.

How it's made

python tests/tools/publish_examples.py <this checkout> in gitgalaxy regenerates everything deterministically, with run timestamps blanked. So future refreshes arrive as PRs here, and each diff is exactly what a pipeline change did.

Licences and notices

The examples are treated as derived from their sources:

  • Apache-2.0: CardDemo, zECS, Z Open Editor sample;
  • EPL-2.0: CBSA, GenApp;
  • MIT: DSF.

So:

  • Source files kept: each examples/<name>/ and equivalence/<case>/ carries its source's own LICENSE / NOTICE files, unchanged.
  • Per-file notices: every generated Java file opens with a notice naming the source, its commit and licence, and that it was modified in generation.
  • THIRD_PARTY_NOTICES.md maps each directory to its source and licence, with a trademark note (no affiliation or endorsement).
  • LICENSE (Apache-2.0) covers only this repository's own files: README, notices, workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

squid-protocol and others added 3 commits September 26, 2026 10:47
…behavioural equivalence

Replaces the 10 pre-epic scaffolds (2026-08-31: an older pipeline, committed
target/ folders, no provenance) with the output of today's pipeline on the
six pinned, answer-keyed corpora GitGalaxy verifies against:
- CardDemo, CBSA, GenApp, zECS and the Z Open Editor sample;
- DSF, 431 PL/I programs.

Each examples/<name>/ holds:
- java/: the generated Spring project, as generated, with its
  traceability.json and migration worklist;
- PROVENANCE.md: source commit and licence, generator commit, commands;
- scan_comparison.md: the source estate and the Java, scanned by the same
  engine.

equivalence/carddemo-intcalc/ shows CardDemo's CBACT04C run as COBOL under
GnuCOBOL and as the Java on the same inputs, diffed record by record,
decimals exact:
- 100/100 records equal with the hand port;
- 4/100 as generated.

The run also found a defect in the original: the last account's interest
is never posted.

A compile workflow builds every example on each push. Everything is
regenerated by gitgalaxy's tests/tools/publish_examples.py, so later
refreshes arrive as pull requests.

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

The examples are derived from third-party sources (Apache-2.0, EPL-2.0,
MIT), so:
- each example and equivalence case carries its source's own LICENSE /
  NOTICE files, unchanged;
- every generated Java file opens with a notice naming the source, its
  commit and licence, and that it was modified in generation;
- THIRD_PARTY_NOTICES.md lists each directory's source and licence, with a
  trademark note (no affiliation or endorsement);
- LICENSE (Apache-2.0) covers only this repository's own files.

Regenerated by gitgalaxy's publish_examples.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
…ites a main commit

Every generated file is byte-identical to the previous publish; only the
generator commit in PROVENANCE.md / README and the port's licence header
change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
@squid-protocol
squid-protocol merged commit 1f524de into main Sep 26, 2026
12 checks passed
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