Repository navigation
crucible: drive the byte-carrying handleTransaction overload (lastAnswerBytes) from the harness (Part of #4965) - #5019
Merged
Conversation
…oad and read lastAnswerBytes (Part of #4965) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rloads; compare lastAnswerBytes with the instrument's bytes (Part of #4965) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…4965) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed equivalent; proof-reach counts (Part of #4965) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 13, 2026 04:13
squid-protocol
enabled auto-merge (squash)
October 13, 2026 04:13
Owner
Author
|
No description provided. |
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 #4965 (closes its harness + mutation acceptance; see "Sibling gaps").
What. The CICS crucible's java-facade side and the equivalence harness's facade path entered only through
handleTransaction(String, T). Now:cics_crucible.py: each facade scenario runs a second time through the byte-carrying overloadhandleTransaction(String, [T,] byte[])(the previous task's RETURN bytes in,lastAnswerBytes()out). The cell passes only if both runs match the expected log; the answered bytes, when a port passes any, replace the DTO-encoded bytes in the RETURN COMMAREA comparison (the instrument's hex). Overloads are told apart by their last parameter (facade()), so a DTO-less(String, byte[])is no longer mistaken for(String, T).equivalence_cics.py: same overload selection; drives the byte overload and checkslastAnswerBytes()== the task'sreturnedBytes().target_contractregex unchanged; new test pins that it never matches the byte overload (with or without a DTO).Class table (facade entry vs reach):
handleTransaction(String,T)yes (unchanged);handleTransaction(String,[T,]byte[])+lastAnswerBytes()now driven by both drivers;handleChannelout of class.Survivors (re-run of CALINK, CAXA, GTSTART, HCQREAD, seed 0, 24 mutants, commit 979076a):
region.run(task,"XCQREAD",..)in the overload: killed (FacadeRegion.run program check).lastAnswerBytes()accessor ROR: killed (NPE on the null field).lastAnswerBytes = task.returnedBytes();deleted: re-triagedequivalent, not killable: these programsRETURN TRANSIDwith no COMMAREA (returnTransid(null, null)), so the answer is null with or without the assignment. The plan's expectation that all five would die was wrong for these three.test_proof_reach.py: 5 flagged (3 equivalent + 2 dead helpers unreachable), killed/survived 196/94.Evidence. Real crucible runs: ca-xctl-versions, pc-wizard, hx-extended-cursor, gt-start-retrieve java-facade all pass; equivalence
carddemo-userupdall 23 scenarios equal. End to end with a scratch HXEXT whose RETURN passes the right byte (0xC5) the cell passes; with a wrong byte it fails "commarea byte 0: 'E' expected, got 'F'" through the byte overload. No committed port passes bytes today, so that case is unit-tested (test_the_answered_bytes_are_what_the_returns_commarea_is_compared_by), not a crucible scenario.Gates.
pr_gates --fast5/5;--ratchets7/7. Evidence records show harness-stale (non-blocking, scheduled job re-proves).Sibling gaps. A crucible port whose RETURN passes COMMAREA bytes (none committed; they use the 3-arg
returnTransid) would exercise the bytes comparison end to end;handleChannel(out of class); PC* ports still mutation-stale.🤖 Generated with Claude Code