Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Alert on Rates Not Single Answers

In this lesson, you replayed a simulated week of graded answers through two alerts: one that pages on every answer the judge fails, and one that pages when the good rate over the last 24 hours falls under a line. You saw how often each would have woken someone, and what each did with the week’s one new fault.

Key Points

  • A page for every bad answer. Over a simulated week in mid October, Monday the 12th to Sunday the 18th, with 500 questions a day and v5 and v7 each for half the hikers, the monitor from Grade a Sample of Live Answers graded 1,014 kept answers. Paging on every failed grade sent 54 pages on Monday, 39 on Tuesday, and 309 by Saturday. Most were the same faults in the same places, day after day, such as answers calling Hut 6 staffed when its report says only open, and the judge misreading questions about the Forcella path, both from the last lesson. Known faults can wait for a weekly review, and anyone on call would mute an alert like that.
  • A rate over a window. Instead, alert on the monitor’s good rate over every answer graded in the last 24 hours, a whole day of hikers, with both versions together and each sample trace counting ten times. Each new grade slides the window forward. For it, the monitor also writes each grade, with its answer’s time, to a file. The replay plays the grades back in time order, as if the monitor ran every hour.
  • A minimum number of graded answers. At 7:11 on Monday, the window held four graded answers. One failed sample answer, counted ten times, made the rate 67.74%. So the alert waits for at least 100 graded answers, most of a day here. Even then, about 40 sample traces carry four fifths of the weight, and each one moves the rate about two points.
  • A line from ordinary weeks. From Monday to Saturday, once windows held 100 graded answers, the rate wandered between 85.68% and 73.87%. That much noise is ordinary for a week. The line goes at 72%, 1.87 points under that lowest, which is less than one sample answer moves the rate. Here it comes from one week. In real use, set it from several, and recheck it. The alert pages when the rate falls under the line, and stays quiet until it climbs back.
  • Sunday’s Hut 9 answers. Hut 9’s only report, from the warden on 25 July, says it’s staffed until mid October. On Saturday, an answer said its opening tonight wasn’t confirmed. From 7:28 on Sunday, answers from both versions said it was likely closed tonight. The assistant passes on what the wardens filed and never guesses whether a hut is open, so the judge failed all six graded Hut 9 answers. The guard blocked them, but the next might get through, so the rate counts blocked answers as well as shown ones. Eight other Hut 9 answers passed the guard, and none was sampled, so nobody read them. The per-answer alert caught the first one, as one of 72 pages that day.
  • What the window saw. Sunday’s rate fell to 73.63%, a quarter of a point under Friday’s low but above the line, so no page came all week. Without those six answers, it would have been 74.42%. They were blocked, so each counted once, not ten times like a sample answer, and it would have taken 13 more to page. To test what it catches, replay the week with one more failed sample answer on Friday, and it pages at 16:44, at 71.99% of 136 graded. It sees drops across the whole assistant, even ones close to this week’s noise, but not one hut’s fault. The next lesson splits the rate by version and looks at where answers fail, which finds what the whole-assistant rate hides, and the exercise after it rates each place. Until then, a fault like Sunday’s waits for the weekly review.
  • Review the rest. Single bad answers go to the weekly review from Turn Feedback Into Eval Cases. Hosted monitoring tools draw the same windows on a dashboard.

The rule: page on a rate over a window, with a minimum number of graded answers and a line set from ordinary weeks, not on every failed grade.

These runs were recorded on December 3, 2026, in a simulation that spreads 500 questions evenly from 7:00 to 21:00. Real hikers bunch up, so your windows will be fuller at busy times and thinner at night. Set your line from your own weeks.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

00:00 In Grade a Sample of Live Answers, your monitor turned graded answers into rates. To hear about a problem before a warden or a hiker does, when should a grade wake someone up?

00:12 The first idea is to page on every answer the judge fails. To try it, replay a simulated week in mid October. It has 500 questions a day, half on v5 and half on v7.

00:27 Over the week, the monitor graded 1,014 kept answers. Each failed one sends a page. Monday sends 54. Tuesday, 39. By Saturday, 309.

00:43 Most are the same faults in the same places, day after day, like Hut 6 called staffed and the judge misreading the Forcella path, both from the last lesson.

00:53 Known faults can wait for a weekly review, and anyone on call would mute this alert.

01:00 Instead, alert on a rate, the monitor’s good rate over every answer graded in the last 24 hours. That’s a whole day of hikers, both versions together. Each new grade slides the window forward.

01:15 So the monitor also writes each grade, with its answer’s time, to a file. The replay plays them back in time order, as if the monitor ran every hour.

01:27 A window can be nearly empty. At 7:11 on Monday, it held four graded answers. One failed sample answer, counted ten times, made the rate 68%. So the alert waits for at least 100, most of a day here.

01:44 Even then, each sample answer moves the rate about two points.

01:51 Next, set the line. From Monday to Saturday, once windows held 100, the rate wandered from 85.7% to 73.9%, an ordinary week’s noise. The line goes at 72%, under that low by less than one sample answer.

02:08 In real use, set it from several weeks, and recheck it. In the check, windowRate() keeps the last day’s grades. Under 100, it returns nothing. Otherwise, it returns the weighted share that passed.

02:23 The replay pages when the rate falls under the line, and stays quiet until it climbs back.

02:31 Then Sunday. Hut 9’s only report, from July, says it’s staffed until mid October. On Saturday, an answer said its opening wasn’t confirmed. From 7:28 on Sunday, answers from both versions say it’s likely closed tonight.

02:48 The assistant passes on what wardens filed and never guesses whether a hut is open, so the judge fails all six graded. The guard blocked them, but the next might get through, so the rate counts blocked answers.

03:02 The per-answer alert caught the first, as one of 72 pages that day.

03:09 Sunday’s window rate fell to 73.6%, a quarter point under Friday’s low but above the line, so no page came all week. Without those six answers, it would have been 74.4%.

03:23 They were blocked, so each counted once, not ten times. It would have taken 13 more to page.

03:31 To test what it catches, replay Friday with one more failed sample answer, and it pages at 16:44. It sees drops across the whole assistant, even ones close to this week’s noise, but not one hut’s fault.

03:45 Rates for groups of questions, in the next lesson, see one place sooner. Until then, a fault like Sunday’s waits for the weekly review. So page on a rate over a window, with a minimum of graded answers and a line from ordinary weeks.

04:03 Single bad answers go to the weekly review from Turn Feedback Into Eval Cases.

04:09 These runs were recorded on December 3, 2026, in a simulation that spreads questions evenly over the day. Real hikers bunch up. Next, in Catch Drift as the Season Changes, you’ll watch rates for groups of questions, and find what changed when one falls.

Become a Member to join the conversation.