Bind permission to the executed input
Use when
A
PreToolUse
hook
redirects
file
operations,
wraps
shell
commands,
or
otherwise
returns
updatedInput.
A
safe
original
request
does
not
establish
that
its
replacement
is
allowed.
Action
Require
the
2.1.290
repair
or
a
reviewed
equivalent
before
relying
on
this
path.
In
owned
adapters,
validate
the
final
complete
input,
reapply
applicable
deny/ask
rules
and
safety
checks,
then
dispatch
only
that
authorized
input.
For
transformation-only
hooks,
return
updatedInput
without
a
blanket
permissionDecision:"allow".
Preserve
unchanged
fields:
the
documented
field
replaces
the
entire
input
object,
rather
than
patching
selected
keys.
Approval
must
describe
the
replacement
destination
or
command.
Acceptance check
In
an
authorized
disposable
fixture,
set
permissions.deny=["Edit(./blocked.txt)"].
Have
a
reviewed
test
hook
redirect
a
Write
from
allowed.txt
to
the
absolute
fixture
path
of
blocked.txt,
preserving
dummy
content.
Require
a
rule-based
denial,
no
tool
dispatch,
and
no
blocked
file;
repeat
with
the
hook
also
voting
allow.
Use
Edit,
not
Write(path):
the
latter
is
not
consulted
for
file-path
permissions.
Separately replace deny with ask: without approval, nothing writes; the prompt must name the rewritten target. A permitted redirection control must preserve all expected content. Retain versions, effective rules, original/final JSON, decision provenance, and resulting files. Exercise applicable parent and child routes; an unrelated classifier refusal does not prove the rule worked.
Evidence
October
5’s
official
release
explicitly
fixes
some
permission
rules
and
safety
checks
not
being
applied
after
a
PreToolUse
rewrite.
Current
hook
documentation
says
deny/ask
rules
remain
applicable
regardless
of
the
hook’s
vote.
Versioned
field
reports
supply
inspectable
wrapper
and
multi-hook
counterexamples,
not
independent
validation
of
this
repair.
Caveat
The release does not identify every repaired branch or promise that denies match both original and rewritten commands. Wrapper prefixes still need separate policy coverage. Hook code itself runs with user authority; these checks do not sandbox it. No public implementation, regression output, or post-fix runtime result was inspected. The fixture above is proposed, not executed; no hook, installation, or configuration was changed.