Skip to content

det: MOVE CONTAINER and container browse (STARTBROWSE/GETNEXT/ENDBROWSE CONTAINER) (Part of #4951) - #5004

Merged
squid-protocol merged 6 commits into
mainfrom
churn/4951-20261012T1800Z
Oct 12, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
churn/4951-20261012T1800Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4951 (sibling of #4884).

Models MOVE CONTAINER and STARTBROWSE / GETNEXT / ENDBROWSE CONTAINER on both runtimes (CicsTask, the GnuCOBOL stub), the det translator and the stub translator, per IBM's CICS TS 6.x command pages, with every documented RESP / RESP2 that a modelled state can reach.

Design: one channel model (X17) extended: MOVE re-homes the Container (data type kept), a browse snapshots the channel's names in creation order and refuses a GETNEXT after the channel gained or lost a container (IBM is silent on changes during a browse). Tokens are 1, 2, 3 ... per task, owned by the issuing program, ended by ENDBROWSE or a SYNCPOINT.

Conditions (IBM): MOVE INVREQ 4, CHANNELERR 2, CONTAINERERR 10; STARTBROWSE CHANNELERR 2; GETNEXT END 2, TOKENERR 3; ENDBROWSE TOKENERR 3. Default abends added to the spec: TOKENERR AEZL, END AEXK, ILLOGIC AEIU (RESP 112 TOKENERR added to DFHRESP).

Class table (CICS channel / container commands)

member status
PUT / GET / DELETE CONTAINER, LINK / XCTL / RUN CHANNEL, ASSIGN CHANNEL modelled before (X17)
MOVE CONTAINER modelled here (X42)
STARTBROWSE / GETNEXT / ENDBROWSE CONTAINER modelled here (X42)
DELETE CHANNEL, QUERY CHANNEL, GET64 / PUT64 CONTAINER, INQUIRE CONTAINER, RETURN CHANNEL, BTS forms of the browse still refused whole / by name, not here (different mechanism)

Refused / assumed (register X42): a move onto itself or onto a container of the other data type, a browse of a channel that changed, a browse with no channel (IBM: the BTS form); order = creation order, tokens per program. Unreachable conditions (CHANNELERR 1 / 3, CONTAINERERR 18, INVREQ 30 / 31, ILLOGIC 1) are named in X42.

Evidence

  • tests/cics_crucible/test_cics_runtimes.py: one 31-step scenario run on the stub and on CicsTask, same lines; 6 refusals on each side.
  • translator tests (det and stub), spec equality tests.
  • pr_gates --fast 5/5, --ratchets 7/7 (none skipped); det_port.py check: every CICS port's CicsTask.java grew (the new methods; no translated service changed), swept carddemo-menu, cbsa-crdtagy1, cbsa-crdtagy2: proved.
  • Not done: no cics-crucible hand-traced case (companion crucible PR).

Cross-repo: none required; a crucible case for X42 would be a companion case PR (merges after this one, then re-run cics_crucible.py).

🤖 Generated with Claude Code

…SE CONTAINER), register X42 (Part of #4951)

WIP checkpoint: spec entries, CicsTask + stub runtimes, translators, X42, runtime tests.

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 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 18:20
@squid-protocol
squid-protocol enabled auto-merge (squash) October 12, 2026 18:20
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5004 @ d8c4e95: 1 failed check(s)

== full-suite part 2/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38289939563/job/114948257821
repro: python -m pytest -q tests/core_engine/test_cics_spec.py::test_coverage_45_full_entries_and_the_name_only_api_commands tests/core_engine/test_cics_spec.py::test_resp_tables
failing tests: tests/core_engine/test_cics_spec.py::test_coverage_45_full_entries_and_the_name_only_api_commands tests/core_engine/test_cics_spec.py::test_resp_tables
errors:
fail-on-cache-miss: false
E AssertionError: assert (106 == 105)
tests/core_engine/test_cics_spec.py:159: AssertionError
E AssertionError: assert (82 == 78)
tests/core_engine/test_cics_spec.py:245: AssertionError
FAILED tests/core_engine/test_cics_spec.py::test_resp_tables - AssertionError: assert (106 == 105)
FAILED tests/core_engine/test_cics_spec.py::test_coverage_45_full_entries_and_the_name_only_api_commands - AssertionError: assert (82 == 78)
##[error]Process completed with exit code 1.
log tail:
SKIPPED [1] tests/estate_crucible/test_estate_crucible_scorer.py:193: no estate-crucible checkout at /home/runner/work/gitgalaxy/estate-crucible (set ESTATE_CRUCIBLE_PATH)
SKIPPED [1] tests/core_engine/test_aperture_workflow_blob.py:166: evidence-refresh.yml not found
SKIPPED [1] tests/core_engine/test_bms_symbolic.py:108: the pinned CardDemo corpus is not cloned
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: zopeneditor-sample not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-banking-sample-application-cbsa not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: aws-mainframe-modernization-carddemo not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-genapp not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: zecs not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dsf not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: dbb-mortgage-application not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/cobol_mainframe/test_refraction_snapshot.py:41: cics-async-api-credit-card-application-example not fetched (mainframe_corpus.py fetch)
SKIPPED [1] tests/extraction/languages/test_dart.py:405: got empty parameter set for (payload)
SKIPPED [1] tests/extraction/languages/test_dart.py:441: got empty parameter set for (payload)
XFAIL tests/core_engine/test_aperture.py::test_aperture_embedded_hex_shield - Engine currently allows hex arrays if has_intent=True. Pending engine patch.
XFAIL tests/extraction/languages/test_dart.py::test_dart_class_start_xfail_invalid[var query = '''\nclass FakeClass {\n''';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_func_start_xfail_invalid[/* \n void main() { \n /] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[// import 'package:test/test.dart';] - String/comment lookalikes lack AST block shielding
XFAIL tests/extraction/languages/test_dart.py::test_dart_dependency_capture_xfail_invalid[/
\n import 'package:foo/foo.dart'; \n */] - String/comment lookalikes lack AST block shielding
FAILED tests/core_engine/test_cics_spec.py::test_resp_tables - AssertionError: assert (106 == 105)
+ where 106 = len({'NORMAL': 0, 'ERROR': 1, 'RDATT': 2, 'WRBRK': 3, ...})
FAILED tests/core_engine/test_cics_spec.py::test_coverage_45_full_entries_and_the_name_only_api_commands - AssertionError: assert (82 == 78)
+ where 82 = len(['PUT CONTAINER', 'GET CONTAINER', 'DELETE CONTAINER', 'MOVE CONTAINER', 'STARTBROWSE CONTAINER', 'GETNEXT CONTAINER', ...])
2 failed, 6646 passed, 383 skipped, 5 xfailed, 16 warnings, 9 subtests passed in 395.14s (0:06:35)
##[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/6dd525f8-f8d9-40b2-b63c-df033e2d61ca' 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
…800Z

# Conflicts:
#	gitgalaxy/standards/cics/resp.py
#	gitgalaxy/tools/cobol_to_java/CicsSpec.java
#	tests/equivalence/cics/ggcics_spec.h
#	tests/tools/cics_crucible.py
@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 (ffed710) 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 labels Oct 12, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: real failure(s) on this head. Reproduce locally with the repro line; don't re-push to find out.

PR #5004 @ ffed710f3dfe: 2 failed check(s)

== crucible (failure) -- real
   https://github.com/squid-protocol/gitgalaxy/actions/runs/38299417475/job/114978397409
   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:
       fail-on-cache-miss: false
        cobol-stub:pass 1, cobol-stub:unsupported 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
        cobol-stub:pass 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 4, java-ported:pass 4, java:fail 4
        cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 3, java-ported:fail 3, java:fail 3
        cobol-stub:pass 1, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 1, java-ported:fail 1, java:fail 1
        cobol-stub:pass 7, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 7, java-ported:fail 7, java:fail 7
        cobol-stub:pass 6, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 6, java-ported:pass 6, java:fail 6
        cobol-stub:pass 2, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 2, java-ported:fail 2, java:fail 2
        cobol-stub:pass 5, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 5, java-ported:pass 5, java:fail 5
        cobol-stub:pass 9, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 9, java-ported:fail 9, java:fail 9
        cobol-stub:pass 4, engine-facts:pass 1, forge-compile:pass 1, java-facade:fail 4, java-ported:fail 4, java:fail 4
        cobol-stub:pass 3, engine-facts:pass 1, forge-compile:pass 1, java-facade:pass 3, java-ported:pass 3, java:fail 3
     CICS crucible: 247 pass, 236 fail, 1 unsupported (484 cells)
     ##[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
       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
       GITGALAXY_ORACLE_PREBUILT: 1
     ##[endgroup]
     With the provided path, there will be 2 files uploaded
     Artifact name is valid!
     Root directory input is valid!
     Uploading artifact: cics-crucible-results.zip
     Beginning upload of artifact content to blob storage
     Uploaded bytes 17431
     Finished uploading artifact content to blob storage!
     SHA256 digest of uploaded artifact is 34e0f4158d7d793ec7705f0acbb92eb1f198c8ae11fd018b52dbbf3675ba611b
     Finalizing artifact upload
     Artifact cics-crucible-results successfully finalized. Artifact ID 11771780265
     Artifact cics-crucible-results has been successfully uploaded! Final size is 17431 bytes. Artifact ID is 11771780265
     Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38299417475/artifacts/11771780265
     Post job cleanup.
     Post job cleanup.
     [command]/usr/bin/git version
     git version 2.55.0
     Temporarily overriding HOME='/home/runner/work/_temp/e0271fb7-5313-4948-93d9-0e71e32ac8f0' 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 1/3 (failure) -- real
   https://github.com/squid-protocol/gitgalaxy/actions/runs/38299417617/job/114981402120
   repro: python -m pytest -q tests/cobol_mainframe/test_cics_spec_equality.py::test_crucible_runner_condition_abcode_equals_the_spec
   failing tests: tests/cobol_mainframe/test_cics_spec_equality.py::test_crucible_runner_condition_abcode_equals_the_spec
   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 {'NOTFND': 'A...: 'AEYH', ...} == {'NOTFND': 'A...: 'AEYH', ...}
     tests/cobol_mainframe/test_cics_spec_equality.py:48: AssertionError
     FAILED tests/cobol_mainframe/test_cics_spec_equality.py::test_crucible_runner_condition_abcode_equals_the_spec - AssertionError: assert {'NOTFND': 'A...: 'AEYH', ...} == {'NOTFND': 'A...: 'AEYH', ...}
     ##[error]Process completed with exit code 1.
   log tail:
     FAILED tests/cobol_mainframe/test_cics_spec_equality.py::test_crucible_runner_condition_abcode_equals_the_spec - AssertionError: assert {'NOTFND': 'A...: 'AEYH', ...} == {'NOTFND': 'A...: 'AEYH', ...}
       Omitting 12 identical items, use -vv to show
       Right contains 2 more items:
       {'CHANNELERR': 'AEZV', 'CONTAINERERR': 'AEZJ'}
       Full diff:
         {
             'NOTFND': 'AEIM',
             'LENGERR': 'AEIV',
             'ITEMERR': 'AEIZ',
             'QIDERR': 'AEYH',
             'MAPFAIL': 'AEI9',
             'ENDDATA': 'AEI2',
             'PGMIDERR': 'AEI0',
             'INVREQ': 'AEIP',
       +     'NOTAUTH': 'AEY7',
       -     'CONTAINERERR': 'AEZJ',
       -     'CHANNELERR': 'AEZV',
             'TOKENERR': 'AEZL',
             'ILLOGIC': 'AEIU',
             'END': 'AEXK',
       -     'NOTAUTH': 'AEY7',
         }
     1 failed, 2537 passed, 539 skipped, 1 warning in 440.90s (0:07:20)
     ##[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/eea55493-ba51-49e2-a700-fcb37c116b9f' 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 merged commit e075b92 into main Oct 12, 2026
68 checks passed
@squid-protocol
squid-protocol deleted the churn/4951-20261012T1800Z branch October 12, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant