Skip to content

fix(ci): use read-only permission mode for the report-first routines#40

Merged
Gerrrt merged 1 commit into
mainfrom
claude/routines-read-only-mode
Jul 9, 2026
Merged

fix(ci): use read-only permission mode for the report-first routines#40
Gerrrt merged 1 commit into
mainfrom
claude/routines-read-only-mode

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Fleet-wide hardening surfaced by a Copilot review on dotfiles-Windows#92.

claude-routines.yml's jobs ran with --permission-mode acceptEdits, which auto-approves the file-edit tool category and overrides the --allowedTools allowlist — so "report-first, change nothing" rested on the prompt + model compliance, not a hard rule.

Flipped all 3 jobs (corpus-review, release-readiness, release-notes) to --permission-mode default: an edit call is denied non-interactively in headless -p, while the allowlisted read tools still run. Report-only is now mechanical. actionlint clean; no behavior change (the routines never edit).

🤖 Generated with Claude Code


Generated by Claude Code

--permission-mode acceptEdits auto-approves the file-edit tool category, which
overrides the --allowedTools allowlist — so the routines' "report-first, change
nothing" guarantee rested on the prompt + model compliance, not a hard rule. Switch
every routine job to --permission-mode default: an edit call is no longer
pre-approved (denied non-interactively in headless -p), while the allowlisted
read/research tools still run. Makes report-only a mechanical guarantee.

Surfaced by Copilot review on dotfiles-Windows#92; swept fleet-wide for parity.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CpbBxJLgsg3T3ropqYGJA
Copilot AI review requested due to automatic review settings July 9, 2026 19:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Hardens the claude-routines.yml GitHub Actions workflow so the “report-first” Claude routines cannot perform non-interactive file edits, making report-only behavior mechanically enforced rather than prompt-dependent.

Changes:

  • Switched all three Claude routine invocations from --permission-mode acceptEdits to --permission-mode default.
  • Keeps existing --allowedTools read-oriented allowlists intact for the routines.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Gerrrt
Gerrrt merged commit d789c29 into main Jul 9, 2026
2 checks passed
@Gerrrt
Gerrrt deleted the claude/routines-read-only-mode branch July 9, 2026 19:19
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.

3 participants