Lesson 7 of 10
Incidents: severity, kill switches and post-mortems
Run production incident response like a studio: SEV-1 to SEV-4 triage, Experience Config kill switches, Cmdr admin tools, the interactive Friday 5 PM outage war-game drill, and blameless post-mortems.
By the end you can
- Classify live incidents into SEV-1 to SEV-4 tiers and follow a written runbook under pressure
- Wire a server-side Experience Config kill switch that disables the shop within one config read
- Execute the Friday 5 PM outage war-game drill in the right order without crashing CCU or corrupting active sessions
- Write a concise, blameless post-mortem with dated system fixes
Before this: The live-ops calendar: seasons, events and the content pipeline, Player data operations: support, restores and erasure, LiveOps: updates, events, feature flags, migrations, Change with evidence: Experiments, error reports and alerts
Step 1 of 6
Severity levels and calm triage
When alerts fire on Friday at 17:00, guessing wastes the first ten minutes. Studios define four severity tiers ahead of time so everyone knows how fast to respond and who makes the call:
| Severity | What is broken | Response target | Example in Beacon Yard |
|---|---|---|---|
| SEV-1 | Data corruption, players cannot join, or active economy exploit | Immediate (all hands) | Zero-coin shop bug or bad DataStore migration overwriting profiles |
| SEV-2 | Purchases broken or server crash rate >= 5% | Under 30 minutes | ProcessReceipt throwing errors or version N+1 out-of-memory spike |
| SEV-3 | Non-critical feature degraded or crash rate 1% to 5% | Same business day | Leaderboard refresh failing while drills and shop work |
| SEV-4 | Cosmetic glitch or rare edge warning | Next scheduled release | Minor HUD misalignment on one aspect ratio |
Think of incident response as a factory circuit-breaker panel paired with a fire-drill checklist. You flip the breaker for the faulty machine first, evacuate safely, repair the fault, and only then reset power.
Think of it as Circuit breakers and a fire-drill checklist in a factory
| In the picture | In Roblox |
|---|---|
| The circuit breaker panel | Experience Config kill switches (shop_enabled, scrap_rush) that isolate one broken subsystem without shutting down the yard |
| The fire-alarm severity chart | SEV-1 to SEV-4 tiers deciding who wakes up and how fast you act |
| The post-drill safety report | A blameless post-mortem that fixes the system guardrails instead of blaming one developer |
Use Creator Hub's Error Report (Show version and New errors since)1 and Server Crashes chart (splitting out-of-memory crashes from platform crashes)2 plus webhook Alerts3 to spot whether a spike started right after a specific PlaceVersion.

Select a numbered pin, or a row below, to read what it marks.
Creator Hub Error Report with version annotations enabled so a bad deploy stands out immediately. Illustration with sample data, not a live Creator Hub capture.
Match each live Beacon Yard symptom to its severity tier.
Step 2 of 6
Kill switches that fire in one config read
Publishing a fixed place version and draining old servers takes minutes. A kill switchKill switchA remote feature flag wired around a risky subsystem so you can shut that subsystem off in under a minute without publishing code.Think of it as a single breaker that cuts power to one faulty machine while the rest of the yard stays lit. stops the bleeding in roughly 15 to 60 seconds with zero code deploy4.
Look at ShopService.purchase in Beacon Yard at m14-ship:
function ShopService.purchase(player: Player, item: unknown)
if item == "Speed" then
buySpeed(player)
return
end
if item == "Shield" then
buyShield(player)
return
end
if item == "CoinPack" then
MonetizationService.prompt(player)
return
end
if item == "SpeedPass" then
PassService.prompt(player)
return
end
feedback(player, "deny", "Unknown item")
Up to m16-design-pass, ShopService.purchase always lets a buy through. If a bad deploy ships a broken price or a duplicate-grant bug, every live server keeps processing purchases until you publish and restart them. At m17-live-season, the top of the inner purchase function in ShopService checks one kill switch first:
if not FlagService.shopEnabled() then
feedback(player, "deny", LiveFlags.pausedMessage("shop"))
shop_enabled is declared in src/shared/LiveFlags.luau as a kill switch, together with the text a player sees when it is off. LiveFlags.read turns a kill switch off only on the boolean false. A missing value, a typo or a ConfigService outage (snapshot == nil, so the raw value is nil) leaves the shop open:
-- LiveFlags.FLAGS
{
key = "shop_enabled",
type = "boolean",
default = true,
killSwitch = true,
paused = "Shop is paused for maintenance",
doc = "Coin purchases in the shop",
},
-- LiveFlags.read
if flag.killSwitch then
return raw ~= false
end
-- FlagService
function FlagService.shopEnabled(): boolean
return FlagService.enabled("shop")
end
function FlagService.enabled(feature: string): boolean
return FlagService.value(feature .. "_enabled") == true
end
FlagService.start() returns at once and loads the config snapshot in its own thread, so a slow or missing Experience Config never delays boot. Until the snapshot lands, every kill switch is on and the event flag is off. Once it lands, FlagService connects snapshot.UpdateAvailable to snapshot:Refresh(), so running node scripts/set-config.mjs shop_enabled=false --message "SEV-1 pause shop" shuts off purchases across every running server on the very next config read. (The set-config.mjs draft and draftHash flow is explained in the live-ops calendar lesson.)
A switched-off feature never fails silently. The player sees a toast and hears the deny sound, whether the service or RemoteGuard stopped the request:
| Switch off | A player who tries it sees |
|---|---|
shop_enabled | "Shop is paused for maintenance" |
upgrades_enabled | "Upgrades are paused for a moment" |
quests_enabled | "Quest rewards are paused for a moment" |
coop_enabled | "The beacon repair is paused for a moment" |
offers_enabled, season_s01_enabled, metrics_enabled | No toast: the feature simply does not run |
RemoteGuard checks a request in a fixed order: the rate limit first, then the arguments, then the switch. A paused shop is not cheating, so the guard gives no strike. It prints [Guard] ShopBuy from <id> rejected: shop is switched off, at most once every 10 seconds per player per remote, so a player hammering the button cannot flood the output.
You publish shop_enabled=false on Creator Hub, but a running Beacon Yard server never pauses the shop. Looking at FlagService.luau, what causes a live server to keep reading the old value?
Press 1 to 4 to choose, Enter to check.
Why does FlagService.shopEnabled() return true when ConfigService is unreachable (snapshot == nil), while FlagService.coinMultiplier() returns 1 (event off)?
Press 1 to 4 to choose, Enter to check.
Step 3 of 6
Interactive drill: the Friday 5 PM outage war-game
Now put the whole playbook together in a timed tabletop crisis. It is Friday at 17:00. Five minutes ago, place version 42 went live while 1,200 concurrent players were in Beacon Yard:
- Version 42 shipped the Shield at 4 coins instead of 40, the same scenario as the game's own drill (
scripts/lune/incident-drill). Players are buying Shields for almost nothing. - 15 player profiles have already saved wrong balances on version 42 servers, and more buyers are still playing, so their wrong balances exist only in open sessions.
- Community chat reports players spamming the Shield button right now.
Server sideRemember: Incident response and kill switches is circuit breakers and a fire-drill checklist in a factory.
In Beacon Yard the breaker is the shop_enabled key in Experience Configs: FlagService.enabled("shop") reads it, and switching it off stops every coin purchase in ShopService while drills, pads and saves keep running. The alarm chart is the SEV table at the top of this lesson, and the safety report is the post-mortem you write at the end.
Where does it break?โCircuit breakers and a fire-drill checklist in a factoryโ is a good picture of incident response and kill switches. Where does it stop being true?
It breaks here. Flipping a physical breaker cuts power instantly, whereas Roblox Experience Configs take 15 to 60 seconds to propagate and running servers still hold in-memory ProfileStore locks until they drain.
The true model. Production incident response stops ongoing damage first with fast server-side kill switches, rolls back or patches code before draining outdated servers gracefully, merges corrupted DataStore entries only when no live session holds the lock, and closes with blameless system fixes.
Look at why order matters in the break above. If you panic and hard-restart all servers before flipping the kill switch and rolling back version 42, players reconnect straight back into version 42, and an abrupt kick loses players too (the simulator assumes about a third).
Restoring data has two traps. First, you have to know who to fix. The 15 saved profiles are only the ones you can see; every player who bought a Shield on version 42 got one too cheap. ShopService logs each coin purchase as an economy event with the item as its SKU, and View Events shows recent events in near real time, sortable by user ID5. Build the list of affected players from those Shield events (or a server purchase log) before you touch any data.
Predict first. You roll back to version 41 and run a delayed restart. Ten minutes later every version 42 server is gone. You now restore the affected profiles. Can a live session still overwrite your restore?
Press 1 to 4 to choose, Enter to check.
Second, a ProfileStore session lock belongs to a player, not to a server version. Draining the old servers is not enough: a delayed restart teleports everyone to new servers, the affected players load their profiles again, and their next save overwrites your restore6. The rule from the game's runbook is simple: never write to a profile that a server still has open. So you have two safe routes:
- Kick, then restore. Kick the affected players with a short message and write their profiles while they are out.
IncidentOps.validateRecoveryPlanchecks this order: amerge_restorebeforescope_affectedfails withrestore_before_scope, and one beforekick_affectedfails withrestore_while_players_in_session. - Store a profile patch. Never touch the profile at all. A patch is one row
{ id, coins, reason }in the DataStoreBeaconYard_Patches(Config.PATCH_STORE_NAME), under the keyu_<userId>.coinsis the change, so-36takes 36 coins back. When that player's profile next loads,DataServiceapplies each patch once, remembers its id so a repeat does nothing, logsprofile_patch_appliedand saves before it clears the patch. A player who never comes back is never touched, and nobody has to be kicked.
The game ships a writer for the second route. It is a dry run unless you add --send, so you can read the exact request before anything leaves your machine (the API key comes from ROBLOX_API_KEY and is never printed):
node scripts/write-profile-patch.mjs <universeId> <userId> <patchId> <coins> <reason> [--send]
node scripts/write-profile-patch.mjs 1234 5678 shield-4coin-5678 -36 "shield price fix"
The second line prints a GET and a PATCH for BeaconYard_Patches/entries/u_5678 whose value is [{"id":"shield-4coin-5678","coins":-36,"reason":"shield price fix"}], then dry run, nothing was sent. A negative patch never takes a balance below 0.
Rolling back code does not roll back saved data. Players who joined version 42 servers may have profiles in version 42's shape, and version 41 will load them. Whether that is safe depends on what version 42 changed in the profile:
| Version 42 changed the profile by | After the rollback to 41 | What to do |
|---|---|---|
Adding a field, such as season2Claims | Safe. Reconcile only fills keys the template has and the profile lacks, and ProfileStore saves the whole table, so 41 keeps the unknown key and 42 finds it again later. | Roll back. |
| Renaming or moving a field | Unsafe. 41 finds its old key missing, Reconcile fills it with the template default, and the player looks reset. | Fix forward, or use a kill switch. |
| Changing a field's type or meaning | Unsafe. 41 reads a value it does not expect and can save a broken one back. | Fix forward, or use a kill switch. |
Version 42 in this drill changed only a price, so the rollback is safe. Two rules keep it that way. Never write code that drops keys it does not know when it saves. And ship a rename in two releases: first one that reads both shapes, then one that writes the new one, so the version you roll back to can always read what the newer one saved. Beacon Yard's own rename works like this: DataMigration.renameDesignFields keeps the larger of the old and new tier with math.max, so a profile that moved between builds keeps its progress.
Run the Friday 5 PM Outage Simulator below. First click Run to watch what the panicked default plan does to CCU and corrupted profiles. Then reorder local plan = { ... } to achieve a passing recovery (status=RECOVERED, ccu >= 1000, corrupted=0, duration <= 15m). The CCU losses in it are simulator assumptions, not measured Roblox numbers.
Level 2, Builder
Challenge
Fix the incident response sequence in the Friday 5 PM outage simulator above until CCU stays high, corrupted profiles reach zero, and all recovery gates pass.
- Start from
- Check it here
- Run the code cell; the challenge completes when it passes. No Studio needed.
Done means
- Stop the bleed first with kill_switch before rolling back to version 41
- Run scope_affected so the restore covers every Shield buyer, not only the 15 saved profiles
- Use delayed_restart (not hard_restart) after rollback_v41 so players move onto version 41 while keeping CCU above 1,000
- Run merge_restore right after kick_affected, while every affected player is out of session, so no open ProfileStore session overwrites the restore
- Finish with postmortem inside the 15-minute window so the simulator prints status=RECOVERED ccu=1092 corrupted=0 minutes=15
Put the six Friday 5 PM outage recovery steps in the safest studio order.
- List every player who bought a Shield on version 42 from the Shield economy events or a purchase log
- With each affected player out of session, run the Lune dry-run + merge-restore on their profiles
- Publish shop_enabled=false via Experience Configs to stop the bleed immediately
- Post a short honest player update and write a blameless post-mortem with a regression test
- Schedule a delayed restart of only outdated servers and notify players in-game
- Roll back the published place from broken version 42 to known-good version 41
Step 4 of 6
Admin tools, structured errors and player comms
During an incident, engineers need safe diagnostics without handing every moderator full Studio edit permissions.
Other ways pros do this
| Option | What it is | When pros pick it | Trade-offs |
|---|---|---|---|
| Experience Configs + Open Cloud CLI (Beacon Yard) | ConfigService flags toggled from Creator Hub or scripts/set-config.mjs with audit history and gradual rollout. | Global kill switches, event toggles and emergency clamps across every running server. | Applies globally or by targeting rule, not for inspecting one live player's server state. |
| Cmdr (github.com/evaera/Cmdr, MIT, not archived, last push 2026-11-26, release v1.13.1) | Extensible in-game admin command console with server-side type checking, permission hooks and command autocomplete. | Studios needing live in-server debugging, player support checks or moderated live-event commands. | Must gate every command strictly on server-side group rank or allowlist; never trust client visibility. |
| Delayed restart + ServerRestartScheduled countdown | Restart only outdated servers with a 1 to 60 minute delay; Roblox fires DataModel.ServerRestartScheduled on each affected server so the game can toast a countdown, then teleports players to an updated server. | Every update or rollback that needs live servers on a new place version. | Players still move servers once; the game has to listen for the event to warn them. |
| Soft Shutdown teleport handler (BindToClose) | The older workaround: teleports active players to a holding reserved server on shutdown and back to the new version. | A fallback when you cannot use a delayed restart. | Adds TeleportService error handling and retry logic; the simulator's assumption that hard shutdowns lose 30% to 50% of players is a guess to test, not a measured figure. |
Beacon Yard listens for DataModel.ServerRestartScheduled: when you launch a delayed restart, each affected server toasts "Server restarting for an update in N min" and repeats it at 1 minute, and a player who joins one of those servers in the meantime sees the same toast 5 seconds after joining, so nobody is surprised by the teleport. That is the in-game half of the runbook's restart step.
Tag server warnings with game.PlaceVersion and game.JobId so Error Report entries tie directly to the bad deploy and server instance1. When communicating with players in your community server or in-game toast:
- Say what is paused ("The shop is paused while we fix a Shield pricing bug").
- Say what is safe ("Your saved coins and Speed upgrades are safe").
- Give a next update time ("Next update in 30 minutes"), never a promise you cannot keep.
Ten minutes into a SEV-1 shop outage, players are asking in your community channel why the shop says paused. Which message follows studio incident comms rules?
Press 1 to 4 to choose, Enter to check.
Step 5 of 6
The 1-page blameless post-mortem
After service is restored and everyone has rested, write a one-page blameless post-mortemBlameless post-mortemA short incident review that documents timeline, impact, root cause and concrete guardrail fixes without blaming individuals.Think of it as an aviation safety report that redesigns the cockpit switch instead of firing the pilot. within 48 hours. It has five short sections:
- Summary & severity: what broke, how long it lasted, how many players were affected.
- Timeline (UTC): timestamped facts from deploy to detection, kill switch, rollback, restore and all-clear.
- Root cause: the system gap (not a person's name), e.g., "Our price check only rejected zero and fractions, so a Shield at 4 instead of 40 passed CI."
- What went well / what hurt: e.g., "The kill switch closed the shop in under a minute; we had no list of buyers, so scoping took longer than the fix."
- Action items: each with a single owner and due date (add a CI range check for every price, keep
shop_enabledin the runbook drill).
Build along
src/shared/LiveFlags.luausrc/server/FlagService.luausrc/server/RemoteGuard.luausrc/server/ShopService.luauunit/specs/ShopPrices.spec.luausrc/shared/IncidentOps.luaudesign/incident-runbook.mdscripts/lune/incident-drill.luau
In
src/shared/LiveFlags.luau(you created it in the calendar lesson), add the seven kill-switch rows from the table above withkillSwitch = true, and apausedtext on the four a player can run into. MakeLiveFlags.readreturnraw ~= falsefor a kill switch, and addLiveFlags.killSwitches()andLiveFlags.pausedMessage(feature). InFlagService.luau, addFlagService.enabled(feature)(reads<feature>_enabled) andFlagService.shopEnabled(). Then opensrc/server/RemoteGuard.luau: giveShopBuy,UpgradeandClaimQuestafeature("shop","upgrades","quests") and check it after the rate limit and the argument schema. A switched-off feature prints the[Guard]line, records no strike and sends the player adenytoast withLiveFlags.pausedMessage(feature). Add"FlagService"toRemoteGuard.deps.You should see LiveFlags.killSwitches() lists shop_enabled, upgrades_enabled, quests_enabled, offers_enabled, coop_enabled, season_s01_enabled and metrics_enabled, and LiveFlags.spec.luau and RemoteGuard.spec.luau pass.
In
src/server/ShopService.luau, rename the body ofpurchaseto a localpurchasefunction and put theFlagService.shopEnabled()check at its top (the Source above). Make the publicShopService.purchasecall it throughxpcall, with an error handler that warns[Shop] <item> failed for <userId> on place version <n>, server <jobId>usinggame.PlaceVersionandgame.JobId, then tells the player nothing was charged. Addunit/specs/ShopPrices.spec.luau, which fails CI when any_PRICEor_COSTvalue inConfig.luauis not a positive whole number.You should see With shop_enabled staged false in Studio, a Speed purchase spends no coins, the player sees 'Shop is paused for maintenance', and the output prints a [Guard] line ending in 'shop is switched off'. A handler error prints a [Shop] warning with the place version and server id, and the player sees 'Something went wrong. Try again in a moment'.
Copy your finished challenge from the end of this lesson into
src/shared/IncidentOps.luau. Writedesign/incident-runbook.md: the severity table, the kill-switch table with its "A player who tries it sees" column, and the recovery order, ending with "never write to a profile that a server still has open". Then writescripts/lune/incident-drill.luau: classify the 4-coin Shield withIncidentOps.classifySeverity, print each step with its command, and check the plan withIncidentOps.validateRecoveryPlan. Everyset-config.mjscommand it prints carries--dry-run, so it sends nothing. Runlune run scripts/lune/incident-drillfrom the repo root.You should see lune run scripts/lune/incident-drill prints the runbook steps for a Shield that shipped at 4 coins (SEV-1), with scope_affected before merge_restore, and ends with 'Plan check: safe'. Passing --plan with delayed_restart before kill_switch prints 'UNSAFE' and exits with an error.
Now give your own Beacon Yard the switches, the guard and the drill. Each step ends with a check.
ShopPrices.spec.luau already checks that every price is a positive whole number, and the 4-coin Shield still shipped. Which post-mortem action item actually prevents it from happening again?
Press 1 to 4 to choose, Enter to check.
Step 6 of 6
Repo challenge: kill switch, triage and recovery rules
Implement the four incident-response rules in challenges/work/incident_ops.luau and verify that your shop kill switch disables purchases within one config read, your severity triage classifies SEV-1 to SEV-4 accurately, your rollback rule catches version-scoped error spikes, and your recovery validator rejects unsafe Friday outage plans.
Level 3, Professional
Challenge
The challenge files ship in every tag from m14-ship on, so you can solve it in the checkout you just built. Edit challenges/work/incident_ops.luau and run challenges/incidents.luau through the Course Runner. Solution: challenges/solutions/incidents.md.
- Start from
- The game at milestone m14 (download)
- Grade it
- In Studio, press Play, then run
game.ServerScriptService.RunGameTests:Invoke("incidents", "incidents-kill-switch")in the server command bar. Copy the pass code from Output.
Done means
- isShopEnabled returns false immediately on boolean false and defaults to true on nil, true or non-boolean values
- classifySeverity maps dataCorruption/joinBlocked/economyExploit to SEV-1, purchasesBroken or crashRate >= 0.05 to SEV-2, degradedFeature or crashRate >= 0.01 to SEV-3, else SEV-4
- shouldRollback returns true only when newVersion > prevVersion, newErrorRate >= baselineErrorRate * 3 and newErrorRate >= 0.02
- validateRecoveryPlan rejects hard_restart_first and overwrite_active_session, requires every recovery step including scope_affected, keeps kill_switch and rollback_or_fix before delayed_restart, and allows merge_restore only after delayed_restart, after scope_affected (else restore_before_scope) and after kick_affected, so the affected players are out of session (else restore_while_players_in_session)
Recap
- Triage live problems quickly with SEV-1 to SEV-4 definitions backed by Creator Hub's Error Report version annotations and Server Crashes chart.
- Wire Experience Config kill switches (`shop_enabled ~= false`) around high-risk systems so one config publish stops damage in under a minute without losing normal-day defaults.
- Follow the safe Friday 5 PM recovery order: kill switch, find every affected player, rollback or hotfix, delayed outdated-server restart, and merge-restore only while each affected player is out of session, with calm factual player comms throughout.
- Close every SEV-1/SEV-2 with a 1-page blameless post-mortem whose action items are concrete tests, clamps or CI checks.
Incident response and kill switches is circuit breakers and a fire-drill checklist in a factory, until flipping a physical breaker cuts power instantly, whereas Roblox Experience Configs take 15 to 60 seconds to propagate and running servers still hold in-memory ProfileStore locks until they drain.
Queued for review
- Match each live Beacon Yard symptom to its severity tier.
- Why does FlagService.shopEnabled() return true when ConfigService is unreachable (snapshot == nil), while FlagService.coinMultiplier() returns 1 (event off)?
- Put the six Friday 5 PM outage recovery steps in the safest studio order.
- Ten minutes into a SEV-1 shop outage, players are asking in your community channel why the shop says paused. Which message follows studio incident comms rules?
- ShopPrices.spec.luau already checks that every price is a positive whole number, and the 4-coin Shield still shipped. Which post-mortem action item actually prevents it from happening again?