promptdojo_

Write bug_report(trace) that returns a dict with:

  • total_turns: integer, length of the trace
  • distinct_tools_called: integer, count of unique (tool, args) fingerprints (use frozenset(args.items()) for the args part)
  • looping: boolean, True if any window of 3 consecutive turns has identical (tool, args) (your detector from step 03)
  • total_tokens: integer, sum of the tokens field across all turns

Two traces run for you. Expected output:

{'total_turns': 4, 'distinct_tools_called': 1, 'looping': True, 'total_tokens': 880}
{'total_turns': 3, 'distinct_tools_called': 3, 'looping': False, 'total_tokens': 540}

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.