Skip to content

det translator: accepted-but-ignored CICS options and swallowed parse errors must REFUSE, not translate silently #4411

Closed

Description

@squid-protocol

Problem

The det translator accepts some constructs without honouring them. The port compiles, but its behaviour differs from the COBOL with no warning. For a one-shot translation claim that is worse than a refusal: a refusal is a visible hole, a silent divergence is a wrong port.

Found by the coverage census and the #4378 front-end bake-off:

  • RETURN IMMEDIATE (9 programs): accepted, IMMEDIATE ignored.
  • READ GTEQ / READ GENERIC; STARTBR / READNEXT GENERIC, KEYLENGTH, REQID: accepted, options ignored. READ/WRITE KEYLENGTH (18 programs) is harmless only when it equals the full key.
  • LINK SYNCONRETURN (10 programs, one repo): accepted, ignored.
  • ASSIGN: only APPLID, SYSID, ABCODE, PROGRAM and INVOKINGPROG are implemented, and other options are not refused.
  • det/stmt.py silently ignores tree-sitter ERROR nodes nested inside a statement. Examples: ENTRY … USING in DBUNLDGS, PAUDBLOD and PAUDBUNL, and CRECUST.

Acceptance criteria

  • Each option above is either implemented and proven, or makes the translator refuse the program by name (like other unsupported constructs), with a test per option.
  • Any ERROR node inside a statement the translator emits causes a refusal (or a typed error), never silent omission.
  • Existing proven ports are unaffected (re-prove; evidence records stay "proven" or show why not).
  • An audit test that fails if a CICS option the parser recognises is neither handled nor refused.

Source: the CICS/SQL coverage census of 2026-10-05: 131 COBOL CICS programs and 56 COBOL SQL programs from the pinned corpora, the language-crucible and 9 added public repos (commands counted automatically). "Non-burned" means repos without det ports.

Activity

  1. added
    bug
    legacy-modernization
    priority: high
    on Oct 5, 2026
  2. added
    scope:core
    era:2
    on Oct 16, 2026
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

    bugera:2legacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions