Your agent's step log is already a funnel. One ClickHouse function shows where runs stall:
windowFunnel(1800)(ts, step='plan', step='edit', step='tests_pass', step='commit')
It returns how far each run got, in order, within 30 min. 400k runs, 10M steps, in chDB: ~45 ms.