Skip to content

CICS crucible: COBOL paragraph/branch coverage per program, so a proven port says how much it proves #4023

Closed

Description

@squid-protocol

Part of #3989. A proven crucible port only proves the paths the scenarios run. The report should say how much of each program that is.

Scope

  • Measure COBOL coverage when the stub side runs, per program:

    • paragraphs and sections executed
    • branch outcomes (IF/EVALUATE arms, condition-handler labels, HANDLE AID labels)

    GnuCOBOL can trace (-ftrace / -ftraceall); otherwise the translator can instrument paragraphs.

  • Report per program and per case in docs/language_status/cics_crucible.md: paragraphs executed out of the total, and which ones were never executed.

    • Mark dead or unreachable code apart from code that no scenario reaches.
    • The engine already has dead-paragraph facts.
  • Ratchet: CI fails if coverage drops, the way the baseline does, so a crucible change can't silently shrink it.

  • Feed the gaps back: unexercised live paragraphs become proposed scenarios. A crucible PR adds them, with hand-written, doc-cited expected logs like every other scenario.

Done when

Every proven port's claim reads "proven on N scenarios, covering X/Y paragraphs and A/B branches". The report lists the uncovered live code.

🤖 Generated with Claude Code

Activity

  1. added
    testing
    legacy-modernization
    on Sep 29, 2026
  2. added 5 commits that reference this issue on Sep 29, 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

    legacy-modernizationtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions