Skip to content

docs: COBOL-to-Java capability docs up to date (48 det ports proven, Db2, oracle register, 05-19) - #4166

Merged
squid-protocol merged 5 commits into
mainfrom
docs/det-port-capabilities
Oct 2, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
docs/det-port-capabilities

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Brings the docs that describe COBOL-to-Java porting up to what is built. Every number was checked against tests/equivalence/*/case.json and the latest full det sweep (50 cases, 48 proven; COBOL coverage summed from each proof's coverage line).

What changed, per file

  • README.md — porting steps name the deterministic translator; a det-port results table per estate (CardDemo 27, CBSA 8, GenApp 13 proven; 3/6/8 on Db2; runs, paragraph and branch coverage); the oracle bullet names Db2 for Linux and links the register (C9, D1); "23 of 44 ported" → 28 with a det port; both not-proven-on-purpose cases; COACTUPC no longer "pending" (its det port is proven on 137 scenarios).
  • docs/language_status/det_port_design.md — status 31 → 48; TRUNC follows the program's option (STD default, Equivalence oracle runs IBM's default TRUNC(STD) as TRUNC(BIN) on both sides #4102) instead of "binary items are not truncated"; precompiler refusals corrected (SET and positioned UPDATE/DELETE now run); the Db2 unit of work (one per CICS task in the equivalence test, which a deployment must provide; batch autocommits); limits: C9, D1, blocked CBSA programs, out-of-scope list, proof_sweep.py.
  • docs/language_status/statement_inventory.md — regenerated 2026-10-02 with statement_inventory.py on the same five corpora: 97.1% → 97.8% deterministic, 609 → 453 holes (ASSIGN PROGRAM / INVOKINGPROG, GET COUNTER, DELAY, ENQ / DEQ now R); notes that the tool counts every EXEC SQL as H by definition although det-port translates it.
  • docs/language_status/oracle_assumptions.md — Q3 (was "Java commits each statement, DIFFERS": now MATCHED for CICS tasks, DIFFERS for batch) and Q4 (positioned UPDATE/DELETE no longer refused; CONNECT, CALL, SCROLL, arrays added) contradicted X3/Q8; corrected.
  • docs/language_status/README.md — links the other COBOL-to-Java pages and the new wiki page.
  • docs/cobol_to_java_porting_loop.md — 31 → 48; Db2 is no longer a reason for a model-written port; what a proof rests on and proof_sweep.py.
  • gitgalaxy/tools/cobol_to_java/README.md — the two ways logic is ported; --backend det and refine; Db2 and LINK in what a proof compares; oracle limits link the register.
  • docs/wiki/05-19-proven-cobol-to-java-ports.md (new, in nav and index) — the wiki had no page on det-port, the equivalence harness, the register or proof_sweep.py; docs/language_status is outside docs_dir, so it links there on GitHub.
  • Cookbooks scaffold-spring-boot, cobol-to-java-* (5), map-cobol-monoliths — how the logic is ported and proven; stale claims removed (PostgreSQL-only, a nonexistent tools/cobol_to_java_controller.py path, "guaranteed to compile on first try", LLM-only logic). map-cobol-monoliths notes that three CBSA programs its audit flags (XFRFUN, INQACC, DELACC) now have proven det ports, and why CREACC does not (C9).
  • docs/wiki/05-02, 05-04, 05-05, 05-06, 01-04 — configurable Java/build/database; the real stub marker text; porting tickets and port_runner; the batch harness checks compilation, the equivalence harness checks behaviour; 01-04's "guarantees" replaced by what is proven and on which oracle.
  • docs/wiki/05-18-cobol-java-scan-parity.md — Det ports declare themselves; the aperture admits declared ports past the generated-noise gates #4164 merged: a plain scan admits all 49 det ports (this update was pushed to the already-merged docs(wiki): COBOL <-> Java scan parity (05-18) #4161 branch, so it travels here).
  • .claude/skills/cobol-modernization/SKILL.md — its ownership table listed six issues, all closed; replaced, and it points to the det-port skill for porting work.

mkdocs build: no warnings on the touched pages. det_survey.md is being regenerated (a sequential re-run; the parallel run hit a compile-directory race on two same-named programs) and follows as a separate commit.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ

squid-protocol and others added 5 commits October 2, 2026 16:42
…proven, Db2, oracle register)

- README, det_port_design, porting loop, cobol_to_java README: 48 programs proven as det ports (27
  CardDemo, 8 CBSA, 13 GenApp; 17 cases on Db2), the two cases not proven on purpose, TRUNC(STD),
  the Db2 unit of work and its limits, proof_sweep.py, the oracle register's C9 / D1 / M2 / Q3.
- statement_inventory.md regenerated (2026-10-02): ASSIGN PROGRAM / INVOKINGPROG, GET COUNTER, DELAY,
  ENQ / DEQ left the holes; EXEC SQL is counted H by definition though det-port translates it.
- oracle_assumptions.md: Q3 (one Db2 unit of work per CICS task, batch autocommits) and Q4 (positioned
  UPDATE / DELETE no longer refused) corrected.
- New wiki page 05-19 (proven ports, harness, register, limits); cookbooks and 05-02 / 05-04 / 05-05 /
  05-06 / 01-04 / map-cobol-monoliths say how logic is ported and proven, and drop stale claims
  (PostgreSQL-only, LLM-only logic, TODO stub text).
- cobol-modernization skill: closed ownership table replaced; points to the det-port skill.

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

# Conflicts:
#	docs/wiki/index.md
#	mkdocs.yml
…nts, no EXEC SQL holes

Re-run of tests/tools/det_survey.py over the six corpora (sequential; javac plugin jars from another
project's ~/.m2 left off the classpath). 21 programs proven outside CardDemo.

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

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 4a51543 into main Oct 2, 2026
38 checks passed
@squid-protocol
squid-protocol deleted the docs/det-port-capabilities branch October 2, 2026 20:59
squid-protocol added a commit that referenced this pull request Oct 3, 2026
…irs keyed by program path (#4201)

#4172. javac's classpath came from every jar under ~/.m2, so another project's
javac plugins there (Error Prone 2.50, SemanticDB, built for a newer Java)
crashed javac and every port read 'does not compile'. It is now the estate's
compile classpath from Maven (maven-dependency-plugin build-classpath, offline,
fetching the plugin once if absent). Work directories are keyed by the
program's path in its corpus, so same-named members (zopeneditor's SAM1) no
longer race under --jobs.

Re-run on #4166's six corpora with --jobs 4 and no wrapper: 123 programs,
17,224 statements, 16,844 translated (97.8%), 86 compile -- identical to #4166.


Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ

Co-authored-by: Claude Opus 5.5 <[email protected]>
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