Repository navigation
Describe the Write Guard's Quoted Directory, Command Word, and Substitution Readings - #3001
Conversation
…tution Readings in Its READMEs Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟡 Changes recommended
The documentation overstates substitution coverage and omits some directory-value behavior.
3 open findings
What changed in this PR
This PR updates the write guard documentation to describe the directory-value, command-word, and substitution readings added by the earlier guard change.
Changes:
- Clarifies when directory values and run-time command words are denied.
- Adds command substitution bodies to the described guard checks.
| File | Description |
|---|---|
host-setup/agent-safety/README.md |
Expands the guard requirement and its examples. |
host-setup/agent-safety/claude/README.md |
Updates the Claude hook summary. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3001 +/- ##
==========================================
Coverage ? 60.92%
==========================================
Files ? 17
Lines ? 8996
Branches ? 0
==========================================
Hits ? 5481
Misses ? 3515
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…E Readings Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…EADMEs Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…and Write-Guard Split Directory and Substitution Denies to Main (#3002) - #2986 makes `pr_review.py` count a Copilot finding named only in the overview file table, or only in a headline total larger than the open sections list, under `FINDINGS WITH NO THREAD`, so the gate reads a finding the round opened no thread or open-findings entry for - #2988 makes `pr_review.py cleanup` refuse a branch delete where another open pull request in the repository uses the branch as its head or base, naming them, and drops the hand-typed `git push origin --delete` fallback from `drive-pr` step 4 and `merge-and-release` step 8, so a seat that cannot run `cleanup` reports the delete to the maintainer. The failed-rules-read test now asserts the stub's stderr text and exit code - #2992 names `pr_review.py cleanup` as the branch delete in `backlog-burndown` and in `scripts/README.md`, with any nonzero exit, or a seat that cannot run it, reported to the maintainer - #2994 makes `gh-write-guard` deny an unquoted `-C`, `--git-dir`, or `--work-tree` value that word splitting may split, on every git subcommand, naming quoting the variable as the fix, deny a command word holding a `$` or a backtick where its subcommand is `push` or `commit`, and read the body of a double-quoted `$(...)` or backtick substitution, and of an unquoted backtick substitution, as a command, so a git push or commit hidden there reaches every check. A heredoc body inside such a substitution stays data - #3001 describes those readings in the two agent-safety READMEs After this merges, the host-safety installer payload changes, so the maintainer runs the installer after promotion. Closes #2982 Closes #2969 Closes #2971 Closes #2983 Closes #2987 Closes #2976 Closes #2977 Closes #2990 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Branch cleanup now checks that the branch still matches the pull request and is not used by another open pull request before deletion. If checks fail or cleanup cannot run, maintainers are asked to handle it; remotely pushed abandoned branches are not deleted automatically. * Review summaries now account for findings in file-table annotations and headlines, reducing the chance that unthreaded findings go uncounted. * **Safety** * Command safeguards now inspect command substitutions and reject ambiguous directory values and command forms that could conceal Git operations. <!-- end of auto-generated comment: release notes by coderabbit.ai -->

Brings the two READMEs that describe the write guard in line with the readings the guard gained in #2994.
-C,--git-dir, or--work-treevalue that word splitting may split is denied on every git subcommand, with the quoting fix named for an unquoted variable.$or a backtick is denied where the subcommand ispushorcommit.Two review rounds narrowed the wording to what the guard delivers. The gaps they found in the guard itself are filed as #2998, #2999, and #3000.
Closes #2990
Verification: prose_lint with
--diff,repo_gate.py,spec/validate.py,build_dist.py --check, and the docker linters pass.🤖 Generated with Claude Code