Skip to content

det translator: more readable Java — extend provably-safe lifting from bytes to plain Java types #4715

Open

Description

@squid-protocol

What. COBOL programs often reinterpret the same bytes (REDEFINES, group MOVEs), so faithful ports keep byte-exact storage, which produces hard-to-read Java. The translator already lifts some fields to plain Java types when that's provably safe (program.py lift criteria). Extend this: more field kinds, local reasoning about REDEFINES and group use, and readable names.

Measure readability per port: share of fields lifted, runtime calls per statement, method sizes. Track it in the evidence report.

Acceptance.

  • A readability metric per port.
  • An increase on the burned estates.
  • No verdict change: full det sweep, fuzz 0 diffs.
  • Every lift is justified by a recorded safety reason.

Part of the cobolrt-as-a-product epic (linked from the epic). Owner-approved direction, 2026-10-08.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlegacy-modernizationpriority: mediumscope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions