Repository navigation
Closed
Labels
epicLarge-scale architectural milestone or multi-issue initiativelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existstatus: pending-releaseMerged to main, awaiting PyPI version bump
Description
Beyond scripts and encodings (#3811), GitGalaxy assumes one culture. It assumes US currency signs, a decimal point, ASCII sort order, UTC, an English-locale JVM and the US EBCDIC sign table. The most serious findings are invisible to the equivalence harness: its COBOL and Java sides share the assumption, so they agree with each other while both differ from a production mainframe in another country.
Pass criterion for every cell: output identical to the declared production behaviour, not only COBOL-equals-Java.
Parts:
- Currency signs in PICTURE: £ € ¥ and CURRENCY SIGN / PICTURE SYMBOL mis-size or drop fields; the answer key shares the blind spot #3820
- Equivalence harness is a single-culture oracle: add an environment dimension (JVM locale, TZ, collation) and culture-aware inputs #3821
- Key order: EBCDIC vs the target database's collation -- generated repositories browse and sort differently, MySQL collides case-variant keys #3822
- Locale-dependent formatting: String.format / toUpperCase / toLowerCase without Locale.ROOT in generated code and the reference port #3823
- Time zones: the pinned clock has no zone; CURRENT-DATE's UTC offset follows the process TZ; harness sides can run in different zones #3824
- ROUNDED semantics: no fact or porting rule says ROUNDED = half away from zero; ROUNDED MODE discarded; inputs never hit ties #3825
- Zoned overpunch table is the US code page's: German / Nordic / French / Italian data throws on every value ending in 0 #3826
- DECIMAL-POINT IS COMMA invisible to the converter: schema forge mis-sizes, no fact, no edited-PICTURE helper #3827
- Regional compiler and DB2 options not captured: INTDATE, YEARWINDOW, ARITH, TRUNC, NUMPROC, DSNHDECP DATE/TIME format, DECIMAL=COMMA #3828
- Input generator assumes English field names and ISO dates (DATUM / FECHA / DATO; DDMMYYYY) #3829
- Harness numeric comparison is lenient: int() accepts spaces, + and _; sign nibble and ±0 not compared #3830
- Java runtime accepts non-ASCII digits as numbers (Arabic-Indic, Devanagari, full-width) where COBOL NUMERIC/NUMVAL would not #3831
- Security heuristics are English/US-only: credential names and PII patterns miss PASSWORT, SENHA, CONTRASENA, Aadhaar, IBAN, NINO, CPF #3832
- Smaller cultural assumptions: calendars/week start, ETL unpacker cp037+float, LINE SEQUENTIAL, national-use chars § Ñ #3833
- Cultural Gauntlet: the test matrix -- source dialect x data code page x runtime locale/TZ x DB collation x input data #3834 The first five to fix, in order:
- currency-aware PICTUREs plus the whole-record check;
- the harness environment dimension,
Locale.ROOTand a zoned clock; - key collation;
- the code-page sign table;
- rounding and decimal-comma facts.
Found by a cultural-assumptions audit (2026-09-26): confirmed in code or by probe (JDK 17 locales, IBM code-page decoding, the harness's GnuCOBOL image) unless marked plausible.
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
epicLarge-scale architectural milestone or multi-issue initiativelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existstatus: pending-releaseMerged to main, awaiting PyPI version bump
Activity
#3819: a culture section in the conversion config -- faithful by defa…
#3825: COBOL ROUNDED semantics reach the port (#3856)
squid-protocol commentedon Sep 28, 2026
Every part is done, and the Cultural Gauntlet (#3834, parts #3907 / #3936 / #3947) is the gate. It covers all five dimensions: dialect, code page, runtime locale and time zone (executed in 15 JVM environments), DB collation (executed on H2 and PostgreSQL), and input data. It passes 696 of 696 cells with an empty baseline.
Follow-up left open: #3952 (numeric fields are decoded eagerly, while z/OS abends only on use).
🤖 Generated with Claude Code
https://claude.ai/code/session_01TmgE1CwLgaqxqKEgQn5Dw5