Skip to content

CICS: NUM field with no JUSTIFY is RIGHT,ZERO (det RECEIVE MAP, oracle, crucible runner); drop cbsa-bnk1cac rate-letters (Part of #5116) - #5193

Merged
squid-protocol merged 8 commits into
mainfrom
churn/5116-20261014T1800Z
Oct 15, 2026
Merged

squid-protocol merged 8 commits into
mainfrom
churn/5116-20261014T1800Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5116 (siblings of #5082). Owner decision 2026-10-15 (comment on #5116): keep the NUM default (RIGHT,ZERO); drop cbsa-bnk1cac rate-letters (a 3270 NUM field cannot key letters).

What

  • A DFHMDF field with ATTRB=NUM and no JUSTIFY is RIGHT,ZERO in det RECEIVE MAP (_justify in the screen forge), the equivalence oracle (bms_justify/map_input) and the cics-crucible runner (cics_bms.received_value). IBM's sentence, re-read on the live DFHMDF page 2026-10-15: "If JUSTIFY is omitted, but the NUM attribute is specified, RIGHT and ZERO are assumed."
  • X54 rewritten with the page's own text; JUSTIFY on SEND MAP: not applicable (input operations only); PICIN/PICOUT: no run-time conversion, out of scope by name.
  • tests/equivalence/cbsa-bnk1cac/case.json: rate-letters dropped (owner decision). Every rate is now typed at the full 7 characters: IBM is silent on INTRTL after justification (X54 assumption 3 keeps the length typed), so a short rate would be read as its leading zeros through INTRTI(1:INTRTL) (create-current would silently create a 0% account).

Class table (BMS field input/output conversion)

member status
NUM default on RECEIVE MAP (det, oracle, crucible runner) handled here
JUSTIFY on SEND MAP not applicable (X54)
PICIN / PICOUT out of scope by name (X54)
OCCURS / GRPNAME per-occurrence JUSTIFY not modelled, by name (X54)

Evidence

  • det_port check: 15 of 112 ports changed. Re-proved: carddemo-report, cbsa-bnk1cac (after the case change), cbsa-bnk1cra, cbsa-bnk1dac, genapp-lgtestc1/p1-p4, mortgage-cmort/mlist/mlist-generated PROVED. cbsa-bnk1ccs, tfn, uac DIFFER (recorded on main too per the handoff; not re-checked against main here).
  • pr_gates --fast: 6/6. --ratchets: 8 pass, 0 fail, 0 skipped. Golden masters untouched (no parser change).

Sibling gaps

  • cbsa-bnk1cac overdraft-letters ('000000ab' into NUM OVERDR) and cbsa-bnk1uac inquire-non-numeric (ACCNOI 'ABCDEFGH', NUM) / rate-letters-mixed are the same unreal-input class; left in (owner named only rate-letters); they need an owner call. uac rate-letters is real input (INTRT there is not NUM).
  • What <f>L holds after BMS justification (IBM silent): needs calibration on a real region.
  • cbsa-bnk1ccs/tfn/uac DIFFER.

Cross-repo: none.

Lessons for agents

  • A NUM field with the length-typed assumption (X54 3) turns a short typed value into leading zeros under <f>I(1:<f>L): check what a changed justification does to every scenario's meaning, not only to which ones fail.
  • gh/proof order: the oracle (GnuCOBOL) side refuses before the Java side runs, so a fixed Java failure can surface a different refusal.

🤖 Generated with Claude Code

squid-protocol and others added 5 commits October 14, 2026 19:49
… oracle and the crucible runner; X54 names the rest (Part of #5116)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… letters; owner decision on #5116) (Part of #5116)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…s the NUM input; INTRTL is the length typed) (Part of #5116)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…tes at full width (Part of #5116)

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 15, 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 15, 2026 15:57
@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 16:03
@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 #5193 @ e2a320e: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38764900916/job/116531144684
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth
errors:
##[error]Process completed with exit code 1.
log tail:
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {74d021c7-2085-4086-bd0a-07836857edba}
Region: westus3
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 parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE)"
echo "ground-truth 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.
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
MODE: full
##[endgroup]
ground-truth parts: failure (tested-tree skip: , plan mode: full)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 1/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38764900916/job/116525978211
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/cobol_mainframe/test_bms_screens.py::test_the_view_model_and_the_handlers
errors:
fail-on-cache-miss: false
tests/cobol_mainframe/test_bms_screens.py:102: AssertionError
FAILED tests/cobol_mainframe/test_bms_screens.py::test_the_view_model_and_the_handlers - assert 'new ScreenField("AMOUNT", 20, 43, 5, true, true, false, false, false, null, null, 1, null)' in 'package com.gitgalaxy.modernized.dto.screen;\n
##[error]Process completed with exit code 1.
log tail:
8.30s call tests/cobol_mainframe/test_tool_regex_redos.py::test_no_new_offenders
7.96s call tests/cobol_mainframe/test_java_subprocess_utf8.py::test_no_java_subprocess_in_tests_decodes_with_locale_charset
7.69s call tests/cobol_mainframe/test_refraction_differential.py::test_excerpt_no_new_unexplained[aws-mainframe-modernization-carddemo]
7.44s setup tests/cobol_mainframe/test_port_tickets.py::test_every_program_with_business_logic_gets_a_ticket
7.36s call tests/cobol_mainframe/test_lifted_binary_trunc.py::test_typed_binary_stores_equal_bytes_and_the_oracle[item-STD]
7.04s call tests/cobol_mainframe/test_trunc_opt.py::test_a_value_past_the_picture_stops_by_name[COMPUTE SH = P0-98765 into a signed 4-digit binary item-True]
6.93s call tests/cobol_mainframe/test_det_programs.py::test_all_literal_relation_emits_compilable_java_with_and_without_a_collating_sequence
6.90s call tests/cobol_mainframe/test_trunc_opt.py::test_a_value_past_the_picture_stops_by_name[MOVE 99999 TO SH-99999 into a signed 4-digit binary item-True]
6.67s setup tests/cobol_mainframe/test_port_tickets.py::test_a_ticket_asks_only_for_what_the_proof_runs
6.57s call tests/cobol_mainframe/test_lifted_binary_trunc.py::test_typed_binary_stores_equal_bytes_and_the_oracle[literal-STD]
6.48s call tests/cobol_mainframe/test_trunc_opt.py::test_a_value_past_the_picture_stops_by_name[MOVE 9999 TO SH MOVE SH TO NS ADD 1 TO NS MOVE NS TO SH-10000 into a signed 4-digit binary item-True]
6.46s call tests/cobol_mainframe/test_lifted_binary_trunc.py::test_typed_binary_stores_equal_bytes_and_the_oracle[arithmetic-BIN]
6.36s call tests/cobol_mainframe/test_lifted_binary_trunc.py::test_typed_binary_stores_equal_bytes_and_the_oracle[literal-BIN]
6.33s call tests/cobol_mainframe/test_completeness.py::test_pinned_corpus_completeness[dbb-mortgage-application]
6.22s call tests/cobol_mainframe/test_trunc_opt.py::test_a_value_past_the_picture_stops_by_name[ADD 9999 TO K7-10006 into a signed 4-digit binary item-False]
6.17s call tests/cobol_mainframe/test_trunc_opt.py::test_a_value_past_the_picture_stops_by_name[ADD 9999 TO K7-10006 into a signed 4-digit binary item-True]
5.93s call tests/cobol_mainframe/test_trunc_opt.py::test_a_value_past_the_picture_stops_by_name[COMPUTE SH = P0-98765 into a signed 4-digit binary item-False]
5.84s call tests/cobol_mainframe/test_lifted_binary_trunc.py::test_typed_binary_stores_equal_bytes_and_the_oracle[arithmetic-STD]
5.79s call tests/cobol_mainframe/test_trunc_opt.py::test_conforming_values_give_trunc_stds_results[False]
5.52s call tests/cobol_mainframe/test_refraction_differential.py::test_excerpt_no_new_unexplained[cics-banking-sample-application-cbsa]
=========================== short test summary info ============================
FAILED tests/cobol_mainframe/test_bms_screens.py::test_the_view_model_and_the_handlers - assert 'new ScreenField("AMOUNT", 20, 43, 5, true, true, false, false, false, null, null, 1, null)' in 'package com.gitgalaxy.modernized.dto.screen;\n
1 failed, 3771 passed, 552 skipped, 1 warning in 251.59s (0:04:11)
##[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/ec02a78b-b770-45f1-b168-610475bc78b7' 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 15, 2026
…T,ZERO (Part of #5116)

The screen forge now returns the effective JUSTIFY (X54): IBM DFHMDF assumes
RIGHT and ZERO for a NUM field with none coded. The view-model assertion for
AMOUNT still expected null; QTY already expected RIGHT,ZERO.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI red (ground-truth 1/2) was a stale expectation: test_bms_screens.py AMOUNT (ATTRB=NUM, no JUSTIFY) still expected null; IBM DFHMDF assumes RIGHT,ZERO and the forge (X54) now emits it, so the test now expects "RIGHT,ZERO". Generator unchanged. No other test asserts ScreenField flags (grep). Local: BMS/det/cics tests 736 passed (4 skipped: Docker/NIST corpus), pr_gates --fast 6/6, --ratchets 8/8, 0 skipped.

🤖 Generated with Claude Code

@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (4e4a50e) 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 15, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 15, 2026 16:18
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5193 @ 4e4a50e: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38767515812/job/116546146113
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases cbsa-bnk1ccs,cbsa-bnk1tfn,cbsa-bnk1uac --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: cbsa-bnk1ccs,cbsa-bnk1tfn,cbsa-bnk1uac
errors:
det cbsa-bnk1ccs NOT PROVEN proven on 89 scenarios, covering 33/33 paragraphs and 112/143 branches
det cbsa-bnk1tfn NOT PROVEN proven on 46 scenarios, covering 28/28 paragraphs and 53/72 branches
det cbsa-bnk1uac NOT PROVEN proven on 73 scenarios, covering 31/31 paragraphs and 75/88 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 105 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 82862
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is d3abdb2e252f2ec4e69585a79ca51d7571dbe8ba1072ca117f9bd47b93171bcb
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 11990553842
Artifact det-sweep-ledger has been successfully uploaded! Final size is 82862 bytes. Artifact ID is 11990553842
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/38767515812/artifacts/11990553842
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/9e259d45-8e9a-4eab-a6f4-e2bc29a53ed8' 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 15, 2026
squid-protocol and others added 2 commits October 15, 2026 12:44
…ate-letters drop, #5116)

Re-proved on the PR's case (proof_sweep --det-only --db2-only): 32 scenarios, 25/25
paragraphs, 59/97 branches; the ledger held 33 / 60 from before the scenario with
rate letters was dropped (a 3270 NUM field cannot key letters).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

det job red (run 38767515812): both "unexpected" entries were cbsa-bnk1cac (coverage moved 33/60 -> 32/59, and the case fingerprint stale), both from the intended rate-letters drop. Re-proved locally with proof_sweep --det-only --db2-only --cases cbsa-bnk1cac: proved, 32 scenarios, 25/25 paragraphs, 59/97 branches, identical to CI. Ledger updated via det_coverage_ledger.py update, check "as expected". Merged origin/main first. pr_gates --fast 6/6, --ratchets 8/8.

🤖 Generated with Claude Code

@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 shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 15, 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.

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