16 Commits
Author SHA1 Message Date
g4borg e83d886fa3 docs(fermata): the page lists the command holes left for the shell parser, each with a test
N-1b (a shell line ending in a backslash), S-1b (grep -fe clusters), R-1
(writes through a shell's positional arguments), R-2 (bash -oc pipefail),
R-3 (PowerShell short switches) as known failures, and the echo-only
positional argument as an over-denial. Command checks are marked best
effort until the shell parser round. security-model.md says positional
arguments are read only as printed. No src change.
2026-11-07 11:33:15 +01:00
g4borg d679aec6c3 docs(fermata): the page drops bash -c -o pipefail and names an indented private block and the = and : write forms 2026-11-07 10:05:18 +01:00
g4borg 938ce2d766 docs(fermata): the page names the spaced exclude flag a rule still stops 2026-11-07 09:51:52 +01:00
g4borg b9e8e52731 docs(fermata): the page lists what stays open after the fixes; the failure diagram leaves the public README
threat-landscape.svg showed specific failures and nothing else used it, so it is gone. The
false entry on runs outside a project now names all four markers, with a test.
2026-11-07 09:48:21 +01:00
g4borg 709f0cf1bc docs(fermata): the failure list moves out of the READMEs into docs/known-failures.md
One list, merged from both READMEs and security-model.md "Known limits", each entry with
its test. Entries fixed on this branch are gone. Both READMEs keep the warning and point at
the page. tests/docs_known_failures.rs keeps the page and known_limits.rs in step, and
test_crate_export.py checks that the public README's links resolve in the exported tree.
2026-11-07 09:07:19 +01:00
g4borg 34298c5f9a fix(fermata): a shell behind a wrapper and a verb given by path are read; the forms that stay text are named
The bash/sh/zsh/eval unwrap reads the word after the prefix walk, so sudo, env,
timeout, nohup, exec, xargs, busybox and X=1 in front of a shell no longer hide
its command line. A prefix counts by its file name, as a verb already did, so
/bin/bash -c, /usr/bin/env cat and /usr/bin/timeout 5 cat are read.

Named as limits, each with a test in known_limits.rs: dash -c, ksh -c,
bash -c -- x, eval past its first argument, sudo -u root bash -c, and on the read
gate eval cat id_rsa and cat <&3 id_rsa. (re-check I-3, I-4 leftover, I-5's stale line)
2026-11-07 02:11:10 +01:00
g4borg bfe83165a7 docs(fermata): name the command forms that pass, the harmless ones stopped and what a bad glob costs
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.
2026-11-07 02:02:42 +01:00
g4borg 999ed6ba4e docs(fermata): known limits, config reference and READMEs say what the tests show
Known to fail holds only what known_limits.rs pins or Claude Code's docs state;
the multi-line quoted value gets its own limit test. configuration.md follows the
code (unknown fields, [enforcement] settings, marks, plain settings, verb classes)
and every TOML example of it is loaded by tests/docs_toml_examples.rs. Speed
numbers are measured with a release build. matrix.md notes the new refusals.
2026-11-07 01:38:19 +01:00
g4borg ac2fa03306 fix(fermata): empty masked text becomes [fermata]; a Monitor without a command is left alone; tests for the CRLF and JSON-escaped spellings 2026-11-07 01:29:03 +01:00
g4borg 47da98709f docs(fermata): do not use; an experiment, with what it is known to fail at
The public README, crate README, docs, SVGs, crate description and --help no
longer present fermata as protection. The README opens with a warning and a
"Known to fail" list from recheck-2, each item reproduced on this code.

The docs also said things the code does not do: the hook never checks a Bash
command against path rules (threat model L1 to L4), [enforcement] mode has no
effect, [policy.read] takes patterns and not deny, a .botignore directory
pattern misses the files below it, and a relative path never matches.
2026-11-06 23:48:18 +01:00
g4borg fe041051ca docs(fermata): the promises Known limits allows, and the limits named (I-2, N-3, N-4, M-4)
A failed command's output is stated as the largest limit: only a [policy.bash] deny stops
it, and only for the spelling it names. Monitor output and changed-file attachments added.
fermata is documented as no permission approver. Recovery from onFailure block.
2026-11-06 23:36:57 +01:00
g4borg 9a623c8fbd docs(fermata): true redaction promises, known limits, wiring for every tool
The hook matcher goes: Grep, Glob, WebFetch, Agent and MCP output needs the hook
too. onFailure: block on PreToolUse (v2.1.295+) stops a tool when fermata cannot
run. A new Known limits section lists what is not covered, including failed tools,
whose text no hook can rewrite.
2026-11-06 23:36:57 +01:00
g4borg 5c3b239f59 fix(fermata): an editor's swap or backup file no longer refuses
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.
2026-11-06 23:36:57 +01:00
g4borg 969cff212f fix(fermata): the hooks refuse under on_parse_error = "deny", and no error quotes a file
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.
2026-11-06 23:36:57 +01:00
g4borgandClaude Opus 4.6 168aefd415 🏗️ fermata: redaction-first security model, unified .botsecrets config
Realign fermata around redaction (PostToolUse) as the primary security
layer, with access control (PreToolUse) as supplementary write/bash
protection. Remove botignore.toml — policy rules now live in .botsecrets
[policy] section. Add fermata.toml as an alias for .botsecrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-26 01:10:07 +02:00
g4borgandClaude Opus 4.6 77520819f6 📝 fermata: rewrite docs for public-facing export
New user-friendly README modeled after sandcage's layout (Why / Quick Start /
How It Works), plus four focused docs under docs/:

- commands.md — full CLI reference with options, exit codes, examples
- configuration.md — .botignore, botignore.toml, .botsecrets reference
- security-model.md — the Reveal Triangle and defense-in-depth layers
- threat-model.md — L0-L6 coverage, honest limitations, pairing guidance

All Dirigent/monorepo internals stripped — ready for standalone export.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-25 18:27:51 +02:00