Skip to content

aperture: CI workflows are code, not static-asset blobs; exclusions are never silent (#4917) - #4928

Merged
squid-protocol merged 4 commits into
mainfrom
fix/4917-aperture-workflow-blob
Oct 11, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
fix/4917-aperture-workflow-blob

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #4917.

Problem: the aperture's static-blob gate (Gate 3.3) dropped any YAML over 1,000 lines with no intent as a "Static Asset Blob", including our own 1,010-line .github/workflows/evidence-refresh.yml. Nothing on the console said so.

Change

  • ApertureFilter._is_pipeline_config: pipeline definitions skip the blob size gate. Matched by path (.github/workflows/, .gitlab/, .circleci/, .buildkite/, action.yml, .gitlab-ci.yml, bitbucket-pipelines.yml, azure-pipelines*.yml) or by content (3 or more jobs: / steps: / run: keys, checked within the first 200k chars). The other gates (monotony, array/hex shields, saturation) still apply to them.
  • Exclusions are never silent. A static-asset-blob exclusion, the heuristic that can hide real code, logs a WARNING naming the file and reason. Bulk exclusions (minified, generated, path noise) log at DEBUG so a large repo doesn't flood the console. The scan prints one INFO line with the exclusion count and points to the audit report's "Unparsable Artifacts" section.

Evidence

  • Self-scan of this branch: evidence-refresh.yml appears in the audit as Yaml (it used to be in the excluded queue). The console showed 9 exclusion lines in total, so no flood.
  • tests/core_engine/test_aperture_workflow_blob.py: workflow kept; a 1,100-line data YAML is still blocked and warned once; recognised pipeline names; content-identified workflow at a custom path; dogfood on evidence-refresh.yml; bulk exclusion logs DEBUG with no WARNING.
  • pr_gates --fast (lint, audits, secrets, xray, gauntlet) and --ratchets (all 7) pass in a /srv worktree. Golden masters left to CI.

Implementation by agy (Gemini); review follow-ups (log levels, summary line, dead logger) by Claude.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits October 11, 2026 15:45
…xcluded file (#4917)

Exempt recognized pipeline configuration paths (.github/workflows/*.yml,
action.yml, bitbucket-pipelines.yml, .gitlab-ci.yml, azure-pipelines.yml)
and content-identified workflow YAML files from Gate 3.3 static-blob
exclusion. Large data YAML fixtures remain excluded.

When the aperture excludes a file, log a WARNING naming the excluded
file and reason so skipped artifacts are visible on the console.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX
#4917)

Review follow-up: a WARNING per minified/generated file floods the console
on large repos, so only the heuristic static-asset-blob exclusion (the one
that can hide real code) warns per file; the rest log at DEBUG and the scan
prints one INFO count pointing at the audit report. Drop an unused module
logger, cap the pipeline-key content check at 200k chars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 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 11, 2026 20:44
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 20:44
@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 c7f0979 into main Oct 11, 2026
33 checks passed
@squid-protocol
squid-protocol deleted the fix/4917-aperture-workflow-blob branch October 11, 2026 20:56
squid-protocol added a commit that referenced this pull request Oct 12, 2026
CI workflows became scanned files (#4928), so `.github/workflows/dart.yml`
entered the name index and a Dart `dart` token drew 5 false edges
(graph-accuracy-audit, dart-lang/http). _resolve_target now refuses a
yaml/json/markdown/plaintext/csv/pbtxt target unless the token spells that
file's own extension. The same guard drops Go `import "unsafe"` ->
ansible unsafe.yml from the golden corpus.

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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: a 1,000+ line CI workflow is silently excluded as a 'Static Asset Blob' (evidence-refresh.yml missing from our own scan)

1 participant