Marry agentic test-driven-development with human auditability

Aperta
#7,352 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
730
Fork
323
Merge medio
3g 21h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SciTools/iris

Tutte le issue di SciTools/iris

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.