STAMP Primer SeriesSTAMP PrimerModule 1 of 2Learning From AccidentsLesson 1 of 6Finding Problems EarlyLesson 1 of 5Finding Problems Early, With SecurityLesson 1 of 6The Whole SeriesLesson 1 of 10

STAMP Primer

Why losses happen in complex systems, including the harmful interactions between parts that each work as designed.

Section 1.1 · What is STAMP?

What is STAMP?

Behind many accidents, outages, and security incidents are decisions that made sense at the time. A pilot, an operator, an automated system, or an AI acted on a belief about the system that turned out to be wrong. Often every component worked as designed. The decision-maker was fooled by feedback that was missing, late, or misleading, or by a misunderstanding between people and automation about who was doing what.

STAMP (System-Theoretic Accident Model and Processes) is a model of how accidents and other losses happen, based on systems theory rather than reliability theory. Professor Nancy Leveson of MIT created STAMP and introduced it in a 2004 paper. STAMP views losses in terms of controls and decisions. It treats every decision-maker as a controller that decides what to do based on its beliefs about the system, and updates those beliefs from the feedback it receives. That one idea lets you analyze decisions made by humans, automation, and AI in the same terms, and especially the interactions between them. The model is easy to sketch and intuitive to reason about, and the methods built on it tend to uncover hidden vulnerabilities in real systems.

What STAMP-Based Methods Help You Do

  • Find problems in a design, or in how an organization works, before they lead to a loss (STPA)
  • Find security vulnerabilities before they lead to an incident (STPA-Sec)
  • Understand a complex loss after it happens, including the systemic factors that contributed (CAST)

Safety is a feedback control problem.

The central insight of STAMP: losses happen when safety constraints on the system’s behavior aren’t adequately enforced through its controls and feedback.

Accident Models

Safety in engineering and operations is about preventing losses, such as loss of life, harm to patients, loss of a mission, lost production, a service outage, or a data breach. To prevent losses, assumptions are made about what causes losses and how those causes combine and affect each other. An accident model describes the kinds of assumptions that are often made and enables them to be recognized and challenged. Despite the name, it applies to any kind of loss. All methods for finding and preventing losses and their causes are based on an accident model of some kind, although the model and its assumptions are often not documented. When teams understand the model behind a method, they can see which kinds of causes it will find and which it will miss. STAMP is a new type of accident model. It gives a different view of how losses happen, which helps teams quickly uncover causes and vulnerabilities that often get missed.

Traditional methods like FMEA, Fault Tree Analysis, HAZOP, and Functional Hazard Assessment (FHA) follow the chain-of-events model, where one event leads to the next. These methods focus on failures, which are defined as deviations from required or intended behavior. The failures may be in components or in functions, such as a loss of function, partial loss of function, or malfunction. These methods are designed to help find ways to prevent failures or reduce their effects when they happen, but losses can still occur in other ways. Safety must also consider non-failure causes like whether the intended functions are safe as defined and whether the operating context matches the assumptions that were made.

Example: Functional Decomposition

Functional decomposition is common in engineering. Engineers start with a known function at the top, such as Function A, and break it into lower-level functions that together carry out Function A. The lower-level functions can be broken down again, as many times as needed.

Function AFunction A.1Function A.2Function A.3

Functional failures propagate upward. Methods such as FHA and functional FMEA identify how functional failures propagate to cause a failure in the function above. It’s the same chain-of-events model, expressed in terms of functional failures.

What assumptions are made? Functional decomposition assumes that a failure of the top-level function can only be caused by one or more failures of lower-level functions. The model also assumes the reverse: if the lower-level functions don’t fail, the top-level function is achieved.

In functional decomposition, a function is defined as intended behavior, so functions are always planned and expected. It is assumed they can always be broken down into lower-level functions that are also planned and expected. The model doesn’t attempt to capture new, emergent functions that may arise from the interactions of the lower-level functions.

Hard to Capture with Failure-Based Methods

  • Behavior that works exactly as designed, but is unsafe in the full context
  • Necessary functions that were never identified or designed in
  • How software and automation decide what to do, and what could cause unsafe decisions
  • How people decide what to do, and why an unsafe action might make sense to them at the time
  • Functions that combine into a new behavior, at the level above, that nobody designed or intended
  • Feedback loops, where an effect comes back around and changes its own cause (circular causality)

Chain-of-Events Model

123456
  1. 1Brake hose cracks
  2. 2Brake fluid leaks
  3. 3Brake pressure drops
  4. 4Car can’t stop in time
  5. 5Collision
  6. 6People injured, cars damaged
The traditional accident model: each event leads to the next, ending in a loss.

Software, automation, and now AI make these gaps more important than ever. Many recent accidents and losses have been caused when nothing failed, but the parts and functions worked as designed and combined in ways nobody planned. Problems like these tend to stay hidden until something goes wrong. STAMP, and the methods built on it, were developed to uncover these problems before a loss occurs.

History of System Safety Engineering

  1. 1920s–1940s

    Mechanical Systems

    Assumed cause: human error

  2. 1940s–1970s

    Electromechanical Systems

    Assumed cause: component failures and human errors

  3. 1980s–today

    Software and Computer Control

  4. 2020s–today

    AI-Enabled Systems and Operations

Main challengesWorkers injured by machines in factories, mines, and railroadsHeinrich (1931) attributed 88% of industrial accidents to unsafe acts by workers.

Main challengesFailures of known functions and components in missiles, aircraft, and chemical and nuclear plants

Main challengesUnsafe interactions among software, automation, and people, even when every component works as designed

Main challengesAI that makes or supports decisions, learns its behavior from data, and is supervised by people

Created for these challengesMachine guardsTrainingInspections

Created for these challengesFMEAFTAETAHAZOP

Created for these challengesSTPACAST

Every Model Leaves Something Out

“Essentially, all models are wrong, but some are useful.” — George Box

A model is like a lens: it brings some parts of the system into focus and leaves others blurred. A problem that one model hides may show up in another. In STAMP, systems are modeled as a control structure. Each level in the control structure enforces constraints on the levels below. Accidents and losses occur when the necessary constraints are inadequately enforced.

Control Structure

Shows who controls what, the decisions each controller makes, and the feedback those decisions rely on. Used in STAMP, STPA, and CAST.

Control, AuthorityEmergent behaviorController AController BController CControlled ProcessesControl actionsFeedback

A control structure is based on systems theory. Controllers at each level impose constraints on the levels below through control actions, and they may receive feedback or other information to inform decisions.

Other models, used by other methods:

  • Piping and Instrumentation Diagram
  • Reliability Block Diagram
  • Functional Decomposition
  • Task Analysis
  • Markov Model

Like every model, a control structure focuses on some things and leaves other aspects out. A control structure shows what drives decisions and the feedback loops around them, and leaves out physical layout and form. Teams who analyze a control structure can find problems that are hard to see in a piping diagram or a reliability block diagram.

STPA is most useful for systems with software, people, or both, where interactions can be complex and unsafe decisions can be made even when every component of the system is trying to do its job.

Where STPA Helps Most

  • New and emerging technology, such as self-driving cars, autonomous aircraft, and reusable spacecraft.
  • Organizations, where people balance safety against schedules, budgets, and other goals, often with incomplete information about the risks. System safety teams seldom analyze organizations, because failure-based methods don’t extend easily to them.
  • Problems that only show up when a team looks at two disciplines together, such as automation and human factors. In practice, separate teams working on each discipline often miss these problems.
  • Maintenance, made up of human control loops that failure-based methods often leave out