|
1 | | -fix: address code review findings — rule ordering bug, cross-platform paths, TOCTOU docs |
| 1 | +fix: address multi-model review consensus — movePath guard, case-insensitive matching, expanded patterns |
2 | 2 |
|
3 | | -- Fix critical bug: bash deny defaults had `"*": "ask"` LAST which overrode deny rules |
4 | | - due to last-match-wins semantics. Moved `"*": "ask"` to first position so deny rules |
5 | | - take precedence. |
6 | | -- Fix all doc examples with same ordering bug (security-faq.md, permissions.md) |
7 | | -- Fix `isSensitiveWrite` to use regex split `/[/\\]/` for cross-platform path handling |
8 | | -- Allow per-path "Always" approval for sensitive file writes (reduces approval fatigue) |
9 | | -- Document TOCTOU limitation in `containsReal` JSDoc |
10 | | -- Add doc clarification about last-match-wins rule ordering with examples |
11 | | -- Add tests: bash deny defaults evaluation, user override merge, Windows backslash paths |
| 3 | +Fixes from consensus across GPT 5.2, Kimi K2.5, MiniMax M2.5, and GLM-5 reviews: |
| 4 | + |
| 5 | +- Add `assertSensitiveWrite(ctx, movePath)` for move destinations in `apply_patch` |
| 6 | + (CRITICAL: 3 models flagged that moves to `.ssh/`, `.env` bypassed sensitive check) |
| 7 | +- Add case-insensitive matching on macOS/Windows for sensitive dirs and files |
| 8 | + (`.GIT/config`, `.SSH/id_rsa` now correctly detected on case-insensitive FS) |
| 9 | +- Expand `SENSITIVE_FILES` with `.htpasswd`, `.pgpass` |
| 10 | +- Add `SENSITIVE_EXTENSIONS` for private keys: `.pem`, `.key`, `.p12`, `.pfx` |
| 11 | +- Add tests: case-insensitive matching, certificate extensions, credential files |
12 | 12 |
|
13 | 13 | Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
0 commit comments