Repository navigation
cbsa-bankdata case at L2; isolate libdb rand from FUNCTION RANDOM in the oracle (Part of #5561) - #5585
Merged
Conversation
…he oracle (Part of #5561) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… sharing rand, flag test (Part of #5561) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 06:54
squid-protocol
enabled auto-merge (squash)
October 19, 2026 07:02
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.
Part of #5561. Draft.
What changed
cbsa-bankdata(CBSA BANKDATA: Db2 ACCOUNT/CONTROL rows plus the indexed CUSTOMER file, parm1,3,1,0000000000000007). Det port translates 464/464 statements, no holes. VSAM 4/4, ACCOUNT 9/9, CONTROL 3/3, RC 0/0 equal; both derived SQL fault runs (-803 at lines 613 and 642) equal. L2, det-sweep ledger entrydet_sweep_coverage/cbsa-bankdata.json.libdbreseeds the process RNG. GnuCOBOL's indexed-file backend (libdb-5.3.so) callssrand(time/pid)andrandat file open, which cutFUNCTION RANDOM's sequence, so the oracle's customers differed on every run.faults/ggdisplay.c(already preloaded) now answersrand/srandfrom alibdb*caller from a private generator. Register C12 updated. Re-provedcbsa-crdtagy1andcbsa-inqcust(still PROVED).-fnot-reserved=TIMESTAMPfor programs naming a paragraph TIMESTAMP (IBM allows it, GnuCOBOL reserves it); a derived SQL fault run with no faithful oracle (X8, SQLERRMC(1:SQLERRML) with SQLERRML 0) is named underunrunnable_faultsin the report instead of aborting, never proven or guessed. Key added only when non-empty.Evidence level
Translated whole (464/464, 0 holes). Executed-equivalent on 3 runs. Assumptions: the oracle's RANDOM generator (glibc) is shared by both sides, so equality says the port does what the COBOL does with the oracle's numbers, not that it draws z/OS's (C12); Db2 is the throwaway local container. Residual risk: 31 of 48 branches not executed by this case.
Remaining slices
carddemo-cbstm03b(CALLed program driven by its LINKAGE request block) is not done: it needs adatasetsextension intests/tools/equivalence_call.py(stage indexed inputs, DD env, unload of compared datasets) with the Java-side counterpart, plus the case. That is past this PR's 5-hand-written-file budget. No named reason beyond that yet.Sibling gaps
FUNCTION RANDOMwith an indexed file is covered by the same shim; GenApp LGICVS01 (RANDOM + VSAM) is the burned program that needs it and has no proof yet.GNUCOBOL_ONLY_RESERVED; none is reached by a burned program yet.Gates
pr_gates --fast6/6,--ratchets8/8, relevant tests pass (181 passed, 3 skipped). No golden re-bless needed (no parsing change).Cross-repo
None. PR #5579 touches
equivalence_cics.py; this PR does not.Lessons for agents
FUNCTION RANDOMwith an indexed file is non-deterministic in the oracle unlesslibdb'srand/srandis isolated (shim infaults/ggdisplay.c); isolating it inggsql.cdid not help.equivalence.py run --recordrefuses--port; det ports are not committed. L2 for a det case is thedet_sweep_coverage/<case>.jsonentry fromproof_sweep.py --det-only --cases Xthendet_coverage_ledger.py update SWEEP.🤖 Generated with Claude Code