Skip to content

Say where the corpus gate is and what to do when it reports an improvement (#529, #500) - #948

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
docs/corpus-gate-note
Aug 15, 2026
Merged

Say where the corpus gate is and what to do when it reports an improvement (#529, #500)#948
Rafael-SOWNet merged 1 commit into
masterfrom
docs/corpus-gate-note

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Collaborator

The corpus from #945 runs in the suite, so it runs on every commit — which means a contributor who makes the library solve something new meets it as a failing test. That is deliberate: the record must not drift away from the library. But a gate that fails on getting better is confusing exactly once, and only if nobody wrote down what to do.

AGENTS.md now says it:

  1. the gate fails and names the case;
  2. update its Expect in Corpus.cs in the same change — that is how the improvement gets recorded rather than absorbed;
  3. and if it is worth a line to a user, BREAKING-CHANGES.md too.

It also says what the gate is not. It is small and takes about a second, because everything in the suite is paid for on every commit. The harnesses in work/ are where a measurement generates its own inputs, takes minutes, and gets read by a person. The two are not substitutes — and a finding from a harness that is worth keeping belongs in the corpus as a new problem.

CLAUDE.md's paragraph saying the measurement harnesses all live outside the repository was one sentence short of true once #945 merged.

Documentation only; no code, no behaviour, no test changes.

🤖 Generated with Claude Code

…ement (#529, #500)

The corpus now runs in the suite, so it runs on every commit, and a contributor who makes the
library solve something new will meet it as a failing test rather than as a green one. AGENTS.md
says what to do about that -- record the improvement in Corpus.cs in the same change -- because a
gate that fails on getting better is confusing exactly once and then only if nobody wrote it down.

It also says what the gate is not. It is small and takes about a second because everything in the
suite is paid for on every commit; the harnesses in work/ are where a measurement generates its own
inputs and takes minutes. A finding from one of those that is worth keeping belongs in the corpus as
a new problem.

CLAUDE.md's paragraph on the harnesses said they all live outside the repository, which is now one
sentence short of true.

#529
#500

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
@Rafael-SOWNet
Rafael-SOWNet merged commit c2ed9e6 into master Aug 15, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant