Skip to content

Walk: prune directories by path rules, not the file gate (Part of #8074) - #8079

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8074-20261108T0339Z
Nov 8, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8074-20261108T0339Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8074 (blind trial #8073 top gap: COPY unresolved although the estate holds the member).

Root cause

The no-.git _fallback_filesystem_walk judged DIRECTORIES with the file gate evaluate_path_integrity. A z/OS dataset-name directory (FAKE.APP.COPYLIB) has the "extension" .copylib, which is not whitelisted, so Gate 1.5 blocked the directory and the subtree was pruned silently. No .cpy reached the census, so no COPY resolved and the det translator raised CopyUnresolved. .COBOL, .JCL and .BMS directories survived only because those are whitelisted extensions. The git ls-files census judges files individually, so the two paths disagreed.

Fix

New ApertureFilter.evaluate_dir_integrity (ignore rules only: ignored, hidden, vendored, virtualenv, generated-docs). The walk uses it for dirs[:]. Files are still judged by evaluate_path_integrity. Other callers (galaxyscope ~720, ~4121, vault_sentinel.py:125) pass files and are unchanged.

Tests

  • tests/core_engine/test_fallback_walk_dataset_dirs_8074.py: 8 dataset suffixes, dotted dirs (v1.2, a.b.c, x.exe), walk vs git-census parity, ignored dirs still pruned, denied-extension file inside a dataset dir still excluded.
  • tests/cobol_mainframe/test_copy_in_dataset_dirs_8074.py: one real scan_to_db on an authored fixture; the copybook is in ir.files and engine_copies_from_ir resolves it.
  • Both files fail on the old walk line and pass with the fix. Plain pytest from /tmp: 19 passed.
  • Defect D051 logged in field_testing.json (report regenerated).

Gates run

pr_gates --fast 9/9; audit_check.py clear; ruff format --check clean; crucible_check via golden-lock.sh both legs PASS (no bless needed); ground_truth_ledger.py check clean; test_galaxyscope + test_aperture pass.

Blind re-measure (counts only, det_survey.py --no-compile, 58 programs)

whole holes refused
before (d675a61) 14 15 29
after 38 18 2

The survey showed 29 refused at T0, not the issue's 21. Burned-estate no-regression is covered by the ledger and golden checks; no separate burned det survey was run.

Remaining slices

  • The 2 programs still refused are COPY-class; per-program cause not diagnosed (rule 3: no source reading).

Sibling gaps (no issues filed)

  • PDS member content classification for extensionless .DBRMLIB members.
  • --copy-libraries declaration handling.
  • CopyUnresolved message does not name a pruned directory.

Cross-repo

No companion PR. The blind estate re-measure is local evidence only.

Lessons for agents

  • Orchestrator(root, {}) has empty language definitions, so nothing is whitelisted; tests need real LANGUAGE_DEFINITIONS and APERTURE_CONFIG.
  • Never pass a directory to the file gate: a dotted dataset name looks like an extension.

🤖 Generated with Claude Code

The no-.git fallback walk judged directories with evaluate_path_integrity,
so a z/OS dataset-name directory (APP.PROD.COPYLIB) hit the unsupported-
extension gate and its subtree was pruned silently. No .cpy reached the
census, COPY stayed unresolved, and the det translator raised CopyUnresolved.
Directories now go through evaluate_dir_integrity (ignore rules only); files
are still judged individually, matching the git census.

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

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 8, 2026 04:17
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

PR #8079 @ bd99a4a: 2 failed check(s)

== crucible (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42446240563/job/128626850907
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
errors:
CICS crucible: 451 pass, 397 fail, 0 unsupported (848 cells, 3 shards)
##[error]Process completed with exit code 1.
log tail:
Beginning upload of artifact content to blob storage
Uploaded bytes 29354
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 1e0a8374ff1f8db9cf0bb11c7c7d6f2693f12b0d39a6f488001512a3e3eb89e1
Finalizing artifact upload
Artifact cics-crucible-results successfully finalized. Artifact ID 13602899947
Artifact cics-crucible-results has been successfully uploaded! Final size is 29354 bytes. Artifact ID is 13602899947
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42446240563/artifacts/13602899947
##[group]Run echo "measure: success, runner-tests: failure"
echo "measure: success, runner-tests: failure"
[ "success" = "success" ] && [ "failure" = "success" ]
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
PYTHONUTF8: 1
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]
measure: success, runner-tests: failure
##[error]Process completed with exit code 1.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/ff8c515d-8135-4623-98ba-79f964ed4833' 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

== runner-tests (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/42446240563/job/128625656206
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/tools/test_crucible_case.py::test_events_table_matches_the_crucible_schema
errors:
fail-on-cache-miss: false
E AssertionError: assert {'SEND-MAP': ..., set()), ...} == {'SEND-MAP': ..., set()), ...}
tests/tools/test_crucible_case.py:99: AssertionError
FAILED tests/tools/test_crucible_case.py::test_events_table_matches_the_crucible_schema - AssertionError: assert {'SEND-MAP': ..., set()), ...} == {'SEND-MAP': ..., set()), ...}
##[error]Process completed with exit code 1.
log tail:
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
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-cics-crucible.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 6132
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 0fcaefc28d20ce829bc704560092175e03cea7a97b8c1484cba40834816664eb
Finalizing artifact upload
Artifact test-times-cics-crucible successfully finalized. Artifact ID 13603359098
Artifact test-times-cics-crucible has been successfully uploaded! Final size is 6132 bytes. Artifact ID is 13603359098
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/42446240563/artifacts/13603359098
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.0
Temporarily overriding HOME='/home/runner/work/_temp/bf056d5f-5e1f-4715-9e97-8d6945d9da8a' 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 8, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 8, 2026 05:16
@squid-shepherd squid-shepherd Bot added shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). 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 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 8, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 8, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

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