Skip to content

HFP capture table: every op in both sizes, coverage test (Part of #4271) - #5702

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4271.

Checklist: partial [c:ff93cc35] -- no zos-run captured records yet (#4050)

What

The HFP model (det/hfp.py), runtime (Hfp.java) and capture table already exist. The table held 18 short-biased records. This PR adds 19 hand-derived ibm-publication records so every op (encode, add, sub, mul, div, display, fixed) is covered in both sizes, including the guard digit kept and lost, truncation, range ends and the 9-digit float-to-fixed clamp. It also adds test_the_table_covers_every_op_in_both_sizes, and updates register C6.

No engine change, no golden bless. test_hfp_zos_captures.py and test_det_hfp.py: 111 passed.

Sibling gaps

Lessons for agents

  • A hand-derived hex-float expectation is easy to get wrong (I mis-derived two exponents and a tail error); run the model, then re-derive the disagreement by hand before touching either side.

🤖 Generated with Claude Code

…rt of #4271)

Adds 19 ibm-publication records (long sub/mul/div/display/fixed, guard digit kept and lost, truncation, range ends, 9-digit float-to-fixed clamp) and a test that the op x size matrix stays whole. C6 updated.

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 07:35
@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 07:41
@squid-protocol
squid-protocol merged commit 70cfee4 into main Oct 20, 2026
51 checks passed
@squid-protocol
squid-protocol deleted the churn/4271-20261020T0731Z branch October 20, 2026 07:43
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