Repository navigation
Collation hazards: extract alphanumeric relation conditions (Part of #4035) - #5339
Merged
Merged
Conversation
…port ticket (Part of #4035) New gitgalaxy/core/relation_facts.py reads IF / EVALUATE / PERFORM UNTIL / SEARCH WHEN relation conditions (abbreviated ones carried forward), classifies each operand, and lists the alphanumeric ones with the exact CobolCompare call. Level-88 THRU ranges over non-numeric items and PROGRAM COLLATING SEQUENCE / ALPHABET clauses are reported; a custom sequence adds a ticket rule. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 17, 2026 13:38
squid-protocol
enabled auto-merge (squash)
October 17, 2026 13:39
Contributor
This was referenced Oct 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4035 (layer 1: fact + port ticket).
What
gitgalaxy/core/relation_facts.py:relation_facts(IF / EVALUATE WHEN / PERFORM UNTIL / SEARCH WHEN, abbreviated conditions carried forward, class/sign/level-88 skipped, EXEC skipped),condition_ranges(level-88 THRU over non-numeric items),collating_sequence(PROGRAM COLLATING SEQUENCE / ALPHABET).cobol_to_java_port_tickets.py:relations,condition_ranges,collating_sequencekeys (only when non-empty), two markdown tables with the exactCobolComparecall, and a TODO rule for a custom collating sequence.tests/cobol_mainframe/test_relation_facts.pyincl. a burned-estate smoke (CardDemo, CBSA, GenApp).Plan deviation
New module
relation_facts.pyinstead of adding todata_moves.py(self-contained; resolves operand class from data items itself, unresolved =unknown, never guessed numeric).Gates
pr_gates --fast 6/6; audit_check all clear; new tests 30 pass (plain
pytestfrom /tmp too). Golden masters not expected to move (no detector change).Sibling gaps (not in this PR)
Layer 2 guardrail; layer 3 boundary inputs; deterministic level-88 predicates; COPY REPLACING not applied; SORT/MERGE COLLATING SEQUENCE; file-level alphabets; DECIMAL-POINT #3984 / DBCS #3985 / BiDi #3987 reuse.
Lessons for agents
ruffRUF021 / ISC004 hit new code: parenthesizea or (b and c)and implicit string concatenation in lists.🤖 Generated with Claude Code