Skip to content

det_parity: an HLASM CICS program is counted as its lowered COBOL (Part of #7011) - #7072

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7011-20261030T0320Z
Oct 30, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/7011-20261030T0320Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7011 (item 1: linked coverage + parity for a lowered HLASM target).

Item 1 of #7011: parity done; the coverage half was already correct (zecs-zecs001 ledger shows linked.ZECS002 22/24 paragraphs, 55/242 branches via cobol_coverage.lowered_original); items 2-4 open.

det_parity.parity() now counts an HLASM CICS program as its lowered COBOL (cobol_coverage.lowered_original), so det_port no longer warns "ZECS002: methods 40 vs 21 expected from 0 in the COBOL". Measured on the corpus ZECS002.asm: 25 paragraphs / 255 branches lowered (was 0 / 0), kind cics. A refused lowering or plain COBOL is counted as written. I did not run det_port.py check (heavy), so the branch ratio on the real port is unverified here.

Class / Sibling gaps

Class: a metric that reads an HLASM CICS program's raw .asm as COBOL. Members: linked coverage (already lowered in cobol_coverage, handled), det_parity (fixed here; main and LINK/subprogram .asm alike, since all go through parity()). Sibling gaps: item 2 ZECSNC START target (needs a burned program that starts it with observable data: none known); item 3 ZECS001 line 854 false arm (case data, needs 20+ ZC01SD entries, ZECS001 is burned); item 4 code-page conversion (frontier, mapped only).

Tests: tests/cobol_mainframe/test_det_parity.py (HLASM, refused, already-lowered). pr_gates --fast: 8/9 before fixing the one failure it found (a test import the ground-truth planner skips), then test_ground_truth_plan passes.

Lessons for agents

  • A test under tests/ must not import a tests/tools test module (e.g. test_cobol_coverage): test_no_skippable_tool_is_reached_by_the_jobs_tests fails; inline the fixture.
  • A bare cat > file with no heredoc truncates the body to 0 bytes; check wc -c before selfcheck.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 03:38
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 30, 2026 03:38
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 30, 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