Skip to content

equivalence: bad-format amount and date inputs, one clause at a time, on tranadd and report (Part of #5401) - #5830

Merged
squid-protocol merged 3 commits into
mainfrom
churn/5401-20261021T0606Z
Oct 21, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/5401-20261021T0606Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #5401. Checklist: done [c:e957831c]

What

COTRN02C validates the amount (4 clauses: sign byte, digits 2-9, the point, cents) and each date (5 clauses: year, -, month, -, day) separately. The tranadd case had one all-bad value per field, which fails the first clause and leaves a mutant of any later clause alive. Class: a validated screen field whose case states only one all-bad value. Of the seven ports only tranadd (COTRN02C) and report (CORPT00C) validate amount/date input.

member status
tranadd amount, 6 scenarios (sign, first digit, last digit, point, cents tens, cents units) added
tranadd original date, 5 scenarios (one per clause) added
tranadd processing date, 5 scenarios added
report one-digit EDTMMI (custom-end-month-single-digit) added
tranadd eea78d1ed0 (char with no cp037 encoding) gap, below

Hand-written files: 2 case.json, 1 test, 1 doc paragraph. evidence.json for both cases is regenerated by equivalence.py run --record.

Evidence

  • tranadd: GnuCOBOL and the port agree on all 16 new scenarios; proven on 74 scenarios, 18/18 paragraphs, 72/75 branches.
  • report: agree (20/20 events); proven on 30 scenarios, 10/10 paragraphs, 52/59 branches.
  • Mutation re-run of the same sample (seed 0, 100 mutants, no --record): tranadd 18030c6651, d06e6adeed, b72db7485f (killed as java: the mutated port crashes on the amount), 327311d5b9, 1cee2b8e8a, b7fd450d80 killed; report 70523f5c3d killed by the new scenario. Scores not recorded.
  • pr_gates --fast 7/7, --ratchets 8/8, audit_check clear, test_evidence.py 38 passed, tree-wide guards and the new test (18) pass.
  • Merged main before opening (shared doc mutation_testing.md); both paragraphs kept.

Sibling gaps

  • tranadd eea78d1ed0: a character with no cp037 encoding in the amount sign or a date separator; the oracle may not carry it (harness decision). Burned program: COTRN02C.
  • tranadd 35957e9be4, 77da652333 and report d2fca7d77a: fractional amounts/date values, the next item ("Rounding with fractional amounts").
  • menu d0d83ca83a, b6dee00295, eb432ac97d (OPTIONI 1!): bad-format option, not amount/date; COMEN01C is not one of the seven ports.
  • report non-numeric date digits: NUMVAL-C on non-numeric data is undefined on IBM; would be refused by name or follow cobc with a register note.

Cross-repo: none.

🤖 Generated with Claude Code

Merge update: merged origin/main after #5805; tranadd re-recorded (74 scenarios), report re-recorded (30), det_port.py check: 154/154 ports unchanged, pr_gates --fast 7/7, --ratchets 8/8, audit_check clear.

…time on tranadd and report (Part of #5401)

COTRN02C validates the amount (4 clauses) and each date (5) separately; the case had one all-bad value per field. One scenario per clause with only that byte bad, plus report's one-digit EDTMMI. Kills tranadd 18030c6651, d06e6adeed, b72db7485f, 327311d5b9, 1cee2b8e8a, b7fd450d80 and report 70523f5c3d.

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.

1 similar comment
@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 06:34
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 06:34
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5830 @ d3bba97: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39556250696/job/119077922598
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 150 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 121203
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 8064f78af074264163df03385d1f733a73bf64dbc6aaafd9c02eb09bf54a53f2
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12325168521
Artifact det-sweep-ledger has been successfully uploaded! Final size is 121203 bytes. Artifact ID is 12325168521
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39556250696/artifacts/12325168521
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/c0f45d68-f288-4eca-9326-6561f672c7fd' 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
#5805)

tranadd now carries main's #5805 scenarios plus the 16 bad-format ones (74 in all, 72/75 branches);
report re-proven on 30 (52/59). det_port check: 154/154 ports unchanged.

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

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (77ab0b6) 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.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 06:57
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5830 @ 77ab0b6: 1 failed check(s)

== det (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39558533407/job/119085378347
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 150 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 121203
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 41a2aff2038d96a0983d0ba6458178cda8036089cddb258d295d097ff95c6b07
Finalizing artifact upload
Artifact det-sweep-ledger successfully finalized. Artifact ID 12326159810
Artifact det-sweep-ledger has been successfully uploaded! Final size is 121203 bytes. Artifact ID is 12326159810
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39558533407/artifacts/12326159810
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/5b673aeb-4386-40cc-8efd-cb5a82f35714' 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
…ddemo-tranadd (74) (Part of #5401)

Written by det_coverage_ledger.py update from a det sweep of the two cases.

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

No description provided.

@squid-protocol squid-protocol removed 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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit cc9fa3f into main Oct 21, 2026
33 checks passed
@squid-protocol
squid-protocol deleted the churn/5401-20261021T0606Z branch October 21, 2026 07:20
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