Skip to content

VSAM RRDS level fixture: IBM-written expected output before any runtime (Part of #4894) - #7539

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4894-20261102T1130Z
Nov 2, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4894-20261102T1130Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4894

What

First slice of the VSAM-beyond-KSDS epic: the level fixture for RRDS (ORGANIZATION IS RELATIVE), written before any runtime models it (policy 5, level estates first). Mirrors the IMS precedent at tests/equivalence/ims/fixture.

  • tests/equivalence/vsam/fixture/RRDLVL.cbl: 66 steps over a relative file, sequential and dynamic access, every READ / WRITE / REWRITE / DELETE / START outcome and each status IBM tabulates (00 10 22 23 35 41 42 43 46 47 48 49). Each step's comment cites its rule.
  • tests/equivalence/vsam/fixture/expected.txt: written from IBM's rules (register F1 table) before either runtime ran it.
  • tests/cobol_mainframe/test_vsam_rrds_level_fixture.py: structure tests, a det test pinning that the translator refuses ORGANIZATION RELATIVE by name, and an E2E oracle test (Docker, EQUIVALENCE_E2E=1).
  • docs/language_status/register/F1.md: "Relative files (RRDS, Epic: VSAM beyond KSDS — alternate indexes, ESDS, RRDS (RBA/RRN) #4894)" bullet.

First-run number (measured once, 2026-11-02)

Oracle (GnuCOBOL 3.1.2, -std=ibm -fsign=EBCDIC): 64 of 66 steps match IBM's text. Steps 49 (REWRITE) and 51 (second DELETE) of an empty slot inside the extent: GnuCOBOL answers 00, IBM says 23 (GnuCOBOL gives 23 only past the extent). Pinned in the oracle test, not loosened; expected.txt stays IBM's text. Det side not run: the translator refuses RELATIVE, so there is no Java number yet.

Facts checked

  • E2E oracle test passes with Docker image gitgalaxy-gnucobol:3 (5 pass with E2E=1; 4 pass, 1 skipped without).
  • pr_gates.py --fast 9/9; ruff format --check clean; test_source_reads, test_generated_branch, test_change_classifier pass.
  • Not confirmed: IBM's exact wording that REWRITE/DELETE of an empty relative slot gives 23. A web search did not surface it; the rule is from the Language Reference status table as recalled. Treat steps 49/51 as the one unverified expectation.

Class / Sibling gaps

Class: VSAM organizations beyond KSDS that the batch det runtime does not model: relative files (RRDS), ESDS by RBA in batch, and AIX with duplicate alternate keys. Members: RRDS level fixture done here; RRDS det runtime (DetFiles.Relative, refusal in det/program.py "ORGANIZATION RELATIVE") not done; ESDS-by-RBA batch fixture not done (the CICS side has RBA browse, register X13); AIX duplicate-key fixture not done. No burned program is known to need RRDS, ESDS-batch or AIX yet; the burned-estate grep belongs to the next slice.

Remaining slices

  1. det runtime model for RELATIVE (DetFiles.Relative, det/program.py branch, CobolFiles statuses); flip the det pin to run the Java side and print expected.txt, 23s included.
  2. A crucible/equivalence case on a burned estate, if any program reads a relative file.
  3. AIX level fixture with duplicate alternate keys.
  4. ESDS RBA/XRBA batch fixture.
  5. Oracle calibration or wrapper for the GnuCOBOL empty-slot REWRITE/DELETE deviation.

Lessons for agents

  • A det-translate test needs tdp._batch_package(...) first, otherwise holes read "no batch package" instead of naming the real refusal.
  • Corpus env vars are not preset in a worker shell: use equivalence_env.py --shell.

🤖 Generated with Claude Code

…re any runtime (Part of #4894)

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 Nov 2, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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