Skip to content

aperture: Gate 4.2 judges a directory from its own listing, not one file (Closes #5458) - #5479

Merged
squid-protocol merged 2 commits into
mainfrom
churn/5458-20261018T1322Z
Oct 18, 2026
Merged

squid-protocol merged 2 commits into
mainfrom
churn/5458-20261018T1322Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #5458 (Part of #5457)

What

Gate 4.2 no longer adds a file's parent dir to dynamic_ignore_dirs (order-dependent, one-file evidence). It still blocks the generator-HTML file itself. Directory-wide dropping is now ApertureFilter._is_generated_docs_dir, computed from the directory's own listing (cached, order-independent): the dir is generated docs only if it holds no source/build files and more than half of its .html/.htm/.xml files carry a generator <meta>. A flagged ancestor covers descendants (e.g. Doxygen html/search/) only while a descendant holds no source/build files.

Class table (directory-wide decisions from one file)

member status
Gate 4.2 one file -> parent dir ignored fixed
order dependence fixed (verdict from listing)
doc template vs generated output fixed (template dir with source/build files never flagged; majority rule)
dir flagged though it holds source/build fixed (_holds_source_files guard)

Evidence

  • doomsday (doom-study repos): 2,534 .c/.cpp/.h walked through evaluate_path_integrity, 0 blocked for the dynamic-dir reason.
  • Tests: new test_aperture_doc_template_does_not_block_source_tree (both walk orders), rewritten test_aperture_auto_gen_shield (real Doxygen-like html/ dir and its search/ subdir still dropped). tests/core_engine passes except test_ci_install_pins::test_workflows_build_without_isolation (touches workflows, not this diff; not re-checked against main).
  • pr_gates --fast: 6/6. --ratchets: 2 pass, 6 skipped (no mvn, no mainframe corpora, no estate-crucible checkout).
  • Golden check NOT run: language-crucible sibling checkout absent on this box. Aperture feeds the census, so CI crucible-audit may show a diff to bless (expected only where a source dir was previously swept).

Lessons for agents

  • pr_gates ruff cache ~/.cache/gitgalaxy/ruff-0.16.10 may not exist yet; pr_gates --fast formats-check it for you, then fix by hand.

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 13:39
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 13:41
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5479 @ 938feb4: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39132538984/job/117696204512
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261012.601
Commit: f3dc54e1fb89da6852db922499a0233137369e1d
Build Date: 2026-10-12T17:48:21Z
Worker ID: {df9dd353-4242-4592-b228-4736e1cb6872}
Region: westus3
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261012.334.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261012.334/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261012.334
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP:
##[endgroup]
full-suite parts: failure (tested-tree skip: )
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 1/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/39132538984/job/117691866765
repro: python -m pytest -q tests/core_engine/test_ci_install_pins.py::test_workflows_build_without_isolation
failing tests: tests/core_engine/test_ci_install_pins.py::test_workflows_build_without_isolation
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
[--fail-on-malware]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
--fail-on-malware CI/CD Gate: Fail build if ML threat inference flags
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: [('java-base-generation.yml', 'pip install -e .')]
tests/core_engine/test_ci_install_pins.py:179: AssertionError
FAILED tests/core_engine/test_ci_install_pins.py::test_workflows_build_without_isolation - AssertionError: [('java-base-generation.yml', 'pip install -e .')]
##[error]Process completed with exit code 1.
log tail:
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 175757
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is dd407f902916684a968cab36e05b20cc50fda7fc124ef1db7f4d698c8a7a4400
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 12139495586
Artifact test-times-part-1 has been successfully uploaded! Final size is 175757 bytes. Artifact ID is 12139495586
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/39132538984/artifacts/12139495586
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/00fd017a-0feb-4455-9ec5-200fd531bfcd' 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
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-protocol squid-protocol added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 18, 2026
@squid-protocol
squid-protocol merged commit bce02e9 into main Oct 18, 2026
40 checks passed
@squid-protocol
squid-protocol deleted the churn/5458-20261018T1322Z branch October 18, 2026 15:02
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.

Aperture Gate 4.2: one generated-docs HTML file blocks its whole parent directory (doomsday: 1,170 source files, order-dependent)

1 participant