Repository navigation
feat(cobol-to-java): migration worklist — every generator TODO as one plan (#3651) - #3687
Merged
Merged
Conversation
… plan (#3651) Every run now writes migration_worklist.md + .json next to the generated project. Each open item is filed by category and COBOL source, with its file:line, symbol(s), the fact it rests on (from traceability.json) and a suggested resolution. Items are grouped by nature (conflict / fact-gap / review / port), and the audit gets a section [3] with the counts. Two sources joined per file: TODO comments in the Java, resources and build files (the ground truth, with lines) and the #3650 manifest's TODOs (symbols and facts). Every TODO is accounted for: an item, a manifest twin, or the DB2 repository's declared once-per-class summary. A drift test fails when a generator writes a TODO kind with no category. Fixes a #3650 bug found by the reconciliation: TraceLog deduped on (file, symbol, kind), keeping only a service's FIRST unchecked RESP. Different COBOL lines are now different findings (GENAPP manifest TODOs 113 -> 256). Generated Java byte-identical to main (6 corpora x 3 configs); refraction snapshots re-blessed: the audit's section [3] and the two worklist files only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
…unused _BY_ID 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.
Closes #3651. Part of #3625.
What
Every
cobol-to-javarun now writesmigration_worklist.mdandmigration_worklist.jsonnext to the generated project. Together they list every TODO the generators left, as one plan:Each item has a stable ID (
WL-0001), a category, and the COBOL source it belongs to. It also gives thefile:linein the generated project, the symbol(s) it affects, and the facts it rests on (source line, ledger field and field-testing status, fromtraceability.json, Java conversion: machine-readable traceability manifest (every generated artifact -> its source facts) #3650).Categories each carry a suggested resolution. For example, a COMMAREA mismatch says: "for each caller, confirm which layout the callee reads… map that caller's record onto the DTO, or give the callee one DTO per entry".
Nature is the effort class a pilot plans with:
No hours are invented. The counts per nature are the inputs to an estimate.
The markdown has summary tables by nature, category and COBOL source, then a checklist (
- [ ]) per category grouped by program. A team can work straight from it.The audit gets a new section
[3] MIGRATION WORKLISTwith the counts.How the join works
Two sources are joined per file:
A manifest TODO with no Java line is still an item. That covers per-statement DB2 notes, and RESPs past the class comment's 30-entry cut-off. If the same Java note is recorded for several endpoints, it becomes one item listing every symbol.
The only fold is explicit: the DB2 repository's once-per-class "this SQL is DB2's" line, where its statements are already itemised. I reconciled this on all 6 corpora: every Java TODO is accounted for, and there are no duplicates.
An item belongs to the program whose Service or Controller it sits in. The controller supplies an estate-relative class→COBOL-file map, so a COMMAREA mismatch is filed under the callee, not under the callers its facts cite.
Drift guard.
test_every_generator_todo_has_a_categoryscans everyTODO:template intools/cobol_to_java/*.py. A generator that starts writing a new kind of TODO fails CI until it gets a category.A #3650 fix found along the way
TraceLogdeduped on(file, symbol, kind). Unchecked RESPs are class-level entries, so the manifest kept only the first per service. The key now includes the facts' sources: different COBOL lines are different findings. Manifest TODOs went from 113 to 256 on GENAPP and from 6 to 74 on zECS.Safety
[3]and the two new worklist files per corpus.tests/cobol_mainframe+tests/tools_recordersgave 884 passed. Preflight--javais all PASS. The newtest_migration_worklist.pycovers:Observation (not changed here)
A resolved caller's record outranks the callee's own LINKAGE DFHCOMMAREA, even when that declares concrete fields of a different width (31 vs 6 bytes in the test estate). That is the #3615 precedence. The worklist shows the resulting mismatch correctly. I'm filing it as a separate issue for discussion.
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g