Repository navigation
Engine: SIGN ... SEPARATE DISPLAY items take their sign byte (#3694) - #3700
Merged
Merged
Conversation
The census (#3695) found the engine sizing `PIC S9(8) DISPLAY SIGN LEADING SEPARATE` as 8 bytes, not 9: record_data kept no SIGN clause. Now: - the COBOL record extractor records `sign_separate` (presence-keyed, like copy_members); - record_data carries it as a column, healed into old tables; - the rehydrator restores it; - GalaxyIR.record_layout adds the byte. A DB written before the column existed still loads and sizes every sign as embedded. Blast radius: only CBSA codes SEPARATE signs. ABNDPROC's COMMAREA contracts grow 678 -> 681 bytes, with data-flow spans and one VSAM store following. Elsewhere, only the programs join's data-item shape gains `sign_separate: false`. The ledger's 6 #3694 entries clear and the engine now matches the key. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g
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 #3694.
What
The census (#3695) found the engine sizing
PIC S9(n) DISPLAY SIGN LEADING|TRAILING SEPARATE [CHARACTER]as n bytes. A separate sign takes a byte of its own, so the right size is n + 1. The answer key was fixed in #3695; this fixes the engine.mainframe_boundary._cobol_records): recordssign_separate. It's presence-keyed likecopy_members, so every other item keeps its exact pre-Engine: SIGN ... SEPARATE DISPLAY items are sized one byte short (record layouts) #3694 shape.record_data: a newsign_separate INTEGERcolumn, healed into existing tables by_ensure_columns. The rehydrator restores it for delta scans.GalaxyIR:EngineDataItem.sign_separate, and_elementary_bytesadds the byte for a signed DISPLAY item. A DB written before the column existed still loads, with every sign sized as embedded.Blast radius (
ir_join_diff --rescan)ABNDINFO.cpy);programsjoin changes, because every data item now serializessign_separate: false. No values change.engine_sign_separate_bytesentries clear, so the engine now matches the key, and the cause is gone.Tests
test_sign_separate.py:🤖 Generated with Claude Code
https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g