Repository navigation
Closed
Labels
core-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signatureera:1Era CICS/VS command level, OS/VS COBOL (~1978-88) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Description
Problem
The engine has no fixed/free-format detection and does not honour >>SOURCE FORMAT [IS] FREE|FIXED. Column-72 handling is therefore disabled or guessed, so fixed-format text in columns 73-80 and free-format lines running past column 72 are both at risk of being misread.
Evidence (file:line, origin/main)
gitgalaxy/standards/language_standards/languages/cobol.py:137-139: column-73 blanking "is not done here because it is unsafe without fixed/free-format detection".git grep -i '>>SOURCE' gitgalaxy/returns no hit.- Related: cobol func_start: free-format source reads data items as paragraphs and misses PROGRAM-ID units (CobolCraft) #4203 (free-format source reads data items as paragraphs). This issue is the detection/directive layer; cobol func_start: free-format source reads data items as paragraphs and misses PROGRAM-ID units (CobolCraft) #4203's data-item half is not duplicated here.
Impact on a real estate
Estates mix fixed-format legacy members with free-format members (GnuCOBOL / Micro Focus / newer Enterprise COBOL) and switch mid-file with >>SOURCE. Without detection, sequence numbers can leak into names, or code past column 72 is cut.
Acceptance criteria
- Per-file fixed/free detection (with a documented heuristic) feeding all COBOL readers
-
>>SOURCE FORMATdirectives switch mode mid-file - Column-72 cut is applied only in fixed mode; the cols 73-80 note in cobol.py:137 is resolved
- Tests: fixed, free, mixed-with-directive, and a free line longer than 72 columns
- Coordinated with cobol func_start: free-format source reads data items as paragraphs and misses PROGRAM-ID units (CobolCraft) #4203 (no duplicated fix)
Out of scope
The free-format data-item/PROGRAM-ID unit bug itself (#4203).
Found during: 2026-10-03 COBOL engine/translator audit
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
core-engineModifications to the central physics and parsing engineenhancementNew feature, sensor, or structural signatureera:1Era CICS/VS command level, OS/VS COBOL (~1978-88) (era_tags.py)legacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:sweepCompletes a class the burned estates already touch (siblings); blocks no program
Activity
COBOL: blank the numbered sequence area so split operands read the re…