Skip to content

ADDRESS TWA / TCTUA: TWASIZE / USERAREALEN facts and runtime, spec still refused (Part of #5079) - #7146

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/5079-20261030T1310Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/5079-20261030T1310Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5079

What

Slice 1 of ADDRESS TWA / TCTUA (crucible case commarea-mismatch/ca-address-twa-tctua, register X59): the definition facts and the runtime that serves them. The spec entry is not flipped, so ADDRESS TWA / TCTUA stay refused by name and the oracle (ggcics.c) and the port stay consistent. The flip is slice 2.

  • cics_crucible_compare.parse_csd: twasize ({transid: n}, from TRANSACTION TWASIZE(n)) and userarealen ({termid: n}, from the TERMINAL's TYPETERM USERAREALEN(n)); each key only when non-empty.
  • cics_crucible.py: both facts in plan.json and the Java runner (one TCTUA array per terminal, kept across its tasks).
  • CicsTask: withTwaSize / withTctua / twaHandle / tctuaHandle; the TWA is the root's, so every LINK level sees the same bytes.
  • DetCics.addressTwa / addressTctua: the area's handle, or X'FF000000' when none (size 0 or unstated).
  • tests/cobol_mainframe/test_address_twa_tctua_5079.py.

Evidence

IBM, EXEC CICS ADDRESS: TWA / TCTUA return the address of the transaction work area / terminal control table user area; sizes come from TWASIZE / USERAREALEN. Initial content is not stated by IBM, so the case writes before it reads. No burned estate uses these commands (grepped); the proof target is the crucible case only, and it is proven in slice 2, not here.
Tests: test_address_twa_tctua_5079.py + test_address_5079.py: 36 passed. pr_gates --fast and --ratchets: all PASS; audit_check.py: all clear.
det_port.py check (fresh work dir, base origin/main): 156/182 ports show a change, and every one only in the two runtime copies the port ships (DetCics.java +16 lines, CicsTask.java +32 lines, additive methods nothing calls yet); no translated service file moved, so no port needs re-proving for this slice.

Class / Sibling gaps

Class: every ADDRESS area option and the facts each needs.

  • EIB, COMMAREA: already modelled (X59).
  • TWA, TCTUA: facts + runtime here; spec flip, det/cics.py address(), ggcics.c GGCADDR and the harness _address in slice 2.
  • CWA: needs a SIT WRKAREA fact, the crucible leaves it out: stays refused.
  • ACEE: no security manager modelled: stays refused.
  • ADDRESS SET (old form), OS/VS BLL-cell form (det/CICS: BLL cells and SERVICE RELOAD (OS/VS COBOL addressing, era 1) #5119 note): slice 3.
  • Not this mechanism, no burned reader: ROUTE / SEND PARTNSET / RECEIVE PARTN, WAIT EXTERNAL / WAITCICS, CONVERSE SET.
  • Stale DetCics.java overlay copies under tests/cics_crucible/ports (pc-return-immediate, pc-wizard): refresh needs crucible_port_provenance.py reprove (Docker), separate.

Remaining slices

  • Slice 2: standards/cics/commands/storage.py (TWA, TCTUA modelled; CWA, ACEE refused), det/cics.py address(), ggcics.c, equivalence_cics.py _address, register/X59.md, re-measure tests/cics_crucible/baseline.json (ca-address-twa-tctua/*).
  • Slice 3: OS/VS BLL-cell form, estate-harness path.

Cross-repo

None in this PR. Companion for slice 2: the cics-crucible pin (v0.10.0) already carries the case; no pin bump.

Lessons for agents

  • Local ruff 0.16 reformats cics_crucible.py's carried: line, which the pinned 0.17.1 also flags on main already: don't commit that hunk.
  • A TCTUA outlives the task, so it cannot live in root(): the caller keeps one array per terminal.

🤖 Generated with Claude Code

…that serves them (Part of #5079)

Slice 1 of ca-address-twa-tctua: parse_csd reads TWASIZE per transaction and USERAREALEN per terminal (keys only when
non-empty), the crucible runner carries them, CicsTask holds a task-shared TWA and a terminal-kept TCTUA, and DetCics
addressTwa / addressTctua give the area's handle or X'FF000000' when none. The spec entry stays refused (slice 2).

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 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 13:35
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 13:43
@github-actions

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 October 30, 2026 13:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #7146 @ f471528: 1 failed check(s)

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41064549825/job/124095788043
repro: python -m pytest -q tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime
failing tests: tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime
errors:
fail-on-cache-miss: false
E AssertionError: assert ['cics/DetCic... its methods'] == []
tests/cobol_mainframe/test_cobolrt_rules.py:88: AssertionError
FAILED tests/cobol_mainframe/test_cobolrt_rules.py::test_the_catalogue_matches_the_runtime - AssertionError: assert ['cics/DetCic... its methods'] == []
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: d64c38285862a63a1201a9f301ffc066a298ae2f1ccd8a107f333f02f3e44b7a
PYTHONUTF8: 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]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 135332
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 78e9a19190c89fddaf9b6ed84787aa3ee9b073d3bf2b44a3dc37197814955989
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12982378412
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 135332 bytes. Artifact ID is 12982378412
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41064549825/artifacts/12982378412
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/a5a029c9-cc7f-4765-bb4d-2eec90a1668c' 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

@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 Oct 30, 2026
squid-protocol and others added 2 commits October 30, 2026 09:54
…S (Part of #5079)

test_the_catalogue_matches_the_runtime failed on ground-truth part 2/2: the two new DetCics methods were in no rule.

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 Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (192f27b) 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 October 30, 2026 14:04
@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 Oct 30, 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 Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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

Copy link
Copy Markdown
Contributor

PR #7146 @ 192f27b: 6 failed check(s)

== crucible (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41068196042/job/124106451376
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
errors:
Traceback (most recent call last):
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/_temp/shards/cics-crucible-shard-*/results.json'
##[error]Process completed with exit code 1.
log tail:
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]
No files were found with the provided path: /home/runner/work/_temp/cics_crucible. No artifacts will be uploaded.
##[group]Run echo "measure: cancelled, runner-tests: cancelled"
echo "measure: cancelled, runner-tests: cancelled"
[ "cancelled" = "success" ] && [ "cancelled" = "success" ]
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
PYTHONUTF8: 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]
measure: cancelled, runner-tests: cancelled
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/7c4f7fef-6b13-4293-854b-620525d62b71' 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

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41068198435/job/124106436909
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/41068198435/job/124106435409
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
errors:
##[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 182 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 157403
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 8894d68faa32f14d30fce8c5b0c260a5cb2a0feddc515d63e58798ddd4eea68d
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12985020322
Artifact det-sweep-ledger has been successfully uploaded! Final size is 157403 bytes. Artifact ID is 12985020322
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/41068198435/artifacts/12985020322
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/a2763874-aa8c-4742-b14f-13837dd01bdf' 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

== measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41068196042/job/124106452347
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== publish (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41068195981/job/124106488495
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/41068198435/job/124106437761
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

@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 Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 14:40
@squid-shepherd squid-shepherd Bot 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 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

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