Repository navigation
HFP: pin CBSA COMP-2/COMP-1 float-to-fixed MOVE vectors as declared differences (Part of #4271) - #5731
Merged
Conversation
… as declared differences (Part of #4271) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 20, 2026 11:45
squid-protocol
enabled auto-merge (squash)
October 20, 2026 11:47
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4271. Checklist: partial [c:ff93cc35] -- proof against captured z/OS outputs (#4050): no
zos-runcapture 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:
test_det_hfp.py: CBSA-shaped COMP-2 amounts (rounded by the port, truncated by an IEEE double as the oracle does, exact-in-both values agree) and the COMP-1 nine-significant-digit clamp.register/C6.md: records the equivalence: BNK1TFN on generated Db2 rows (Part of #4507) #5703 evidence.No engine change, no golden re-bless.
Class table
**(EPSMPMT line 125)Gates
pytest of the three hfp test files (153 passed);
audit_check.pyall clear;pr_gates.py --ratchets8 pass / 0 fail / 0 skipped.Lessons for agents
exact_in_bothtakes the exact decimal as a Fraction, not the already-rounded item value.🤖 Generated with Claude Code