Repository navigation
Split the CICS harness's stub translator into a family registry (Part of #5274) - #7436
Merged
squid-shepherd[bot] merged 2 commits intoNov 1, 2026
Merged
Conversation
… of #5274) _translate_command was a chain of about 60 if-blocks, so every new command edited the harness host and plan-held any other CICS slice. It is now a loop over _COMMAND_FAMILIES, and each family answers through its own `command`. New families, moved verbatim: counters, storage, tdqueue, terminal, program, system. The existing families gain a `command` holding their dispatch. The order is the old chain's; it shows only where a counter and a container share a verb, which the registry comment and a test pin. Also adds the web and pointer modules to the evidence and trial inputs: a change to either did not mark a proof stale. A test now holds every harness family to those lists. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The path filter named only tests/tools/equivalence_cics.py, so a slice that edited a family module alone skipped the crucible gate. The registry moves most command edits into those modules, which would have widened the gap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| import equivalence_common as common | ||
| import equivalence_cics_conditions as cics_conditions # #5274: the conditions / handlers family | ||
| import equivalence_cics_containers as cics_containers # #5274: the channels / containers family | ||
| import equivalence_cics_counters as cics_counters # #5274: the named counter family |
| import equivalence_cics_faults as cics_faults # #5274: the fault-injection planner | ||
| import equivalence_cics_filecontrol as cics_filecontrol # #5274: the file control family | ||
| import equivalence_cics_pointer # #6839 (X47): the oracle lowering of a POINTER numeric view | ||
| import equivalence_cics_program as cics_program # #5274: the program control family |
| import equivalence_cics_filecontrol as cics_filecontrol # #5274: the file control family | ||
| import equivalence_cics_pointer # #6839 (X47): the oracle lowering of a POINTER numeric view | ||
| import equivalence_cics_program as cics_program # #5274: the program control family | ||
| import equivalence_cics_storage as cics_storage # #5274: the storage family |
| import equivalence_cics_pointer # #6839 (X47): the oracle lowering of a POINTER numeric view | ||
| import equivalence_cics_program as cics_program # #5274: the program control family | ||
| import equivalence_cics_storage as cics_storage # #5274: the storage family | ||
| import equivalence_cics_system as cics_system # #5274: the remaining services |
| import equivalence_cics_storage as cics_storage # #5274: the storage family | ||
| import equivalence_cics_system as cics_system # #5274: the remaining services | ||
| import equivalence_cics_taskcontrol as cics_taskcontrol # #5274: the task / interval control family | ||
| import equivalence_cics_tdqueue as cics_tdqueue # #5274: the transient data family |
| from __future__ import annotations | ||
|
|
||
|
|
||
| import equivalence_cics_faults as cics_faults |
|
|
||
|
|
||
| import equivalence_cics_faults as cics_faults | ||
| import equivalence_cics as ec |
|
|
||
| import re | ||
|
|
||
| import equivalence_cics as ec |
|
|
||
| import re | ||
|
|
||
| import equivalence_cics_conditions as cics_conditions |
| import re | ||
|
|
||
| import equivalence_cics_conditions as cics_conditions | ||
| import equivalence_cics as ec |
Contributor
This was referenced Nov 1, 2026
Merged
Contributor
|
No description provided. |
Contributor
|
No description provided. |
squid-shepherd
Bot
deleted the
refactor/5274-harness-translate-families
branch
November 1, 2026 15:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5274. This is step 1 of the plan in the issue comment.
Why
tests/tools/equivalence_cics.pyis the file CICS slices still collide on: 45 commits since 10-24, and it held a #6072 run again this morning._translate_commandtook 13 of those commits, because any new command had to edit itsifchain. Plan holds work per file, so two slices collide there even when they touch different commands.What changes
_translate_commandis now a 15-line loop over_COMMAND_FAMILIES. A new command goes in its family'scommandand leaves the host alone.counters,storage,tdqueue,terminal,program,system.filecontrol,taskcontrol,web,tempstorage,conditions,containers) each gain acommandholding their dispatch.Separate fix found on the way:
equivalence_cics_web.pyandequivalence_cics_pointer.pywere missing from the evidence and trial input lists, so a change to either did not mark proofs stale. Both are added, and a new test holds everyequivalence_cics_*.pyto those lists. Adding inputs changes the harness hash, so the scheduled job will re-prove harness staleness, as with earlier family splits.CI gap closed:
cics-crucible.yml's path filter named onlyequivalence_cics.py, so a slice editing just a family module skipped the crucible gate. This already applied to the existing families, and this PR would have widened it. The filter is now a glob, and a test pins it. This workflow edit falls under the standing workflow grant.Behaviour is unchanged
The blocks moved by script (from the AST, in their original order), so the only edits are helper prefixes such as
ec._call.I compared the old and new translators on 167,759 EXEC CICS bodies under 3 label settings, 503,277 comparisons in all. That is every distinct body in the local corpora (1,083) plus generated malformed and option-clashing commands, comparing the emitted lines or the refusal's type, message and features.
countersaftercontainersgave 24 differences, so the check can fail. Those are the only order-sensitive commands, and a test now pins that order.Tests
cobcis not on this box's path, so tests that compile real COBOL rely on CI.🤖 Generated with Claude Code