Skip to content

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

Closed

Description

@squid-protocol

Sibling of #4870 (PR #4960). Siblings: #4870

Gap. #4870 added the byte-carrying handleTransaction(String transid, [T request,] byte[] area) overload to every generated region facade (with lastAnswerBytes()). The CICS crucible and the equivalence harness enter only through handleTransaction(String, T) (det/cics.py target_contract reads the DTO signature), so no scenario drives the overload. In the #4960 mutation re-run, 5 survivors sit in that overload (CALINK, CAXA x2, GTSTART, HCQREAD) and are triaged unreachable. That is a real proof gap, not dead code: the bytes path is covered only by runtime/facade unit tests, not by a crucible proof.

Class table (facade entry points vs crucible/harness reach).

Entry point Driven by crucible/harness?
handleTransaction(String, T) yes
handleTransaction(String, [T,] byte[]) + lastAnswerBytes() no (this issue)
handleChannel stops by name, no DTO (out of class)

Acceptance.

  • The harness/crucible runner can drive the byte overload for a scenario that RETURNs TRANSID/IMMEDIATE with a COMMAREA, and compare lastAnswerBytes() against the GnuCOBOL instrument's bytes (IBM semantics as reference).
  • The DTO-only contract regex for target_contract stays intact (or is extended deliberately, with its test).
  • Re-run mutation_crucible.py on the affected ports: the 5 overload survivors are killed or re-triaged with a reason other than unreachable; test_proof_reach.py counts updated to the measured values.

Activity

  1. added
    bug
    legacy-modernization
    priority: low
    on Oct 12, 2026
  2. squid-protocol commented on Oct 13, 2026

    @squid-protocol
    OwnerAuthor

    Review of PR #5019 (churn tick): the harness now drives the byte overload and compares lastAnswerBytes(); HCQREAD literal + CAXA accessor killed, 3 lastAnswerBytes = task.returnedBytes() deletions re-triaged equivalent (their programs RETURN TRANSID without a COMMAREA). Left open: acceptance bullet 1 asks for a scenario that RETURNs TRANSID/IMMEDIATE with a COMMAREA — no committed crucible port does that yet (shown only on a scratch HXEXT copy). Keeping this issue open for that committed scenario.

  3. squid-protocol commented on Oct 13, 2026

    @squid-protocol
    OwnerAuthor

    Siblings: #5053 (class sweep from PR #5050).

  4. added
    scope:sweep
    era:2
    on Oct 16, 2026
  5. squid-protocol commented on Oct 17, 2026

    @squid-protocol
    OwnerAuthor

    Acceptance now met: PR #5019 drove the byte overload and re-triaged/killed the survivors (HCQREAD, CAXA killed; 3 re-triaged equivalent), and PR #5325 added the committed det port of PCWIZ that RETURNs TRANSID with a 30-byte COMMAREA through handleTransaction(.., byte[]), comparing lastAnswerBytes() (6/6 pass; deleting the assignment fails 6/6). RETURN IMMEDIATE + COMMAREA and the other leftovers are recorded as sibling gaps in #5325/#5053.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugera:2legacy-modernizationpriority: lowscope:sweep

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions