Skip to content

mvs38j: probe run of JOB RESTART= step restart scenarios, 11 of 11 agree manual / engine / box (Part of #8414) - #8837

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8414-restart-probe
Nov 21, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8414-restart-probe

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Probe run, step-restart slice (#8414, tier 2): probe.py restart runs the eleven tests/equivalence/jcl/restart scenarios that MVS 3.8J can express (RESTART=S3, RESTART=*, RESTART=CALL1.P2 on a procedure step, COND naming a skipped step, mixed COND, COND=ONLY on the restart step) on the live box. Each step is IDCAMS with SET MAXCC=n; the log gives skipped / run / bypass per step. Results sit beside the manual answers in tests/equivalence/jcl/restart/mvs38j_probe.json (provenance mvs38j-run), with expect (IBM text), engine (jcl_restart.restart_flow) and box side by side.

Run 2026-11-21: 11 of 11 agree three ways, unparsed_ief 0, no JCL error. I checked the raw step records: the box really did not start the steps before the restart step. No register finding, no edit of expect or the evaluator. Internal only (Q16): no MVS number is published or linked from a published page.

Checklist: partial [c:f8795ef7] -- COND, PROC, data flow, GDG and step restart are done; left are SYSOUT class (SYSJOB), IEBGENER / IEBCOPY / IEFBR14 dataset scenarios (no fixture has them yet), checkpoint restarts and carddemo.
Checklist: done [c:59a42cc8] -- docs/jcl_oracle_mvs38j.md "What this tier cannot test" still states it; this PR adds the restart skips (IF / THEN / ELSE jobs, checkpoint restart) to the file and the doc.

Class / Sibling gaps

Class: JCL scenario files under tests/equivalence/jcl/ that 3.8J can run, probed on the box. Members: fixture (COND / EVEN / ONLY) done #8783; proc done #8787; dataflow done #8816; gdg done #8832; restart (this PR, 11 of 19 scenarios). Not here: restart RSTJOB4 / 11 / 12 (checkpoint restart needs a SYSCHK dataset written by a checkpointed run: a different mechanism, listed as skipped in the results file with the reason); RSTJOB5 / 9 / 10 and ifelse / ifflow_scenarios.json (IF / THEN / ELSE does not exist in 3.8J, tier 1 only); carddemo (measured corpus, needs its own deck shape); SYSJOB (OUTPUT statement not in 3.8J).

Sibling gaps:

  • Checkpoint restart (3 jobs, 4 scenarios): missing, needs a checkpointed run to produce SYSCHK; later slice.
  • IEBGENER / IEBCOPY / IEFBR14 dataset scenarios: no fixture holds them (only proc mentions IEBGENER in a PROC body); write the IBM-text answers first, then probe.
  • carddemo jobs: not probed; later slice.

Remaining slices

  1. Checkpoint restarts (RSTJOB4, RSTJOB11, RSTJOB12): probe.py + results; needs a checkpointed first run.
  2. IEBGENER / IEBCOPY / IEFBR14 scenario fixture (manual answers first), then probe.
  3. carddemo where 3.8J has the construct; SYSJOB SYSOUT class where expressible.

Hand-written files (3): tests/tools/box/mvs38j/probe.py, tests/tools/test_mvs38j_probe.py, docs/jcl_oracle_mvs38j.md. Generated evidence: tests/equivalence/jcl/restart/mvs38j_probe.json.

Gates

audit_check.py: all clear (ruff baseline, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage). Pinned ruff format run on both changed .py files. pytest tests/tools/test_mvs38j_probe.py test_mvs38j_runner.py test_capability_ledger_jcl_cases.py tests/cobol_mainframe/test_jcl_restart_case.py: 76 pass. Not run: pr_gates --ratchets, full suite (no engine, golden or parsing change; CI's job). Live box run on churn-8414-5, stopped afterwards.

Lessons for agents

  • A stale $MVS38J_WORK/box.pid (process gone) makes mvs38j.sh status print "box ready" and blocks start: check kill -0 on the pid, delete the file, then bg-job.sh start.
  • The JES2 printer file for probe.py --printer is $MVS38J_WORK/prt00e.txt (the first 1403 in conf/mvs.conf).

🤖 Generated with Claude Code

…ree manual / engine / box (Part of #8414)

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

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