3 Commits
Author SHA1 Message Date
g4borg 6bf602aa6a fix(fermata): a bad glob costs only itself; commands read what is there, behind a wrapper or a shell
- A glob in [files] or [policy] that does not compile costs only that pattern while open,
  with a note by name beside text output. A [files] list with none left leaves the built-in
  list. Under deny the refusal stays, and the channel filter stays strict.
- A file named `credentials` is on the default list, at any depth.
- A word with a separator counts only if the path is there, the shell may expand it, or a
  redirect names it: packages, branches and hosts' paths are not denied.
- timeout, nice, ionice, stdbuf, xargs and busybox are prefixes; `2>&1` stays in its segment.
- `bash|sh|zsh -c` and `eval` arguments are read as command lines.
- A `<<` with no closing line is no heredoc. A commented line's own comment is dropped.
  Text holding NUL fails to parse. The unknown-field message says so. Durations are bound
  to under 6 characters. More source extensions pass the gate.
- Removed: HarnessAdapter::post_tool_op (dead since 3C was dropped), tool_op back inline.
2026-11-07 02:00:45 +01:00
g4borg 246f714a51 feat(fermata): the default secret list gets its formats; key files mask a private body or one long token
tfstate and its backup parse as JSON and stay stopped on Read. tfvars, credentials and
sh, bash, zsh, ini, conf, cfg parse as Env. Key files are OpaqueText: only a private PEM
block's body or a single token of 16 or more characters enters the manifest, past the
key filter, and such a file never fails, so a binary .key refuses nothing under deny.
A certificate-only PEM passes Read with no entries. A UTF-8 BOM is stripped in
parse_content.
2026-11-07 01:14:07 +01:00
g4borg fb7fc80970 feat(fermata): a Read of a secret-list file it cannot mask is stopped; Grep with a path is a Read
SecretFileSet is the one answer to "is this a secret file?", for discovery and
Policy. unmaskable_reason says why a listed file cannot be masked. Policy::check
is now check_path_rules plus check_read_gate, so that commands can take the rules
without the gate (2D). on_unparsed_read = "allow" turns the gate off.

One tool-to-op mapping in claude.rs, read by parse_request and post_tool_op. A
Grep with a path is a Read; with none it stays {}.

A [[file]] override with a format gives the gate a parser. A bad [files] glob
costs the gate, not .botignore or [policy]: a note beside text output, exit 2
from fermata check, a refusal under deny. Text holding NUL counts as a failed
parse: UTF-16 without a BOM is valid UTF-8 and would pass as garbage keys.
2026-11-07 01:04:32 +01:00