Skip to main content
tests/test_ai_usage.py · chapter Tests and team tooling, file 14 · 58 lines · open in the repository

What it does

The AI usage logs (AGENTS.md rule 7) stay in step with the work. The course’s AI Usage Report is written from these logs, so: every member has one, every handoff note has an entry for its date in its author’s log (/handoff writes both), and every entry says which tool was used, what the AI did and what the member did. If a test fails, add the entry to docs/ai-usage/<name>.md in the format of docs/ai-usage/README.md.

What is inside

  • LOGS · line 12
  • HANDOFFS · line 13
  • DATE · line 14
  • members() · line 17: First names in AGENTS.md’s team table, in lower case (the log file names).
  • entries(text) · line 23: (date, body) for each dated entry of a log.

What it checks

  • the team table is read (line 29)
  • every member has a log (line 33)
  • every handoff note has an ai usage entry for its date (line 38)
  • every entry says the tool what the ai did and what the member did (line 48)

Connections

Uses: src/common/settings.py

Source

tests/test_ai_usage.py