Skip to content

#3867: a PL/I %INCLUDE member named .inc resolves to pli - #3897

Merged
squid-protocol merged 1 commit into
mainfrom
fleet/3867-pli-include
Sep 27, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fleet/3867-pli-include

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #3867

Root cause

PL/I deliberately does not claim .inc (pli.py: PHP, Pascal, NASM, C use it too), so pli was never a candidate for the gauntlet's one-line member mainframe/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 seed c, and the lexical scan made the German/Nordic variants assembly -> 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 .inc with no shebang / internal signature, whose folder holds a .pli/.pl1/.plinc program, and whose body carries a PL/I statement shape, locks to pli (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 .inc claimant writes: DCL/DECLARE with a level number or a PL/I data attribute (CHAR, FIXED, BIN, DEC, PIC, POINTER, ...), a labelled PROC/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 to pli with 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 .inc resolve identically with and without a PL/I program beside them.

Golden masters

No moves (pr_gates.py --only golden PASS, no re-bless).

Unicode Gauntlet (full, no --only)

Before: 932/934 with the two ledgered cells failing. After: 934/934; mainframe|german|utf-16 and mainframe|nordic|utf-8-sig removed from tests/unicode_gauntlet/baseline.txt (nothing else changed). Also confirmed the ASCII seed's mainframe/pli/INCA.inc is now pli in the full estate scan DB (was c).

Gates

tests/tools/pr_gates.py: lint, audits (ruff/mypy), secrets, xray, gauntlet, golden, suite: all PASS.

🤖 Generated with Claude Code

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]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 2f5589b into main Sep 27, 2026
33 checks passed
@squid-protocol
squid-protocol deleted the fleet/3867-pli-include branch September 27, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant