STPA[VisualPro Tech Brief] No Component Failed, Yet the Accident Happened: Emergent Behavior in Integrated Controllers and STPA
01Summary
02Every component worked to its specification
In December 1999, a Mars polar lander lost contact during its landing sequence and was never heard from again. The investigation report issued the following year stated that the cause could not be determined with certainty because there was no telemetry from the descent, and summarized the most probable cause as follows.
- When the landing legs deploy, the touchdown sensors on the legs produce a momentary signal. This was a known characteristic of the sensors, confirmed in testing.
- The software took this signal as an indication of touchdown and stored it.
- When the touchdown sensing logic was enabled at an altitude of 40 m, the software read the stored indication and shut down the descent engines.
The sensors produced the signal their design produces, and the software shut down the engines as its requirements were written. The system requirements said not to use the touchdown sensor data before the lander reached an altitude of 40 m. This was meant to guard against the signal generated during leg deployment as well, but it did not name that signal, and it was not carried into the software requirements. The report also pointed to the system testing that did not catch this combination. Safety engineering textbooks often cite this accident as an example of a component interaction accident.
In this article, a failure means that an element does not meet its own specification. When the specification is missing or wrong, the element still met its specification, so we do not call that a failure. Functional safety standards treat such requirement defects as systematic faults and call for reducing them through requirements verification and safety analysis. This article deals with the next step: what to use to find the missing requirement.
03Accidents come from emergent behavior
Emergent behavior is behavior that no single component has and that appears at the system level when components interact. Safety is that kind of property, so you cannot say whether a valve is safe by looking at the valve alone. You can only answer once you know what system it is in and what commands it receives.
Professor Nancy Leveson of MIT formalized this view as the STAMP accident model, and STPA is the analysis method derived from that model. Automotive standards also address hazards that arise without failures, and they mention STPA as one of the available methods.
| Document | How it addresses hazards that arise without failures |
|---|---|
| ISO 21448:2022 (SOTIF) | A standard for hazards that come not from failures but from insufficient specification or performance limitations of the intended functionality, and from reasonably foreseeable misuse. STPA is introduced in an annex |
| ISO/DIS 26262 third-edition draft, Part 9 | Names three origins of the causes that qualitative safety analysis is to identify: the element itself, its interaction with other elements, and its usage (Clause 8.4.9). Includes STPA in the list of example qualitative analysis methods (Clause 8.2). It does not require STPA |
| SAE J3187 | A document of recommended practices for applying STPA. Issued in 2022 for automotive systems, and widened to all industries in the 2023 revision |
04Why they are harder to find in an integrated controller
To be clear up front: this section is not based on confirmed accidents in integrated controllers. It is reasoning from the architecture.
Interactions between functions existed when each function had its own controller, and overlapping requests were arbitrated then too. What changes in an integrated controller is where the interactions take place. Information that used to travel as messages on a communication bus now passes through software interfaces inside one controller, and it is no longer visible from outside the controller. The four points below apply whether the integrated controller handles driving, charging or power.
Whether it is braking or charging, several functions send requests to one actuator. Arbitration logic that decides which request to follow when they overlap is implemented inside the controller, and that logic effectively becomes one more controller.
Estimates such as vehicle speed, battery temperature and the positions of surrounding objects are computed once and used by several functions. If an estimate differs from reality, every function that uses it is wrong in the same direction.
Each function has modes such as on, off, standby and limited, and the integrated controller operates within their combinations. Each function may pass its own tests while a particular combination is in nobody's test scope.
When different teams or suppliers build the functions, each team is responsible only for the requirements of its own function. Problems between functions tend to be left without an owner.
With n functions there are at most n(n-1)/2 pairs of functions. That is at most 45 for 10 functions and at most 190 for 20. Not every pair actually interacts, but you only know which ones do by examining them.
Here is an example assumed for explanation. It is not a real design. Take an integrated controller that handles charging and has two functions.
- Function A (charge planning) requests charging current according to the plan. Its requirements were written on the assumption that Function B lowers the current when the temperature is high, so it does not check the temperature.
- Function B (thermal protection) requests a lower current when the battery temperature is high. When its requirements were written, however, heat was considered a problem only in fast charging, so this behavior was limited to fast charging.
During fast charging there is no problem, because Function B lowers the current when the temperature rises. When the temperature rises in a charging mode other than fast charging, things are different. Function B stays in standby as its requirements say, and Function A never checked the temperature in the first place, so nothing lowers the current. Nothing failed, and both functions met their own requirements. No requirement said who is responsible for temperature when the mode is not fast charging.
It is no different outside charging. Wherever one function's requirements were written on an assumption about another function's behavior, as when two functions take turns requesting braking force, the same problem can arise.
It is well known that a hardware failure of an integrated controller affects several functions together, and dependent failure analysis (DFA) and FMEDA cover that. This article focuses on problems that arise even though the hardware and the software all work to their requirements.
05What existing safety analyses ask and do not ask
Each method below covers its own scope well. The comparison here is from one viewpoint only: interactions between functions in an integrated controller.
| Method | What it asks | What it tends to miss from this viewpoint |
|---|---|---|
| FMEA | What is the effect if the function of the element under analysis fails? Failure types include not only loss of function but also unintended function and partial, intermittent and delayed function | The unit of analysis is the function of one element. In which mode of another function this function's normal output becomes hazardous is something the analyst has to find and enter |
| FTA | Which combinations of causes lead to this event, and with what probability? | Normal behavior can be entered as an event. But the analyst has to know in advance which combination of normal behaviors is hazardous before it can go into the fault tree |
| Dependent failure analysis (DFA) | Do elements assumed to be independent fail together through a common cause or a cascade? | Cases where the requests of functions conflict while every element works to its specification |
| HAZOP | What are the causes and consequences of deviations from the design intent? | Guide words can address interactions. There is no separate step that examines, as a structure, what the controller believed when it issued the command |
| STPA | In which context does which control action become hazardous, and why would that control action be issued? | Failure rates and hardware metrics. It produces many scenarios, which have to be screened, and scenarios are missed if the control structure is drawn wrong |
FMEA also has tools that address interactions. The boundary diagram shows the interfaces between elements, and the P-diagram includes system interactions among its noise factors. Organizations that use these tools carefully do find interaction problems. But the FMEA procedure has no step that takes one control action and works through the combinations of modes and states in turn.
06What STPA looks at differently
STPA draws the system as a control structure: controllers, controlled processes, the control actions the controllers issue, and the feedback that returns. It then asks four questions about each control action. Is it hazardous if it is needed but not provided? If it is provided in a context where it should not be? If it is provided too early or too late? If it is applied too long or stopped too soon? A control action judged hazardous is an unsafe control action (UCA), and the loss scenarios explain how the UCA could come to be issued.
Because it does not assume a failure, STPA gives the same weight as failures to cases where the information a controller holds differs from reality, where the commands of two controllers conflict, and where feedback is late. Failures of sensors and actuators are also covered, as causes in the loss scenario step.
Applied to an integrated controller, the four points from the previous section become objects of analysis. The arbitration logic is drawn as a controller, the shared state estimates are handled as the controller's process model, and modes are used as the "in which context" condition of a UCA. Take the charging example above. Applying "needed but not provided" to Function B's control action "request current limit" leads you to examine modes other than fast charging as that context. In the loss scenarios you examine what Function A knows about the range in which Function B operates.
The screen above is a fictional training example of a single driver assistance function. It shows the higher-level controller sending requests to the steering controller and the speed controller and receiving feedback. When you analyze an integrated controller, you draw several functions in this diagram and add the arbitration logic as a controller.
FMEA and FTA are still needed when you perform STPA. Failure rates, hardware metrics and probability calculations are done with FMEDA and FTA. Most of the measures that come out of STPA are also familiar ones, such as an added requirement, a changed arbitration rule or a monitoring function. Adding STPA lets you find, by procedure and before an accident, where such measures are missing.
The amount of analysis is controlled by scope. Rather than analyzing the whole integrated controller at once, start with one group of functions that share one actuator, and the control structure fits on one page.
07How to do it with VisualPro STPA
VisualPro is a safety analysis tool made by VWAY, and it handles HARA, FMEA, FTA, STPA, CAST (accident causal analysis) and TARA in one project. Failure analysis and STPA are done in the same tool, so adding STPA does not add separate tools and files.
- You work in the order of the four steps of the MIT STPA Handbook: define the purpose of the analysis, model the control structure, identify unsafe control actions, and identify loss scenarios.
- Loss scenarios are created with guide words. Guide word sets can be built to match your organization's analysis criteria and imported.
- It provides an MCP (Model Context Protocol) connection. An AI that supports MCP reads the control structure of the project and creates and saves candidate loss scenarios, and a person checks them against the design documents and decides whether to adopt them.
VisualPro STPA is registered in the STAMP Tools list published by MIT PSASS. Registration in the list does not mean evaluation or endorsement by MIT. VisualPro received tool certification from SGS-TÜV Saar (ISO 26262, IEC 61508, IEC 62304) for version 1.0.
08What to check tomorrow
- Among the functions hosted on the integrated controller, group the ones that send commands to the same actuator. For each group, check whether the arbitration rule exists as a document and who is responsible for the requirements of that rule.
- List the estimates shared by several functions (vehicle speed, battery temperature, positions of surrounding objects and so on), and see whether there is a document that analyzes how each function behaves when the value differs from reality.
- Look through your current FMEA and FTA entries for ones whose cause is the normal output of another function or a combination of function modes. If there are hardly any, decide which analysis will cover such causes.
- Pick one group of functions that share an actuator and draw its control structure on one page. Mark the places where there is a line between functions but no owner.
- In the requirements documents, find the items where your function uses another function's output as an input, and the items where it uses the same actuator as another function. Check whether they state which mode of the other function was assumed.
09Closing
In the sequence that the Mars lander investigation report gave as the most probable cause, the sensors and the software each worked to their specification. The same was true of the two functions in the charging example assumed above. In both cases the hazard arose from the interaction between elements. Once functions move into one controller, that interaction is no longer visible from outside it.
Keep doing failure analysis, and add an analysis that examines by procedure the contexts in which control actions become hazardous, which is STPA. With VisualPro STPA you can do this work in the same project as your failure analysis.
10FAQ
Q1What is emergent behavior?
It is behavior that no single component has and that appears at the system level when components interact. In safety engineering the term is used for cases where every component behaved normally and the combination created a hazard. It is hard to find by analyzing components separately and shows up when you examine the control and feedback of the whole system.
Q2We already do FMEA and FTA well. Do we need STPA as well?
If your current analyses already find enough of the causes that come from mode combinations or from the normal output of other functions, it is not urgent. If you rely on the analyst's experience for that part, STPA is worth adding. STPA asks the same questions of every control action in turn, so fewer combinations are overlooked. STPA also needs a correctly drawn control structure to produce results, so people who know the system have to take part.
Q3If we perform STPA, can we do less FMEA or FTA?
No. Failure rates, hardware architectural metrics and probability calculations are done with FMEDA and FTA. STPA is used to find control actions that become hazardous in particular contexts and their causes, and it runs alongside failure analysis.
Q4Do systems other than integrated controllers need STPA?
It is useful for any system where controllers, people and software decisions are intertwined. In a system with few functions that are independent of each other, the benefit is comparatively small. The more the functions share resources and the more mode combinations there are, the stronger the case for STPA.
Q5Do the standards require STPA?
No. The ISO 26262 third-edition draft mentions STPA in its list of example qualitative analysis methods, and ISO 21448 introduces it in an annex. The third-edition draft does, however, require qualitative analysis to identify causes that originate in interactions between elements and in usage. Which method you use to meet that requirement is for the organization to decide.
References
- JPL Special Review Board, Report on the Loss of the Mars Polar Lander and Deep Space 2 Missions, 2000
- Nancy G. Leveson, Engineering a Safer World: Systems Thinking Applied to Safety, MIT Press, 2011
- ISO 21448:2022, Road vehicles — Safety of the intended functionality
- ISO/DIS 26262-9:2026 (Draft International Standard), Clauses 8.2 and 8.4.9
- SAE J3187, System Theoretic Process Analysis (STPA) Recommended Practices for Evaluations of Safety-Critical Systems in Any Industry (issued 2022, revised 2023)
- AIAG & VDA, FMEA Handbook, 2019
- VWAY Tech Brief, "STPA Mentioned in ISO 26262, and VisualPro Supporting All Safety Analyses," November 12, 2026
- Nancy G. Leveson, John P. Thomas, STPA Handbook, MIT, 2018 — psas.scripts.mit.edu
- MIT PSASS, STAMP Tools — psas.scripts.mit.edu/home/stamp-tools
The account of the Mars lander accident summarizes what the investigation report above gave as the most probable cause; the report itself states that the cause could not be determined with certainty because no telemetry was available. ISO/DIS 26262 is a Draft International Standard, not a published standard, so wording and clause numbers can change, and the descriptions of the standards are the author's unofficial summaries. The statements about integrated controllers are reasoning from general architecture and are not based on confirmed accident cases or on the design of any particular vehicle or manufacturer. The charging example is an assumption made for explanation. The driver assistance function in the screenshots is a fictional training example. The screenshots show the product's English interface as captured.

