Skip to content

X6: a WRITEQ LENGTH past FROM is FROM's bytes then spaces, ASSUMED on both sides (Part of #5252) - #5898

Closed
squid-protocol wants to merge 7 commits into
mainfrom
churn/5252-20261021T1820Z
Closed

squid-protocol wants to merge 7 commits into
mainfrom
churn/5252-20261021T1820Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5252 (slice 1 of 2).

Owner decisions

Owner OK (phone 2026-10-21): model short-source WRITEQ (X6: LENGTH past FROM) in the test stand-in/oracle, recorded as ASSUMED (IBM undefined; GnuCOBOL layout differs); unblocks lgdpvs01, lgucvs01, lgapvs01, lgupvs01 branches. Copy this line into the PR body under ## Owner decisions.

What changed

A WRITEQ TD/TS whose LENGTH runs past its FROM item used to stop both sides (98, "not modelled"; DetCics.PastFrom) and the task was judged only up to that statement. Both sides now write FROM's bytes then SPACES to LENGTH:

  • stub: _write_from in tests/tools/equivalence_cics.py moves FROM into a space-filled GG-PADQ PIC X(32767) (only added to programs that need it);
  • det port: DetCics.padded (rule RT-CICS-WRITEQ-PAST-FROM, now ASSUMED in cobolrt_rules.json), emitted by det/cics.py;
  • register/X6.md is ASSUMED. A LENGTH over 32767 is still refused. START / PUT CONTAINER / DOCUMENT CREATE past their area stay refused.

Class table

construct status
WRITEQ TD past FROM padded (this PR)
WRITEQ TS past FROM (new and REWRITE) padded (this PR)
WRITEQ LENGTH > 32767 refused
SEND TEXT / CONVERSE past FROM contiguous bytes of the record (#4270); typed numeric siblings missing, see lgsetup below
START / PUT CONTAINER / DOCUMENT CREATE past area refused (X18, X38, X33); no burned program needs them

Evidence

  • det_port.py check: 142 ports flagged (DetCics.java edit moves every port's diff); det_port.py run on the 7 whose service file changed: lgstsq, lgicvs01, lgwebst5, lgtestc1, zecs-zecsplt, zecs-zecs000 PROVED; genapp-lgsetup DIFFERS.
  • lgsetup: it used to stop at its WRITEQ TS past FROM. It now reaches SEND TEXT FROM(WRITE-MSG-H) LENGTH(24), which sends WRITE-MSG-H plus WRITE-MSG-HIGH PIC 9(10); the det port keeps that numeric as a BigDecimal outside the record bytes, so Java sends zeros (HIGH CUSTOMER=0000000000 vs =0000000050). An existing translator defect the old stop hid, not a regression of the padding. Baselined by hand in det_sweep_baseline.json with its cause (Siblings of #4174: GenApp VSAM programs' COMMAREA (STARTCODE D) path cases #5252); the fix (pack the enclosing record before a past-FROM read) is a Remaining slice.
  • Db2 cases (lgacdb01 etc., which reach LGSTSQ's 104-byte record) were not re-proven in this PR.
  • equivalence.py run genapp-lgdpvs01 shows 0/N equal both here and on unmodified main: it runs the Spring facade, not the det port, so it is not a proof route.
  • Gates: pr_gates --ratchets 8/8 PASS, audit_check.py clear, ruff format clean, unit and rule-catalogue tests pass. Golden masters untouched (no parsing change).

Why more than 5 hand-written files

8 files: the tests (test_det_translate, test_equivalence_cics) and cobolrt_rules.json pin the old refusal text, X6.md is the register page, and det_sweep_baseline.json records lgsetup. The core change is 3 files (equivalence_cics.py, det/cics.py, DetCics.java).

Remaining slices

  1. case.json scenarios and notes for genapp-lgdpvs01, lgucvs01, lgapvs01, lgupvs01 (and lgacvs01, lgicvs01, same unreachable arms); det coverage ledger refresh; re-prove the Db2 cases.
  2. evidence.py: list X6 as an assumption for tasks that run the padded WRITEQ (today only for judged-up-to tasks).
  3. lgsetup: pack the enclosing record's typed items before a past-FROM SEND TEXT read, then drop its baseline entry.

Cross-repo: none.

Lessons for agents

  • Making a refusal into a model un-hides what lay behind it: re-prove every port whose service file changed, not just the target, and expect an existing defect to surface (lgsetup).
  • equivalence.py run CASE takes the bare case name and uses the facade, not the det port; use det_port.py run.

🤖 Generated with Claude Code

Fix round (det)

The X6 WRITEQ-past-FROM model unmasked a run-written CURRENT TIMESTAMP inside LGAPDB01's CICA record (6 genapp cases differed) and a column-72 overflow on a long FROM name (carddemo-copaua0c). mask_clock_events now masks a clock inside an event's text/data when the case declares clock_fields; the GG-PADQ move splits when long. Det coverage ledger re-recorded for the 10 cases that moved.

Rescue round (merge with main)

Merged origin/main (no rebase). The one conflict, det_sweep_coverage/carddemo-copaua0c.json (harness fingerprint; both sides changed equivalence_cics.py), was resolved by re-running the det sweep on the merged tree: copaua0c, lgapol01, lgtestp1-4, lgupol01, lgdpvs01 and lgucvs01 all PROVED, sweep: as expected. The 9 ledger files were written by det_coverage_ledger.py update, and check passes. pr_gates --fast 7/7, and 723 unit tests pass (test_equivalence_cics, test_det_translate, test_source_reads, test_proof_reach). Stacked follow-up: #5900 (merges after this one).

Checklist: partial [c:190843d4] -- LGDPVS01 det sweep now 3/4 branches, 3/3 paragraphs (was 0/4); 1 branch left
Checklist: partial [c:c7bc14cc] -- LGUCVS01 det sweep now 3/4 branches, 3/3 paragraphs (was 0/4); 1 branch left
Checklist: partial [c:5dfb49d0] -- LGAPVS01 det sweep now 7/9 branches (was 5/9); 2 branches left
Checklist: partial [c:cf05352d] -- LGUPVS01 det sweep now 7/9 branches (was 5/9); 2 branches left
Checklist: partial [c:818452c8] -- LGICVS01 det sweep now 10/12 branches (was 7/12); 2 branches left

squid-protocol and others added 2 commits October 21, 2026 14:40
… sides ASSUMED (Part of #5252)

Owner 2026-10-21: the stub and the det port write the same record (FROM, then SPACES to LENGTH) instead of refusing.
A LENGTH over 32767 stays refused. genapp-lgsetup, now past the WRITEQ, reaches an existing SEND TEXT past-FROM
defect (typed numeric sibling not in the bytes) and is baselined with its cause.

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 21, 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 21, 2026 18:46
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 18:48
@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

No description provided.

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5898 @ e1a8b19: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39655719505/job/119444944901
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases carddemo-copaua0c,carddemo-copaua0c:,cbsa-crecust,genapp-lgapol01,genapp-lgapol01:,genapp-lgsetup,genapp-lgtestp1,genapp-lgtestp1:,genapp-lgtestp2,genapp-lgtestp2:,genapp-lgtestp3,genapp-lgtestp3:,genapp-lgtestp4,genapp-lgtestp4:,genapp-lgupol01,genapp-lgupol01:,mortgage-cmort,mortgage-csmrt,mortgage-mpmt --work /tmp/gitgalaxy-scratch/ci-digest/sweep
det cases not proven: carddemo-copaua0c,carddemo-copaua0c:,cbsa-crecust,genapp-lgapol01,genapp-lgapol01:,genapp-lgsetup,genapp-lgtestp1,genapp-lgtestp1:,genapp-lgtestp2,genapp-lgtestp2:,genapp-lgtestp3,genapp-lgtestp3:,genapp-lgtestp4,genapp-lgtestp4:,genapp-lgupol01,genapp-lgupol01:,mortgage-cmort,mortgage-csmrt,mortgage-mpmt
errors:
det carddemo-copaua0c NOT PROVEN
det genapp-lgsetup NOT PROVEN not proven; 2 scenarios cover 1/1 paragraphs and 2/2 branches
det mortgage-csmrt NOT PROVEN proven on 5 scenarios, covering 1/1 paragraphs and 1/2 branches
det mortgage-mpmt NOT PROVEN
det carddemo-copaua0c: 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 genapp-lgapol01 NOT PROVEN not proven; 11 scenarios cover 2/2 paragraphs and 5/8 branches
det genapp-lgtestp1 NOT PROVEN not proven; 25 scenarios cover 10/10 paragraphs and 19/19 branches
det genapp-lgtestp2 NOT PROVEN not proven; 25 scenarios cover 10/10 paragraphs and 19/19 branches
det genapp-lgtestp3 NOT PROVEN not proven; 25 scenarios cover 10/10 paragraphs and 19/19 branches
det genapp-lgtestp4 NOT PROVEN not proven; 25 scenarios cover 9/9 paragraphs and 22/22 branches
det genapp-lgupol01 NOT PROVEN not proven; 17 scenarios cover 4/4 paragraphs and 13/16 branches
det mortgage-cmort NOT PROVEN proven on 16 scenarios, covering 6/6 paragraphs and 18/21 branches
det genapp-lgapol01: NOT PROVEN (not proven; 11 scenarios cover 2/2 paragraphs and 5/8 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det genapp-lgtestp1: NOT PROVEN (not proven; 25 scenarios cover 10/10 paragraphs and 19/19 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det genapp-lgtestp2: NOT PROVEN (not proven; 25 scenarios cover 10/10 paragraphs and 19/19 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det genapp-lgtestp3: NOT PROVEN (not proven; 25 scenarios cover 10/10 paragraphs and 19/19 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det genapp-lgtestp4: NOT PROVEN (not proven; 25 scenarios cover 9/9 paragraphs and 22/22 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
det genapp-lgupol01: NOT PROVEN (not proven; 17 scenarios cover 4/4 paragraphs and 13/16 branches); a new failure: fix it, or (only with its true cause and issue) add it to tests/equivalence/det_sweep_baseline.json
##[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 160 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 129466
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 6f24d84891ad577e3294c45daa78dfecf9c1f6cd833243918249f5cc7852dafb
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12376991653
Artifact det-sweep-ledger has been successfully uploaded! Final size is 129466 bytes. Artifact ID is 12376991653
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39655719505/artifacts/12376991653
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/318ed4e9-ed2a-421c-863d-83f7d7ca7081' 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 21, 2026
squid-protocol and others added 2 commits October 21, 2026 15:47
…; re-record the det coverage (Part of #5252)

With a WRITEQ LENGTH past FROM now modelled, LGAPDB01's CICA line reaches the compared events with the run's
CURRENT TIMESTAMP in it, which differs between the two runs by the moment: mask_clock_events now masks a run-written
clock inside an event's text/data when the case declares clock_fields. A FROM item with a long name no longer pushes
the GG-PADQ move past column 72 (carddemo-copaua0c refused it). The det coverage ledger is re-recorded for the ten
cases that moved (LGDPVS01 now 2/4 branches).

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:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (9f498e1) 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 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Copy link
Copy Markdown
Owner Author

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@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 21, 2026
…coverage of the cases X6 moves (Part of #5252)

The carddemo-copaua0c ledger conflicted on its harness fingerprint (both sides changed
equivalence_cics.py). Resolved by re-running the det sweep on the merged tree, not by hand:
copaua0c, lgapol01, lgtestp1-4, lgupol01, lgdpvs01, lgucvs01 all PROVED ("sweep: as expected"),
ledger written by det_coverage_ledger.py update and checked.

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 21, 2026
This was referenced Oct 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

Superseded by #6573: regrafted onto current main on a fresh branch (this one was 562 commits behind with conflicts). The hand-written files were re-applied and the det coverage ledger and baseline regenerated. The #5900 follow-up is #6574, stacked on #6573.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant