Skip to content

crucible: drive the byte-carrying handleTransaction overload (lastAnswerBytes) from the harness (Part of #4965) - #5019

Merged
squid-protocol merged 5 commits into
mainfrom
churn/4965-20261013T0304Z
Oct 13, 2026
Merged

squid-protocol merged 5 commits into
mainfrom
churn/4965-20261013T0304Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 overload handleTransaction(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 checks lastAnswerBytes() == the task's returnedBytes().
  • target_contract regex 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; handleChannel out of class.

Survivors (re-run of CALINK, CAXA, GTSTART, HCQREAD, seed 0, 24 mutants, commit 979076a):

  • HCQREAD region.run(task,"XCQREAD",..) in the overload: killed (FacadeRegion.run program check).
  • CAXA lastAnswerBytes() accessor ROR: killed (NPE on the null field).
  • CALINK / CAXA / GTSTART lastAnswerBytes = task.returnedBytes(); deleted: re-triaged equivalent, not killable: these programs RETURN TRANSID with 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.
  • First cut drove only the byte overload and regressed GTSTART's DTO-less overload (XTSTART literal survived); fixed by running both.
  • 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-userupd all 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 --fast 5/5; --ratchets 7/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

squid-protocol and others added 5 commits October 12, 2026 23:08
…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]>
…ed equivalent; proof-reach counts (Part of #4965)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 13, 2026 04:13
@squid-protocol
squid-protocol enabled auto-merge (squash) October 13, 2026 04:13
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 5eb4d68 into main Oct 13, 2026
54 checks passed
@squid-protocol
squid-protocol deleted the churn/4965-20261013T0304Z branch October 13, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant