Skip to content

Tool: ir_join_diff.py -- blast radius of an engine-reader change (#3653) - #3667

Merged
squid-protocol merged 3 commits into
mainfrom
tools/ir-join-diff-3653
Sep 25, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
tools/ir-join-diff-3653

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #3653.

python tests/tools/ir_join_diff.py --base origin/main [--corpus NAME ...] [--rescan] [--expect-none] [--json OUT]

  • Scans each pinned corpus once, into .ir_join_diff_cache/ (gitignored).
  • Loads the DB with both readers: the base's galaxy_ir.py via git show, and the working tree's.
  • Diffs every argument-free GalaxyIR join: lists as multisets of rows, dicts per key.
  • Reports errors on either side and joins that exist on one side only.
  • --expect-none exits 1 on any change.
  • The modernization skill's consumer-audit step 3 now names this tool, replacing the hand-written diff script used for D022 and Java conversion: CICS FILE (VSAM) operations + FILE-CONTROL / IDCAMS -> Spring Data repositories #3617.

Verified independently

  • Unchanged branch: all 6 corpora, 47 joins each, 0 changed, exit 0 with --expect-none (42 s cold).
  • A deliberately dropped dynamic_call_targets row is reported, along with the navigation and completeness joins derived from it (from the agent's run, reverted).
  • test_ir_join_diff.py covers multiset semantics, dict joins and join discovery. ruff / mypy audits are clean.

Written by an agy (Gemini 3.1 Pro) agent from a scoped brief. I reviewed it, re-ran it, and added the module docstring and quiet scans.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

squid-protocol and others added 2 commits September 25, 2026 14:44
…3653)

Diffs every argument-free GalaxyIR join, base ref vs working tree, on the
pinned mainframe corpora:
- each corpus is scanned once into .ir_join_diff_cache/ and read by both
  galaxy_ir.py versions (the base's via git show);
- lists are compared as multisets, dicts per key;
- a join that errors on either side, or exists on one side only, is
  reported;
- --expect-none exits 1 on any change; --json writes the full result.

Run against the unchanged branch, all 6 corpora report 47 joins, 0
changed (42 s cold). With one row dropped from dynamic_call_targets it
reports that join plus navigation and completeness, which derive from it.
The modernization skill's consumer-audit step 3 now points to it.

Written by an agy (Gemini 3.1 Pro) agent from a brief; reviewed and run
independently.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Joe Esquibel <[email protected]>
@squid-protocol
squid-protocol merged commit f7f609b into main Sep 25, 2026
27 checks passed
@squid-protocol
squid-protocol deleted the tools/ir-join-diff-3653 branch September 25, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tool: ir_join_diff.py -- blast radius of an engine change across every GalaxyIR join on the pinned corpora

2 participants