Skip to content

det-port: a LINKed typed COMMAREA no longer rewrites the sign of an untouched field (Fixes #7485) - #7588

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7485-20261103T1018Z
Nov 3, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/7485-20261103T1018Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #7485. Part of the survivor work on mutant eea30fe38b (its equivalent verdict is refuted by this cause).

What

A det port's typed COMMAREA handling read signed DISPLAY fields (fill_ / out_, through Cobol.num -> Zoned.operand, GnuCOBOL's PUT_SIGN) from the same storage whose bytes then travel to the other program. A read of a field the program never touched (spaces) wrote a sign into it. Three sites, one mechanism:

  • program.py caBack (LINKed callee, task.linkArea()): the storage is copied to the link area BEFORE the typed fill_.
  • program.py handleCall (CALL BY REFERENCE areas): areas_out runs before the fill_ of the objects.
  • cics_program.py LINK sender: the DTO is read from a second Cobol.commarea(...) copy, so the bytes passed by reference (w.bytes) are not rewritten (found by the new e2e test: after the callee fix the sender still sent {).

Class / Sibling gaps

Class: a typed-DTO codec read (fill_ / out_) that mutates the storage it reads (PUT_SIGN on a signed DISPLAY field holding non-digits), next to a raw-bytes copy out of that same storage. Members fixed here: LINK callee write-back, CALL areas write-back, LINK sender. Tests cover overpunch trailing (S9(10)V99), SIGN LEADING, SIGN TRAILING SEPARATE, SIGN LEADING SEPARATE (static ordering test plus e2e against GnuCOBOL with the sender sending spaces; 8 pass, all 8 fail without the fix).
Sibling gaps (not fixed here; read the program's OWN storage, so the effect is on the program's later reads, not a returned area): cics.py:772 (out_{cls}({f}.storage(), ...), RETURN/XCTL-style DTO of a program's own field) and gen.py:3092 (out_{cls} of a CALL argument), plus in_ after-LINK/areas_in paths untouched. Whether either reproduces on a burned-estate program is unchecked; CBSA ABNDPROC / UPDACC (burned) are the programs that needed this fix. Evidence is GnuCOBOL, not z/OS.

Evidence

  • New tests/cobol_mainframe/test_link_commarea_untouched_sign_7485.py: 4 static pass; EQUIVALENCE_E2E=1 8 pass (Docker GnuCOBOL), 8 fail on origin/main code.
  • test_link_commarea_bytes_4806.py e2e (same file area) still passes.
  • det_port.py check: 167 of 262 ports changed (all LINKed/CALLed programs with a typed area, 2-12 lines each: the reordered write-back). All 167 re-proved with det_port.py run against GnuCOBOL: 167 PROVED, 0 failed.
  • pr_gates --fast: 9/9 pass; --ratchets --only-ratchets time pass; pinned ruff 0.17.2 format clean; plain pytest from /tmp passes. The static test is slow-marked (its module fixture builds the generated project once, ~17 s).
  • Not run locally: crucible/golden bless (no gitgalaxy/core or standards change; the translator is not a golden input).

Cross-repo

None.

Lessons for agents

  • A callee case built from a copybook still needs 01 DFHCOMMAREA. written inline in the source: the CICS stub finds DFHCOMMAREA by scanning the source text (a COPY'd one SIGSEGVs).
  • fill_ / out_ reads mutate the storage they read (PUT_SIGN): any raw-bytes copy of that storage must happen before, or from a copy of, the typed read.
  • The generated project's stub DTO types follow the field's PIC, so a test cannot share one generated project across different field layouts for an e2e.

🤖 Generated with Claude Code

…eld the program never touched (Part of #7485)

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

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 3, 2026 11:08
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 3, 2026 11:09
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 3, 2026 11:28
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

PR #7588 @ 3c223c1: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41625120935/job/125886562362
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: 21505ad2541d5be6135ed84fc33697146cf75b8e
Build Date: 2026-10-21T00:45:21Z
Worker ID: {d662794f-eb32-486d-a57d-4074cb5d833d}
Region: westus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261025.353.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261025.353/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261025.353
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP, suite plan: $PLAN)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure.
# #6278: or when the suite plan proved the PR changes only prose no test or engine code opens (mode skip).
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$PLAN" = "skip"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
PLAN: select
##[endgroup]
full-suite parts: failure (tested-tree skip: , suite plan: select)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41625120935/job/125882196821
repro: python -m pytest -q tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_the_tests_that_name_the_case_or_the_file[tests/equivalence/asynccc-crdtchk/case.json] tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_the_tests_that_name_the_case_or_the_file[tests/equivalence/zecs-zecs001/case.json]
failing tests: tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_the_tests_that_name_the_case_or_the_file[tests/equivalence/asynccc-crdtchk/case.json] tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_the_tests_that_name_the_case_or_the_file[tests/equivalence/zecs-zecs001/case.json]
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: assert 'full' == 'select'
tests/tools/test_suite_select_plan.py:337: AssertionError
FAILED tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_the_tests_that_name_the_case_or_the_file[tests/equivalence/asynccc-crdtchk/case.json] - AssertionError: assert 'full' == 'select'
FAILED tests/tools/test_suite_select_plan.py::test_a_case_json_or_evidence_selects_the_tests_that_name_the_case_or_the_file[tests/equivalence/zecs-zecs001/case.json] - AssertionError: assert 'full' == 'select'
##[error]Process completed with exit code 1.
log tail:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[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 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 852191
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 85b22ed2977542441ac1aa5abae9e86d12c6a6155351f00e3ea40601440044dc
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 13226236545
Artifact test-times-part-1 has been successfully uploaded! Final size is 852191 bytes. Artifact ID is 13226236545
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41625120935/artifacts/13226236545
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/cdf85ed0-ab83-4b08-a53d-cfce9ad01517' 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-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 3, 2026
squid-protocol and others added 2 commits November 3, 2026 06:29
…e 121st to name case.json (Part of #7485)

The suite_select planner caps name hits at 120; the word case.json in this test pushed asynccc-crdtchk and zecs-zecs001 case.json plans to full.

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

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (639ca70) 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). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 3, 2026 11:31
@squid-shepherd squid-shepherd Bot 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 labels Nov 3, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 3, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 3, 2026 11:33
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 3, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

squid-shepherd Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 3, 2026 11:35
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 3, 2026
@squid-shepherd
squid-shepherd Bot merged commit 48995c6 into main Nov 3, 2026
111 of 144 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7485-20261103T1018Z branch November 3, 2026 12:41
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.

det/CICS: a typed COMMAREA write-back rewrites the sign of a field the program never touched

1 participant