2026-11-20 - Automated Review Updates to Agent Instructions

Summary

Automated review of agent instructions. Only AGENTS.md changed.

Changes to AGENTS.md

  1. 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.
  2. Dropped one-off examples (overtuning). Removed the references to TestStopEnvironment, WithOnlyIdempotentRetries, ErrNotFound, "5.0", Github/GitHub and the description field. The rules now state the general principle. Examples stay only where they illustrate it, such as PathEscape inputs and isNonNilOptions.
  3. 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.go shows route() takes path templates, not services, so the old wording was inaccurate.
  4. Kept unchanged.
    • The Ptr deprecation rule. types.go marks Ptr as deprecated in favor of new().
    • 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.

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. The Ptr/new() bullet also applies to tests, so don't exclude *_test.go for that one.

@heidi.berry and @PatrickRice, please review these automated updates.

Merge request reports

Loading
Loading