Repository navigation
Java conversion: porting tickets in port order, most-depended-on programs first (#3237 follow-up) - #3792
Merged
Conversation
…ograms first (#3237) With call/exec edges in the graph, a program's callers now include the programs that CALL / LINK / XCTL it and the JCL steps that EXEC it, so the graph can say which programs to port first. - The refractor writes 04_ir_state_dumps/graph_metrics.json (callers, calls, blast radius per file) from the engine DB it read (--scan or --galaxy-db), so the clean room stays self-contained (galaxy_ir.write_graph_metrics). - Each porting ticket carries `priority` (rank of N, callers, blast radius) and its Markdown says so; ai_agent_jobs/port_order.json / .md list the tickets ordered by callers, then blast radius (PageRank flows in from well-linked callers such as a web layer, so it breaks ties rather than leading). - The worklist's by-program table follows the port order; the porting loop's `status` lists tickets in it and names the next open one. - Without a DB nothing changes: no priority, name order. CBSA: ABNDPROC (23 callers), INQCUST (4), INQACCCU (3), ...; CardDemo: CSUTLDTC (3), COMEN01C (3), CBTRN03C (2), ... Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
…ncatenation, #3792) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
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.
Follow-up to #3790 (#3237). This commit was pushed just after #3790 merged, so it lands here.
With call/exec edges in the dependency graph, a program's callers now include the programs that
CALL/LINK/XCTLit and the JCL steps thatEXECit. That lets the COBOL→Java tickets be put in order: the programs the most other code depends on come first. A shared service or error handler then gets ported, proven and approved before the programs that call it.04_ir_state_dumps/graph_metrics.json(callers, calls and blast radius per file) from the engine DB it read, for both--scanand--galaxy-db, so the clean room stays self-contained (galaxy_ir.write_graph_metrics).priority(rank of N, callers, blast radius), and its Markdown shows it.ai_agent_jobs/port_order.json/.mdlist the tickets ordered by callers, then blast radius. Blast radius only breaks ties: PageRank flows in from well-linked callers such as CBSA's Java web layer, and leading with it would put a one-caller program aboveINQCUST's four.port_runner statuslists tickets in it and names the next open one.Resulting order:
ABNDPROC(23 callers),INQCUST(4),INQACCCU(3),INQACC(2),DELACC(2), …CSUTLDTC(the shared date utility, 3),COMEN01C(3),CBTRN03C(2), …The generated Java is unchanged; only tickets, the worklist and the order files change.
Tests:
test_port_order.pyruns a real scan in which two programs CALL a third; that program is first in the tickets,port_order, the worklist andstatus. Locally the mainframe and recorder suites pass (1017).🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g