Repository navigation
#3867: a PL/I %INCLUDE member named .inc resolves to pli - #3897
Merged
Merged
Conversation
PL/I deliberately does not claim `.inc`, so a one-line member like the gauntlet seed's `INCA.inc` (`DCL CODEA CHAR(2);`) was never a candidate and fell to the estate-wide mix: `c` via the auditor's global C-family fallback, `assembly` from the lexical scan on the German/Nordic variants. A `.inc` with no shebang/internal signature, beside a `.pli`/`.pl1`/`.plinc`, whose body carries a PL/I statement shape (DCL with a level number or data attribute, a labelled PROC, `%INCLUDE member;`) now locks to pli at tier 1.5 before ecosystem gravity can outvote its folder. Lowers the two ledgered gauntlet cells. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3867
Root cause
PL/I deliberately does not claim
.inc(pli.py: PHP, Pascal, NASM, C use it too), sopliwas never a candidate for the gauntlet's one-line membermainframe/pli/INCA.inc(DCL CODEA CHAR(2);). With no content signature it fell to estate-wide evidence: in the full gauntlet (the mainframe seed shares one estate with every rosetta language) the statistical auditor's global C-family fallback made the ASCII seedc, and the lexical scan made the German/Nordic variantsassembly->language c -> assembly. Scanned alone (--only mainframe) it was excluded as unresolved on both sides, so that run could not see it.Fix (
gitgalaxy/standards/language_lens.py)A
.incwith no shebang / internal signature, whose folder holds a.pli/.pl1/.plincprogram, and whose body carries a PL/I statement shape, locks topli(tier 1.5, "PL/I Include Anchor") before ecosystem gravity, so the estate mix can no longer outvote the file's own folder. The body shapes are ones no other.incclaimant writes:DCL/DECLAREwith a level number or a PL/I data attribute (CHAR, FIXED, BIN, DEC, PIC, POINTER, ...), a labelledPROC/PROCEDURE, or%INCLUDE member;(NASM's quoted%include "x"excluded). Bounded quantifiers only; the regex is assembled from short pieces so the X-Ray entropy gate does not read it as a payload. Folder check memoised per directory.Tests
tests/core_engine/test_pli_include_detection.py(fails 9/11 before, passes after): the seed include and its national-letter variants (INCAÆØÅ,INCAÄÖÜ) resolve directly topliwith a confident (non-Collision) lock, under a C-heavy estate tally and none; each PL/I statement shape; a PL/I body without a PL/I sibling is not forced; PHP / assembly / C.incresolve identically with and without a PL/I program beside them.Golden masters
No moves (
pr_gates.py --only goldenPASS, no re-bless).Unicode Gauntlet (full, no
--only)Before: 932/934 with the two ledgered cells failing. After: 934/934;
mainframe|german|utf-16andmainframe|nordic|utf-8-sigremoved fromtests/unicode_gauntlet/baseline.txt(nothing else changed). Also confirmed the ASCII seed'smainframe/pli/INCA.incis nowpliin the full estate scan DB (wasc).Gates
tests/tools/pr_gates.py: lint, audits (ruff/mypy), secrets, xray, gauntlet, golden, suite: all PASS.🤖 Generated with Claude Code