Skip to content

HFP: static HLASM lint for the HFPCAPA capture kit (Part of #4271, #4050) - #6027

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4271-20261022T1543Z
Oct 22, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4271-20261022T1543Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

What

test_the_assembler_kit_passes_a_static_hlasm_lint and a DC-constant test in tests/cobol_mainframe/test_hfp_capture_kit.py. HFPCAPA (the assembler capture kit) is never assembled by any test, so this holds what a first z/OS assembly would reject: every mnemonic has a known operand format, labels are unique and at most 8 characters, every referenced label is defined, each DC XL8 is 16 upper hex digits, and code + literal pool + data fit the 8192 bytes the two base registers cover (a size estimate, not an assembly). A mutation (a renamed RES label) fails it.

Class

Generated z/OS capture programs that no test assembles or compiles.

Member Status Evidence
HFPCAP (COBOL kit) handled compiled and run through GnuCOBOL in test_hfp_capture_kit.py
HFPCAPA (assembler kit) handled here (static lint only) this PR; NOT assembled, no HLASM here
HFPCAPA.jcl / HFPCAP JCL partial text checked by existing tests; never submitted
Capture records (zos-run) out of scope need a z/OS run (#4050)

Facts checked: no defect found in emit_asm; no record, table or engine file changed; no golden bless; audit_check.py all clear.

Not proven: HFPCAPA is NOT assembled; the lint is a static approximation.

Checklist: partial [c:ff93cc35] -- z/OS run of HFPCAP and HFPCAPA (#4050), ingest as zos-run, settle the ASSUMED rules, EPSMPMT re-check

Sibling gaps

  • z/OS run of HFPCAP and HFPCAPA: frontier; needed by burned EPSMPMT, BNK1TFN, BNK1CRA, BNK1UAC, BNK1CAC, BANKDATA, CRECUST. Why not here: capturing is out of scope (Captured mainframe outputs as the equivalence oracle (beside GnuCOBOL) #4050).
  • BNK1TFN non-exact float-to-fixed: unsettled until the capture (burned: BNK1TFN).
  • Submitting the JCL to a real assembler: needs HLASM / z/OS.

Proposed split of [c:ff93cc35]

  1. model, table, census, COBOL kit, runbook, assembler kit (earlier slices, HFP: High Level Assembler capture kit for the IEEE conversions and short mul/div (Part of #4271, #4050) #6023)
  2. this PR: static lint of HFPCAPA
  3. owner/external: run HFPCAP and HFPCAPA on z/OS (Captured mainframe outputs as the equivalence oracle (beside GnuCOBOL) #4050), verify the SYSOUT
  4. ingest as zos-run; fix det/hfp.py / Hfp.java where the model disagrees (never a record)
  5. settle the ASSUMED rules (power, store, DISPLAY mantissa, float-to-fixed incl. BNK1TFN)
  6. EPSMPMT ** re-check; mortgage-mpmt out of the det sweep baseline; mortgage-csmrt/mortgage-cmort entries (det_port: a CICS case's CALLed subprograms are not translated, so DBB EPSCSMRT cannot be cased (EPSMPMT stub; C6 holes) #4803); C6 reached:

Cross-repo

None.

Lessons for agents

  • In HLASM an AMODE/RMODE statement's name field is the CSECT name, not a second label.

🤖 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 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 22, 2026 15:49
@squid-protocol
squid-protocol enabled auto-merge (squash) October 22, 2026 15:50
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@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 22, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

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