promptdojo_

Structured logs and alerts — step 6 of 7

Write check_window(name, logs) with TWO alert rules: the silence alarm first — an empty window prints f"{name}: ALERT silence - prediction volume is zero (dead upstream?)" — then the error-rate rule (>20% alerts with the rate, else a quiet line with n and rate). Run the busy window and the silent one. A dead upstream looks like "no errors" to a monitor without the silence alarm.

full-screen editor opens — close anytime to keep reading.