Marry agentic test-driven-development with human auditability

オープン
#7,352 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
730
フォーク
323
平均マージ
3日 21時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SciTools/iris のほかの issue

SciTools/iris の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。