A folder sorter for markdown notes had been tested only on six dummy files, all of which it placed correctly. On its first real run it was pointed at an inbox of 69 files with permission to move them. It matched 48 and left 21 unsorted. No file failed to move, and the log and a running stats file recorded every decision.
Rules as a table, then as data
The rules were written as a table in a markdown document, 25 rows. A small converter parsed that table into a CSV the sorter could read. The four functional columns of the generated CSV were compared against the hand-maintained version and matched exactly, so the table in the document became the only place rules were edited.
Version 0.1 of the sorter, in a dry run over the same kind of material, had matched 39.1%. Version 0.2 matched 69.6%. The unsorted files went to their own folder rather than staying in the inbox, so the inbox ended the run with zero markdown files. Three non-markdown files stayed behind on purpose, because the sorter only scans markdown.
A threshold written in advance
The rules document carried a health target: roughly 20% unsorted was acceptable. The first run landed at 30%. That number was not a surprise to be explained away. It was the measurement the threshold existed for, and it produced a concrete list of rule candidates for the next version: a prompting guide, an identity document, a design brief, a backlog file, an experiment report, and a few others that shared a naming pattern.
The run was a one-off until the next sorting cycle, planned at every two weeks. What stayed unverified was whether the 25 rules would hold their match rate on a second inbox with different material, and whether the 20% target was the right number or just the first one written down.