Case Study 2 — Rule Versus Reality: Every Safety Car and VSC, 2023–2026
Setup
Section 18.8 graded two rule books against what real pit walls did at the opening of every safety car and VSC. This case study looks under that headline. We ask three questions. What do real pit walls do, as a function of what the timing screen shows? Where do readable rules and real decisions part company? And does following the rules, or departing from them, go with gaining or losing places afterwards?
The unit of analysis is a car-decision: one running car, one second after an SC or VSC deployment message. We keep dry races only, so that the two-compound rule defines which stops are owed. We drop neutralisations that begin on lap 1, because nearly every car is on a fresh set and the decision is different (Chapter 17 covers it). We also drop incidents that later became red flags, because there a red-flag tyre change would be counted as a "box" (Case Study 1 covers those). That leaves 1,321 car-decisions in 71 SC/VSC openings across 47 dry Grands Prix. A car "boxed" if it changed tyres at its first or second opportunity after the message (pitwall.evaluate_neutralisations, window = 1). All numbers come from code/07_pitwall_replay.py and code/case_study_02.py.
The data
- OpenF1
laps(positions, gaps, compounds, tyre ages, line-crossing times) andrace_control, 2023–2026 R21. - SC/VSC/red windows from the toolkit's
track_periods(red flags include the 2026 wording), grouped into incidents by the neutralisation module. - The v2 rule book: owed stop → box; set younger than 6 laps (SC) or 10 laps (VSC) → stay; fewer than 5 laps left with no stop owed → stay; no discretionary VSC stops; otherwise a discretionary SC stop if Chapter 14's extra-stop value is positive.
Analysis
1. The decision surface
The actual box rate is 48.5% of cars under a safety car and 20.2% under a VSC. The averages hide a sharp structure. Here is the box rate by tyre age at the deployment (columns) and laps left (rows):
SC: actual box rate by laps left (rows) x tyre age (columns):
age_b 0-5 6-10 11-15 16-20 21-25 26+
<= 10 0.00 0.25 0.21 0.60 0.80 0.44
11-20 0.05 0.56 0.33 0.40 1.00 0.87
21-30 0.03 0.44 0.82 0.91 1.00 0.94
31-45 0.04 0.77 0.00 0.89 1.00 NaN
46+ 0.07 0.75 0.60 NaN 0.83 NaN
VSC: actual box rate by laps left (rows) x tyre age (columns):
age_b 0-5 6-10 11-15 16-20 21-25 26+
<= 10 0.00 0.00 0.00 0.00 0.04 0.03
11-20 0.08 0.17 0.33 0.40 0.47 0.88
21-30 0.00 0.15 0.36 0.52 0.41 0.25
31-45 0.03 0.02 0.27 0.61 0.37 0.80
46+ 0.06 0.13 0.61 NaN 1.00 NaN
(Cell counts are in the script's output. Several cells rest on fewer than ten cars, and the chart blanks cells with fewer than five.)

📊 Figure (described): Two heat maps, safety cars on the left and VSCs on the right, show the share of cars that changed tyres at the first or second opportunity. Rows are laps left (from ≤ 10 to 46+) and columns are tyre age at the deployment (from 0–5 to 26+ laps). Under a safety car the left column is nearly white: sets of 0–5 laps are almost never changed. Most cells to the right are dark, especially with 21–45 laps to go. Under a VSC the whole map is pale, with the top row (≤ 10 laps left) white, and only old sets in mid-race reach a 50% box rate. Cells with fewer than five cars are blank. The takeaway: real pit walls follow a few simple regularities, and the VSC regularity is "mostly don't".
Three regularities stand out, and they are the ones v2 writes down.
- A set younger than about six laps stays on under a safety car. The 0–5 column is at 0–7% in every row (n = 169 car-decisions in that column). From six laps the rate jumps to 25–77%.
- Under a VSC, a set younger than about ten laps stays on, and with ten laps or fewer left almost nobody stops. The top row of the VSC map is 0–4% across all ages (n = 103).
- With more than 20 laps left and a set older than about 15 laps, a safety car means a stop. The SC cells with 21–45 laps left and 16+ laps on the set are at 89–100%.
The grey zone, where real pit walls split, is a safety car with 11–20 laps left on a mid-age set (33–40%). That is where the extra-stop value is closest to zero and track position matters most. It is also where a readable rule is least likely to match.
2. Where the rules and reality part
v2 disagreements by type:
kind call owed
SC BOX False 29
True 31
STAY False 46
True 6
VSC BOX True 77
STAY False 63
True 12
Grouped by why they happen, the disagreements fall into four families.
- Owed stop, rule says box, car stays out (SC 31, VSC 77). These are the alternative-strategy cars. Section 18.9's Bearman at Zandvoort is the textbook example: a HARD starter, a stop owed, and a team that valued track position over the cheaper stop. Under a VSC this family is the largest single source of disagreement. "Box an owed stop at a VSC" saves G − V = 22.512 − 15.671 = 6.841 s on paper. Real pit walls take that saving only about a third of the time when the set is 11–25 laps old.
- Discretionary stop the rule calls but the team skips (SC 29). The extra-stop formula uses pooled degradation rates, and at a low-degradation circuit it overstates the tyre saving. The fix is circuit-specific degradation (Chapter 22).
- Discretionary stop the rule does not call but the team takes (SC 46, VSC 63). Many of these are late-race safety cars where teams fit fresh SOFTs for a short sprint to the flag. The largest single example is the 2026 British GP lap-48 safety car: 17 of 19 cars disagreed with the rule, which said stay with four laps left.
- Owed stop on a set the rule thinks too young (SC 6, VSC 12). A handful, mostly cars that stopped early and were caught by the two-compound rule.
Incidents with the most disagreements (v2):
gp kind lap n disagree box_rate rule_box
2026 British Grand Prix SC 48.0 19 17 0.89 0.00
2025 Spanish Grand Prix SC 55.0 17 12 0.76 0.06
2026 Mexico City Grand Prix SC 59.0 17 12 0.12 0.71
2025 Las Vegas Grand Prix VSC 16.0 18 10 0.17 0.72
2026 Spanish Grand Prix VSC 14.0 20 9 0.55 1.00
2026 British Grand Prix VSC 22.0 22 9 0.23 0.64
2026 Australian Grand Prix VSC 12.0 19 9 0.53 1.00
2025 Emilia Romagna Grand Prix SC 46.0 18 8 0.50 0.94
The two biggest misses go in opposite directions. Late in the 2026 British and 2025 Spanish GPs, nearly everyone boxed under a safety car that the rule said was too late to bother with. In the 2026 Mexico City GP's lap-59 safety car, only 12% boxed where the rule wanted 71%. That safety car came 14 laps after the red flag had given every car a new set. A plausible reading is that the rule's pooled degradation rates overstate what a 14-lap-old set had lost at Mexico City, so it valued an extra stop that the teams did not. In 9 of the 71 incidents the v2 rules matched every car. Examples are the VSCs at the 2023 Canadian GP (lap 8), the 2023 Mexico City GP (lap 5) and the 2024 Australian GP (laps 17 and 58), where the regularities above leave no room for argument.
3. Did following the rules pay? (association only)
For every car-decision we measure places gained from the deployment to five laps after the neutralisation ended:
Places gained from the deployment to 5 laps after the neutralisation ended, by (v2 call, actual):
n mean median
kind call actual
SC BOX BOX 194 -0.69 0.0
STAY 57 1.86 2.0
STAY BOX 29 0.45 0.0
STAY 173 1.27 1.0
VSC BOX BOX 86 -1.64 -1.0
STAY 75 0.91 1.0
STAY BOX 72 -0.94 0.0
STAY 478 0.47 0.0
SC, rule said BOX: boxed minus stayed = -2.55 places [-3.38, -1.74] (n 194 vs 57)
SC, rule said STAY: boxed minus stayed = -0.82 places [-1.57, -0.06] (n 29 vs 173)
VSC, rule said BOX: boxed minus stayed = -2.55 places [-3.23, -1.90] (n 86 vs 75)
VSC, rule said STAY: boxed minus stayed = -1.42 places [-2.04, -0.84] (n 72 vs 478)
In every cell, the cars that boxed were worse off five laps after the restart than the cars that stayed out, by 0.8 to 2.6 places on average. Read that carefully. It does not mean boxing was wrong. Five laps after the restart, the cars that stayed out have usually not yet made the stop they still owe. Their extra places are a loan that a later green-flag stop will repay. A fair outcome comparison has to wait until every car has completed the same number of stops, or measure race time instead of position. Even then, the comparison is confounded: teams choose to stay out precisely when they expect track position to be worth more. The table shows what happened. It cannot show what would have happened under the other call.
It does reveal one thing about the rule. When v2 said BOX and the car stayed out, that car's short-term gain (+1.86 places under SC, +0.91 under VSC) is larger than for cars that agreed with STAY. That is the signature of family 1: alternative-strategy cars cashing in track position.
What it means (and doesn't)
- It means three readable regularities (SC: change sets of six laps or more; VSC: change only old sets with a stop owed; few stops late under a VSC) reproduce about four in five real decisions. Real neutralisation strategy is less mysterious than it looks.
- It means "box under a VSC" is the decision most often over-called by naive rules. A VSC saves less than a safety car (6.9 s against 9.8 s on an owed stop) and is usually over within a lap.
- It does not mean the remaining 20% of decisions were errors. They include alternative strategies, track-position calls, late-race tyre sprints and knowledge the timing data do not carry.
- It does not establish that boxing costs places. The short-window place change is biased against boxing by construction.
- The thresholds are in-sample. v2's six- and ten-lap thresholds were read off this same table.
Discussion questions
- Why is the five-laps-after outcome biased against cars that boxed? Propose an outcome measure that is fair to both choices.
- The VSC map's top row (≤ 10 laps left) is nearly white. Use the decision-window numbers of 18.3 and the VSC's median length to explain why.
- Family 1 (owed stop, car stays out) is concentrated in alternative-strategy cars. How would you add a "track position value" term to
decidethat could reproduce it, and what data would you fit it to? - Mexico City 2026's lap-59 safety car came after a red flag that refreshed every set. What state variable is the rule missing that a real pit wall obviously has?
- Is "agreement with real pit walls" the right target for a strategy rule at all? When would you want a rule that disagrees with the field?
Your turn
Make the comparison out-of-sample. Refit v2's two thresholds (min_age_sc and min_age_vsc) using only 2023–2024 races. Choose them by maximising agreement on a grid from 2 to 14 laps. Then score the fitted rules on 2025 and on 2026 separately against the never-box baseline. Report agreement, precision and recall with n for each season. When Qatar and Abu Dhabi 2026 appear in the data, add them as a final hold-out.