Skip to content

feat: lint negations padded with "at all" - #193

Merged
webern merged 7 commits into
mainfrom
m/deslag-atall
Oct 17, 2026
Merged

webern merged 7 commits into
mainfrom
m/deslag-atall

Conversation

@webern

@webern webern commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds not_at_all, a taste lint for a negation padded with "at all": "does not implement X at all", "no examples at all". The plain negative is already complete, and the padding adds stress and nothing else. In a review it reads as dismissal. It is off until a config adds the table, as [md.lints.not_at_all] or the same table under [rust] or [toml]. The table holds only message. There is no fix; a deletion fix is a later candidate, as the issue says.

It is a construction lint, not a catalogue phrase: "at all" next to a negation is in 53 human files of the big tier in the issue's probe (a catalogue phrase may be in none), and a phrase cannot see negation, questions or "at all times". It runs on the document's sentences and tokens, built on Pattern, in one sentence: a negator, up to 8 tokens that hold no other negator and none of , ; :, then at all. The negators are not, never, no, nothing, none, cannot and any word ending in n't, with either apostrophe. One finding per match, an occurrence mark from the negator to all, so --diff and the output formats work as for verbs_no_nouns.

Excused, each pinned by a unit test and by tests/cases/not_at_all/false_positives:

  • a question: the first sentence-ending mark after the match is ? ("why doesn't it work at all?")
  • all before a word the tagger reads as a noun at Likely or above ("at all times", "at all levels")
  • a negator right after or ("whole or not at all", "or none at all")
  • a sentence of nothing but "not at all", with or without a short label ending in : before it, up to 3 tokens ("A: Not at all.", "Reviewer 2: Not at all.")

hardly, scarcely and barely are not negators, and a plain conditional ("if it helps at all") has none, so neither matches. A negated conditional does.

To express that, src/lint/pattern.rs gains six items, each with a unit test: Any, Not, Mark, Run (a bounded run of tokens that each match an item), and the zero-width NotFollowedBy and NotPrecededBy.

What it measured

The claim in the module's doc comment: llm files hold the construction at least 3 times as often as human files, and at most 3.5% of human files hold it, on the big tier. On the tree the test asks only that llm files hold it more often than human files, because 380 files a side is too few for 3x. The owner decided this: llm > human is enough on the tree, and the big tier carries the 3x claim.

English fixtures, files that hold at least one match:

human llm ratio
tree, tests/corpus/ 8 of 380 19 of 380 2.4
big tier, ghcr.io/webern/deslag-blobs:v7@sha256:d9a3047c38e2f9e7845f15f4a4f8a66b715595879f818e4ad4cd0997077c85fb 114 of 10,037 (1.14%) 407 of 7,498 (5.43%) 4.8

The tree row is measured at the head of this branch. The big-tier row is from the first head, before the label excuse, which can only remove matches; it is not re-measured here, so make test-blobs is still to run on the final head. The issue's rough probe said 7.1x and 0.45% on two batches, over a looser pattern; the shipped matcher on the whole image is 4.8x and 1.14%. Both pass the claim as written. The tree holds 8 human and 19 llm files.

Matches (not files) the excuses removed, English fixtures, counted by turning each off in a scratch run:

excuse tree human tree llm big human big llm
after or 1 0 22 28
all before a noun 0 0 2 5
a question 0 0 0 4
only "not at all" 0 0 1 2
kept 9 26 131 656

The excuses and the kept matches sum to the raw matches of the pattern with no excuse: 10 human and 26 llm on the tree, 156 human and 695 llm on the big tier.

The gap bound, files that hold a match at each bound (human/llm). Tree: 2 tokens 6/12, 4 tokens 7/17, 6, 8 and 10 tokens 8/19, 12 tokens 9/19. Big tier: 4 tokens 99/386, 6 tokens 112/406, 8 tokens 114/409, 12 tokens 118/412. The tree stops moving at 6, so 8 sits in the middle of the plateau.

No negator was added. without, nobody, nowhere, neither and nor each left the tree at 8 human and 19 llm files.

Known limits, left as they are:

  • The tagger reads costs in "at all costs" as a noun at Unsure, below the bar, so "never give up at all costs" is flagged. A tagger retrain moves this; the retrain steps in src/tag/weights.md now name tests/golden/not_at_all.txt, the unit tests and the big-tier assertions of this lint beside those of verbs_no_nouns, since it reads nouns at Likely.
  • "at all today", "at all yesterday" and "at all tonight" pass, because the tagger reads those words as nouns.
  • A later question in the same sentence excuses the match ("... at all, so why bother?"): the first mark that ends a sentence is what decides, and a comma does not end one.
  • doesn‘t, doesnʼt and the apostrophe-less dont and cant are not negators.

The report quotes a match from the source, from the negator to all. When a link's [ or ] falls inside the match, the quote leaves out the half link (not work at all, not not [work at all); a link inside the match whole, and a bracket in a code span, stay as written. The shared quote helper in src/lint/mod.rs only joins lines and cuts to 60 characters, and is untouched. verbs_no_nouns builds its quote from the source the same way and keeps its half links.

Cost to this repo

The repo's config turns the lint on in md, rust and toml, as for verbs_no_nouns. No Markdown file holds a match, and the check over the whole repo finds nothing else; the as-built docs use "or not at all", which is excused. It found four places in three source files: src/config/update.rs (two comments) and src/parse/frontmatter.rs lose "at all", and the doc comment in src/tag/seen.rs now reads "An empty set of words", not "No word at all".

It also found a sentence in a released changelog entry, src/changelog/releases/0.0.1/feature.comment-skip.toml ("is not read at all"), because tests/changelog.rs lints every entry with the repo's config. The owner asked for that entry to be fixed, so "at all" is dropped from it ("is not read") and nothing else in it changes. The released entry is fixed, and the changelog tests lint every entry, released or not. tools/corpus/report.toml gets the table too, as a test requires it to equal the repo's [md.lints]. src/instructions/lints.md is 612 of 800 bytes and src/instructions/lints/not_at_all.md 740 of 800.

For users: nothing until a config adds the table. No dependency; one more pattern pass over sentences the tagger already reads. No other lint's golden file moves.

"whatsoever", "in the slightest" and "in the least" go into tools/corpus/rejected.toml with the issue's counts.

tools/corpus lists the pattern in SHIPPED, so deslag-corpus patterns measures it by the name not_at_all, as it does the two patterns of verbs_no_nouns; its golden file tools/corpus/tests/golden/patterns.txt gains the three rows.

The changelog entry is src/changelog/releases/next/lint.not_at_all.toml; the changelog tests ask for a lint entry for every lint.

Testing

  • make ci-fast: exit 0
  • make test: exit 0. The tree test reads human 8, llm 19 and mixed 12 files with a match, and tests/golden/not_at_all.txt fails 42 of 1230 fixtures, one fewer than before the label excuse: the mixed fixture GameDefinition__PLAYING.md, whose A: Not at all. was flagged
  • cargo test --all-features --test blobs the_catalogue_counts_are_the_big_tiers -- --ignored on the image above, at the first head: exit 0, with the counts in the table
  • make check-deslag with the lint on in md, rust and toml: exit 0
  • unit tests for each match and each excuse in src/lint/not_at_all.rs and for each new item in src/lint/pattern.rs
  • cases off, false_positives, custom_message, broken and rust; the golden file tests/golden/not_at_all.txt; tests/explain.rs and tests/output.rs

References

@webern webern added enhancement New feature or request ai Primarily authored by AI (whether PR, Issue, Whatever) area/lint Deals with the linting algorithms themselves, how they work. labels Oct 17, 2026
@webern
webern marked this pull request as ready for review October 17, 2026 10:31
@webern

webern commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

Two decisions for the owner before this merges:

  1. The tree claim. On the in-tree corpus the lint fires in 8 human and 19 llm English fixtures of 380 each, so the tree test asserts only llm > human, not the 3x the other corpus claims use. The big tier holds the full claim: 114 of 10,037 human files (1.14%) against 407 of 7,498 llm (5.43%), 4.8x, under the 3.5% human ceiling. Is llm > human on the tree acceptable, with the 3x claim carried by the big tier?
  2. Released changelog entries. A released entry (0.0.1/feature.comment-skip.toml) says "not read at all", and the changelog tests linted every entry with the repo's current config. Rather than edit a released entry, this PR makes those two tests lint only unreleased (next/) entries. Is that the rule you want?

CI is green on both OSes, including the big-tier assertions.

@webern

webern commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

Two decisions for the owner before this merges:

  1. The tree claim. On the in-tree corpus the lint fires in 8 human and 19 llm English fixtures of 380 each, so the tree test asserts only llm > human, not the 3x the other corpus claims use. The big tier holds the full claim: 114 of 10,037 human files (1.14%) against 407 of 7,498 llm (5.43%), 4.8x, under the 3.5% human ceiling. Is llm > human on the tree acceptable, with the 3x claim carried by the big tier?
  2. Released changelog entries. A released entry (0.0.1/feature.comment-skip.toml) says "not read at all", and the changelog tests linted every entry with the repo's current config. Rather than edit a released entry, this PR makes those two tests lint only unreleased (next/) entries. Is that the rule you want?

CI is green on both OSes, including the big-tier assertions.

  1. llm > human is ok on the in-tree tests
  2. Just go ahead and fix it, please.

The pattern matcher gains the items a construction with a bounded
reach needs:

- Any and Not match a token by one of several items, or by none.
- Mark matches a punctuation mark in a set.
- Run skips up to a number of tokens that each match an item.
- NotFollowedBy and NotPrecededBy check the token after or before a
  place without taking it into the match.

Each has a unit test. No lint uses them yet.
A negation that is already complete reads the same without "at all":
"does not implement X at all", "no examples at all". The padding adds
stress and nothing else. The new lint finds a negator, up to eight
tokens with no other negator and no comma, semicolon or colon, then
"at all".

It passes a question, "at all" before a noun such as "times", a
negator right after "or", and a sentence of nothing but "not at all".
"hardly", "scarcely" and "barely" are no negators.

It is a taste lint, off until a config adds [md.lints.not_at_all], or
the same table under [rust] or [toml]. The table holds only message.
The corpus tests check that llm files hold it more often than human
files on the tree, and at least 3 times as often with at most 3.5% of
human files on the big tier.

This repo turns it on in md, rust and toml. The four places it found
in source comments are reworded. So is one sentence of the released
comment-skip entry, since a test lints every entry with this repo's
config.

"whatsoever", "in the slightest" and "in the least" go in the list of
refused candidates, with the counts from the issue.
A released changelog directory is never edited once its release is
tagged, so an entry in one cannot be held to a lint that shipped after
it. The first commit of this branch reworded the v0.0.1 entry
feature.comment-skip.toml to pass not_at_all; put it back as released.

every_entry_meets_the_rules_of_the_repo and
the_text_of_the_repo_holds_no_phrase_the_catalogue_will_turn_on now read
only the entries under next/. The second asks that it read the text of
every one of them, where it asked for at least one, since next/ is
empty just after a release.
"A: Not at all." was flagged, because only marks were allowed before a
bare "Not at all". A short label of up to 3 tokens that ends in ":" is
allowed now, as in the answer of a Q and A list. The mixed fixture
GameDefinition__PLAYING.md no longer fails, so the golden file moves
from 43 to 42 failing fixtures.

The quote of a match was cut from the source, so a link that the match
began or ended inside showed as half a link: "not [work at all". The
quote leaves out the half link now. A link inside the match and a
bracket in a code span stay as written. The shared quote helper is not
changed.
not_at_all reads nouns at Likely, so a retrain of the tagger moves its
golden file, unit tests and big-tier assertions as it does those of
verbs_no_nouns. The retrain steps in src/tag/weights.md say so, and the
file is not larger than it was.

deslag-corpus patterns lists the pattern of every shipped lint, so add
not_at_all::PATTERN to SHIPPED and its three rows to the golden file.

Wrap a line of src/instructions/lints.md at 100 characters.
The not_at_all lint names "not read at all" in the v0.0.1 entry
feature.comment-skip.toml. The owner asked for the entry to be fixed
rather than skipped. Remove the padding: "is not read at all" becomes
"is not read". Nothing else in the entry changes.
This reverts commit c60aa3c.

The two changelog tests read the entries of every release again, not
only those under next/. The released entry that not_at_all named is
fixed in the commit before this one, so no entry needs to be skipped.
@webern
webern merged commit 073ec94 into main Oct 17, 2026
11 checks passed
@webern
webern deleted the m/deslag-atall branch October 17, 2026 17:06
webern added a commit that referenced this pull request Oct 23, 2026
## Summary

Once a lint is on for a file it judges every sentence, and some must stay as written: a dated record, an example of a lint's defaults, a quoted title. With no way to say so, an agent rewords the sentence to slip past the lint, or the config lists files one by one (see #68, and the review of #197 where a count was rewritten as a bound to pass).

This adds the `allow` entry. It is a config entry of a section (`md`, `rust`, `cpp` and `toml` each have the list) that names one file, one lint, one exact sentence and a reason:

```toml
[[md.allow]]
path = "docs/log.md"
lint = "banned_chars"
quote = "The sentence, as the file holds it."
reason = "Why it stays."
```

There is no file-level off, no glob and no list: one entry is one file, one lint and one sentence. Only a human writes or changes one; the guide (step 5), `deslag instructions lints` and every `setting.<section>.allow` changelog entry tell an agent to leave the sentence and give the human its text and a reason. The repo's own `.agents/deslag.toml` gets no entry.

How it works:

- Load: an unknown key, an empty `reason` or `quote`, a `path` that is a glob or is not written as reports print it, and a lint that does not take an entry are refused with exit 2. A `quote` may hold any character but a control character other than a tab, CR or LF, since it must equal the sentence, which the file holds anyway: an emoji joined by a zero-width joiner, a bidi mark that only the config's `ban` list bans, a zero-width space the config does not ban. A `path` or `reason` may not hold a character that shows as nothing or acts on the reader: a control or format character, another default-ignorable one, or a blank other than the ASCII space; a `reason` may hold a tab, CR or LF. The checks read the value after parsing, so a TOML escape is no way round them. Reports, notices and `deslag explain` write each character that shows as nothing or acts on the reader as `<U+XXXX>`, on stderr and in the json `report`, sarif and github alike, so a reviewer sees what the quote holds. The message for a refused lint names that lint's own knob, for example the override of `max_size_bytes`. An exhaustive match on `Lint` makes each new lint choose.
- Matching runs inside `check_text`, so `check`, `fix` and `--diff` agree. The quote and each sentence of the file compare with spaces, tabs and line breaks folded to one space, so a rewrap keeps the entry. A line break is LF or CR LF, or a lone CR in Markdown; a lone CR ends a C++ `//` or TOML `#` comment, and in any other comment it is a character of its line, as the comment's reader reads it, and must match. The quote is folded the way each sentence is read, so a lone CR in a quote is a line break against a Markdown sentence and a character against a Rust comment's, even in one file that holds both. Any other character must match exactly, a no-break space or a zero-width space included, so a banned character added to the sentence later makes the entry fail instead of riding along with it. The `>` of a block quote's continued lines and the byte order mark that opens a file are no part of the sentence, so a wrapped quote is quoted without them. A `>` inside a code span that wraps across the lines of a block quote stays in the sentence, and in a comment read as plain text (every C++ and TOML comment, and a Rust comment that is not a doc comment) a `>` is text. An entry drops each occurrence of its lint inside the one sentence, never one outside it, and never a verdict on the whole file.
- An entry is applied, or it fails: no such file (it does not exist, git ignores it, or it is a directory or a link), the section does not select the file, no such sentence, the quote is two sentences of the file, or the lint finds nothing in the sentence (it is off, or the text was fixed). A failed entry fails the run with exit 1. Its report says why, quotes the three sentences of the file that hold a finding of that lint and are closest to the quote by edit distance, in the order of the file (and says how many more there are), and says an agent may delete the entry, which only tightens the check, but must never write or change one. The distance compares the first 60 characters of the quote with the first 60 of each sentence, and a longer sentence is quoted cut there with `...`, so the work per sentence and the report stay bounded however long a sentence is.
- Rewording the sentence fails the entry and brings the finding back.
- Every run whose config has an entry prints `deslag: N exemptions applied; deslag explain <PATH> lists a file's.`, clean or not. A failing run also prints how many did not hold and a line saying only a human writes or changes an entry.
- `deslag explain <PATH>` lists the entries for the file, each with its sentence's line or "no such sentence".
- json: `exemptions`, each with its fields, status, the marks it dropped, and whether the change added it. `FORMAT_VERSION` stays; a run with no entry prints no `exemptions`. A failed entry is in `exemptions` and not in `findings`, so a run that exits 1 can have an empty `findings`.
- sarif: a dropped occurrence is a result with `suppressions` (`external`, the reason as `justification`), and a failed entry is a result of the rule `allow` on the config. The result sits at the start of the config, not at the entry's line: serde reads the config in three formats and none keeps an entry's span, and the message names the entry as `md.allow[0]`.
- github: a failed entry is an `::error` and an added one a `::notice`, on the config.
- With `--base` or `--diff`, the config at the merge base is read, and entries compare by section, path, lint and quote (whitespace collapsed). A new entry, or one with a changed reason, is added and printed as a notice. A config the base does not have, or that this deslag cannot read, has no entries, so every entry is added. `--diff` never hides a failed entry, whether or not the change touches its file: a rename, or an edit of the config that unselects the file, would otherwise let `--diff` pass what `--base` and the whole tree fail. The README, `deslag check --help` and guide step 6 say so; to stay within the guide's byte budget, step 4 drops its description of what each `# prose regions` line holds, which `deslag explain` prints anyway.

Cost: none without an entry; every output of a run with no entry is byte-identical to main. With one, matching is linear in the file. Finding a sentence's text used to search every token for each point, which made a large file quadratic; a binary search finds the next token now, and a merge finds the sentences that hold a finding. Timed on a soft-wrapped paragraph of N lines plus one exempted sentence, the fastest run on macOS, entry against no entry:

| Lines | release | debug | before, release | before, debug |
|---|---|---|---|---|
| 8,000 | 0.11s vs 0.10s | 0.77s vs 0.62s | 1.53s vs 0.32s | 5.78s vs 0.59s |
| 32,000 | 0.44s vs 0.40s | 3.04s vs 2.20s | 12.63s vs 0.41s | 91.16s vs 2.46s |
| 128,000 | 1.72s vs 1.58s | 11.11s vs 8.77s | not run | not run |

A stale entry in a file of 100,000 sentences with a finding, plus one sentence of 200 KB: release 2.26s against 1.68s with no entry (before: 8.94s). A stale report on a sentence of 200 KB is 1,666 bytes on stderr (before: 201,612, since it quoted the sentence whole).

Not taken: charcheck's ratchet (fail past a frozen count) is one more number an agent raises. `list_growth` is out: its findings exist only against a base, so an entry would fail on main the commit after it lands.

### Owner questions, as built

1. A stale entry fails with exit 1, reported as a finding is, not exit 2: deslag ran, and the json and sarif logs carry it. Built: `Report::is_clean` counts failed entries, and the run exits 1.
2. An entry the change adds or changes, with `--base` or `--diff`, is a notice that does not fail. Built: a `deslag: notice:` line on stderr, `added: true` in json, a `::notice` in github. A failure would keep a human's own entry red; review is the gate, and the notice shows the reviewer each one.
3. The lints that take an entry are those whose findings sit in one sentence: `banned_chars`, `banned_phrases`, `verbs_no_nouns` and `not_at_all`. `counted_inventory` comes with #197. The rest are refused at load. Built: the lint is an enum in the schema, and a unit test pins the enum to the four. `not_at_all` landed on main (#193) after this branch was cut; the merge of main did not build until the exhaustive match chose for it, and its findings sit in one sentence, so it takes an entry by this rule. Keep, or refuse it?
4. A quote that is two sentences of the file fails, naming both lines. Built as the status `two_sentences`. Exempting every copy would let an agent paste an exempted sentence elsewhere.
5. A change that adds or changes an entry is an owner change, found by the notice. Built: the notice is the only signal; nothing else blocks it. Whether the repo's merge rule says so is the owner's to write.
6. An entry exempts every occurrence of its lint inside the sentence. A later catalogue or config change that adds hits there is exempted silently. Built as is: should an entry also pin the count of occurrences?
7. A stale entry that predates the change also fails `--diff`, so it blocks every run until a human fixes it. Built so, because a stale entry must never pass. Keep, or limit `--diff` to entries the change touches?
8. An entry for a file its section's `exclude` (#195) removes fails the run, since an excluded file is not selected: "[md] does not select docs/adr/0001.md, and an entry applies only to the files of its own section." That reads as if the entry sits in the wrong section. Should the message name the pattern, as `fix` and `explain` do ("[md] excludes it by ...")?
9. `deslag explain` on a file a section excludes shows no `# allow` rows, as for a file no glob matches, though the check's tally points to `explain` for a file's entries. Should `explain` list an unselected file's entries and mark them as not selected?

### Left open, so this is not "Closes"

A file-level off for #68 (the issue's own doubt: "I'm not sure if it should be off for the whole file"), and `list_growth`'s "the new base is N items". Both stay open on #68. Also left: `counted_inventory` takes an entry when #197 lands.

### Trial

A fresh agent was given only the output of `deslag instructions`, in a repo whose check fails on a book title with an em dash that the README says must be quoted exactly, and was told to make `deslag check` pass. Three runs, each in its own copy of the repo, and each against the texts in this change as they are now:

1. Changed nothing. It named the sentence and gave a reason, as the entry would hold them, and offered `deslag fix` as the human's other choice.
2. Changed nothing, same answer, and left the config alone.
3. Changed nothing, same answer.

No run wrote an entry, edited the config, reworded the title or hid it in code. The texts did not need strengthening after the first set of runs, so there was no second round.

## Testing

- [x] `make ci-fast`: exit 0
- [x] `make test`: exit 0. No golden file, corpus pin or case output of main moved; the only case outputs that changed are `banned_chars/allow_prefix`, `allow_reworded` and `allow_two_sentences`, whose reports now cut each quoted sentence at 60 characters.
- [x] `cargo run -q -- check --base origin/main`: exit 0
- [x] `tests/allow.rs`: 30 tests on `--diff` (a failed entry shown whatever the change touches, and after a committed rename), `--base`, `explain`, the three formats, the `rust` section, two lints on one sentence, an entry for a lint that is off, a file the section does not select, a file that is not there, `fix`, a space of another width or a zero-width space added to an exempted sentence, a rewrap with tabs and CRLF, a reason that shows as nothing, a TOML escape naming a zero-width space, a quote that holds an invisible character whether or not the config bans it (an emoji with a zero-width joiner, U+202E that `ban` bans, a zero-width space with the `invisible` group off: each entry loads, applies when the lint finds the sentence, fails as `no_finding` when it finds nothing there, and shows the character as `<U+XXXX>` in explain, stderr and the json `report`), a wrapped block quote, a leading byte order mark, the cap of three sentences in a report, and the acknowledgements
- [x] 18 cases under `tests/cases/`: `banned_chars/allow_*` (applied, others stay, rewrapped, reworded, a quote that is a prefix or a middle of a longer sentence, a no-break space added to the sentence, two sentences, no reason, an invisible reason, `fix` sparing an exempted em dash, no file, wrong section, lint off, `--base`), `banned_phrases/allow_applied`, `verbs_no_nouns/allow_applied`, `not_at_all/allow_applied` and `max_size_bytes/allow_refused`
- [x] Unit tests in `src/config/allow.rs` (load errors; for every lint, a quote that holds a joiner, a bidi mark, a variation selector, a tag character, a non-ASCII space, a tab, CR or LF loads and one with NUL, BEL, ESC, DEL, NEL or CSI is refused; a quote of only a no-break space, an ideographic space or a zero-width space is not empty; refused lints with their knobs, duplicates, the schema enum, the JSON-array form) and `src/lint/allow.rs` (what an entry keeps; sentence matching with non-ASCII spaces, wrapped block quotes, a `>` in a wrapped code span, a lone CR in Markdown and in a comment, and the byte order mark; the report's three closest sentences, in file order, a tie going to the earlier one, compared and quoted only to 60 characters; the merge that finds sentences with a finding, against places that run past a sentence; a notice showing the quote folded with its invisible characters as code points)
- [x] Mutations, each applied to this commit and run against `--lib`, `tests/allow.rs` and `tests/cases.rs`; each made a test fail:
  - block-quote markers stripped through the first token of a wrapped line, not only before it: `a_wrapped_block_quote_matches_its_quote_without_the_markers`
  - a quote judged empty by `trim`, which strips a no-break space: `a_quote_may_hold_any_character_but_a_control_character_other_than_a_tab_cr_or_lf`
  - the closest sentences left in order of distance: three tests of the report
  - a tie for the last place going to the later sentence: `a_tie_for_the_last_place_in_a_report_goes_to_the_earlier_sentence`
  - the notice printing the quote raw: `a_notice_shows_the_quote_folded_and_its_invisible_characters_as_code_points`
  - the quote refusing every invisible character again: four tests, among them `a_quote_holds_an_invisible_character_whether_or_not_the_config_bans_it`
  - a lone CR folding again: `a_lone_cr_ends_a_line_of_markdown_and_never_folds_in_a_comment`
  - the quote folded one way for every sentence, in `matching`, `closest`, `held()` and `is_same_as`: `a_quote_folds_a_lone_cr_by_how_each_sentence_of_a_markdown_file_is_read`, `a_report_keeps_a_lone_cr_of_the_quote_for_a_comment_that_holds_one`, `a_report_marks_a_sentence_by_whether_it_is_read_as_a_comment`, `a_lone_cr_makes_a_quote_another_entry_where_a_line_break_does_not`, and end to end `a_quote_with_a_lone_cr_exempts_a_markdown_sentence_however_it_is_wrapped`
  - the report quoting a sentence whole: `a_report_compares_and_quotes_only_the_start_of_a_long_sentence` and the case outputs
  - the merge checking only the first place inside a sentence: `a_place_that_runs_past_a_sentence_does_not_hide_a_later_one_inside_it`
- [x] `tests/instructions.rs`: the `allow` section ends the lints topic, its example loads, the guide says only a human exempts a sentence, and step 5 keeps `--dry-run` and the comment or fence a report names
- [x] The trial above

## References

- Part of #68
- Related: #197 (its `counted_inventory` lint will take an entry), #195 (merged in from main: each section holds both `exclude` and `allow`, `exclude` first, since a config written as a JSON array reads by position)
webern added a commit that referenced this pull request Oct 31, 2026
## Human Summary

Describe the lints a bit better in the README.md. LLM written then
re-written by me.

## Summary

The README's Cool Lints section was two one-line examples and a TODO
that said to sell it better. This rewrites the section.

Each of the three construction lints gets its own heading:
`verbs_no_nouns`, `verbs_nothing` and `not_at_all`. Each one says what
the tic is, what the lint tells the LLM to do, and shows before/after
pairs. The pairs are not invented. They are rewrites from this repo's
own history, made when each lint was first turned on against the Rust
doc comments: #147 for `verbs_no_nouns`, #193 for `not_at_all` and #233
for `verbs_nothing`. The "89 findings in 45 files" count is from the
#147 description.

A closing part says why these are not allow-lists: the word sets are
Rust data, and each lint must hold its corpus claim (llm files trip it
at least 3 times as often as human files, at most 3.5% of human files
trip it), which the tests re-derive on every run.

Only `README.md` changes. The README has `llm_edit: false`; the owner
authorized this edit for the Cool Lints section only.

## Testing

- [x] `make ci-fast`: exit 0
- [x] every before/after pair checked against the diff of the commit it
came from

## References

- #147, #193, #233: the source of the examples
- Related: #43, the issue that named the verbs-no-nouns tic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai Primarily authored by AI (whether PR, Issue, Whatever) area/lint Deals with the linting algorithms themselves, how they work. enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deslag does not mind at all: lint the "not at all" intensifier tic

1 participant