Skip to content

ruff-audit, mypy-audit, small-audits skip for docs they cannot read (Part of #6278, slice 5) - #6303

Merged
squid-protocol merged 1 commit into
mainfrom
churn/6278-20261023T2320Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/6278-20261023T2320Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Slice 5 of #6278 (first cut of item 4). tests/tools/audit_skip_plan.py (stdlib, uses change_classifier.area()) decides none|full for the three always-start audit workflows. Each gets a Plan the audit step right after checkout (PR file list from the API, whole or not at all, as in smoke-test.yml); every later step is gated on mode != 'none'. The job and the check always start and report (no paths / paths-ignore, no job-level if), so required checks still report; a planner failure falls back to full.

workflow profile none only when every changed file is
ruff-audit (required) lint prose / test-read-doc / agent-config and not code or config by extension
mypy-audit (required) lint same
small-audits small prose only (these audits are tests/*.py; what a test opens is theirs)

Any .py/.pyi/.toml/.json/.jsonl/.txt/.yml/.sh/.ipynb file (even under docs/ or .claude/), a rename from one, shepherd:full, an empty/unreadable diff and every non-PR event run the audit.

Replay

Owner decisions

Owner OK (2026-10-23): TOP PRIORITY; workflow edits approved for this issue.

Tests

tests/tools/test_audit_skip_plan.py (35): replays, every code/config suffix runs, every doubt runs, workflow layout (no trigger filter, no job if, permissions, every step after the plan gated, fallback to full). pr_gates --fast 7/7; tests/tools workflow/plan guards pass.

Checklist: partial [c:597be974] -- ruff, mypy, small-audits done; muninn, Zero-Trust, CICS crucible, Java/ports compile, fact cross-check, unicode-gauntlet, rosetta-audit left
Checklist: partial [c:9e7776d2] -- the README.md / #6245 / test_zos_probes replays hold for the audits wired so far

Class / Sibling gaps

Class: PR workflows that always start (required, or no trigger filter) and install heavy tooling for docs-only PRs. Done: ruff-audit, mypy-audit, small-audits (plus smoke-test, ground-truth, det-sweep earlier). Sibling gaps / Remaining slices: (1) gitgalaxy.yml has paths-ignore: ["docs/**"] (non-required self-scan): swap for a plan step so prose outside docs/ (README, .claude) skips too; (2) muninn.yml, cics-crucible.yml, java-compile.yml, ports-compile.yml, unicode-gauntlet.yml, rosetta-audit.yml, fact-crosscheck.yml already carry workflow-level paths: lists (a filtered required check does not report), so a classifier-driven plan job would replace those lists: order by runner-min: CICS crucible, Java/ports compile, muninn; (3) items 5 and 6 of the issue untouched.

🤖 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 23, 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 23, 2026 23:25
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 23:27
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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