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

Catch Drift as the Season Changes

In this lesson, you replayed a simulated autumn, September to November, and watched the share of hikers who saw the model’s answer. The whole assistant’s share held, but one version’s fell, and you followed the drop from the rate to the answers behind it and pinned it in an eval case.

Key Points

  • Drift. When a feature gets worse with no change of yours, because its questions or the world it answers about moved, that’s drift.
  • A simulated season. One simulated day a week, 2 September to 25 November, with 300 questions a day. v5 answers everyone in September. v7 answers a quarter of the hikers on 7 October and half of them from 9 October, the rollout’s stages from Exercise: Roll Out and Roll Back. The simulator shifts its questions with the season: more and more hikers ask about closed huts, winter rooms and snowshoes, nearly half of all questions on the last day.
  • A rate on every request. Your log lines give, for every request, not only the graded ones, whether the hiker saw the model’s answer. Your guard blocked the rest, and those hikers got the reports. scripts/drift.js groups the log lines by day and prints that share for the whole assistant and for each version.
  • The whole assistant held. It stayed between 71% and 83% all season. Nothing stood out.
  • Split by version, v7 fell. In October, v5 and v7 were close. In November, v5 climbed to 88% of its requests shown, and v7 fell over the month, to 55% on the last day: 77% of its 523 requests in October, 64% of its 608 in November. The whole assistant held because the two moved in opposite directions. While two versions share hikers, compare them weekly, against a gap you set before the rollout. Shorter windows page on noise, and longer ones notice a drop late.
  • Check what changed. Four things can change under a live feature: the model, the sources, the version and the inputs. Every kept trace named the same model all season. Pin a dated snapshot where your provider lists one. Otherwise, the model name the response logs is your warning that the model moved. From 30 September on, every kept answer got the same reports, word for word. The reports didn’t change, but they aged. By late November the newest was from 29 September, and report age per place deserves its own alert. v7’s version file hadn’t changed. That leaves the inputs.
  • Where v7 is blocked. Given a version and some months, drift.js counts that version’s answers your guard’s word checks blocked, by the places the question named. Every blocked answer is kept, so the count is complete. For v7, that’s 82 of its 523 requests in October (16%) and 190 of its 608 in November (31%), with 79 naming the Col de Fenêtre and 70 Hut 6. The place counts say where to look, but they aren’t rates. The exercise after this lesson rates each place.
  • Read the answers. Asked about the col in November, v7 says “Hut 6 is closed for the season”. Hut 6’s only report, from 2 August, says it stays open until 31 October. That report never uses the word “closed”, so the word check blocks the answer. It’s an autumn question: “Can I cross the Col de Fenêtre on Thursday?” was blocked for v7 none of eleven times in October and thirteen of thirteen in November, so the new winter questions aren’t what changed. Here the simulator knows what it asked. With real hikers, use the places in the trace.
  • The answer isn’t wrong. Unlike the Hut 9 guess in the last lesson, Hut 6’s report gives a date, and “closed” follows from it. Of twenty of v7’s November blocks read by hand (the first five each simulated day), sixteen state a closure their report’s date gives, two lean on Hut 9’s undated “mid October”, and two repeat a report. None is wrong. The guard fails safe, but in November about a third of v7’s hikers (190 of 608 requests) got the raw reports and no answer. What changed, most likely, is that the date passed the reports’ closing dates. v7’s file never changed, but its closures paragraph says to state a closure first, in a word the English check can’t find in Hut 6’s report.
  • Why the closure fix misses it. The closure fix after shadow mode lets “closed” match the closure words a report uses, such as “closes” or “closing”, but Hut 6’s report has none, only a date, so no word check can see that the closure follows from it.
  • Pin the date in an eval case. Your eval set has no case dated after a hut’s closing day. A new case, written with invented wording, asks about the col on Thursday 5 November. Run five times per version through the guard, it was blocked for v5 none of five times and for v7 four. Those are guard blocks, not graded passes. A block costs the hiker the answer, so fail a version if any run is blocked or misses one of the case’s must-haves. v5’s five runs each have all three, read by hand. v7’s one shown run leaves out Hut 6’s 31 October, so v7 fails this case until a fix to the check or its closures paragraph changes that.

When a rate holds, split it by version and count where it’s blocked. Check what changed (the model, the sources, the version or the inputs), follow it, and read the answers. Then pin those inputs in an eval case. Here, that’s the date.

These runs were recorded on December 3, 2026, in a simulation where the wardens filed nothing after September. Real closure reports arrive late and unevenly, so real drift shows up patchier.

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 Last lesson, one rate for the whole assistant missed one hut’s fault. When a feature gets worse with no change of yours, because its questions or its world moved, that’s drift.

00:13 Replay September to November: one simulated day a week, 300 questions a day. v7 answers half the hikers from mid-October, and more and more questions are about winter.

00:27 This time, take a rate your log lines give for every request, not only the graded ones. It’s the share where the hiker saw the model’s answer. The guard blocked the rest, and those hikers got the reports.

00:41 The first part of drift.js groups the lines by day, and prints that share for the whole assistant and each version. For the whole assistant, it stays between 71% and 83% all season.

00:55 Nothing stands out.

00:58 Now split that share by version. In October, the two are close. In November, they pull apart. v5 climbs to 88% shown. Over the month, v7 falls to 55.

01:13 The whole assistant held because the two moved in opposite directions.

01:20 What changed? Check the four things that can change in your traces: the model, the sources, the version and the inputs.

01:29 Every trace names the same model all season. From the thirtieth of September, every answer got the same reports, word for word. v7’s file hasn’t changed. That leaves the inputs.

01:45 Give drift.js a version and some months. Its second part counts that version’s answers the word checks blocked, by the places named. Every blocked answer is kept, so the count is complete.

01:58 For v7, the word checks block 16% of its requests in October, and 31 in November. Of November’s 190 blocks, 79 named the Col de Fenêtre, and 70 named Hut 6.

02:14 So read them. Asked about the col in November, v7 says Hut 6 is closed for the season. Hut 6’s only report, from the second of August, says it stays open until the thirty-first of October.

02:28 Its report never uses the word closed, so the word check blocks it. It’s an autumn question: can you cross the col on Thursday? v7 was blocked 0 of 11 times in October, and 13 of 13 in November.

02:44 So the winter questions aren’t what changed. The simulator knows what it asked. With real hikers, use the trace’s places.

02:55 Is the answer wrong? No. Unlike Hut 9’s guess, Hut 6’s report gives a date, and closed follows from it. Of 20 blocks read, 16 state a closure their report dates.

03:08 The guard fails safe, but about a third of v7’s November hikers got the raw reports and no answer. What changed, most likely, is that the date passed the reports’ closing dates.

03:20 v7’s file never changed, but its closures paragraph says to state a closure first, in a word the English check can’t find in Hut 6’s report.

03:31 Your eval set has no case dated after a hut’s closing day. So write one about the col on Thursday, 5 November, with invented wording. Run it five times per version.

03:44 v5 is blocked 0 of 5 times, and v7 four. A block costs the hiker the answer, so fail a version if any run is blocked or misses a must-have. v7’s one shown run leaves out Hut 6.

04:00 v7 fails until the check or its paragraph changes.

04:06 When a rate holds, split it by version, and count where it’s blocked. Check what changed, follow it, and read the answers. Then pin those inputs in an eval case.

04:17 Here, that’s the date. These runs were recorded on December 3, 2026, in a simulation where wardens filed nothing after September. Real closure reports arrive late and unevenly, so real drift shows up patchier.

04:35 Next, in Exercise: Find What Changed in November, you’ll find what’s behind a drop in a recorded November.

Become a Member to join the conversation.