Skip to content

README refresh: COBOL-to-Java with proof; stale counts, tools and links (#4062) - #4063

Merged
squid-protocol merged 13 commits into
mainfrom
docs/readmes-cobol-java
Oct 1, 2026
Merged

squid-protocol merged 13 commits into
mainfrom
docs/readmes-cobol-java

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4062. Describes the SYSOUT and SEND MAP attribute comparisons #4061 added (merged).

COBOL to Java (new in the README)

  • Root README:
    • a new section, "COBOL to Java: ported, then proven", with the pipeline and a table of the 6 proven CardDemo ports (who ported each, runs, COBOL branch coverage, mutants caught);
    • the CICS crucible: 17/17 programs proven, every live paragraph and branch covered;
    • "What these numbers do not show": a GnuCOBOL oracle, development data, no fresh-estate trial yet, and 6 of 44 programs ported.
  • gitgalaxy/tools/cobol_to_java/README.md, rewritten. It described 11 modules that live in cobol_to_cobol/. It now covers the real pipeline commands, the forges, what each case kind must match, the guardrail checks and the limits. The config count is corrected from 13 to 17.
  • Tests and docs: tests/cobol_mainframe/readme.md now indexes the generation, porting, proof and mutation tests. mutation_testing.md and porting_loop.md are updated. The README guide gets the new section in its order list. The evidence roadmap gets a shipped row, and "first-try proof rate" is gated until a fresh-estate trial runs.

Staleness, from an audit of every other README against the code

  • github-action-readme.md:

    • documented tool: ai-appsec-sensor and dev-agent-firewall, which are not action tools, so those workflow steps would fail. Both now use galaxyscope --ai-guardrails;
    • the SBOM upload looked for *_bom.json; the file is *_sbom.json;
    • corrected to 13 vectors, and to what full_precision really installs;
    • removed the emoji headings (style rule 3).
  • gitgalaxy/security/README.md:

  • Counts:

    claim was now
    tests 7,043 13,281
    strict tests 3,649 4,884
    languages with signatures 45 56
    registered languages 58 / 59 65
    rule patterns ~1,200 / ~1,970 2,406
    per-file vectors 18 / 19 13
    signals 97 98
    crucible pin v1.2.0 v1.6.0
    ReDoS fuse 15 s 60 s
    signal-pair correlations 6 5
  • Links and names: the docs-site link returned 404 in 9 READMEs. Fixed wrong test file names, the installed commands (cobol-refractor, api-network-map), and a broken image.

Left open (listed in #4062): the opening narrative (#3255), full module indexes for core / recorders / standards, the action @v2.4.0 pins, and regenerating the language-status snapshot.

The full tests/ tree passes locally: 13,207 passed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ

squid-protocol and others added 13 commits September 30, 2026 18:06
tests/tools/mutation.py breaks a proven port one small change at a time
(ROR, COR, NEG, AOR, BDM, CON, LIT, RET, DEL), drops the mutants javac
refuses against the baseline's classpath, and proves the rest with the
equivalence harness, N at a time under a time limit. A survivor is an
equivalent mutant or a place the case never looks. It writes
mutation.json / mutation.md: the score, the runs that killed each
mutant (the fault runs' share), and every survivor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
A mutant differs from the proven port in one file, yet each proof redid
the COBOL runs and regenerated the whole estate. equivalence.py run
--reuse EARLIER takes EARLIER's COBOL outputs for each step whose run.sh
is byte-identical, and EARLIER's generated project re-overlaid with the
port (the same files, or it refuses), compiling only the port's files
with the pom's javac options. --first-difference stops a batch proof at
the first differing run: the same verdict, fewer runs named.

mutation.py uses both by default; --full keeps the from-scratch proof as
the reference, and `compare` checks the two agree mutant by mutant.
TRNRPT under load: a killed mutant 12-17 s instead of 282 s; a survivor
still needs every run.

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

With --reuse, EquivalenceRunTest runs through the JUnit Platform launcher
surefire itself drives (the same platform version, from the local
repository), one fresh JVM per run, without Maven -- only when the main
classes were compiled from the port and target/test-classes from this very
test source (a snapshot each successful Maven run leaves); anything else
goes back to Maven. The launcher class is compiled once and shared.

TRNRPT smoke sample, same mutants, same verdicts: a survivor (all 25 runs)
270 s -> ~190 s under load; the date check's single-run proof ~50 s -> ~8-12 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
mutation.py run --only DIR re-judges exactly the mutants another run
judged, so the fast mode is checked against a --full reference mutant by
mutant. Result: 386 of 386 agree (CSUTLDTC 206, COMEN01C 150, and 10
each of TRNRPT / POSTTRAN / INTCALC with their fault runs).

docs/language_status/mutation_testing.md: operators, fast mode and its
validation, first scores, and what survives (case gaps, harness gaps
#4053 / #4056, equivalent mutants). The porting-loop skill points to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
The batch proof compared datasets, the return code and the abend, never
the job log: a port that DISPLAYed the wrong message, or none, was still
proven (mutation testing, #4047).

- COBOL side: the step's stdout is SYSOUT. GnuCOBOL and IBM write a signed
  zoned item (012- vs 01K) and a binary / packed item (-00007 vs 000P)
  differently, so tests/equivalence/faults/ggdisplay.c (preloaded in front
  of cob_display) writes those as IBM documents; anything it does not model
  (floating point) is marked GGDISPLAY-NOT-MODELLED and that run's SYSOUT is
  reported as not compared, never compared against GnuCOBOL's text.
- Java side: a generated batch runtime class Sysout (display,
  displayNoAdvancing, number: IBM's text of a numeric item). The harness
  points it at a per-run file.
- compare_run compares SYSOUT line by line, trailing blanks aside (a SYSOUT
  record is blank-padded) and libcob's own messages left out, in every run
  -- after an abend too. The loop's feedback shows the differing lines.
- The port ticket: a DISPLAY is Sysout.display with IBM's exact text (was:
  "a DISPLAY becomes a log line"); Sysout.java is in the prompt's runtime.
- The hand ports: CBACT04C (152 lines; it never DISPLAYed each TCATBAL
  record, and printed a 9x status wrongly) and CBTRN02C (54 lines) route
  every DISPLAY through Sysout. CBTRN02C's comparison found a defect of the
  original: closing DALYREJS reports XREFFILE-STATUS. Kept, documented.
  Both proven on every run again (20 and 29 runs).

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

The CICS equivalence proof compared each screen's text only: a port that
showed an error in the wrong colour, or never put the cursor in the field,
was still proven (mutation testing, #4047: deleting the menu's
`errmsgColor = DFHRED` survived).

- COBOL side: from the symbolic map's bytes, per field, the attribute byte
  (<f>A / <f>F: one byte), extended colour (<f>C) and highlight (<f>H) and
  length -1 (<f>L: the cursor), plus the SEND MAP options and CURSOR value
  the stub logs. The harness's DFHBMSCA holds the EBCDIC bytes, so a byte is
  its value. X'00' is "not set" (BMS takes the map's own); so is a space:
  WORKING-STORAGE GnuCOBOL initialised where IBM leaves it undefined (a map
  the program never cleared) -- nothing is claimed about those bytes.
- Java side: CicsTask already records MapSubfields, options and cursor
  (#4001); compare_events now compares them, in the same terms.
- The account view hand port (COACTVWC) never set them: it now ports
  1300-SETUP-SCREEN-ATTRS (DFHBMFSE, the cursor, red on a bad or missing
  filter, the info line's colour) and SEND MAP CURSOR ERASE FREEKB.
  Proven again on all 11 scenarios; the menu (COMEN01C, the loop's port)
  was already right and stays proven.

The CICS crucible compares subfields in its own pipeline since #4001.

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

The committed CBTRN03C port (the loop's, 2026-09-30) logged its DISPLAYs,
as the ticket then said: not proven once SYSOUT is compared. A model's
port is never hand-edited, so the loop ran again from scratch on the new
ticket: claude-sonnet-5-5, proven on attempt 2 (447/447 report records,
264/264 SYSOUT lines, 24/24 fault runs). Attempt 1 read the records as
IBM037 instead of the data's ISO-8859-1 -- the ticket never states the
records' code page -- and the SYSOUT feedback showed it. Unedited; the
provenance records both attempts and what it supersedes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
…ks (#4062)

COBOL to Java, which the root README mentioned only as a link to an
examples repo:
- README.md: "COBOL to Java: ported, then proven" -- the pipeline, each
  proven CardDemo port (who ported it, runs, COBOL branch coverage,
  mutants caught), the CICS crucible's 17/17, and what the numbers do
  not show (GnuCOBOL oracle, development data, no fresh-estate trial
  yet, 6 of 44 programs). Regression-suite counts re-measured.
- gitgalaxy/tools/cobol_to_java/README.md rewritten: it described 11
  modules that live in cobol_to_cobol/; now the real pipeline, forges,
  what each case kind must match, the guardrail's checks, the limits.
- tests/cobol_mainframe/readme.md indexes the COBOL-to-Java tests;
  mutation_testing.md / porting_loop.md carry the post-#4056/#4053
  scores and TRNRPT's re-run; the README guide's section order and the
  evidence roadmap (shipped row, gated first-try-rate row) updated.

Staleness found by an audit of the other READMEs, each checked against
the code:
- github-action-readme.md: action tools that do not exist
  (ai-appsec-sensor, dev-agent-firewall -> galaxyscope --ai-guardrails),
  the SBOM upload glob (*_sbom.json), 13 vectors, full_precision's real
  installs, no emoji headings.
- security/README.md: the XGBoost model is not shipped; detectors removed
  in #1020/#1102; the native graph engine (#3040) replaced the
  NetworkX/BFS fallback; the network multiplier lives in the supply-chain
  firewall.
- Counts: tests 13,281, 56 signatured / 65 registered languages, 2,406
  rule patterns, 13 vectors, 98 signals, crucible pin v1.6.0, 60 s fuse.
- The docs-site link 404ed in 9 footers; wrong test file names; the
  installed commands (cobol-refractor, api-network-map); a broken image.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
@squid-protocol squid-protocol added this to the Side Quests 🗺️ milestone Oct 1, 2026
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit e1ca9ec into main Oct 1, 2026
39 checks passed
@squid-protocol
squid-protocol deleted the docs/readmes-cobol-java branch October 1, 2026 02:33
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.

README refresh: COBOL-to-Java with proof, and stale counts, tools and links across the module READMEs

1 participant