Skip to content

Admit .lib/.cobcpy/.cobcopy/.cpb COPY members when the body is COBOL (Part of #8412) - #8416

Merged
squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8412-20261113T1942Z
Nov 14, 2026
Merged

squid-shepherd[bot] merged 3 commits into
mainfrom
churn/8412-20261113T1942Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Part of #8412. Checklist: done [c:a6a0525b]

What

Copy members with an extension no language claims (.lib, .cobcpy, .cobcopy, .cpb) never reached the lens: .lib was a denied extension and the other three failed the whitelist gate, so a COPY X whose member was X.cobcpy resolved nothing. Aperture now admits the four (path gate only; the ar-magic check, binary and content gates still run), and language_lens._COBOL_MEMBER_EXTENSIONS lets a COBOL body make the file COBOL, as it does for .inc. A .lib with a Lua / ini / C / prose / binary body stays non-COBOL.

Class / Sibling gaps

Class: COPY / EXEC SQL INCLUDE member extensions the engine does not scan as COBOL. Members: .cpy .copy .dcl (registry, handled), .inc (#8111 lens, handled), .lib .cobcpy .cobcopy .cpb (this PR, upper and lower case, with non-COBOL bodies as negatives), extensionless (#8111, handled). The translator's own fallback search (det/source.py, now COPYBOOK_EXTS includes BODY_JUDGED_EXTS) tries the four in both cases, and test_copy_extension_parity_8074 exempts exactly that set and pins it to the lens's body-judged list. Sibling gaps: none known; cobol_graveyard_finder._COPYBOOK_EXTS is a separate legacy tool list, left out.

Gates

  • New tests/cobol_mainframe/test_copy_member_extensions_matrix_8111.py (21 tests, one real scan + lens over the class); _8111 and _8074 neighbours pass (62).
  • crucible_check.py via golden-lock: both legs PASS, no re-bless needed.
  • pr_gates --fast: 7/9; test_runtime_option_table.py::test_used_by_is_exactly_the_burned_corpora... fails identically on clean main (not this change); affected over-budget tests left to CI. --ratchets not run.

Parity round: det/source.py + test_copy_extension_parity_8074.py (51 tests pass across the three copy test files; ruff format clean).

Hand-written files: 5 (aperture.py, language_lens.py, det/source.py, new matrix test, parity test).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 13, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 13, 2026 19:58
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 13, 2026 19:59
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 13, 2026 20:04
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8416 @ a0d172d: 1 failed check(s)

== shard 3 (1670389 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/43497254457/job/132133820418
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom3do]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[doom3do] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
exclusion lib/burger/burger.lib: reason "Blocked (Explicitly Denied Extension: '.lib')" -> 'Blocked (Binary Format Detected)'
exclusion lib/intmath/intmath.lib: reason "Blocked (Explicitly Denied Extension: '.lib')" -> 'Blocked (Binary Format Detected)'
exclusion lib/mvelib/mvelib.lib: reason "Blocked (Explicitly Denied Extension: '.lib')" -> 'Blocked (Binary Format Detected)'
exclusion lib/string/string.lib: reason "Blocked (Explicitly Denied Extension: '.lib')" -> 'Blocked (Binary Format Detected)'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not 'doom3do: 4 difference(s) from the golden\n exclusion lib/burger/burger.lib: reason "Blocked (Explicitly Denied Exten...ib/string/string.lib: reason "Blocked (Explicitly Denied Extension: '.lib')" -> 'Blocked (Binary Format D
1 failed, 10 passed, 28 deselected in 158.22s (0:02:38)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 3 (1670389 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: cssdoom,doom-ascii,doom-ios,doom-scheme,doom-wasm,doom3-bfg,doom3do,dsda-doom,eternity,puredoom,woof
T0: 1794599982
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/893e3fcd-a46f-46cf-a742-84a2b3cc54c7' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 13, 2026
… their reason (Part of #8412)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (a1b559c) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 14, 2026 00:08
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 14, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 14, 2026 00:10
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 00:11
…ity test pins it (Part of #8412)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol
squid-protocol marked this pull request as draft November 14, 2026 00:35
auto-merge was automatically disabled November 14, 2026 00:35

Pull request was converted to draft

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (5c4f9ee) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 14, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 14, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 14, 2026 00:39
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 14, 2026 00:40
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 14, 2026
@squid-shepherd
squid-shepherd Bot merged commit 292a50d into main Nov 14, 2026
126 of 162 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8412-20261113T1942Z branch November 14, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant