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

Widen the Rollout Step by Step

In this lesson, you watched the team give every hiker v7 before it had cleared shadow mode, saw why the next morning’s numbers couldn’t tell you anything, and wrote the rollout plan that should have come first.

Key Points

  • v7 hadn’t cleared. In Try the New Version in Shadow Mode, the share stayed at zero until a rerun cleared v7. With the checks fixed, the rerun had v5 passing all checks on 233 of 280 questions (83.2%) and v7 on 216 (77.1%), 6.1 points behind. v5 against itself came out 3.6 points apart (81.5% and 77.9%), so v7 sat outside v5’s own spread.
  • Everyone got it anyway. v7’s eval runs passed 20 of 20 cases, five times, and the wardens wanted the closure answers live before the huts close. So the team set "share": 100 on Thursday, 1 October. A simulator built for this lesson plays those days: 207 recorded questions a day from 480 hikers. This is a toy, so the numbers show the reasoning, not a real rollout.
  • The next morning’s count says nothing. From the log lines, v7 handed 37 of 207 questions (17.9%) to the wardens’ desk, and v5 handed off 72 of 414 (17.4%) over the two days before. In this project, a blocked answer shows the latest reports and passes the question to the wardens’ desk, so every blocked answer is handed off. Half a point looks fine. But on Thursday the version and the day changed together, v5’s own two days came out about three points apart (15.9% and 18.8%), and nobody had v5 on Thursday. Real days swing more, with weather, a closure notice or a busy weekend.
  • Every hiker carried the risk. Your eval cases hold the questions someone wrote. Hikers bring the rest. Rolling back is one line, "share": 0, and the next request gets v5.
  • Write the plan first. Before any hiker sees v7, the plan sets a gate (a shadow week that puts v7 inside v5’s own spread), then stages of 5, 25 and 50 percent, comparing v7 with v5 on the same days. At each stage, watch per version: the handoff rate (here, every answer the checks block), the share that passes the checks (estimated from kept traces), the cost per 1,000 questions, and the p95, the time within which 95% of requests finish.
  • Decide the rollback before you need it. An answer shown that a report contradicts, from a hiker’s report or the wardens’ desk, sends the share to zero at once. A safety-fact failure is blocked, so it counts as a handoff.
  • Drift has four lines. Handoffs 5 points higher (judged once v7 has 100 questions, a rough floor rather than a guarantee), passes 5 points lower (once each version has 30 sampled traces), cost 10% higher, or p95 a second slower. A tighter line catches more but rolls back on noise, and a looser one waits longer.
  • Keep the way back. If a new version changes the model, keep the old one available until the new version has proved itself.
  • How a stage ends. If a line is crossed, the share goes to zero. If a number is still too thin to judge, you stay at this stage. Only when every line holds, with enough behind each number, do you widen. The plan ends at 50%: going to every hiker waits for a proper comparison, later in this course.
  • Hold at zero. For v7, the plan stops at the gate. Its shadow week missed, so the share stays at zero and the closure answers wait, which is a real cost to the wardens. The way forward is shadow mode’s loop: explain each loss, fix what you find, and run the shadow again.

The rule: passing the evals isn’t enough for every user. A clean shadow week earns the first 5%. Then widen in stages, compare both versions on the same days, and roll back by the rule you wrote first. These runs were recorded on December 3, 2026, and your numbers will differ.

The Flag

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 Try the New Version in Shadow Mode, the share stayed at zero until a rerun clears v7. With the checks fixed, the rerun put v7 at seventy-seven percent passing and v5 at eighty-three, six points behind.

00:15 v5 against itself came out about four points apart. So by that rule, v7 hasn’t cleared.

00:22 But its eval runs pass twenty of twenty cases, five times. And the wardens want the closure answers live before the huts close. So the team gives every hiker v7 anyway, and the share goes to one hundred.

00:38 A simulator built for this lesson plays late September and October: two hundred and seven recorded questions a day, from four hundred and eighty hikers. On Thursday, the first of October, every hiker gets v7.

00:53 The next morning, you count handoffs from the log lines. v7 handed eighteen percent of questions to the wardens’ desk. Over the two days before, v5 handed off seventeen percent.

01:04 It looks fine.

01:09 But on Thursday, both the version and the day changed. v5’s own two days came out three points apart, sixteen and nineteen percent, and nobody had v5 on Thursday.

01:21 So half a point says nothing either way. Real days swing more, with weather, a closure notice or a busy weekend.

01:30 Meanwhile, every hiker carried the risk. Your eval cases hold the questions someone wrote. Hikers bring the rest. So you set the share back to zero. That’s one line, and the next request gets v5.

01:47 Instead, write the plan before any hiker sees v7. It starts with the gate the team skipped: a shadow week that puts v7 inside v5’s own spread. Then widen in stages: five, twenty-five, then fifty percent.

02:03 At each stage, compare v7 with v5 on the same days. Watch the handoff rate, which here counts every answer the checks block. Watch the share that passes the checks, estimated from kept traces.

02:18 Here it mirrors the handoffs, but it still works when handoffs have other causes. And watch the cost per thousand questions, and the p95, the time within which ninety-five percent of requests finish.

02:33 Then decide the rollback. If a hiker’s report or the wardens’ desk shows an answer a report contradicts, the share goes to zero at once. A safety-fact failure is blocked, so it counts as a handoff.

02:47 For drift, four lines. Five points more handoffs, judged once v7 has a hundred questions. Five points fewer passes, once each version has thirty sampled traces.

03:00 Ten percent more cost. Or a second slower. A tighter line catches more but rolls back on noise. A looser one waits longer.

03:11 And if a new version changes the model, keep the old one available until the new version has proved itself. If it’s retired, you have nothing to roll back to.

03:23 Each stage ends in one of three ways. If a line is crossed, the share goes to zero. If a number is still too thin to judge, you stay. Only when every line holds, with enough behind each number, do you widen.

03:40 Your plan ends at fifty. Going to every hiker waits for a proper comparison, later in this course.

03:49 For v7, the plan stops at the gate. Its shadow week missed, so the share stays at zero, and the closure answers wait. That’s a real cost to the wardens. The way forward is shadow mode’s loop: explain each loss, fix what you find, and run the shadow again.

04:10 So passing the evals isn’t enough for every hiker. A clean shadow week earns the first five percent. Then widen in stages, compare both versions on the same days, and roll back by the rule you wrote first.

04:25 These runs were recorded on December 3, 2026. Your numbers will differ.

04:31 Next, in Exercise: Roll Out and Roll Back, you’ll take a recorded rollout stage by stage and decide whether to widen or roll back.

Become a Member to join the conversation.