Skip to content

Collation hazards: extract alphanumeric relation conditions (Part of #4035) - #5339

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4035-20261017T1258Z
Oct 17, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4035-20261017T1258Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4035 (layer 1: fact + port ticket).

What

  • New 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_sequence keys (only when non-empty), two markdown tables with the exact CobolCompare call, and a TODO rule for a custom collating sequence.
  • 30 tests in tests/cobol_mainframe/test_relation_facts.py incl. a burned-estate smoke (CardDemo, CBSA, GenApp).

Plan deviation

New module relation_facts.py instead of adding to data_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 pytest from /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

  • ruff RUF021 / ISC004 hit new code: parenthesize a or (b and c) and implicit string concatenation in lists.

🤖 Generated with Claude Code

…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 17, 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 17, 2026 13:38
@squid-protocol
squid-protocol enabled auto-merge (squash) October 17, 2026 13:39
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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