Repository navigation
equivalence: compile the COBOL oracle with EC-BOUND checks, refuse overrunning scenarios by name (Part of #4449) - #5311
Conversation
…UND-REF-MOD, refuse overrunning scenarios by name (WIP, Part of #4449) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…efused, report every overrun at once (Part of #4449) The EC-BOUND checks found real overruns in carddemo-cardlist (16), carddemo-cotrtlic (6), carddemo-menu (2), cbsa-bnk1cac and cbsa-bnk1uac (1 each). Each is now a named refusal, never proven. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5311 @ 6a40687: 2 failed check(s) == ground-truth (failure) -- real == ground-truth part 1/2 (failure) -- real |
…list and menu (Part of #4449) The oracle now compiles with EC-BOUND-SUBSCRIPT / EC-BOUND-REF-MOD, so the compile_options assertions list BOUND_FLAGS. The carddemo-cardlist and carddemo-menu cases changed on this branch, so their evidence records are re-proven. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (f696ab5) is not the one a maintainer labelled |
|
CI shepherd: the head of this PR (f696ab5) is not the one a maintainer labelled |
|
No description provided. |
|
PR #5311 @ f696ab5: 1 failed check(s) == det (failure) -- real |
…efused scenarios (Part of #4449) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (79abb83) is not the one a maintainer labelled |
…sed scenarios (Part of #4449) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #4449 (items 1 and 2 landed earlier in #4455 and #4529; this is the remaining comment).
What changed
-fec=EC-BOUND-SUBSCRIPTand-fec=EC-BOUND-REF-MOD(BOUND_FLAGS, spliced in bycompile_options, so every cobc call that uses it carries them). The pinned GnuCOBOL 3.1.2 rejects a comma-joined list, hence two flags.bound_violation()recognises the libcob bounds error. Batch and CALL runs fail with a message naming the item and register X8. A CICS scenario that overruns is refused by name when it is derived or listed in the case'sbounds_refused(scenario -> reason), reported as refused and never proven. An unlisted one fails the run with every overrun named at once.bounds_refused:VIEW-REQUESTED-ON(COCRDLIC line 518)WS-STRING-OUTref-mod length 0option-zero,option-blank)CDEMO-MENU-OPT-USRTYPErate-three-places)INTRTIref-mod past 7 bytesrate-four-places)INTRTIref-mod past 7 bytesOn main,
cbsa-bnk1cacrate-three-placesalready diverged (0/3 events equal); it is now a named refusal instead.docs/language_status/register/X8.md: status REFUSED, says how a case answers it and lists the findings.Plan change
The plan assumed few or no burned-estate overruns. There were 26 scenarios, so
bounds_refusedwas added instead of removing or loosening the check.Gates
audit_check.py,pr_gates.py --fast(6/6) and--ratchets(8 pass),equivalence_env.py --check(10/10),test_equivalence_*.py(37 pass),register.py --check. Real proofs ran for carddemo-menu, carddemo-cardlist, carddemo-cotrtlic, cbsa-bnk1cac and cbsa-bnk1uac. The other differences in bnk1cac/bnk1uac (mapfail, count-fails, several-errors) also reproduce on main. Golden masters unaffected: onlytests/tools, case files and docs changed.Sibling gaps
tests/tools/cics_crucible.py(around line 2088) compiles with cobc withoutBOUND_FLAGS; it needs the flags, and a burned program needs it: any of the five above.tests/tools/cobol_coverage.py:899(thecobc -m -ftraceallcoverage compile) takes noBOUND_FLAGS; it only measures coverage of runs the oracle already judged, so it needs nothing from a burned program. The batch, CALL and utility compiles inequivalence.py/equivalence_call.pyall usecompile_optionsand carry the flags.Cross-repo
None.
Lessons for agents
-fec=EC-BOUND-SUBSCRIPTand-fec=EC-BOUND-REF-MODas separate flags;-fec=a,bis rejected.🤖 Generated with Claude Code