KITSOKI
Learn · Notebook

Root cause analysis: the whole system, one case, every slice

An incident told as stock and flow, one case and a cube of facts, on one play bar.

Kitsoki·
Read the paper and learn more
Contents
  1. The shape of every incident
  2. Three views on one clock
  3. The incident record
  4. What was true and what people could see
  5. The overview: stocks and flows
  6. One case: a request or a saga in Observe
  7. The cube: slice, dice and drill
  8. The method
  9. Causes, barriers and levels
  10. Evidence and open questions
  11. Testing a claim
  12. From finding to verified action
  13. The embedded player
  14. Four worked cases
  15. The document and the deck
  16. A real run of the mechanism
  17. What the SRE sees
  18. What DevOps sees
  19. What the VP of Operations sees
  20. How far to trust an analysis
  21. Reviewing an analysis
  22. Sources

An incident is a system that drifted away from what its people believed about it. A Kitsoki root cause analysis shows that drift three ways on one clock: the whole system as stocks and flows, one request or saga as it crossed the system, and every recorded fact as a cube to slice. The same record drives a refinery upset, a software outage, a cyber intrusion and a physical security breach, and it reads as a document and plays as a deck.

The shape of every incident

Incidents in very different industries share a structure. A quantity moves toward a limit. The instrument, dashboard or report people rely on shows something else. The barriers meant to catch the difference have been degraded by ordinary decisions made long before. When the limit is reached, the people present act on the picture they have.

Incident What moved What people saw Barrier that had worn away
Refinery upset, Texas City Liquid in a 170-foot tower rose to 158 feet The level transmitter read 7.9 feet Alarms and a level transmitter that did not warn
Software outage, Cloudflare A generated feature file passed its limit of 200 An apparent attack, with the status page down by coincidence An unhandled error when an internal file passed its limit
Cyber intrusion, Exchange Online Forged tokens read mailboxes in 22 organizations Mail access visible only in a premium audit log Token validation that accepted a consumer key
Physical breach, Y-12 Three trespassers crossed three fences Alarms not promptly assessed, a camera out for about six months Repairs deferred behind compensatory measures

An analysis in this format shows that structure directly. A reader sees the quantity move, sees what people could see, and sees each barrier's state at the moment it mattered.

Three views on one clock

The system stocks and flows gate One case a request or saga entered checked read the bad value failed The cube every fact, sliced one play bar, one incident clock
Three views of one record. The play bar sets the time of all three, and a selection in any one slices the others.

Every analysis has the same three views, and a reader moves between them without losing their place.

  1. The system is the overview: stocks, flows, processes, signals and barriers, animated from the record. It answers what happened to the whole.
  2. One case follows a single request, batch, shift, token, person or saga across the system in Observe. It answers what this one saw and did.
  3. The cube holds every fact by time, place, component, barrier, version and any other dimension. It answers how general is this, and where does it stop.

The usual path runs overview, case, cube and back. A surge in the overview prompts the question of who was caught in it. A single case shows the mechanism. The cube then tests whether that mechanism explains all the failures or only some of them. A slice that breaks the pattern is the next question, and it opens back on the overview at that moment.

One play bar sets the time of all three views. One selection slices all three: choosing a flow filters the cube and lists the cases that crossed it, and choosing a cube cell highlights its place in the system.

The incident record

The analysis is one typed record. The page, the deck and the player are views of it, and none of them holds a number of its own.

Part Holds Example across domains
Model Stocks, flows, processes, signals, boundaries Tower and feed line; proxy fleet and config file; mailboxes and tokens; zones and patrols
Series Each element's value over incident time, actual and believed True level and indicated level
Timeline Events with time, actor role, source and grade "Relief valves open"
Cases Individual paths through the model, as spans One request; one forged token; one trespasser
Barriers What should have held, its design, last proof and observed state High-level alarm; size limit; token check; fixed camera
Facts Measures by dimension members, with unit and rollup Errors by proxy, version and minute
Claims What the analysis asserts, with evidence and tests "The file passing 200 features caused the panic"
Open questions What the evidence cannot settle, and what would settle it How the signing key was obtained
Actions What changes, which barrier it affects, how it is proven A check that fails on the original file

The schema holds no domain words. A refinery says tower and a software firm says proxy through the record's labels and its skin, so a method, a check or a view written once serves all of them.

What was true and what people could see

170 ft 0 ft true level: 158 ft indicated: 7.9 ft night fill 11:16 11:50 12:42 1:04
Texas City, the morning of the startup. The true level climbs while the indicated level falls. Five logged moments from the CSB timeline, evenly spaced.
:view: system
:skin: rca-console
:at: 7

Play the startup. The true level fills the tower while the indicated level stays near eight feet.

The most useful line in most analyses is the gap between the actual state and the believed state. Every key quantity is therefore recorded twice: what was true, and what the people acting could see at that moment.

At Texas City the two lines diverge for hours. At 1:04 p.m. the tower held liquid to 158 feet while the transmitter read 7.9 feet. Each action the operators took is reasonable against the dashed line and dangerous against the solid one.

Keeping both series changes the questions an analysis asks. Why did they do that? gives way to what did the display show, and why did it show that? This is how the format stays blameless without becoming vague: the analysis explains each decision from the information available when it was made, then follows the gap to the instrument, procedure or incentive that produced it.

Belief is a series in every domain. For a security team it is the alert queue and the assessed severity. For a software team it is the dashboard and the working theory on the incident call. For a plant it is the board display and the shift log.

The overview: stocks and flows

The overview draws the system in the flow vocabulary. A stock is anything that accumulates: liquid in a vessel, requests in a queue, unpatched cameras in a repair backlog, valid stolen credentials. A flow is a rate between stocks. A process is a station with a state, a signal is information steering another element, and a barrier is a process whose job is to stop a flow.

Drawing an incident this way reveals dynamics a timeline hides:

The model states its grade. A model calibrated by replaying the record is simulated. A sketch that explains a mechanism without calibration is illustrative, and it is labelled so on every frame.

One case: a request or a saga in Observe

From any stock, flow or moment, a reader opens one case that passed through it. Observe shows that case step by step: the source of each step's behavior, the input it saw, the answer it gave, and the state before and after.

:view: trace
:skin: rca-console
:at: 32

One real checkout from the simulation: charged through a healthy proxy, then its confirmation page reached a proxy holding the bad file.

A case is whatever single thing carries the story in that domain:

Domain A case is A step is
Software A request or a deploy saga A span across a service
Process plant A batch, a shift or a startup sequence A procedure step, valve move or alarm
Cyber security A token, session or attacker path An authentication, access or lateral move
Physical security A person or vehicle's path; an alarm's handling A barrier crossed, a detection, a dispatch

A saga is the natural case for work spanning several authorities: each step commits on its own, and the view shows which steps landed, which compensated and which were left in an unknown state.

Cases come in pairs when the record allows it. A failing request beside a succeeding one, or the startup that went wrong beside an earlier one that did not, isolates the difference that mattered. Spans from foreign systems join the same timeline by trace context, so a system with no Kitlark in it reads the same way.

The cube: slice, dice and drill

Every fact in the record sits in a cube whose dimensions are members of the system model. The cube is how an analysis tests its own story.

:view: cube
:skin: rca-console
:at: 6

Every recorded fact of the Y-12 breach. Move the head to grow the cube, and change the rows and columns to re-slice it.

Four questions recur in every domain:

  1. Is it everywhere? A failure confined to one member points at that member.
  2. What changed first? Ordering members by onset separates cause from spread.
  3. What does not fit? The exceptions usually carry the most information. On Cloudflare's older proxy, customers whose rules did not use the bot score saw no impact, which narrows the mechanism.
  4. Was this new? The same slice over earlier periods shows precursors. The CSB counted eight serious releases from the same unit's blowdown system in the years before the Texas City explosion.

Every number displayed is a view of these facts. Opening it lists the facts, their sources and their evidence grades.

The method

An analysis moves through eight stages. Each one has an exit condition, so the work can be reviewed and resumed at any point.

Stage Question Exit condition
1. Frame What was harmed, and what are the boundaries of this analysis? Harm, scope and hazard are stated
2. Reconstruct What happened, in order? Every event has a time, a source and a grade
3. Model What is the system, as stocks, flows and barriers? The model reproduces the record within a stated error, or is labelled illustrative
4. Trace What did individual cases experience? At least one representative case, and a contrast where the record allows
5. Slice How far does the mechanism explain the facts? Every major slice is explained or held as an open question
6. Explain Why did this make sense at the time, and what let it happen? Barriers and contributing conditions are stated at each level
7. Test Would changing this condition have changed the outcome? Each causal claim has a counterfactual or a stated reason it cannot have one
8. Act What changes, and how is it proven? Each action has a barrier, an owner role and a check

The stages loop. A slice that the mechanism cannot explain returns the analysis to reconstruction or to the model. A finished analysis records those loops, because the theories that were tested and dropped are part of what the next investigator needs.

Causes, barriers and levels

The format does not stop at one root cause. It records a graph of contributing conditions and asks about each barrier on the hazard's path.

For each barrier the record states what it protects, how it was designed to work, when it was last proven, and what it did: held, degraded, bypassed, failed or absent. The last proof is often the finding. At Y-12, periodic tests confirmed that a device supplied a feed without confirming that its features worked, so a failed feature stayed invisible until it mattered.

Each condition is placed at a level:

Level Asks Y-12 example
Physical and technical What failed or behaved unexpectedly? A camera covering the area was out for about six months
Procedure and practice What did normal work look like? A local alarm was silenced without a visual check
Organization What did priorities and resources reward? Camera repairs were rated so that they could be delayed
Governance and oversight Who could see this and act on it? Federal officials saw no way to intervene while compensatory measures were in place

These views come from established practice in barrier analysis, AcciMap and systems-theoretic methods, which each reveal different causes. The record holds enough structure to draw any of them.

An analysis names roles and conditions. A person's action is an event to explain, never a cause to stop at.

Evidence and open questions

Every event, number, claim and frame carries one of five grades:

Grade Means
Observed Read directly from a log, instrument, recording or artifact
Reported Stated by a witness, party or published investigation
Reconstructed Derived from observed or reported facts by stated reasoning
Simulated Produced by a model calibrated against the record
Illustrative Drawn to explain a mechanism, carrying no evidential weight

A roll-up takes the weakest grade of its inputs, and the player shows the grade on everything it draws.

What the evidence cannot settle stays visible as an open question, with what would settle it. The Cyber Safety Review Board's treatment of the Exchange Online intrusion is the model: the forged tokens and the validation flaw are established, while how the actor obtained the 2016 signing key is unresolved, and Microsoft corrected its earlier leading theory. A record in this format carries that as an open question, and no claim may rest on it as fact.

Testing a claim

A causal claim is a prediction about a different history. When the record has a calibrated model, the claim runs as a what-if: replay the record to the moment before the condition, change that condition, and compare the two runs on one clock.

The result is stored on the claim, and the player can show both runs side by side. The comparison also sizes each condition. Some would have prevented the incident, some would have shortened it, and some would have made no difference despite looking important in the narrative.

Where no model can be calibrated, the claim says so and rests on its evidence. A counterfactual is simulated evidence, and it is labelled that way.

From finding to verified action

Each action names the condition it removes or the barrier it strengthens. It carries a check that fails on the original conditions and passes after the change, and it closes on that evidence.

Actions are ranked by the strength of the barrier they create. Removing the hazard ranks above an engineered limit, which ranks above an alarm, which ranks above a procedure, which ranks above training.

Observe hands findings back to the improvement cycle. A finding files its defect or change with the evidence attached, and Proving Ground tracks the measure the action was meant to move. If the same signature returns, the analysis reopens with the new occurrence in its record.

The embedded player

The player is Observe's view of an incident record, and it mounts wherever the record is discussed. On a page it plays on its own bar. In a deck, the scene's beat moves it and the narrator speaks the moment on screen. In an application it is an ordinary component.

It has the three views, one Ontolo play bar and a skin menu. The bar carries the incident's events as marks, and its speed control paces long quiet stretches without hiding them. A reader can pause a deck, open a case, change the slice and continue from the same beat.

Skins are data. A kitsoki.skin/v1 record decides whether a stock is drawn as a vessel on a P&ID, a queue in a service map, a zone on a site plan or a plain box in a business diagram. Switching skin keeps the time, selection, case and slice, since the elements and their values are the record's own.

Four worked cases

Each case below is a public investigation, read through the same structure.

Refinery upset: BP Texas City

During a startup, a raffinate splitter tower was filled past its indicator's range. The transmitter's reading fell as the true level rose, and at 1:14 p.m. liquid reached the overhead line and the relief valves opened. Flammable liquid overfilled the blowdown drum and stack, and at 1:20:04 p.m. the vapor cloud ignited, killing 15 people and injuring 180. The stock is the tower inventory, the belief is the board reading, and the case is the startup sequence across two shifts.

Software outage: Cloudflare

A database permission change at 11:05 made a query return duplicate rows, which pushed a generated feature file past a preallocated limit of 200. Proxies panicked on the bad file from 11:28. As the cluster's update rolled out, good and bad files alternated every five minutes, and the failure looked like an attack. Propagation stopped at 14:24, core traffic recovered by 14:30, and all services were normal at 17:06. The flow is the feature file, the belief is the attack theory, and the case is one request through a proxy.

Cyber intrusion: Exchange Online

An actor used a 2016 consumer signing key to forge tokens that a validation flaw accepted for enterprise mail. From at least May 15, 2023 it read the mailboxes of 22 organizations and 503 related personal accounts, including about 60,000 State Department emails. State detected it on June 15 with a custom rule on a log available only with premium licensing. Microsoft invalidated the key on June 24. The stock is the set of accessible mailboxes, the barrier is token validation, and the open question is how the key was obtained.

:view: system
:skin: rca-console
:at: 1

The first detection: 22 organizations accessed, one victim identified. When each was first accessed stays an open question.

Physical security: Y-12

Three trespassers cut three fences around a highly enriched uranium facility and defaced the building without being interrupted by the security measures in place. A camera covering the area had been out for about six months, repair priorities allowed the delay, tests proved a feed and missed a failed feature, and the site relied too heavily on compensatory measures. The stock is the repair backlog, the belief is the alarm picture, and the case is the path across each barrier and the response to each alarm.

The document and the deck

The page and the deck are two projections of one analysis. The page is the full written account, with every table, source and qualification. The deck is the spoken path through it, built so a room can follow the mechanism in minutes. They link to each other at the same section and read every number from the same record.

The deck follows a standard arc:

Scene Shows View
The harm What happened to whom, plainly Title and scale
The system How it normally works Overview
The drift What had quietly accumulated Overview, long time range
The day The incident at speed Overview with events
The gap What was true and what people saw Actual and believed
One case One path through the failure Observe
The slice How far the mechanism reaches Cube
The barriers What should have held Barrier states
The test What would have changed the outcome Counterfactual
The change What is different, and how it is proven Actions and checks
The evidence What is known, inferred and still open Grades

Every scene that shows the system is the live player at a position, so a presenter can stop and answer a question from the record itself.

A real run of the mechanism

The Cloudflare case runs as a seeded discrete-event simulation on the Astronomy Shop, the OpenTelemetry Demo. A permission change reaches 12 database nodes one at a time. A generator queries one node every five minutes. A file from an updated node holds 240 features against a limit of 200. Each of 24 proxies loads what it is sent, and each request meets whatever its proxy holds.

Errors, flapping, saturation and stranded checkouts follow from that mechanism, and the same seed gives the same run. Agreement with the published timeline carries little weight, because the run was set up to land near it:

Time Published This run How to read it
First customer errors 11:28 11:26 tuned to land here
Incident call 11:35 11:35 given to the run
Bypass for KV and Access 13:05 13:05 given to the run
Bad file stopped 14:24 14:24 given to the run
Main impact resolved 14:30 14:33 follows the given fix time
All services normal 17:06 17:06 given to the run

The simulation is a tool for reasoning about mechanism and response. It explains how this failure behaves and compares responses on identical traffic. The shop's traffic, order value and fleet are modelled, so it estimates no figure for Cloudflare itself.

What the SRE sees

:view: sre
:skin: rca-console
:at: 150

Golden signals, SLO burn and the failing slice. Open any exemplar to follow one request.

An SRE starts from symptoms. Errors arrive in waves five minutes apart, then hold. In this run a two-window burn alert at 14.4 times budget pages within a minute of the first sustained errors, and the outage spends about 317% of the month's error budget.

The failing slice separates two failures that look alike on an error graph. FL2 proxies return 5xx. FL proxies keep serving with a bot score of zero, which blocks real customers on sites with bot rules. Saturation shows the third effect: error enrichment raises proxy CPU and slows the requests that still succeed.

What DevOps sees

:view: devops
:skin: rca-console
:at: 210

Every generated file, the blast radius by region and engine, and each guardrail run on the same traffic.

DevOps starts from what changed. The strip of generated files shows the alternation that made the outage look like an attack, and the point where every node produces the bad file. The blast radius is even across regions and sharply different by proxy engine, which points at a shared artifact and away from a regional fault.

Each guardrail runs against the same requests, and each states what it rests on. A kill switch at 11:50 avoids 89% to 94% of failed requests across the assumptions swept. Finding the file an hour sooner avoids 31% to 48%. Two results are properties of the model: rejecting the oversized file removes the outage because the model assumes a proxy keeps its last good file, and capping error enrichment leaves failures unchanged because the model gives enrichment a latency effect only.

What the VP of Operations sees

:view: vp
:skin: rca-console
:at: 369

Availability, time to mitigate, cost and what each change is worth, with ranges across seeds and assumptions.

Operations leadership needs the cost and the decision. In the modelled shop the outage takes availability to about 69% over the six-hour window. About 4,380 checkouts fail and about 1,680 customers are charged without seeing a confirmation, and those customers need contact.

Modelled revenue at risk is $252,000 at the median. Random variation alone moves it between $194,000 and $304,000. Changing one assumption at a time moves it between $126,000 and $505,000, so the decision rests on the ranking and the size of the range, and a single figure carries little weight. The shop's assumptions are 30 requests a second, 3% checkouts, a $96 order and 60% of failed buyers not returning, and a team sets its own.

How far to trust an analysis

:view: evidence
:skin: rca-console
:at: 7

The evidence card for Texas City: its model, every conclusion with its strength, and the held-out test.

Every incident answers one evidence card, whatever its domain. The card names the kind of model behind the analysis, gives each conclusion a strength, and states its limits.

Kind of model What it can support Case What would raise it
Recorded telemetry A model tested against measured traces or sensor history it was not fitted to
Held-out test A model built from reported inputs and compared with reported results it never saw Texas City The plant historian export for the day
Calibrated simulation Reasoning about mechanism and response, with agreement on the timeline carrying little weight Cloudflare Minute-level error and file-generation records, or a recorded fault drill
Corroborated reconstruction The investigated sequence, with a central fact confirmed by an independent publisher Exchange Online, Y-12 Per-mailbox access logs; the alarm station and dispatch logs
Evidence reconstruction The sequence and barriers as investigated, with no what-if or cost figure

Every card states why it stops at its level and what evidence would raise it. A card with no stated ceiling is refused.

Conclusions carry one of five strengths: established by the investigation, tested on held-out evidence, simulated, following from an assumption, or open. A card whose claims outrun its evidence is refused: a held-out claim with no test, a claim with no basis, a card with no stated limits, or a reconstruction that reports a model result.

The Texas City test

The tower model takes only reported inputs: the tower's volume and height, the 20,000 bpd feed, the outflow times and the Appendix G ratio of hot to cold level. The four true levels in the report are held out and compared at the end. A second test bounds when reported relief flow overflows the blowdown stack, between 1:16:59 and 1:18:43, and the report's release start of 1:18:30 falls inside.

Time Investigation Predicted Transmitter
11:16 67 ft 70 ft 8.65 ft
11:50 98 ft 94.8 ft 8.4 ft
12:42 140 ft 134.6 ft 8 ft
1:04 158 ft 149.3 ft 7.9 ft

The prediction error is 5.6 ft RMSE, against 16.1 ft with no thermal expansion and 113.3 ft for what the transmitter showed. The model peaks at 149.4 ft of 170, so mass balance and expansion alone leave the tower short of overflowing, in agreement with the report's finding that vapor holdup displaced the liquid. The report's levels are themselves reconstructed from plant data, so this test measures agreement with the investigation.

Reviewing an analysis

A reviewer works through these questions before an analysis is published.

Sources

The worked cases draw on these public investigations and on the systems-safety literature.

← All of Learn