Skip to content

BAQRINFO stand-in copybook from the z/OS Connect manual layouts (Part of #8412) - #9159

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-20261123T2325Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8412-20261123T2325Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8412 (owner licence ruling 2026-11-23: product copybook stand-ins, BAQ first).

What

BAQRINFO stand-in copybook, written from IBM's published layouts (never IBM's shipped file), and wired so both the det translator (_SHIPPED_COPY fallback) and the engine (SYSTEM_MEMBERS -> system_member_text, stand-in# copies) resolve COPY BAQRINFO when the estate has none of its own.

  • gitgalaxy/tools/cobol_to_java/det/copy/BAQRINFO.cpy: labelled GitGalaxy stand-in, field names / PIC / USAGE / VALUE only, no IBM prose.
    • BAQ-RESPONSE-INFO: complete as published in z/OS Connect "Handling errors from API requester calls" (BAQRINFO copybook listing: comp level, stub name, return code with the five 88s of Table 1, status code, 1024-byte status message and its length; all S9(9) COMP-5 SYNC fullwords).
    • BAQ-REQUEST-INFO: ASSUMED to hold only BAQ-REQUEST-INFO-COMP-LEVEL, the one field "Developing API requester applications" names (Tables 1-2). The pages print no other field, so a program naming one (OAuth / token / URIMAP-override parameters of compat levels 1-5) is refused by name (data name not found), never guessed.
  • gitgalaxy/core/copy_libraries.py: BAQRINFO added to SYSTEM_MEMBERS.
  • tests/cobol_mainframe/test_det_system_member_layout.py: BAQRINFO joins MEMBERS (engine == translator layout) and a new test pins offsets 0/4/12/16/20/1044 (record 1048 bytes) and the 88 values 0-4.
  • tests/tools/docs_read_by_tests.txt: regenerated (change_classifier.py --write; drift from main, the derived gate failed on it).

Hand-written files: 3.

Census

cics_census.py check / survey --baseline could NOT run on this box: the non-burned census corpora are not provisioned (CICS_CENSUS_CORPORA unset, no census-cache). So the change for the 2 "z/OS Connect product" programs is not measured. Expected, unverified: missing copybook: z/OS Connect product clears for both; they become whole only if BAQRINFO was their sole gap. Their API-INFO / request / response structures are customer-generated (API00Q01-style), so a program that COPYs one of those stays a clone defect, as the ruling says. Needs a run where the census is provisioned.

Class / Sibling gaps

Class: IBM-supplied product copybooks a program COPYs but the clone never ships (gap_prevalence._COPYBOOK_FAMILIES), resolved by a manual-derived stand-in. Members: BAQRINFO (this PR, response info full, request info ASSUMED to the comp level); DLIUIB, AIB (#9153, merged); HWT* (refused by name, owner 2026-11-23: IBM does not publish the layout, stays an accounted product family, no code); DFS* members (IMS, not started: no manual layout checked); API00Q01/P01/I01-style BAQ request/response/API-INFO copybooks (customer-generated by the build toolkit: clone defects, correct as is); remaining BAQ-REQUEST-INFO fields (not in the manual pages: refused by name until IBM's layout is available). No siblings sharing this mechanism were left out.

Gates

  • pr_gates --fast: 7/9 before fixes; the two fails (ruff format of copy_libraries.py, docs_read_by_tests.txt stale) are fixed in the second commit; audit_check all clear, tree-wide guards not re-run in full.
  • test_det_system_member_layout.py: 27 passed (~100 s, one module fixture scan; baselined under the time ratchet: PASS).
  • pr_gates --ratchets: cics-spec, ports, port-surface, estate, det-mutation, time PASS. fact-crosscheck, completeness, ground-truth FAIL on environment: example-health-apis is not fetched at its pinned ref and its upstream (github.com/ibm/example-health-apis) is gone ("Repository not found"), so mainframe_corpus.py fetch cannot restore it on this box. Not re-blessed; CI (which has the corpus) is the check. No golden fixture touched (no parsing logic change).

Lessons for agents

  • tests/tools/cics_census.py check / survey --baseline need the census clones (CICS_CENSUS_CORPORA) and a GREEN box (--force overrides YELLOW only); without them a worker cannot state a census change: say so, never estimate it as measured.
  • A stand-in .cpy line past column 72 is truncated silently by the det reader and fails as "no period before the next level number": wrap long PIC lines.
  • A stand-in with two 01s (BAQRINFO) lists its 01 names, not the member name, in EngineLayouts.consumed; the shared system-member test must expand it.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 00:08
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 00:09
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit e5c8bea into main Nov 24, 2026
120 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261123T2325Z branch November 24, 2026 00:32
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