Repository navigation
Crucible ports: run the HANDLE CONDITION / ABEND handlers through the proof (HCQREAD, HCMAIN, HCSUB) - #4325
Merged
Conversation
…ports define HCQREAD, HCMAIN and HCSUB each defined the generated handler methods (onConditionXxxLnn, onAbendLnn) with bodies, but no code called them. runTask took the same transfers itself. Each transfer that a handler takes now goes through that handler, so the crucible proof runs the handlers: - HCQREAD: QIDERR L25, ITEMERR L25, ERROR L25 and ITEMERR L56, via goTo; - HCMAIN: QIDERR L25 and the HANDLE ABEND exit of line 26; - HCSUB: the HANDLE ABEND exit of line 32. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
… survivors are checked only on the ports they were mutated in - NAMED keeps the #4255 examples that are still unreached. NOW_REACHED pins the handlers that the proof now runs. - A #4047 survivor's line number and triage describe the port as it was mutated. The survivor check now skips ports whose evidence record shows the port changed since the mutation run (mutation.inputs.port differs from inputs.port). The next mutation run judges those ports again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo
Contributor
squid-protocol
marked this pull request as ready for review
October 4, 2026 16:17
squid-protocol
added a commit
that referenced
this pull request
Oct 4, 2026
…io, intcalc key-order fix (#4326) * Prove the CardDemo ports' unproven methods: entry runs, routed helpers, an abend scenario - equivalence.py / equivalence_java.py: a batch case's `entries` run the step once more through the service's no-argument method (executeX), compared with the same COBOL run; evidence.py counts each method an entry run ran as a proof root. - readcard / readcust / readxref: an entry run for executeCbact02c / executeCbcus01c / executeCbact03c. - intcalc: runBatch reads TCATBAL through readAllTcatbalFile. The proof then showed that the port's readAllTcatbalFile returned rows unsorted (TRANSACT 1/53 equal); it now reads in key order, as the KSDS does. - useradd: the USRSEC WRITE adds the record through writeUsrsec. - cardview: a new scenario (XCTL PGMIDERR on PF3) reaches ABEND-ROUTINE, through onAbendL250, the HANDLE ABEND exit of line 250. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo * Evidence: re-prove intcalc, cardview, useradd, readcard, readcust, readxref Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo * Evidence: re-prove the records this branch's harness change staled (evidence.py refresh --stale) All proofs were rerun with JDK 17, the pinned oracle in strict mode, and cics-crucible v0.2.0. Every proof is still proven. The three hc-* crucible records are left for #4325, which re-proves them with their port changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 4, 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.
Follow-up to #4316 (evidence records). This covers the crucible lane for the 12 crucible ports that the evidence policy (
PORTED_UNPROVEN_POLICY = "block") reports as not proven.What this does
Three ports each defined their HANDLE CONDITION / HANDLE ABEND handler methods with real bodies. Nothing called them, not the proof and not the app:
runTasktook the same transfers inline, so the handlers were duplicates. Each transfer that a handler takes now goes through that handler, so the crucible proof runs it:onConditionQiderrL25,onConditionItemerrL25,onConditionErrorL25,onConditionItemerrL56(through a newgoTo), andcurrentonConditionQiderrL25,onAbendL26onAbendL32provenance.jsonreprovenentries were written byevidence.py proveandcrucible_port_provenance.py reprove. Nothing was edited by hand.These three ports are still not proven. Each still has a controller entry that no harness drives:
executeHcqreadandhandleTransaction;executeHcmain,bridgeHcsubandseed;handleLink. The other 9 crucible ports are unchanged; their methods are all of that kind. See "Needs an owner decision" below.Test changes (please review)
tests/cobol_mainframe/test_proof_reach.py:NAMEDno longer lists the 3 handlers that are now reached. A newNOW_REACHEDtest pins them as reached.test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reachmaps Mutation testing of every proven port: measure what "proven" means #4047's survivors onto the port by line number. For a port that has changed since its mutation run, both the line numbers and the triage describe different code.mutation.inputs.port≠inputs.port).Needs an owner decision (not changed here)
These are controller-style entry points: Spring façades that build their own
CicsTask(or none) and callrunTask. The crucible harness drivesrunTaskonly, and the task a façade builds internally is invisible to it. None of them can be compared with the COBOL without new harness support. That support would be a hook in the shippedCicsTaskruntime, so that a façade's task adopts and reports to the scenario's environment. Options per method: (a) build that hook, (b) revert the method to its generated form, or (c) keep it as a reported exception.executeCalink(CALINK): it only throws UnsupportedOperationException, so there is no COBOL behaviour to compare.executeCasub,handleLink(CASUB): an alternate implementation that writes TS through a repository, not the task.handleLink,handleTransaction,returnedCommarea(CAXB);handleTransaction(PCDETL, PCMENU);handleLink,handleTransaction,returnedCommarea(PCWIZ).executeGtwork(GTWORK),executeHcmain/bridgeHcsub/seed(HCMAIN): mini-runtimes with their own TS seeding.executeHcqread,handleTransaction(HCQREAD);handleLink(HCSUB).renderHxm1,submitHxm1,handleTransaction(HXATTR);submitHxm2,handleTransaction(HXEXT);renderPcm1,renderPcm2,submitPcm1(PCWIZ).runTask, without theSend's subfields and options.handleTransactionreturns a fresh WS-CA and never runs the program.Checks
test_proof_reach,test_evidence,tests/cics_crucible, and the mutation suites pass.ruff,mypyanddead_keyaudits pass with--ci.🤖 Generated with Claude Code
https://claude.ai/code/session_01FNWHcUSn5p7eMxFTsB5rFo