# Why findings carry rule ids

Source: https://watership.ca/api-docs/docs/concepts/rule-ids-not-rewrites

Why the API reports which rule applies and where, and leaves the rewriting to the writer.

Plenty of writing tools take a draft and hand back a better one. The Watership Check API doesn't. It responds with findings: a rule id, a position, and a one-line message. This page explains that choice.

## A rewrite hides the reason [#a-rewrite-hides-the-reason]

When a tool rewrites a sentence, the writer sees the new sentence and has to guess what was wrong with the old one. Maybe the rewrite fixed a real problem. Maybe it changed a word the writer chose on purpose, or made the sentence longer, or introduced one of the habits the slop guard exists to catch. The writer can't tell which without comparing the two versions line by line, and most won't.

A finding states the reason. "Use 'select' instead of 'click'", with the id `ui-select-verb`, tells the writer what's wrong, links to the rule that says why, and leaves the sentence in their hands. The next time, they write "select" without being told.

## The writer knows things the checks don't [#the-writer-knows-things-the-checks-dont]

The checks are patterns. They don't know that a quoted error message must keep its original wording, that "please" is right when you ask a reader to report a bug, or that a product's name really is spelled in capitals. An avoid-tier rule exists because the writer is sometimes right to break it. A rewrite would take that decision away. A warning leaves it with the person who has the context.

Where a fix is mechanical and safe, the finding carries a `replacement`, such as `select` for `click`. The API never applies it. An editor can offer it as a one-select fix, and the writer still chooses.

## Rule ids make findings usable by other tools [#rule-ids-make-findings-usable-by-other-tools]

Because every finding names a rule by a stable id, other tools can act on it without parsing prose:

- A CI job can block a merge on never-tier rules and let the rest through.
- An editor can show the rule's guidance beside the finding, fetched from `GET /v1/rules/{rule_id}`.
- A team can count findings by rule over a quarter and see which rules its writers break most, which is a better guide to training than a pile of rewritten drafts.
- An AI writing tool can be told the rules by id and report its own work against them, so a person can check the report.

A rewritten draft supports none of these. It's an end product, not data.

## Deterministic results build trust [#deterministic-results-build-trust]

The same text checked against the same release always gets the same findings. A rewrite from a language model doesn't have that property: run it twice and the drafts differ. Determinism is what makes it possible to say "this passed on Tuesday and fails today because the latest release added a rule", and to put the check in a pipeline where a flaky result would block real work.

## What this means for you [#what-this-means-for-you]

Expect findings, not fixes. Show the writer the message and the rule, offer the replacement when there is one, and let them decide. For the judgment rules the API can't check, use a reader, or a review tool given the rule's full text.

## Related [#related]

- [Tiers and check types](https://watership.ca/api-docs/docs/concepts/tiers-and-check-types) explains which rules the API checks.
- [The finding object](https://watership.ca/api-docs/docs/reference/finding) lists every field in a finding.
