Skip to content

Logic porting loop: bring-your-own LLM, human approval, proven by the equivalence harness #3753

Closed

Description

@squid-protocol

Part of epic #3755. Depends on the porting-ticket issue.

Goal. A porting loop the customer controls: their model, their reviewers, with proof for every accepted port.

  1. The runner picks up tickets and hands each to a pluggable LLM backend:

    • any OpenAI-compatible endpoint (vLLM, Ollama, Azure, a customer's gateway);
    • Anthropic;
    • manual (a person writes the port).

    Config names the backend. Nothing is hard-wired to a vendor, and an air-gapped local model works.

  2. The port lands as an overlay on the generated project, as tests/equivalence/<case>/port does today, never editing generated files in place.

  3. Proof: the equivalence harness (Java conversion: behavioural equivalence harness + CardDemo vertical slice #3624) runs the port against the original COBOL. The output is a record-by-record report, a compile result, and the guardrail check (Java conversion: guardrail check of AI-agent output against the verified skeleton #3652) against the verified skeleton.

  4. A human decides. Each port is shown with its diff, the harness report and the guardrail findings for approve / reject / edit. Nothing is accepted without sign-off, and every decision is logged with who, when and which model.

  5. Measurement: per estate, report programs ported / proven equivalent / approved / pending, per model. That's the honest version of "percent automated": each count is backed by evidence rather than claimed.

First measurement: CardDemo's batch programs, which the harness already runs natively under GnuCOBOL. Each needs an equivalence case, so drafting cases from the skeleton (datasets, keys and copybooks are all known facts) is part of this issue.

Done when: the loop runs end to end on CardDemo's batch programs with at least one local and one hosted backend, producing the per-program report, and CBACT04C's hand port is reproduced (or matched) through it.

🤖 Generated with Claude Code

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