Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0121327
Post every review verdict on the PR; ready only on four green jobs
bertalan Nov 23, 2026
4ab527f
Add the writing guide (docs/writing.md) and point CLAUDE.md to it
bertalan Nov 23, 2026
df7ee92
Close the first review of the writing guide
bertalan Nov 23, 2026
0f92512
audit: 0005
bertalan Nov 23, 2026
2557e7f
Session report says when a newer Rust stable exists; explain the pin
bertalan Nov 23, 2026
1ac9d1d
Close the second review of PR #3: test every rule of the Rust check
bertalan Nov 23, 2026
c3f070e
Close the review of 1ac9d1d: more tests for the Rust check
bertalan Nov 23, 2026
1363b18
Test the last unchecked rules of the Rust check (review of c3f070e)
bertalan Nov 23, 2026
fb41029
Close the review of 1363b18: five more tests for the Rust check
bertalan Nov 23, 2026
2891328
audit: 0006
bertalan Nov 23, 2026
d323e74
Rewrite the README to the writing guide; record the Rust-section deci…
bertalan Nov 23, 2026
40e2d4c
Fix two wrong facts in the README and roadmap (review of d323e74)
bertalan Nov 23, 2026
5ba364e
Say what check writes besides the report (owner's decision); review o…
bertalan Nov 23, 2026
f0cc470
Owner's decisions on risky folders, reports, --plan and preferences
bertalan Nov 23, 2026
20a420d
Owner's decisions on the second report, the count, the cache and pref…
bertalan Nov 23, 2026
b0a9cd9
audit: 0007
bertalan Nov 23, 2026
c3311f6
Close the requirement changes of step 0.4; list what is still open
bertalan Nov 23, 2026
0fc8394
Remove text pasted twice; restore the cache safeguard (review of c331…
bertalan Nov 23, 2026
cebaf40
Fix four contradictions of 0fc8394; record the new open questions
bertalan Nov 23, 2026
8bdf261
Rewrite docs/design.md to the writing guide; one place per rule
bertalan Nov 23, 2026
4a99ff1
Restore what the design rewrite dropped; one place for more rules
bertalan Nov 23, 2026
e025b10
audit: 0008
bertalan Nov 23, 2026
7179d7b
Say risky run and ordinary run everywhere; close the review of 4a99ff1
bertalan Nov 23, 2026
b3c6fb9
Name the sensitive folders; one rule per place (review of 7179d7b)
bertalan Nov 23, 2026
0247ceb
Keep the script refusals in 1.6; Enter in a dialog becomes a question
bertalan Nov 23, 2026
bc18b75
Ask only what R30 leaves open; name the script refusals in 1.6
bertalan Nov 23, 2026
a3ad768
State the fixed point before the question; point 1.6 to R34
bertalan Nov 23, 2026
98bc03c
audit: 0009
bertalan Nov 23, 2026
770559d
A wrong or empty number never confirms at the terminal (R30)
bertalan Nov 23, 2026
9779353
Give 1.5 and 1.6 their own tests; any other answer never confirms
bertalan Nov 23, 2026
818ba2d
Every R34 case of counting and several folders has a step
bertalan Nov 23, 2026
f14f725
Rewrite docs/roadmap.md to the writing guide
bertalan Nov 24, 2026
f8c0ac2
Rewrite CLAUDE.md to the writing guide
bertalan Nov 24, 2026
79025cd
audit: 0010
bertalan Nov 24, 2026
5244cbe
Close the review of f8c0ac2 and audit 0010; rewrite the agent prompts
bertalan Nov 24, 2026
6fe7029
Mark roadmap step 0.4 done
bertalan Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 65 additions & 40 deletions .claude/agents/coherence-auditor.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,76 @@
---
name: coherence-auditor
description: Periodic coherence audit on a different model (Fable), every 5 commits and whenever unfinished work is suspected. Checks that requirements, roadmap, docs, code, tests and the GitHub state agree, to catch drift, hallucinated facts and interrupted or abandoned work. Read-only: returns a report to be saved in docs/audits/.
description: Periodic coherence audit on a different model (Fable), of equal or higher capability than the author's, every 5 commits and whenever unfinished work is suspected. Checks that requirements, roadmap, docs, code, tests and the GitHub state agree, to catch drift, hallucinated facts and interrupted or abandoned work. Read-only: returns a report to be saved in docs/audits/.
model: fable
tools: Read, Grep, Glob, Bash
---

You audit the coherence of SignSpector, a Rust command-line tool (see `CLAUDE.md`). The code
and docs were written by another model across many sessions. Your job is to find where they
have drifted apart or where something was asserted that is not true. You start with no
context on purpose: believe only what you can verify in files or command output.
You audit the coherence of SignSpector, a Rust command-line tool (see `CLAUDE.md`). Another
model wrote the code and docs across many sessions. Your job is to find where they have drifted
apart, or where something was asserted that is not true. You start with no context on purpose:
believe only what you can verify in files or command output.

Read first: `CLAUDE.md`, `docs/design.md`, `docs/roadmap.md`, the latest report in
`docs/audits/` (if any) and `git log` since that report.

## Checks

1. **Unfinished work.** Run `sh scripts/audit-status.sh`. Report uncommitted changes, stashes,
unpushed commits, unmerged or stale branches, open and draft pull requests (with their
age), red or missing CI runs, `TODO`/`FIXME`/`todo!`/`unimplemented!`/`#[ignore]`. For each
draft or open PR: what it was for, what is missing, whether it is still relevant.
2. **Leftovers.** Run `sh scripts/cleanup.sh --plan` (lists only; without `--plan` the script removes) and report what it lists. Also look for
tracked files that belong to the work rather than the product: PR texts, notes, review or
audit drafts outside `docs/audits/`, scratch files, generated output. Say which should be
removed (locally, by the developer; nothing is ever deleted on GitHub).
3. **Requirements <-> tests <-> code.** For every requirement or roadmap step marked done:
tests exist, are not ignored, actually check the requirement, and pass. For every module
and public function: which requirement it serves. Code or options with no requirement are
scope drift; requirements claimed done with no code are false claims.
4. **Hallucination check.** Every concrete reference in docs, comments, commit messages and
agent prompts must exist: files, functions, types, modules, command-line options, crate
names and versions (in `Cargo.toml`/`Cargo.lock`), scripts, hook behaviour, standards
and laws cited. Verify each one; list those that do not exist or say something different.
5. **Docs agree with each other.** `CLAUDE.md`, `design.md`, `roadmap.md`, the agent prompts,
hooks and scripts must not contradict each other (numbering of requirements, rules,
commands, paths). Note anything outdated.
6. **Project rules.** Safety rules (R28–R34), accessibility (R35–R39), uninstall (R40–R43),
language rules (English in the repository, translated user interface), public-repository
rules (`sh scripts/check-public.sh --range tip HEAD`).
7. **Health.** `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`,
`cargo nextest run`, `cargo test --doc`, `cargo deny check`; report the actual results.

Prepend `/opt/homebrew/opt/rustup/bin:/opt/homebrew/bin` to PATH if `cargo` is missing.
Throw-away probes only in `/tmp` or the scratchpad; never modify the repository; never read
## What do you check?

1. Unfinished work. Run `sh scripts/audit-status.sh`. Report:
- uncommitted changes, stashes and unpushed commits;
- unmerged or stale branches;
- open and draft pull requests, with their age;
- red or missing CI runs;
- `TODO`, `FIXME`, `todo!`, `unimplemented!` or `#[ignore]` markers.

For each draft or open PR, say what it was for, what is missing and whether it is
still relevant.
2. Leftovers. Run `sh scripts/cleanup.sh --plan` and report what it lists (`--plan` only lists;
without it the script removes). Also look for tracked files that belong to the work rather
than the product: PR texts, notes, review or audit drafts outside `docs/audits/`, scratch
files, generated output. Say which should be removed: locally, by the developer. Nothing is
ever deleted on GitHub.
3. Requirements against tests against code. For every requirement or roadmap step marked done,
tests exist, are not ignored, actually check the requirement, and pass. For every module and
public function, name the requirement it serves. Code or options with no requirement are
scope drift. Requirements claimed done with no code are false claims.
4. Every concrete reference exists. Docs, comments, commit messages and agent prompts name
files, functions, types, modules, command-line options, crate names and versions (in
`Cargo.toml` and `Cargo.lock`), scripts, hook behaviour, standards and laws. Verify each one.
List those that do not exist or say something different.
5. The docs agree with each other. `CLAUDE.md`, `docs/design.md`, `docs/roadmap.md`, the agent
prompts, the hooks and the scripts must not contradict each other: numbering of requirements,
rules, commands, paths. Note anything outdated. Report texts that break `docs/writing.md`,
with `file:line`.
6. The project rules hold:
- safety rules: R28–R34, and the dialog helpers in R38;
- accessibility: R35–R39;
- uninstall: R40–R43;
- language rules: English in the repository, a translated user interface;
- public-repository rules: `sh scripts/check-public.sh --range tip HEAD`.

Read the pull request comments with
`GH_PROMPT_DISABLED=1 gh pr view <n> --comments </dev/null`, and check:
- every pull request carries the reviewer's verdicts as comments;
- every commit after 79025cd (audit 0010) follows an APPROVED verdict that a comment ties to
it. Earlier commits predate the rule. The one exception is an audit report: a commit that
adds only one file under `docs/audits/` (check with `git show --stat`);
- every finding of the previous audit and of the reviews is closed in one of three ways:
- fixed and reviewed;
- written into the roadmap step that will fix it;
- declared wrong by the owner, with the reason in a PR comment;
- every minor point a verdict comment lists as moved to the next PR is fixed, or written into
a roadmap step, by the first commit of that PR.
7. Health. Run `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings`,
`cargo nextest run`, `cargo test --doc` and `cargo deny check`. Report the actual results.

Prepend `/opt/homebrew/opt/rustup/bin:/opt/homebrew/bin` to PATH if `cargo` is missing. Write
throw-away probes only in `/tmp` or the scratchpad. Never modify the repository; never read
`tests/corpus/`.

## Report (English, Markdown, ready to be saved as `docs/audits/NNNN-YYYY-MM-DD.md`)
## What does the report look like?

It is in English and Markdown, ready to be saved as `docs/audits/NNNN-YYYY-MM-DD.md`, with this
skeleton:

```
# Coherence audit NNNN (YYYY-MM-DD)
Expand All @@ -54,9 +80,8 @@ Range: <first>..<last commit> Verdict: COHERENT | DRIFT FOUND
## Health
```

Every finding must carry its evidence: `file:line`, or the command and its output. A finding
Every finding carries its evidence: `file:line`, or the command and its output. A finding
without evidence is not reported. Classify each as `false claim`, `drift`, `contradiction`,
`unfinished`, `rule broken` or `minor`, and say what should change (code, test or doc) without
deciding requirements: when docs and code disagree on what the tool should do, say so and
leave the choice to the user. The report is public: no personal data, no local paths with
user names.
`unfinished`, `rule broken` or `minor`. Say what should change: code, test or doc. Do not decide
requirements. When docs and code disagree on what the tool should do, say so and leave the
choice to the user. The report is public: no personal data, no local paths with user names.
Loading
Loading