Skip to content

PL/I .inc include is detected as C (seed) and assembly (Nordic / German variants): two gauntlet cells ledgered #3867

Closed

Description

@squid-protocol

Found while merging the Tours-the-Globe PRs (milestone "GitGalaxy Tours the Globe").

What

In the Unicode Gauntlet's mainframe seed, mainframe/pli/INCA.inc is a PL/I include. The engine detects it as:

  • c on the ASCII seed, which is already wrong;
  • assembly on two variants with national letters in the name and body: INCAÄÖÜ.inc (mainframe|german|utf-16) and INCAÆØÅ.inc (mainframe|nordic|utf-8-sig).

So language c -> assembly fails those two cells.

How it got ledgered

To do

  1. Bisect which of #3825: COBOL ROUNDED semantics reach the port #3856 / #3820: currency signs in PICTURE, and the SPECIAL-NAMES that declare them #3857 / #3814 (part 3): UAX #31 names for Kotlin, Groovy, Scala and C# #3858 moved .inc detection; the national letters change the content votes.
  2. Fix the root cause: a .inc whose siblings and content are PL/I (%INCLUDE, DCL, PROC) should resolve to pli, and the seed must be pli too. Compare the gravity sibling vote (Ecosystem gravity cannot resolve a same-extension collision: the contested extension votes for one of its own claimants #3132/Ecosystem gravity should weigh sibling classifications, not extension counts #3137).
  3. Lower the baseline.

Process note: --update-baseline after a merge can hide a regression. When refreshing a baseline after merging main, compare it with the baseline main itself carries: tests/tools/pr_gates.py without --lower-baseline reports new cells rather than recording them.

🤖 Generated with Claude Code

https://claude.ai/code/session_017ZsVaAkb86P5r5JXDC2Y9g

Activity

  1. added
    bug
    on Sep 27, 2026
  2. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    Update 2026-09-27 (from the #3810 work): on current main both ledgered cells pass again, but not because the include is now detected as PL/I. INCA.inc (one line, DCL CODEA CHAR(2);) is now excluded in both the seed and the variants (excluded_artifacts: "Unresolved Ambiguity (No Retainable Structure)"), so the metamorphic comparison matches trivially. The #3810 PR removes the two stale baseline lines; the root cause (step 2 here: a .inc %INCLUDEd by a PL/I program, beside PL/I siblings, should resolve to pli) is still open.

  3. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    Correction to my comment above: the two cells still FAIL in the real CI run. My check used --only mainframe, where the seed is scanned alone and INCA.inc is excluded as unresolved on both sides. In the full gauntlet, the mainframe seed shares one estate with every rosetta language, and there the include is still detected as c (seed) and assembly (national variants), i.e. the sibling/content vote leans on the estate's other languages. The baseline lines stay; the root cause (resolve a .inc %INCLUDEd by a PL/I program to pli) is unchanged. Also worth noting for the fix: --only mainframe does not reproduce it.

  4. added a commit that references this issue on Sep 27, 2026
  5. added 2 commits that reference this issue on Sep 27, 2026
  6. squid-protocol commented on Sep 27, 2026

    @squid-protocol
    OwnerAuthor

    Another symptom, found while adding the raw-EBCDIC gauntlet cells (#3816 part 2). The include's fate depends on what else is in the estate, not only on its own text:

    • Alongside every rosetta language (the gauntlet's seed / twin__* estates): mainframe/pli/INCA.inc is detected as c.
    • The mainframe seed alone, same bytes, UTF-8: it's excluded as Unresolved Ambiguity (No Retainable Structure), with no file_data row at all.

    Decoding isn't involved. A UTF-8 mainframe-only copy reproduces it, and padding the line to 80 columns changes nothing. The gauntlet side is handled in #3816 part 2: EBCDIC estates now carry their reference estate's other languages, so they compare like for like. The engine behaviour is this issue's: a one-line PL/I DCL include has no stable identity of its own, so its language comes from its neighbours.


    Generated by Claude Code

  7. added a commit that references this issue on Sep 27, 2026
  8. added a commit that references this issue on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions