Skip to content

HFP: pin CBSA COMP-2/COMP-1 float-to-fixed MOVE vectors as declared differences (Part of #4271) - #5731

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4271-20261020T1118Z
Oct 20, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4271-20261020T1118Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4271. Checklist: partial [c:ff93cc35] -- proof against captured z/OS outputs (#4050): no zos-run capture exists, capturing is out of scope.

What

The conversion model, runtime and capture table already exist on main (#5708, #5713, #5720). The #4271 comment on #5703 says moving a non-exact COMP-2 (12.34, 9999999999.99, 0.01) into a 2-decimal field differs between GnuCOBOL and the port and that IBM's behaviour is "not settled". For a MOVE it is settled (IBM rounds in the low-order position, "Conversions and precision"), so this pins it as a declared difference:

No engine change, no golden re-bless.

Class table

member status
COMP-2 non-exact -> fixed MOVE (BNK1TFN/BNK1CRA) pinned here
COMP-1 same MOVE (BNK1CAC/BNK1UAC rate) pinned here
float ** (EPSMPMT line 125) named hole, waits on z/OS captures
ARITH(EXTEND) extended floats; float bytes via REDEFINES/records refused; no burned program needs them

Gates

pytest of the three hfp test files (153 passed); audit_check.py all clear; pr_gates.py --ratchets 8 pass / 0 fail / 0 skipped.

Lessons for agents

exact_in_both takes the exact decimal as a Fraction, not the already-rounded item value.

🤖 Generated with Claude Code

… as declared differences (Part of #4271)

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 20, 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 20, 2026 11:45
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 11:47
@squid-protocol
squid-protocol merged commit 7316971 into main Oct 20, 2026
49 checks passed
@squid-protocol
squid-protocol deleted the churn/4271-20261020T1118Z branch October 20, 2026 12:33
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