Skip to content

HFP: capture-vector table for IBM float results (Part of #4271, #4050) - #5674

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4271-20261019T1838Z
Oct 19, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4271-20261019T1838Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4271.

Checklist: partial [c:ff93cc35] -- the model (det/hfp.py, cobolrt/Hfp.java) and now the capture-vector harness are done; the proof itself needs real z/OS captures (#4050), which are out of scope here.

What

  • tests/cobol_mainframe/zos_captures/hfp.json: a table of expected HFP results (encode, add/sub/mul/div, display, float to fixed). Seeded with 17 ibm-publication records only; NO zos-run record exists and none was invented.
  • tests/cobol_mainframe/test_hfp_zos_captures.py: checks every record against det/hfp.py (the Java runtime is held to that model bit for bit by test_det_hfp.py). A zos-run record must carry evidence and calibrated_under (runtime_options.calibration_problems, oracle policy: IBM is the reference, GnuCOBOL the instrument — audit register entries + z/OS calibration oracle #4702). A disagreeing capture is a finding against the model.
  • docs/language_status/register/C6.md: where a capture lands and what it needs. .gitignore: whitelist for the JSON.

Class table

Member Status
HFP encode/arithmetic/display/float-to-fixed table + check here (published vectors)
ASSUMED fixed-to-float truncation, float-to-fixed store, DISPLAY rounding, zero-operand mode harness ready; needs z/OS captures
float ** (EPSMPMT, the one burned reach) still a named hole; needs captures (#4050)

Gates

pr_gates --fast 6/6, --ratchets 8/8 (no skips); new test 23 passed in 0.05 s; tree-wide guards pass; time_ratchet clean. No golden, port or translator change.

Sibling gaps

  • float ** in EPSMPMT: burned (DBB mortgage); core; unprovable without captures.
  • ARITH(EXTEND) extended floats: refused, no burned program needs it.
  • ggdisplay.c DISPLAY of a float (C8): still refused.
  • NUMVAL-F, NUMVAL in MOVE/subscript: exact decimal today.

🤖 Generated with Claude Code

…e model (Part of #4271, #4050)

zos_captures/hfp.json holds expected HFP results (encode, add/sub/mul/div, display, float to fixed). A zos-run
record needs evidence and calibrated_under; none is captured yet, so only ibm-publication records are seeded.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@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 19, 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 19, 2026 18:59
@squid-protocol
squid-protocol enabled auto-merge (squash) October 19, 2026 19:18
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@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