Repository navigation
feat(cobol-to-java): traceability.json — every generated artifact traced to its COBOL (#3650) - #3682
Merged
Merged
Conversation
…ced to its COBOL (#3650) Every run now writes traceability.json next to the generated Java. It holds one entry per generated artifact: controller endpoints, service calls, file ops, UoW commits/rollbacks, abend handlers, COMMAREA DTOs and each field, and VSAM entities, keys and repositories. Each entry lists the verified-skeleton facts behind it (COBOL source:line, plus item @offset+bytes for fields), the ledger field that fact belongs to, and that field's live field-testing status from fact_channel_confidence.json. The entry's TODOs are carried too. java_migration_audit.txt gets a summary line. TraceLog normalizes centrally: the ledger comes from skeleton_export's channel maps, never from a per-forge hardcode; entries are deduplicated; class-level entries are named after their class. The generated Java is byte-identical to main (6 corpora x 3 configs). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
Conflict in skeleton_forges: kept both TraceLog wiring and Db2Forge. Db2Forge now records each statement method (source file:line, "DB2 table access", a TODO when the engine isn't db2) and each DECLAREd row class. Also untangles the #3617/#3618 comments glued onto one ESTATE_JOINS line by the #3680 conflict resolution. 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 #3650.
What
Every
cobol-to-javarun now writes atraceability.jsonnext to the generated project. This is the paper trail behind each generated artifact.{"file": "src/main/java/.../service/MenuService.java", "symbol": "MenuService#linkAcctinq", "kind": "service-call", "facts": [{"source": "cbl/MENU.cbl:8", "ledger_field": "call targets", "field_testing": "open (6 public / 0 private estates)", ...}], "todos": [...]}item: "CA-ACCT-ID @0+11");fact_channel_confidence.json.summarycounts artifacts, facts, TODOs and a per-kind breakdown.java_migration_audit.txtgets a line:Traceability (#3650) : N artifacts, M facts, K TODOs.The ledger mapping comes from
skeleton_export's own channel maps, never a per-forge hardcode.TraceLognormalizes centrally: it dedupes entries and names class-level entries after their class.CardDemo (default config)
425 artifacts, 632 facts, 67 TODOs. 0 cited files missing. Every fact resolves to a ledger field:
Safety
traceability.jsonand the audit txt: no differences.tests/cobol_mainframe+tests/tools_recorders: 873 passed.--javais all PASS: ruff, mypy, dead-key, xray, field-testing, refraction-snapshot, and the CardDemo and GENAPP compiles.Tests
tests/cobol_mainframe/test_traceability.py:entry transactionsand a status;MENU.cbl:8andcall targets;@offset+bytes;Provenance
An agy (Gemini 3.1 Pro) agent drafted this from a brief. I reviewed it and reworked:
"Class";skeleton_version;Also
ESTATE_JOINSline.Follow-ups
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g