Skip to content

ci(audit): allow read-only grep and find, report denials, finish focus 0 - #1816

Merged
Gerrrt merged 1 commit into
mainfrom
ci/weekly-audit-denials
Nov 29, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
ci/weekly-audit-denials

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 28, 2026

Copy link
Copy Markdown
Owner

What changed

Two fixes to the weekly docs audit, and a report that lets the next run prove them.

  • grep and find allowed in Bash. The 2026-11-28 re-run's audits reported Grep and Glob unavailable and fell back to grep and find in Bash. Neither is on the allow list, so those calls were denied: 6, 13 and 11 denials on focus 2, 3 and 5. Both are now allowed. find with -exec, -ok, -delete, -fprint or -fls is denied, so find can neither run a command nor write a file. grep reads nothing that Read cannot already read.
  • A denial is no reason to skip an item. Focus 0 hit one denied call, then marked 13 of the 15 newest ADRs Not reached at about 45 tool calls, against the 120 the prompt requires. The Coverage rules now say to rewrite a denied call in an allowed form and carry on. Focus 0's newest-ADR item now asks for one Coverage line per ADR, fifteen in all.
  • New step, Report tools and denials. It reads the action's execution file and adds to the job summary the tools the session had and, for each denied call, the tool and the command's first two words (git -C <dir> <subcommand> for git in Lemmiwinks). It marks a call that held a shell operator. It never prints the whole command, because the summary is public. Until now a denial count was all a run left.

Why

Denied calls leave items unchecked or checked a worse way. CI shows only the count, so the last fix (#1804) could not be confirmed from a CI run.

Blast radius

.github/workflows/weekly-audit.yml and the audit prompt only. The audit job still has contents: read and issues: write. The new step runs jq on a file in the runner's temp directory.

  • No change to network segmentation or firewall rules

Verification

  • ./scripts/lint.sh: actionlint, zizmor and yamllint pass (local binaries; 9 checks skipped locally, CI runs them with --require-all)
  • python scripts/check_docs.py: pass
  • The step's jq program, run against a sample execution file, prints the tools line and one line per denial, with the shell-operator mark
  • After merge: re-run focus 0, 2, 3 and 5 and read Tools and denials in each job summary

🤖 Generated with Claude Code

The audits fell back to grep and find in Bash when Grep and Glob were
missing, and both were denied. Allow them, with find's -exec, -ok,
-delete, -fprint and -fls denied. Add a step that writes the session's
tool list and the shape of each denied call to the job summary. Tell the
audit that a denial is no reason to leave an item unchecked, and make
focus 0 give each of the 15 newest ADRs its own Coverage line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 28, 2026 23:49
@Gerrrt
Gerrrt merged commit 0bedecf into main Nov 29, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the ci/weekly-audit-denials branch November 29, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant