Repository navigation
Engine: labeled candidate join for installation-symbol dataset names in VSAM stores (#3656) - #3673
Merged
Merged
Conversation
…in VSAM stores (#3656) Estates write dataset names with install-time symbols, so the IDCAMS DEFINE and the CSD name one file differently: CBSA's IDCAMS `@[email protected]` is the CSD's `CBSA.CICSBSA.CUSTOMER`. vsam_stores() now tries a CANDIDATE join, never an asserted one. _symbolic_pattern turns `@X@`, `<X>` and `&X.` symbols into a regex. A symbol that is the whole first qualifier matches one or more qualifiers (a high-level-qualifier chain); any other symbol matches within one qualifier. A defined symbolic store merges into the concrete, undefined store it uniquely matches only when: - a RIDFLD placed in the program record equals the DEFINE's KEYS, or a program record equals its RECORDSIZE maximum; and - no RIDFLD disagrees with KEYS, and not every record exceeds the maximum. VSAM allows a shorter record, never a longer one. The merged store carries defined_by = {match: symbolic, pattern, evidence}. A refused candidate keeps both stores and notes symbolic_candidate_rejected (pattern, why). Every other store gets defined_by exact / None. The repository forge cites a symbolic join in the entity's javadoc. CBSA: - ABNDFILE merges on RIDFLD 0/12 = KEYS(12 0); its 678-byte records fit RECORDSIZE max 681; - CUSTOMER merges on two RIDFLDs at 4/16 = KEYS(16 4) and a 259-byte record = max 259; - both entities now key from IDCAMS, and stores "not generated" go 2 -> 0. GENAPP / zECS / CardDemo / DSF / zOE: unchanged store sets. Verification: - ir_join_diff: only vsam_stores changes (defined_by on every store, CBSA 4 -> 2); - CBSA compiles (default, plain-records, gradle-plain-21); - preflight all PASS; full suite 11,666 passed. Drafted by an agy (Gemini 3.1 Pro) agent. Review replaced its merge rule, which let a key match override a record-size conflict, with the VSAM record-length rule above. It also now requires corroboration: the name pattern alone never merges. Tests were added for both branches. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
Contributor
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.
Closes #3656 (epic #3625).
Problem. CBSA's IDCAMS defines
@[email protected], while its CSD saysCBSA.CICSBSA.CUSTOMER. They are the same file with an install-time symbol, sovsam_stores()(correctly) never joined them: the IDCAMS keys were orphaned, and the Java took its keys from RIDFLDs.Change (engine,
galaxy_ir.vsam_stores). A candidate join, never an asserted one:_symbolic_pattern:@X@,<X>and&X.become a regex. A symbol that is the whole first qualifier matches a qualifier chain; any other symbol matches within one qualifier.KEYS, or a program record equalsRECORDSIZEmax.defined_by: {match: symbolic, pattern, evidence}. A refused one notessymbolic_candidate_rejected: {pattern, why}. Every other store getsdefined_byexact / None.* IDCAMS define matched by installation-symbol pattern @[email protected] (a candidate join: RIDFLD CUSTOMER-KEY at 4/16 equals KEYS(16 4); program record of 259 bytes equals RECORDSIZE max 259)Results
Verified
ir_join_diff.py --base origin/main: onlyvsam_storeschanges, on every corpus by the newdefined_bykey, on CBSA 4 → 2.preflight.py: all gates PASS. Full suite: 11,666 passed.&HLQ.., escaping); merge; key conflict refused; a shorter record merges; a longer record is refused; a pattern alone is refused.Provenance. Drafted by an agy (Gemini 3.1 Pro) agent. Review replaced its merge rule, which let a key match override a record-size conflict, with the VSAM record-length rule, and added the corroboration requirement (a name pattern alone never merges), with tests.
🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g