Repository navigation
Add test-size guidelines and sharpen the simplifier - #112
Merged
Merged
Conversation
The Tests section said what to test but not how much. Test suites kept growing with cases that restate the code, and cuts guided only by test count shortened the count while lengthening the code. Add principles for tests that keep a suite small and high-signal: test caller-relied behavior, table-driven families, one whole-structure assertion, hand-written contract tests, dedicated tests for the risky categories, and size measured in lines read.
The simplifier judged by eye and could trade reviewability for fewer lines. Eyeballed cuts also removed elements with a unique effect. Add a section that puts the reviewability of non-test code first, asks to measure before judging, to keep the unique effect of an element, to measure what a reader must read, to state the loss budget and to leave concurrency, formats on disk and hand-written contracts alone.
The loop requested a fresh review whenever the head moved. A rebase of an unchanged layer onto a changed lower layer moves its head without changing its diff, so it asked for a review with nothing new to read. Define a moved head as a change in the content of the PR's own diff against its base, and request only on the layers whose diff changed.
A PR that is ready was marked ready by Diego. Putting it back to draft while fixing review comments fights his action. State the rule in SKILL.md, with the same single exception that github-writing.md already has for an accidental flip.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What change is being made
Four changes to the agent guidelines, one commit each:
coding-style.md.Measure and sizesection to thesimplifier-revieweragent.SKILL.mdthat a ready PR is never put back to draft.Why this change is being made
Test suites written by agents kept growing, and cuts guided by test count shortened the count while lengthening the code. The simplifier also judged by eye and could trade reviewability for fewer lines. The review loop requested a fresh review after a rebase that changed no diff.
Tested
pixi run -q hooks: all hooks passed.pixi run -q test: 389 passed.