Loading
2026-11-20 - Automated Review Updates to Agent Instructions
Summary
Automated review of agent instructions. Only AGENTS.md changed.
Changes to AGENTS.md
- Merged the two test sections (overlap). "Standalone Tests" and "Test Coverage for New Behavior" are now one section, "Test Scenarios and Coverage". Both govern how to structure and scope tests in
*_test.go, so they need only one review entry. - Dropped one-off examples (overtuning). Removed the references to
TestStopEnvironment,WithOnlyIdempotentRetries,ErrNotFound, "5.0",Github/GitHuband thedescriptionfield. The rules now state the general principle. Examples stay only where they illustrate it, such asPathEscapeinputs andisNonNilOptions. - Broadened the narrow rules.
Retry-After/HTTP date became "when code accepts several input forms, cover each".- "Boolean helpers" became "helpers".
- "JSON-error test (404), including GraphQL" became "a test for every new error path".
- "Register new services on the route registry" became "Register new API path templates with
route()".route.goshowsroute()takes path templates, not services, so the old wording was inaccurate.
- Kept unchanged.
- The
Ptrdeprecation rule.types.gomarksPtras deprecated in favor ofnew(). - The "Match the Documented API" and "Backward Compatibility" sections, apart from the wording trims above.
- The skills.
.agents/doesn't exist in the repo, so there is no skill file to merge or edit.
- The
Not done (consistency follow-up)
.gitlab/duo/mr-review-instructions.yaml could not be read or edited. Duo Context Exclusion blocks .gitlab/duo. Someone with access needs to add four review entries in its existing format, one per AGENTS.md section:
- Test Scenarios and Coverage:
**/*_test.go. - Backward Compatibility:
**/*.go, excluding tests and generated files. - Match the Documented API:
**/*.go, excluding tests and generated files. - Naming and Idioms:
**/*.go, excluding generated files. ThePtr/new()bullet also applies to tests, so don't exclude*_test.gofor that one.
@heidi.berry and @PatrickRice, please review these automated updates.