Skip to content

det facade: answer a RETURN COMMAREA whose LENGTH differs from the record (Part of #5089) - #5579

Merged
squid-protocol merged 9 commits into
mainfrom
churn/5089-20261019T0427Z
Oct 19, 2026
Merged

squid-protocol merged 9 commits into
mainfrom
churn/5089-20261019T0427Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5089 (boxes 1 and 3, first slice). CBSA BNK1UAC, BNK1TFN and BNK1CCS now pass the java-facade comparison for a RETURN COMMAREA whose LENGTH differs from the DFHCOMMAREA record. UAC and TFN leave det_sweep_baseline.json.

What changed

  • det/program.py: a typed handleTransaction whose DTO has no fromCommarea layout (a POINTER refuses one; the generator writes layouts only into DTOs a facade converts between) reads the passed bytes through the program's own storage codec (codecAnswer). Bytes past the record are dropped as undefined, a trailing POINTER the LENGTH stops short of reads NULL, and fewer bytes than the non-POINTER properties need still refuse by name. An Object answer keeps the bytes (a DTO cannot hold a space in a numeric field, as COCRDUPC showed).
  • tests/tools/equivalence_cics.py: answered() checks the read by writing the DTO back through the codec over the passed bytes (wideSame) and comparing over the span both sides define. A differing byte inside it still fails.
  • X51 register entry extended; test_commarea_length_differs_5089.py; CCS baseline text narrowed.

Plan change

The plan guessed the fix was in CicsTask.returned / fromCommarea. Neither DTO has a layout, so the fix is in the det storage codecs instead; CicsTask/the forge are untouched.

Evidence

Before: UAC (72 scenarios), TFN (45), CCS (83) equal on runTask, java-facade refused every scenario: unproven, baselined. After: det_port.py run PROVED for all three. UAC and TFN leave the baseline. CCS stays baselined (X18/L4 holes, no create-customer scenario).
det_port.py check: 128/131 unchanged, only these three move (re-proved). Oracle is GnuCOBOL plus our stub.

Remaining slices

BNK1CCS create-customer scenarios in case.json (#5064 CEEDAYS merged); CCS needs X18/L4 closed too.

Sibling gaps

Same mechanism, not here: a POINTER before another field or under OCCURS (refused, C9). Other baselined programs: ZECS003/ZECS000 need dynamic ZC##FILE (#4771); RUN-child counters; V-KSDS record lengths; cbsa-delcus rollback.

Gates

pr_gates --fast 6/6, --ratchets 8/8, audit_check clear, related facade tests pass.

Lessons for agents

det_port.py check marks every Object-facade carddemo port changed by any facade-helper edit; emit helpers only where used.

🤖 Generated with Claude Code

squid-protocol and others added 3 commits October 19, 2026 00:45
…cord through the program's codec (Part of #5089)

BNK1UAC (LENGTH 99 of a 107-byte record ending in a POINTER), BNK1TFN (LENGTH 29 over 28) and BNK1CCS (LENGTH 248 over 5)
leave the java-facade refusal; BNK1UAC and BNK1TFN leave the det sweep baseline.

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 19, 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 19, 2026 05:16
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 05:27
@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 #5579 @ 306f977: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39203669734/job/117915921864
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-zecs003 --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cbsa-crecust,mortgage-cmort,mortgage-csmrt,mortgage-mpmt,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-zecs003 NOT PROVEN
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 123 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 98259
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 120c56a6720056ed0a5a7afd290a6baeeabdca0f739ef3d0b1a705fd2289f529
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12165689788
Artifact det-sweep-ledger has been successfully uploaded! Final size is 98259 bytes. Artifact ID is 12165689788
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39203669734/artifacts/12165689788
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/4f0e226d-76bc-42e8-893c-c426b7b0173d' 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 19, 2026
squid-protocol and others added 2 commits October 19, 2026 02:56
…rage ledger entries for bnk1ccs/tfn/uac (Part of #5089)

Fixes the det check on #5579 ("now proven" ratchet and three missing ledger entries);
numbers read off a local Db2 sweep, identical to CI's.

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

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (e301ef9) 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 19, 2026
squid-protocol and others added 2 commits October 19, 2026 03:12
…enerated baseline entries, add uac-generated coverage ledger entry (Part of #5089)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 07:17
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5579 @ 2381e33: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39214586443/job/117939982600
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
Worker ID: {62717288-e3a3-4079-940e-a69e56f15541}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[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: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
ok "$WARM" && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: success
PARTS: failure
SKIP:
MODE: full
##[endgroup]
ground-truth warm: success, parts: failure (tested-tree skip: , plan mode: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 3/4 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39214586443/job/117937596130
repro: python -m pytest -q tests/cobol_mainframe/
errors:
fail-on-cache-miss: false
FAIL tests/cobol_mainframe/test_det_mq.py::test_the_runtime_is_the_oracle_model_byte_for_byte: 18.1s is over 15s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
archive: true
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
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-3.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 49786
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 6942e4b65bc83c1155ab447d7ba36d0c7d57e5633f997aa323e486390711ac06
Finalizing artifact upload
Artifact test-times-ground-truth-part-3 successfully finalized. Artifact ID 12169671908
Artifact test-times-ground-truth-part-3 has been successfully uploaded! Final size is 49786 bytes. Artifact ID is 12169671908
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39214586443/artifacts/12169671908
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/742141d2-fe83-4733-a2b6-df1fecdc1594' 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-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 19, 2026
squid-protocol and others added 2 commits October 19, 2026 04:04
test_the_runtime_is_the_oracle_model_byte_for_byte javac-compiles the MQ
runtime and starts one JVM and one C driver per script: 1.7 s locally,
11.4 s recorded, 18.1 s on a loaded CI runner, over the 15 s ratchet.

Co-Authored-By: Claude Opus 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 19, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 08:07
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 1789aec into main Oct 19, 2026
69 checks passed
@squid-protocol
squid-protocol deleted the churn/5089-20261019T0427Z branch October 19, 2026 08:26
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