Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

How STPA Helps Find Unknown Unknowns Before They Cost You Millions

Learn how STPA helps engineers uncover unsafe system interactions, hidden assumptions, and failure modes before they become costly outages.

How STPA Helps Find Unknown Unknowns Before They Cost You Millions

Complex systems often fail not due to a single broken component, but rather from the interactions between seemingly healthy parts. A retry mechanism may amplify load rather than aid recovery; an autoscaler might make decisions based on stale metrics; two automated systems could optimize for different local goals and inadvertently conflict in production. In such scenarios, there may be no obvious broken component or a clearly wrong decision made by an engineer. The issue lies in the gaps between the parts.

Most engineering teams excel at identifying known risks through architecture reviews, incident analyses, threat modeling exercises, and building dashboards and alerts. However, these practices share a common limitation: they primarily focus on risks that can be explicitly described. What about the unknown unknowns—expensive surprises hiding within system behavior and assumptions that were not documented?

Systems-Theoretic Process Analysis (STPA) addresses this gap. STPA treats systems as networks of control loops rather than collections of independent components. Rather than solely questioning "what could break and how," STPA examines what control actions could lead to undesirable outcomes if they are missing, incorrect, timetimed improperly, or maintained excessively.

This approach has proven effective in safety-critical industries like aviation, nuclear energy, and defense, where system failures can have severe consequences. In recent years, technology sectors have begun exploring the application of STPA to software engineering. For a deeper understanding of STPA's principles and methodology, refer to the STPA handbook.

In distributed systems, control loops are ubiquitous. Examples include deployment pipelines, incident response, and human operator actions. An autoscaler control loop, for instance, involves determining scaling actions based on CPU usage metrics. If usage exceeds a certain threshold, the system scales up, while usage below a specific level triggers scaling down. If the thresholds are not met, no action is taken.

STPA prompts a crucial question: "What control actions could result in loss if they are missing, incorrect, mistimed, or applied for too long?" This differs from traditional risk analysis, which primarily concerns itself with identifying potentially failing components. By focusing on the safety of control actions, STPA shifts the analysis towards when a valid control action might become unsafe.

Written by urgent.news from HackerNoon's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at hackernoon.com →

More in Tech

Responding to Exposed Secrets - An SRE's Incident Response Playbook

Responding to Exposed Secrets - An SRE's Incident Response Playbook Today, let's take a closer look at incident response playbooks: how to build one, tailor it for secret leaks, take actions, and…

  • SRE creates incident response playbook to manage unmanaged incidents
  • Tailored playbook addresses secret leak challenges
  • Specialized metrics and alerts detect anomalous patterns

Show DEV: Building Smartphone Specs API with .NET and Caddy

Mobile hardware specification APIs have long been messy and hard to integrate, largely due to incomplete and unnormalized data. Raw strings as specs are frustrating to use in program logic.

  • API solves messy mobile hardware spec data issues
  • Backend transforms parsing to clean JSON output
  • Supports deep filtering by URL parameters

More from Tuesday 4 August →