Skip to content

HFP: z/OS capture kit, emit a capture program and ingest its output (Part of #4271) - #5746

Merged
squid-protocol merged 2 commits into
mainfrom
churn/4271-20261020T1434Z
Oct 20, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/4271-20261020T1434Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4271 (and #4050).

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

What

tests/tools/hfp_capture_kit.py: emit writes a z/OS COBOL capture program + JCL from the table's ibm-publication records (DISPLAYs id|result); ingest appends one zos-run record per captured line with evidence (job, step, output sha256) and calibrated_under (through calibration_problems), never rewrites a record, reports a disagreeing model as a finding (record stays, model is fixed). compute moved from test_hfp_zos_captures.py into the kit (one source of truth). C6 register updated.

31 of 59 records are asked; 28 are SKIPPED by name (22 IEEE conversions: COBOL has no converter; 6 short multiply/divide: IBM evaluates them in long).

Class table

Class: getting a real z/OS HFP capture into the table safely. Covered: emit, ingest, evidence/options validation, no-overwrite, disagreement finding. Not covered: the capture itself.

Tests

test_hfp_capture_kit.py (emit determinism and fixed-format, every record asked or skipped with a reason, ingest round trip with model-computed output kept out of the table, disagreement, missing, refusal without evidence/options), test_hfp_zos_captures.py. pr_gates --fast 6/6. No parser/translator change, no golden change. Not run: --ratchets.

Sibling gaps

Float ** (EPSMPMT line 125; mortgage-mpmt/csmrt/cmort stay KNOWN_UNPROVEN); NUMVAL in comparison/MOVE/subscript still exact decimal; NUMVAL-F untranslated; ARITH(EXTEND) extended HFP refused; NUMPROC(PFD) non-preferred signs; INTDATE(LILIAN); COMP-5 byte order.

🤖 Generated with Claude Code

…s zos-run records (Part of #4271, #4050)

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 14:45
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol enabled auto-merge (squash) October 20, 2026 14:57
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5746 @ d893d75: 2 failed check(s)

== ground-truth (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39442175826/job/118702364763
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
errors:
##[error]Process completed with exit code 1.
log tail:
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: ground-truth
##[group]Run echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
echo "ground-truth warm: $WARM, parts: $PARTS (tested-tree skip: $SKIP, plan mode: $MODE, layout: $LAYOUT, warm planned: $PLANNED_WARM)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
# #5164: ... or when the plan found no ground-truth input in the PR (mode none). An empty mode is not none.
ok() { test "$1" = "success" || { test "$1" = "skipped" && { test "$SKIP" = "true" || test "$MODE" = "none"; }; }; }
# #5543: ... or when the layout needs no warm job (a cache hit on the scans, or the busy layout): the parts then warm for themselves
{ ok "$WARM" || { test "$WARM" = "skipped" && test "$PLANNED_WARM" = "false"; }; } && ok "$PARTS"
shell: /usr/bin/bash -e {0}
env:
WARM: skipped
PARTS: failure
SKIP:
MODE: full
PLANNED_WARM: false
LAYOUT: busy
##[endgroup]
ground-truth warm: skipped, parts: failure (tested-tree skip: , plan mode: full, layout: busy, warm planned: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== ground-truth part 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39442175826/job/118696514759
repro: python -m pytest -q tests/cobol_mainframe/
errors:
fail-on-cache-miss: false
FAIL tests/cobol_mainframe/test_address_5079.py::test_the_port_addresses_the_record_itself_and_refuses_a_missing_commarea: 15.0s is over 15s and has no @pytest.mark.slow(reason=...) and no entry in tests/test_time_baseline.json
##[error]Process completed with exit code 1.
log tail:
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
GITGALAXY_MAINFRAME_CORPORA: /home/runner/work/gitgalaxy/gitgalaxy/.mainframe_corpora
MAINFRAME_ENGINE_KEY: 20b8863c36f7e659f1ed78ece29301c888e56fd101ca43ac3e27318bec8b8055
PYTHONUTF8: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-ground-truth-part-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 101829
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is afcf7d6924cad3c6b9198b693853da77cca33f6ec883f5c08ac4aa8c37984af2
Finalizing artifact upload
Artifact test-times-ground-truth-part-2 successfully finalized. Artifact ID 12275462941
Artifact test-times-ground-truth-part-2 has been successfully uploaded! Final size is 101829 bytes. Artifact ID is 12275462941
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39442175826/artifacts/12275462941
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/a2d25430-76fb-4f3c-9205-cde94abfe9f4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 20, 2026
@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 20, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 20, 2026
@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.

@squid-protocol
squid-protocol merged commit 0d323e3 into main Oct 20, 2026
35 checks passed
@squid-protocol
squid-protocol deleted the churn/4271-20261020T1434Z branch October 20, 2026 15:34
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