Repository navigation
docs(distribution): expand the escape-hatch index; deny PowerShell lefthook bypass - #432
Conversation
…fthook bypass ESCAPE-HATCHES.md grows the engine target-filter section (--targets for matrix/plan; --target/--target-root for the single-target commands — validate accepts no filters) and the Lefthook skip section (durable skip: true vs the one-off LEFTHOOK=0 env bypass, PowerShell shape included). The README Commands section now names the single-target flags and points at the index. claude-permissions gains PowerShell(*env:LEFTHOOK*): the Bash denies anchor on the inline-env spelling PowerShell lacks, so a literal twin could never match — the env-var-reference anchor covers assignment, Set-Item, and brace forms in one whole-string glob. Test coverage asserts all four lefthook deny rows. Closes #431 Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013NhxMDn7vZdbs7Cq32m56M
|
Claude finished @kyle-sexton's task in 3m 22s —— View job Claude's review of PR #432
SummaryScoped, well-documented change. Verified the new FindingOne correctness concern, posted inline on The new If Claude Code's permission matcher doesn't separately case-fold Everything else — the JSON's ASCII sort order, the test assertions' logic against the actual deny array, and the new doc sections — held up under inspection. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a0e3df0fc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
…oped doc example Review findings: PowerShell's Env: drive is case-insensitive while permission rules are literal whole-string globs, so the single env:LEFTHOOK anchor left $Env:/$ENV:/lowercase spellings undenied. Two anchors now cover the realistic shapes — *LEFTHOOK* for every uppercase-name reference regardless of drive casing, *:lefthook* for drive-qualified lowercase without denying bare lefthook invocations; the exotic mixed-case residual is recorded in the test comment. The ESCAPE-HATCHES PowerShell example now unsets the session-scoped variable after the commit. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013NhxMDn7vZdbs7Cq32m56M
Closes #431
Phase 3.4 of the standards-sync-audit remediation (plan:
docs/topics/standards-sync-audit/PLAN.md, Phase 3 approved 2026-08-19).What
distribution/ESCAPE-HATCHES.md: adds the engine target-filter section (--targetsfor matrix/plan only —validatehard-rejects all filters;--target/--target-rootfor mappings/dest-paths/apply with the origin-identity check noted) and the Lefthook section (durableskip: trueper lefthook-base vs the one-off humanLEFTHOOK=0bypass with the PowerShell$env:LEFTHOOK = '0'shape; agent deny floor stated for both shells).distribution/README.mdCommands: names the single-target flags and points at the index.components/claude-permissions/claude-permissions.json: addsPowerShell(*env:LEFTHOOK*)— the three Bash LEFTHOOK denies anchor on the inline-env spelling (LEFTHOOK=0 cmd) that PowerShell lacks, so PowerShell agent sessions were not actually deny-floored from the bypass; one env-var-reference-anchored glob covers$env:LEFTHOOK = '0',Set-Item env:LEFTHOOK …, and${env:LEFTHOOK} = …(whole-string globs,*only — precision costs coverage). Test asserts all four lefthook deny rows.Verification
bash components/claude-permissions/claude-permissions.test.shgreen incl. the four new assertions.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_013NhxMDn7vZdbs7Cq32m56M