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.
This commit is contained in:
2026-11-07 02:02:42 +01:00
parent 6bf602aa6a
commit bfe83165a7
7 changed files with 53 additions and 25 deletions
+7 -2
View File
@@ -405,10 +405,15 @@ fn the_gate_refuses_when_rules_cannot_be_loaded_under_deny() {
assert!(deny_reason(&p.pre_read("safe.txt")).contains("rules"));
assert!(deny_reason(&p.pre_bash()).contains("rules"));
// The control: the same rules with no `deny` stay open.
let p = project(&[(".botsecrets", bad_rules), ("safe.txt", "")]);
// The same rules with no `deny` stay open for what no rule names, and the bad pattern
// costs only itself: `.botignore` and the read gate still stand, and a note names it.
let p = project(&[(".botsecrets", bad_rules), (".botignore", "ignored.txt\n"), ("ignored.txt", ""), ("id_rsa", "fake key text\n"), ("safe.txt", "")]);
assert_silent(&p.pre_read("safe.txt"));
assert_silent(&p.pre_bash());
assert!(deny_reason(&p.pre_read("ignored.txt")).contains(".botignore"));
assert!(deny_reason(&p.pre_read("id_rsa")).contains("id_rsa"));
let (out, _) = p.post(json!("clean"));
assert!(out["hookSpecificOutput"]["additionalContext"].as_str().unwrap().contains("a["), "{out}");
}
#[test]