Skip to content

det_port: structural parity warning before the proof - #4162

Merged
squid-protocol merged 1 commit into
mainfrom
feat/det-port-parity-check
Oct 2, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
feat/det-port-parity-check

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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's function_count / struct_branch on the 49 pairs, ~1 s for COACTUPC) counts COBOL paragraphs and branch points and the port's methods and branch points.
  • The port is compared with a fixed-overhead + slope fit (Theil-Sen, batch and CICS apart) from the 49 programs ported across CardDemo, CBSA and GenApp:
batch CICS proven ports (port / prediction) warns outside
methods 11.4 + 1.12 × paragraphs 20.8 + 1.13 × paragraphs 0.88 .. 1.21 0.6 .. 1.6
branches 15.0 + 1.62 × branches 70.8 + 2.77 × branches 0.70 .. 1.76 0.5 .. 2.5

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 run and check print parity warning: lines; summary.json / check.json carry parity_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.
  • Docs: the fit and bands in 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-only on cbsa-abndproc, cbsa-custctrl, carddemo-acctupdate (COACTUPC), genapp-lgacdb01 (3 programs), cbsa-xfrfun (2 programs): all within band; check carries the rows through. ruff_audit.py --ci clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RZE6us7fUL6Hynk59rWLvZ

…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
@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 d3c4577 into main Oct 2, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the feat/det-port-parity-check branch October 2, 2026 19:09
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]>
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