You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cobol func_start regex doesn't exclude LOCAL-STORAGE from paragraph/section capture #1890
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingtestingUnit, integration, and E2E pipeline verification
Found investigating tri-comparison ledger shape cobol/function/existence/agree[gitgalaxy]_vs[ctags] (verified via tri-comparison-ledger-sweep, Gemini-dispatched read-only investigation, cross-checked directly against source).
gitgalaxy/standards/language_standards.py's cobol func_start regex bans several Data Division section headers from being captured as paragraphs/sections via a negative-lookahead reserved-word list — WORKING-STORAGE and LINKAGE are both explicitly banned — but LOCAL-STORAGE is missing from that list, so LOCAL-STORAGE SECTION. headers slip through and get miscounted as executable-logic paragraphs.
This is a Data Division structural header (declares data items, no executable logic) — same role as WORKING-STORAGE SECTION., which the regex already correctly bans. GitGalaxy's func_start regex reports a function named LOCAL-STORAGE at line 105 for this file; it should report nothing here, same as it correctly does for WORKING-STORAGE.
Suggested fix
Add LOCAL-STORAGE to the reserved-word negative lookahead in the cobol func_start regex (gitgalaxy/standards/language_standards.py, alongside WORKING-STORAGE|...|LINKAGE|...).
Evidence
Full discrepancy record in docs/self_scan/tri_comparison_ledger.json, shape cobol/function/existence/agree[gitgalaxy]_vs[ctags] (one of 18 occurrences; the rest of the shape is a separate, unrelated ctags_reader.py test-harness gap, tracked separately).
bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingtestingUnit, integration, and E2E pipeline verification
Activity
docs: add §9 tri-comparison section to cobol language-status doc
docs: add cobol language-status doc (sections 1-8) (#1893)
docs(self-scan): validate all 3 cobol tri-comparison ledger shapes (#…
chore: update golden master fixtures after fixing #1890
fix(cobol): exclude LOCAL-STORAGE from func_start capture (#1890) (#2117
fix(cobol): three fixed-format func_start false positives from the v1…
docs: honest CICS / mainframe coverage in the language status docs (#…