Skip to content

tests: pin the codec pad/truncate assumption behind CardDemo equivalent survivors (Part of #5401) - #6315

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5401-20261024T0126Z
Oct 24, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5401-20261024T0126Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checks the assumption "the COMMAREA / screen codec pads and truncates each field to its declared width", which 21 equivalent survivors of the burned CardDemo ports rest on. Test only, no engine change, no golden.

Checklist: done [c:cdb8fd24]

What it pins

  • Harness codec (equivalence_common.text_bytes): short, exact, over-wide, empty, accented values at every cited width; a one-wider value gives the same bytes.
  • Generated runtime codec (CobolRecords.putText, compiled with the local JDK): same inputs, and the bytes either side of the field stay untouched.
  • Each survivor's cited width against the CardDemo copybooks (COCOM01Y, CVTRA05Y, BMS CPYs): all 20 field claims hold. A completeness check fails if a new equivalent survivor cites the codec without an entry.
  • No scenario in the seven cases feeds a value wider than its field (IBM cannot send one), so truncation only happens on a port's own output; this pins it directly rather than by scenario.

Class / Sibling gaps

Class: equivalent verdicts resting on codec pad/truncate. Members done: billpay, cardlist, cardview, report, tranadd, userupd (tranlist has none). Gap not covered: the claim does not prove a widened value is never read from the DTO getter before it crosses the codec; the mutants' survival in real runs is the evidence for that.

Facts checked: all new tests pass; pr_gates --fast 7/7; time ratchet clean; test_source_reads passes.

🤖 Generated with Claude Code

…valent survivors (Part of #5401)

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 24, 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 24, 2026 01:35
@squid-protocol
squid-protocol enabled auto-merge (squash) October 24, 2026 01:41
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 783692f into main Oct 24, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/5401-20261024T0126Z branch October 24, 2026 01:55
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