Skip to content

det_port translates a case's subprograms; EPSCSMRT case; callers inherit callees' holes (Part of #4803) - #4868

Merged
squid-protocol merged 2 commits into
mainfrom
fix/4803-subprograms
Oct 11, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/4803-subprograms

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4803 (the EPSCMORT ENTER-path extension of mortgage-cmort is not done, see below).

What

  • det_port.py now det-translates a case's subprograms (CALLed programs) as it does programs (LINK targets): the Java side runs the real program via handleCall, not the generator's empty stub; no duplicate symbol on the COBOL link (COBOL side unchanged: SUB<NAME>).
  • New case tests/equivalence/mortgage-csmrt (EPSCSMRT, subprograms: [epsmpmt.cbl]): 5 validation-path scenarios (principal zero / negative / over max, rate zero / negative). Local sweep: all scenarios equal (RETCODE 8 + error text on both sides), 1/1 paragraphs, 1/2 branches.
  • Re-swept the four ports the change moved (carddemo-acctupdate/report/tranadd via CSUTLDTC, mortgage-cmort via EPSNBRVL): all still PROVED; coverage ledger files updated with its tool. det_port.py check: only those 4 + the new case changed.

Owner decision (2026-10-11)

A program is NOT proven if any program it LINKs or CALLs (transitively) has a hole, even when no scenario reaches it: "proven" must not depend on which scenarios we wrote.

  • Implementation: det_port records called_holes (callee holes, program-named); proof_sweep.port_proved makes the sweep verdict unproven when any exist; mortgage-csmrt is in det_sweep_baseline.json ("CALLs EPSMPMT, which has holes: line 125 C6 float exponent, line 144 FUNCTION ANNUITY") so the level stays L1 with that reason. Test pins it (test_a_caller_inherits_its_called_programs_holes_4803). Documented in definition_of_done.md and evidence_records.md.
  • Finding: before this PR a callee's holes were not counted for the caller anywhere in CI (only the optional local-sweep translated t/s gap in proof_blockers saw LINK-target holes). Across all 104 cases, only mortgage-csmrt has called-program holes, so no other verdict moves. LINK targets (programs) get the same rule.

Not done

  • mortgage-cmort ENTER path (EPSCMORT -> EPSNBRVL): the subprogram now translates and the case still proves, but ENTER scenarios (map input, screens) are real new case design; left for a follow-up.

Gates: pr_gates --fast 5/5, --ratchets 7/7.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

…rit callees' holes (Part of #4803)

det_port.port_case det-translates `subprograms` (CALLed programs) like `programs`, so the Java side runs the real
program through handleCall. New case mortgage-csmrt (EPSCSMRT -> EPSMPMT, validation paths). Owner decision
2026-10-11: a program is not proven while a program it LINKs/CALLs has holes; proof_sweep.port_proved, baseline entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
@squid-protocol squid-protocol added bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: medium testing Unit, integration, and E2E pipeline verification labels Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 11, 2026 01:03
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 01:05
@squid-protocol squid-protocol added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 11, 2026
@squid-protocol
squid-protocol merged commit 7d35cdd into main Oct 11, 2026
59 of 60 checks passed
@squid-protocol
squid-protocol deleted the fix/4803-subprograms branch October 11, 2026 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unintended behavior or logic failure in the engine legacy-modernization COBOL refractor, dead-code extraction, and JCL forging priority: medium shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md testing Unit, integration, and E2E pipeline verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant