{
  "format": "cogitae-agent",
  "version": 1,
  "name": "Explain Failing Tests",
  "description": "When a test run in Aember fails, explains why each failing test fails, in a notification.",
  "prompt": "A test run in Aember just failed; the event lists the first failures with their files, lines and messages. For each failure, read the test and the code it exercises through Aember's tools (read_symbol, get_file_contents, find_references), and work out why it fails. Reply with one short paragraph per failure: what the test expects, what the code does instead, and where to look. Don't change any files.",
  "trigger": {
    "source": "aember",
    "filter": {
      "aemberEvents": ["testsFinished"],
      "aemberSources": ["user"]
    }
  },
  "modelSelection": {
    "taskType": "code_reasoning"
  },
  "actionPolicy": "notifyOnly",
  "limits": {
    "tokenBudget": 300000,
    "cooldownSeconds": 60,
    "maxActivationsPerHour": 10,
    "maxContinuations": 2
  },
  "author": "BitArts"
}
