3 Commits
Author SHA1 Message Date
g4borg 6d2311d248 feat(fermata): plain settings (true, 3600, AUTH_ENABLED) make no manifest entry; *AUTH* becomes three patterns 2026-11-07 01:22:02 +01:00
g4borg 0902ca2160 fix(fermata): the gate approves nothing; every schema's enums, each pinned per tool (N-2, M-1, M-2, M-3)
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.
2026-11-06 23:36:57 +01:00
g4borg b69fbf3ae2 fix(fermata): PostToolUse redacts any response shape, and a refusal fits each tool's schema
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.
2026-11-06 23:36:57 +01:00