Skip to content

Engine: SIGN ... SEPARATE DISPLAY items take their sign byte (#3694) - #3700

Merged
squid-protocol merged 2 commits into
mainfrom
fix/sign-separate-3694
Sep 26, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
fix/sign-separate-3694

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.

  • Extractor (mainframe_boundary._cobol_records): records sign_separate. It's presence-keyed like copy_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 new sign_separate INTEGER column, healed into existing tables by _ensure_columns. The rehydrator restores it for delta scans.
  • GalaxyIR: EngineDataItem.sign_separate, and _elementary_bytes adds 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)

  • CBSA, the only corpus that codes SEPARATE signs:
    • ABNDPROC's COMMAREA contracts go from 678 to 681 bytes (3 signs in ABNDINFO.cpy);
    • the data-flow spans and ABNDFILE's VSAM store follow.
  • Other corpora: only the programs join changes, because every data item now serializes sign_separate: false. No values change.
  • Ledger: the 6 engine_sign_separate_bytes entries clear, so the engine now matches the key, and the cause is gone.

Tests

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

squid-protocol and others added 2 commits September 25, 2026 21:10
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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit ed53aeb into main Sep 26, 2026
37 checks passed
@squid-protocol
squid-protocol deleted the fix/sign-separate-3694 branch September 26, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine: SIGN ... SEPARATE DISPLAY items are sized one byte short (record layouts)

1 participant