Skip to content

forge: RETURN TRANSID bytes overload on the facade, ports resurfaced and re-proven (Closes #4870) - #4960

Merged
squid-protocol merged 6 commits into
mainfrom
fix/4870-return-transid-bytes-facade
Oct 12, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
fix/4870-return-transid-bytes-facade

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #4870 (step 1, #4888, made port_surface overload-aware).

What. The generated region facade keeps handleTransaction(String transid, T request) byte for byte (the harness reads it: det/cics.py target_contract) and gains handleTransaction(String transid, [T request,] byte[] area), which starts the task through Region.transaction(transid, request, area) and stores task.returnedBytes() for lastAnswerBytes() (a copy). The field and accessor carry @facade-helper so port_surface resurfaces them. det/program.py facades() rebuilds both overloads and the tagged helpers.

Resurfaced and re-proven.

Class table (CICS commands whose facade needs bytes). RETURN TRANSID / RETURN IMMEDIATE (this PR, both through returnTransid / returnImmediate byte overloads). LINK / XCTL: bytes already pass by reference / #4806, no facade change needed. handleChannel: stops by name, no DTO to carry.

Tests. test_facade_layout_4449.py: both overloads, tagged helpers, the harness contract regex still matching only the DTO overload, and the det rebuild of both.

Gates. pr_gates --fast 5/5; --ratchets 7/7 (cics-spec, ports, port-surface, estate, fact-crosscheck, completeness, ground-truth). No golden master touched. Did not edit det_sweep_baseline.json or test_proof_sweep.py.

Cross-repo. None.

🤖 Generated with Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 12, 2026 07:59
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 07:59
@squid-protocol squid-protocol added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #4960 @ 152faef: 3 failed check(s)

== db2 1/2 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38219764071/job/114715617899
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-0.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 39ecbae7f94237dfd4718168d03da92c811471cec39b52f11857cdc0ea089a68
Finalizing artifact upload
Artifact det-sweep-db2-logs-0 successfully finalized. Artifact ID 11734441372
Artifact det-sweep-db2-logs-0 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11734441372
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38219764071/artifacts/11734441372
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a658197a-7103-417c-ade1-2945e008c16c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes
Terminate orphan process: pid (2188) (bash)
Terminate orphan process: pid (2189) (docker)

== db2 2/2 (failure) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/38219764071/job/114715617925
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
fail-on-cache-miss: false
Traceback (most recent call last):
RuntimeError: docker build -q -t: ERROR: failed to build: failed to solve: failed to load cache key: Get "https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz": net/http: TLS handshake time
##[error]the background Db2 start did not finish
##[error]Process completed with exit code 1.
log tail:
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
GITGALAXY_ORACLE_PREBUILT: 1
DB2_JOBS: 4
GITGALAXY_DB2_POOL: 4
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.20-1/x64
MAVEN_ARGS: -ntp
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 591
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7f41b5ea9820b7dbdf618f9802e04c2d965072346419d9c61b2ed5cf042740f6
Finalizing artifact upload
Artifact det-sweep-db2-logs-1 successfully finalized. Artifact ID 11733584074
Artifact det-sweep-db2-logs-1 has been successfully uploaded! Final size is 591 bytes. Artifact ID is 11733584074
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38219764071/artifacts/11733584074
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/04f0bdc4-4748-4c16-9930-82a54d37181c' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38219764247/job/114712915247
repro: python -m pytest -q tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach tests/cobol_mainframe/test_proof_reach.py::test_the_re_run_crucible_ports_keep_their_measured_floor
failing tests: tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach tests/cobol_mainframe/test_proof_reach.py::test_the_re_run_crucible_ports_keep_their_measured_floor
errors:
fail-on-cache-miss: false
E AssertionError: assert ({('crucible:ca-link-lengths', 'CALINK'), ('crucible:ca-link-lengths', 'CASUB'), ('crucible:ca-xctl-versions', 'CAXA'),...e:ca-xctl-versions', 'CAXB'), ('crucible:gt-start-retrieve', 'GTSTART'), ('crucible:gt-
tests/cobol_mainframe/test_proof_reach.py:271: AssertionError
E AssertionError: CALINK
tests/cobol_mainframe/test_proof_reach.py:289: AssertionError
FAILED tests/cobol_mainframe/test_proof_reach.py::test_every_survivor_in_code_no_proof_runs_was_triaged_as_out_of_the_proofs_reach - AssertionError: assert ({('crucible:ca-link-lengths', 'CALINK'), ('crucible:ca-link-lengths', 'CASUB'), ('c
FAILED tests/cobol_mainframe/test_proof_reach.py::test_the_re_run_crucible_ports_keep_their_measured_floor - AssertionError: CALINK
##[error]Process completed with exit code 1.
log tail:
{
+ 'CALINK',
+ 'CASUB',
+ 'CAXA',
+ 'CAXB',
+ 'GTSHOW',
+ 'GTSTART',
+ 'GTTERM',
+ 'GTWORK',
+ 'HCMAIN',
+ 'HCQREAD',
+ 'HCSUB',
+ 'HXATTR',
+ 'HXEXT',
'PCCONF',
'PCDETL',
'PCMENU',
'PCWIZ',
})
FAILED tests/cobol_mainframe/test_proof_reach.py::test_the_re_run_crucible_ports_keep_their_measured_floor - AssertionError: CALINK
assert (0 == 0 and False)
+ where False = _mutated_port_is_current('crucible:ca-link-lengths', 'CALINK')
2 failed, 7659 passed, 69 skipped, 5 xfailed, 16 warnings in 469.05s (0:07:49)
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/bbd5f451-eb7b-48de-b309-028369959145' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 12, 2026
squid-protocol and others added 2 commits October 12, 2026 04:08
… their facades; triage the survivors (Part of #4870)

The resurfaced ports' recorded mutation runs judged the old facades. Re-run
(seed 0, 24 mutants, java-ported + java-facade): 194 killed / 96 survived, 0
untriaged, 0 harness gap. The 5 survivors in the byte-carrying overload are
triaged unreachable (no crucible scenario calls it); floor and flagged-survivor
count in test_proof_reach updated to the measured numbers.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (ee8feec) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Oct 12, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit be6b2a2 into main Oct 12, 2026
57 checks passed
@squid-protocol squid-protocol removed the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 12, 2026
@squid-protocol
squid-protocol deleted the fix/4870-return-transid-bytes-facade branch October 12, 2026 09:10
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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.

facade: expose RETURN TRANSID COMMAREA bytes on the generated facade (follow-up to #4817; needs port_surface overload support)

1 participant