Skip to content

Let check-suite read the style files check-docs asks for - #29

Merged
dgsienko merged 1 commit into
mainfrom
No-Ticket/check-suite-style-files
Nov 19, 2026
Merged

dgsienko merged 1 commit into
mainfrom
No-Ticket/check-suite-style-files

Conversation

@dgsienko

Copy link
Copy Markdown
Owner

Overview

check-docs tells the reviewer to read ~/.claude/STYLE.md and ~/.claude/TROPES.md. The pre-push check-suite runs claude -p --restricted, which confines the file tools to the repo, so those reads failed and the voice check quietly never ran. Sessions logged 16 of these denials in the last 30 days.

Details

--restricted honors --add-dir, so check-suite now passes --add-dir ~/.claude. The skill's instruction stays true as written, and no prompt text changes.

Notes

This makes all of ~/.claude readable to the headless session, including transcripts and memory. The session only has Read, Grep and Glob, with no network, and its output only prints to the terminal.

Testing

  • pytest tests/test_check_suite.py: 10 passed.
  • claude -p --restricted --tools Read --add-dir ~/.claude read TROPES.md's first heading.
  • This branch's own pre-push check-suite passed, and its docs check read the style files.

Review focus: the --add-dir line in scripts/check_suite.py.

check-docs reads ~/.claude/STYLE.md and TROPES.md, which --restricted blocked
because they sit outside the repo, so the headless voice check never ran.
--add-dir ~/.claude opens that directory to the read-only tools.
@dgsienko
dgsienko merged commit e16e1a7 into main Nov 19, 2026
2 of 4 checks passed
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