Marry agentic test-driven-development with human auditability

Đang mở
#7,352 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
testing

Hướng nghiên cứu

Start by reading lib/iris/tests/AGENTS.md and the linked issues #7310 and #7318 for examples of agent instructions aimed at improving readability. Explore how tests are currently written and parameterised in the repository, then propose guidance that improves human auditability while preserving useful test coverage. Done means the instructions give contributors clear, reviewable practices for writing agent generated tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Agentic

Quality agentic coding relies heavily on test-driven-development, which makes sense:

  • Best practice in development where possible
  • An important deterministic backup for non-deterministic LLMs

But the thoroughness of these tests can cause reviewer fatigue[^1], reducing their available attention for other details[^2]. We have previously seen that careful agent instructions can markedly improve human readability of agent output - #7310 and #7318 - so I would like to make a similar attempt at improving test readability via more instructions in:

lib/iris/tests/AGENTS.md

A couple of ideas from casual conversation with @pp-mo, @stephenworsley and @ukmo-ccbunney :

  • More use of parameterisation
  • Revisit the tests after all TDD code changes are complete - can tests be consolidated/aggregated to reduce size and enhance readability (e.g. rewrite with parameterisation, pull out common code to fixtures, etc)?
  • Only capturing a subset of the total tests under source control
  • We noted that the naming conventions are already excellent for easy understanding ❤️

[^1]: There are probably thousands of articles about this; here is one to illustrate: https://aipatternbook.com/approval-fatigue
[^2]: Even for those developers who believe in being less hands-on with humans reviewing agents, reviewing the tests is often still considered important as way of seeing the intent and output of the code, so all the more reason to protect human attention where possible.

Ngôn ngữ chính
Python
Star
730
Fork
323
Merge trung bình
3 ngày 21 giờ
Pull request đã merge (30 ngày)
16

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SciTools/iris

Tất cả issue của SciTools/iris

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.