Skip to content

CICS: record WEB-RECEIVE on CicsTask and the ggcics stub (Part of #4767) - #5745

Merged
squid-protocol merged 3 commits into
mainfrom
churn/4767-20261020T1116Z
Oct 20, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/4767-20261020T1116Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Part of #4767 (slice 1: server-side WEB event set, the prerequisite for the cics_crucible runner HTTP driver).

What

  • CicsTask.webReceive records a WEB-RECEIVE event: the request's media type, the bytes returned (null on LENGERR 16), RESP, RESP2.
  • The ggcics.c stub records the same event from both GGCWRCV (INTO) and GGCWRCS (SET).
  • equivalence_cics.py maps the stub event and compares it both ways (a new stub event kind otherwise makes a case DIFFER).
  • Tests: stub and CicsTask each log WEB-RECEIVE for normal, exact-length, truncated (LENGERR 57), MAXLENGTH 0 and negative (LENGERR 16), and a refused second receive (no second event).
  • X37 register text updated: both runtimes now record WEB-SEND and WEB-RECEIVE.

Class table

Member Status
WEB-SEND event already recorded (X37)
WEB-HEADER event already recorded (X38)
WEB-RECEIVE event, INTO and SET this PR
WEB-OPEN / CONVERSE / CLOSE crucible client events not here: need a SPEC peer script; no burned-estate program needs them
CHARACTERSET / HOSTCODEPAGE / literal MEDIATYPE still refused (IBM names no code-page table / COBOL form is a data area); only gt-http-inbound needs them

Gates

  • test_cics_runtimes.py + test_equivalence_cics.py: 408 passed, 3 skipped. cics regen --check: up to date.
  • pr_gates --fast: 6/6. pr_gates --ratchets: 8/8 pass. Tree-wide guards 184 passed; test_evidence.py 38 passed (stale-record warning is the scheduled job's).
  • No golden bless (no parser change).
  • det_port.py check: 22/144 ports unchanged; the other 122 differ only by CicsTask.java +8 lines (the shared runtime embeds the new event). Not re-proven here: only the ports that issue WEB RECEIVE (zecs) change behaviour. Orchestrator: decide whether to schedule a re-prove of those.

Fix round (merge of main)

After #5733 the engine reads .idcams as defines, so stub_files (tests/tools/equivalence_cics.py) found zECS's ZCEXPIRE define and used its raw @ECS_HLQ@... name as the dataset key and its RECORDSIZE max (2048) as the record length. Now the name is resolved with the case's install symbols and a V file with a stated variable reclen keeps it. zecs-zecs000 proves again (3 scenarios, 9/38 paragraphs, 8/46 branches); zecs-zecs003, mortgage-*, cbsa-crecust stay as baselined. db2 legs red were infra.

Cross-repo

None. Companion work (runner HTTP driver, pin bump past v0.9.0, ZECS equivalence case) is in this repo/cics-crucible later; this PR merges first.

Checklist: partial [c:8672e721] -- WEB-RECEIVE recording done; the HTTP driver and the other WEB peer events are left
Checklist: partial [c:0cbe6ac6] -- pin bump and gt-web-* cases not started
Checklist: partial [c:5ddf2663] -- client-side WEB events not started
Checklist: partial [c:e120cf84] -- zecs-zecs000 det sweep proves again (below); ZECS001 case and ladder move left

🤖 Generated with Claude Code

webReceive (INTO and SET forms) now logs a WEB-RECEIVE event with the request's media type, the bytes returned (none on LENGERR 16), RESP and RESP2 on both runtimes; equivalence_cics maps and compares it.

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 Oct 20, 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 20, 2026 14:27
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 14:45
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5745 @ 2c65368: 2 failed check(s)

== db2 4/4 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/39439377452/job/118685742218
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --db2-only --cases mortgage-cmort --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: mortgage-cmort
errors:
fail-on-cache-miss: false
2026-10-20 14:55:58,690 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 14:56:38,154 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 14:57:18,113 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
2026-10-20 14:58:05,746 [WARNING] [GalaxyScope] ┃ (--fail-on-malware cannot fire). Rule-based threats still run. ┃
det mortgage-cmort NOT PROVEN proven on 16 scenarios, covering 6/6 paragraphs and 18/21 branches
log tail:
##[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 49 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-db2-logs-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 291439
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2e284b8fb3c139c04891c6dda653fe12af2c8e89b7048bc792645992b2325a29
Finalizing artifact upload
Artifact det-sweep-db2-logs-3 successfully finalized. Artifact ID 12276550718
Artifact det-sweep-db2-logs-3 has been successfully uploaded! Final size is 291439 bytes. Artifact ID is 12276550718
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39439377452/artifacts/12276550718
Post job cleanup.
Cache hit occurred on the primary key det-sweep-m2-98c5fefef17d639238c66504eaf6e1573c412ffe1305a581287dfe28da0ef132, not saving cache.
Post job cleanup.
Post job cleanup.
Cache hit occurred on the primary key db2-odbc-cli-fdd263b6f039b9f6c0fe5acbb183eb938fb25b8e7fa8698b490d9f3ca8faff27, not saving cache.
Post job cleanup.
Cache hit occurred on the primary key gnucobol-image-11d4222492f2f912cf43943323c7d31986bb225570f062dd8f45923a338a34f0, not saving cache.
Post job cleanup.
Cache hit occurred on the primary key setup-python-Linux-x64-24.04-Ubuntu-python-3.12.15-pip-449c706c24b99ae0e511f7140fe3403790964bf18049d3d8f3bc6315d035e16c, not saving cache.
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/31cf661f-f681-4ad3-bcae-e145b8475302' 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

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39439377452/job/118707754283
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt,zecs-zecs000,zecs-zecs000:,zecs-zecs003 --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt,zecs-zecs000,zecs-zecs000:,zecs-zecs003
errors:
det mortgage-csmrt NOT PROVEN proven on 5 scenarios, covering 1/1 paragraphs and 1/2 branches
det mortgage-mpmt NOT PROVEN
det zecs-zecs000 NOT PROVEN
det zecs-zecs003 NOT PROVEN
det zecs-zecs000: NOT PROVEN (no coverage line); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det cbsa-crecust NOT PROVEN
det mortgage-cmort NOT PROVEN proven on 16 scenarios, covering 6/6 paragraphs and 18/21 branches
##[error]Process completed with exit code 1.
log tail:
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
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]
With the provided path, there will be 138 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: det-sweep-ledger.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 111592
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 7d1bffc470ed0f516b0f707f53e72c71c8de0e5410b1368f56c48dbd91ad8ff5
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12275807203
Artifact det-sweep-ledger has been successfully uploaded! Final size is 111592 bytes. Artifact ID is 12275807203
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39439377452/artifacts/12275807203
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/9533a375-d0ac-4783-80ba-580baa4600a8' 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 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 20, 2026
squid-protocol and others added 2 commits October 20, 2026 11:23
…me and a V file's stated reclen when the IDCAMS define is read (Part of #4767)

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 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (f5ba79d) 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 shepherd:merge Maintainer: merge when green (auto-merge, squash). 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 shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 15:32
@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.

1 participant