Skip to content

Collation hazards: boundary inputs for compared alphanumeric fields (Part of #4035) - #5646

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4035-20261019T1406Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4035-20261019T1406Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4035 (layer 3 of 3: the proof; layers 1 and 2 landed as #5339 and #5414).

What

tests/tools/equivalence_inputs.py: a dataset whose generate has "collation": true now takes, for each text field the program compares as alphanumeric, values on the EBCDIC/ASCII disagreement, so a String.compareTo port fails the field-by-field diff instead of passing by luck.

  • collation_operands(case, corpus): runs relation_facts over the program and the COPY members it (transitively) uses; returns {FIELD: literals compared with it} for alphanumeric rows, plus the endpoints of a level-88 THRU range over a field (condition_ranges). Class conditions, sign conditions and numeric rows are not picked up (relation_facts skips them).
  • boundary_values(nbytes, literals, enc): digit vs letter, lower vs upper case, short values (trailing blanks), blank, LOW-/HIGH-VALUES (the single byte x'00' / x'FF' in the data encoding, incl. cp037), and each literal, its case swaps, trailing blank, prefix, and last-char neighbours.
  • generate_dataset(..., collation=): boundary values by row for such fields; a case rule (values/digits/date/from), a key part, FILLER, numeric and date-shaped fields keep their old behaviour. Off unless asked, so no existing case or evidence moves.

Class table

Member Status
alphanumeric relation conditions (IF / EVALUATE WHEN / PERFORM UNTIL / SEARCH WHEN), abbreviated conditions this PR
level-88 THRU ranges this PR
HIGH-/LOW-VALUES, trailing blanks, case, digit vs letter this PR
turn collation on in a burned-estate case none eligible: the only compared layout fields in generated burned cases are the dates of CBTRN02C (ACCT-EXPIRAION-DATE, DALYTRAN-ORIG-TS), which keep their date shape

Gates

pr_gates --fast 6/6, --ratchets 8/8, audit_check clear, tree-wide guard tests 184 passed, new + neighbouring tests 54 passed / 3 skipped (translator), time_ratchet check 0 over limit. No golden bless: nothing under gitgalaxy/ changed.

Cross-repo

None.

🤖 Generated with Claude Code

… fields (Part of #4035)

A dataset with generate.collation takes, for each text field the program compares as
alphanumeric (relation_facts) or tests with a level-88 THRU range, values on the EBCDIC/ASCII
disagreement: digit vs letter, lower vs upper case, trailing blanks, LOW-/HIGH-VALUES and the
literals compared with it.

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 14:17
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 14:21
@squid-protocol
squid-protocol merged commit b5d2130 into main Oct 19, 2026
59 checks passed
@squid-protocol
squid-protocol deleted the churn/4035-20261019T1406Z branch October 19, 2026 14:40
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