Skip to content

Java conversion: a porting ticket for every program with business logic, by default #3752

Closed

Description

@squid-protocol

Part of epic #3755. Found while measuring #3624's automation split.

Problem. Every generated program has a business-logic TODO: 165 worklist items and 44 stubbed services on CardDemo, 93 and 31 on CBSA. But no program gets a porting ticket by default:

  • the Java-side ticket stage needs 05_microservice_slices, which the refactor only writes in --var variable-slicing mode, so CardDemo produces 0 Java-side tickets;
  • the refactor's own 06_ai_agent_jobs covers only 3 of CardDemo's programs.

Needs. One porting ticket per program with a business-logic TODO, generated by default. Each ticket is bounded and fact-rich, so a person or an LLM can port the program onto the generated skeleton without re-deriving anything:

  • the program's PROCEDURE DIVISION, by paragraph, with its copybooks resolved;
  • the verified skeleton sections it touches (calls, files and keys, COMMAREA, queues, units of work, PARM), each with its field-testing status;
  • the generated Java it must fill: the service class and method signature (runBatch(dds, parm), handlers), the entities and record codecs, repositories, DTOs, and the CobolRecords runtime for storage semantics;
  • the porting rules the CBACT04C slice established: truncating COMPUTE / ADD, high-order loss on MOVE, and keeping the original's behaviour, defects included, documented at the spot;
  • the program's worklist items and its traceability entries;
  • an equivalence case to prove it, where one exists or can be drafted (datasets, keys, copybooks, PARM).

Tickets go in the generated project (ai_agent_jobs/) as JSON plus a readable Markdown twin. The migration worklist links each item to its ticket.

Done when: CardDemo and CBSA get a ticket for every stubbed program, tickets are deterministic (byte-identical across runs), and a test pins the ticket contents for a fixture program.

🤖 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

    scope:frontier

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions