Skip to content

det: preserve paragraph boundaries or emit provenance for inlined setup paragraphs #8488

Closed

Description

@squid-protocol

Summary

Unsupervised Seed-and-Extend alignment on CardDemo COBOL↔Java pairs (COACTVWC, COCRDLIC, COBIL00C, COTRN00C, COUSR00C) recovers the core call-graph spine (0000-MAIN/runTask → readForward, readBackwards, editInputs → editCard, editAccount, receiveMap, commonReturn), but loses 1-to-1 correspondence where det merges small paragraphs or drops *-EXIT stubs.

Evidence

  • 52 of 450 CardDemo COBOL paragraphs (11.6%) are <= 3L *-EXIT stubs eliminated by det.
  • In CoactvwcService.java (26 methods) vs COACTVWC.cbl (35 paragraphs), det inlines small screen/setup paragraphs (1100-SCREEN-INIT, 1200-SETUP-SCREEN-VARS, 1300-SETUP-SCREEN-ATTRS) into sendMap (68L), leaving only 4 name-overlapping methods.
  • By contrast, CocrdlicService.java preserves paragraph boundaries well enough that blind Seed-and-Extend recovers 7/11 name-overlapping paragraphs + runTask ↔ 0000-MAIN.

Proposed Change

In --style structured (or via lightweight provenance comments/annotations when paragraphs are inlined), record which COBOL source paragraphs were merged into each Java method so equivalence, parity, and structural-alignment tools can trace merged blocks back to COBOL.

Activity

  1. added
    enhancement
    on Nov 14, 2026
  2. squid-protocol commented on Nov 19, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-20T05:36Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

  3. squid-protocol commented on Nov 20, 2026

    @squid-protocol
    OwnerAuthor

    PR #8724 writes .paragraph_methods.json beside each det service, and #8703 reads it (construct_map.read_provenance), so merged paragraphs trace back to COBOL. Acceptance met.

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

    claim:melekenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions