Both READMEs, security-model.md, configuration.md, commands.md, threat-model.md, the crate
CLAUDE.md and the filter section of matrix.md. Each stated form has a row in
tests/known_limits.rs. The Edit claim now says it comes from Claude Code's documentation, and
"by no other route" is gone. cli_hook_fail_closed's open control asserts that .botignore and
the read gate stay on and that a note names the bad pattern.
count_masks counts runs of exactly five stars, or <REDACTED: marks under typed and
named; absent counts 0. write_pairs gives each change's text before and after. The
guard denies when a change holds more marks than what it replaces, and a Write's
"before" is the file on disk, read only if the new text holds a mark. Both projects
of a path call decide. on_mask_write = "allow" turns it off. The refusal says "ask the
user", names the setting and quotes nothing.
Each PostToolUse that masked adds a note beside the output.
cli_hook_fail_closed: a masked Write's only note is now the masks note, asserted
exactly, in place of "no note".
deny_unknown_fields on every config struct. [enforcement] mode, EnforcementMode and
mask-entire-file are gone, and on_parse_error defaults to allow. New settings
on_unparsed_read and on_mask_write, default deny, read by later blocks.
SecretsConfig::load stays strict for the channel filter. load_or_default skips only the
layers that fail, so a typo keeps the other layers and the default list. Hooks note the
broken layer and any skipped() secret file beside output that shows text, not beside
every Write (shows_text). Under deny the refusal is unchanged. fermata check exits 2
with the line number.
A non-UTF-8 layer counts as a failed layer; a layer whose bytes cannot be read stays
silent, as pinned.
PreToolUse answers {} when no rule stopped a call: permissionDecision allow skipped Claude
Code's own prompt. allow_prefixes now only skips fermata's ask rules. PowerShell and Monitor
commands reach [policy.bash]. SCHEMA_VALUES covers the remaining getters of 2.1.314, Artifact
refuses in its read form, and data beside a binary type stays only in a top-level block.
Built-in tools and normal MCP results send tool_response as an object or an
array, which the hook read as empty: nothing was redacted under any setting.
The hook now walks any shape, masks every string and returns the same shape.
Enum and literal values of Claude Code's output schemas (read from v2.1.314)
stay when they match exactly, because a mask there fails the schema and the
original is used. A secret that cannot take a mask refuses the output under
every setting. Refusals: Bash and Read answer a minimal schema-valid output,
others keep their shape with exact enum values only.
Also: an unreadable config layer no longer counts as deny, multi-line string
spellings of deny count, vim's other swap names and Kate's are editor files,
the heuristic warning moves to additionalContext, and PreToolUse answers
quietly for tools it has no rules for.
One non-UTF-8 .env.swp blocked everything a checkout sent across a link, and would
withhold every tool output under deny. A discovered *.swp, *.swo, *.swn, *.swx or
*~ that cannot be read or parsed is now passed over under every setting. One that
can be parsed stays known to the redactor. .bak, .env.gpg and [[file]] overrides
keep the rule.
PostToolUse replaced nothing when a secret file or the config failed. Under deny
it now puts a refusal naming the file in place of the output, in the tool's own
shape: Claude Code ignores a replacement that does not match a built-in tool's
schema. PreToolUse answers deny for a config or rules it cannot load or apply.
A config that cannot be loaded leaves the setting unknown: a layer with a line
setting deny counts, a layer whose bytes cannot be read counts as deny, and
anything else stays open as today.
Parse errors keep the format and line number and drop the parser's text.