Skip to content

coverage: an HLASM program is measured as its lowered COBOL; ZECSNC 13/13, 10/10 (Part of #6839) - #7034

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6839-20261029T2002Z
Oct 29, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/6839-20261029T2002Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6839.

Owner decisions

Owner ruling 2026-10-29 (in chat): the assembler COVERAGE TOOL slice ZECS002/ZECSNC need to leave L2 is in scope (core, ladder focus).

What this does

coverage.json was built from the .asm text, which has no PROCEDURE DIVISION, so every HLASM program read 0/0 paragraphs and branches. cobol_coverage.lowered_original now lowers a DFHEIENT program with det/hlasm.py; inventory() and run_coverage() measure that lowered COBOL, and ladder_gaps.py maps each gap back to its program.asm:N line. A COBOL program, and an HLASM program the lowering refuses, are measured as before.

Evidence

program before after
ZECS002 0/0 22/24 paragraphs, 57/242 branches
ZECSNC 12/13 paragraphs, 9/10 branches 13/13, 10/10 (new scenario terminal-wrong-transid, 8 scenarios)
ZECS001 (linked ZECS002 entry) 0/0 22/24 paragraphs, 55/242 branches

The new ZECSNC oracle events match the GnuCOBOL run (SEND of ER_0010, 74 bytes, then RETURN) and are pinned in test_hlasm_interp_5859.py. pr_gates --fast 9/9, --ratchets 9/9; ground-truth ledger and golden masters not moved.

Class / Sibling gaps

The class is coverage of a non-COBOL program measured through its lowered form. Handled here: ZECS002, ZECSNC, and ZECS001's linked ZECS002. Siblings not covered: CardDemo batch assembler (not a burned CICS estate), a general non-zECS assembler path (#5859, frontier), and ZECS002's own remaining gaps (below).

Remaining slices

ZECS002 stays at L2: 2 unreached paragraphs (SY-1100, SY-1200) and 185 branch gaps. Most are arms the lowering generates (EVALUATE HL-RG, HL-OF range checks): they need scenarios plus an infeasible-outcome review.

Cross-repo

None: no companion PRs.

Notes

equivalence_cics.py needed no change, so the plan's fourth file dropped out. PR #7026 also touches the zecs-zecs001 ledger: on a conflict take main's file and regenerate with det_coverage_ledger.py update.

Lessons for agents

Adding a scenario to a case with an interpreter cross-check (ZNC_ORACLE in test_hlasm_interp_5859.py) needs the oracle events pinned there too; read them from /tmp/equiv_*/cobol/scenarios/<name>/out/events.txt (equivalence.py run on an HLASM case reaches the Java step and errors after the COBOL run, but the oracle output is already written).

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 29, 2026 16:08
…anches; ZECS002 measured 22/24, 57/242 (Part of #6839)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 29, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant