Repository navigation
det_port: structural parity warning before the proof - #4162
Merged
Merged
Conversation
…nst what the COBOL predicts tests/tools/det_parity.py measures each translated program with GitGalaxy's own single-file extraction (Prism.split_streams + StructuralExtractor.splice, the scan's function_count and struct_branch) and compares the port with a fixed-overhead + slope fit from the 49 programs ported on 2026-10-02 (batch and CICS fitted apart). Outside the band (methods 0.6..1.6, branches 0.5..2.5 of the prediction; proven ports reach 0.88..1.21 and 0.70..1.76) is a parity warning in det_port.py run / check output and summary.json / check.json -- never a failed proof or exit code. None of the 49 ports warns. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
Contributor
squid-protocol
added a commit
that referenced
this pull request
Oct 2, 2026
…4163/#4164 Spearman now gives tied values their average rank (I/O rho 0.24, not -0.03); records the I/O and IPC agreement after #4163 (0.87 / 0.84). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ
squid-protocol
added a commit
that referenced
this pull request
Oct 2, 2026
* docs(wiki): COBOL <-> Java scan parity -- what GitGalaxy sees before and after a port 49 programs from CardDemo, CBSA and GenApp scanned as COBOL, as the proven deterministic Java port and (23 CardDemo programs) as the model-written port: structure keeps its rank (functions rho 0.94, branches 0.83, mutations 0.76), size and token mass do not, I/O moves into the cobolrt runtime, risk scores rank within one language only. Method, tables, scanner and translation lessons, and the follow-ups in progress. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ * docs(wiki): scan parity -- tie-corrected Spearman, follow-ups #4162/#4163/#4164 Spearman now gives tied values their average rank (I/O rho 0.24, not -0.03); records the I/O and IPC agreement after #4163 (0.87 / 0.84). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ * docs(wiki): scan parity -- COTRTLIC keeps one hole (dynamic CALL); 48 of 50 cases prove Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A cheap pre-proof signal for det ports, from the COBOL-vs-Java scan comparison.
tests/tools/det_parity.py: GitGalaxy's single-file extraction (Prism.split_streams+StructuralExtractor.splice; identical to the full scan'sfunction_count/struct_branchon the 49 pairs, ~1 s for COACTUPC) counts COBOL paragraphs and branch points and the port's methods and branch points.The fixed overhead keeps small programs honest (ABNDPROC: 1 → 73 branches raw, ×0.99 against the fit). None of the 49 ports warns.
det_port.py runandcheckprintparity warning:lines;summary.json/check.jsoncarryparity_warnings(every LINKed program in a case is checked too). A warning is never a failed proof or exit code; a failure inside the check is itself only a warning.det_port_design.md; the det-port skill's commands table and translator checklist.Tested:
tests/cobol_mainframe/test_det_parity.py(5); existing det_port tests pass;det_port.py run --translate-onlyon cbsa-abndproc, cbsa-custctrl, carddemo-acctupdate (COACTUPC), genapp-lgacdb01 (3 programs), cbsa-xfrfun (2 programs): all within band;checkcarries the rows through.ruff_audit.py --ciclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ