Section 10.41

Assurance case

Definition

An assurance case is a structured argument, supported by evidence, that a system has a stated property, such as safety or security, in a stated context of use. It links a top-level claim to narrower subclaims and each subclaim to its evidence, such as test results, analyses, proofs and reviews, and it records the assumptions each step needs. Part 2 of the international standard ISO/IEC/IEEE 15026 sets requirements for its structure and content [499]. An assurance case about safety is called a safety case.

The idea

A team claims that a controller answers every sensor event within 8 ms. The supporting material is scattered: a unit test §10.1 of the message parser passed, a timing tool computed a bound on the processing code’s run time, and a datasheet gives the radio’s transmit time. Each item may be true, yet none of them says whether together they establish the claim, or what was left out. Here, nothing covers the time an event waits before its handler starts to run.

An assurance case makes the reasoning visible. It writes the claim down exactly, splits it into smaller claims that together imply it, and attaches to each smaller claim the evidence that establishes it. As in a proof written out in full, every step names what it relies on, so a missing step can be found. Unlike a proof step, most evidence, such as a test or a measurement, gives confidence in a claim, not certainty.

How it works

The parts have standard names. Goal Structuring Notation (GSN), a widely used graphical notation, calls them:

The Claims, Arguments and Evidence (CAE) notation expresses the same structure with the three parts its name lists.

A case is built and checked in this order.

  1. State the top claim exactly: the property, the system and its version, and the context of use.

  2. Choose a strategy that splits the claim into subclaims, and state why the subclaims together imply it. Typical splits are by hazard (a situation that could lead to harm), by component, by requirement or by phase of a process.

  3. Repeat the split until each subclaim can be supported directly by evidence.

  4. Attach evidence to each lowest-level subclaim, and state what it establishes: which property, for which version, inputs and environment. Kinds of evidence are not interchangeable. A test covers the inputs it ran. A proof covers a model, and the system only as far as the model matches it. A review records a person’s judgment. A measurement gives observed values, not a bound.

  5. Write every assumption down, and either support it with evidence or carry it into the top claim as a stated limit.

  6. Challenge the case: look for subclaims without evidence, evidence about another property or version, evidence weaker than the claim’s wording, and assumptions nobody checked. Some methods also list defeaters, reasons that would make a claim false, and require evidence that rules each one out.

A traceability matrix is a simpler, related tool: a table with one row per requirement or claim, and columns naming the tests, analyses or reviews that address it. An empty row reveals a claim with no evidence. The table cannot show whether the evidence in a filled row suffices, or how the rows combine into the top claim; the argument of an assurance case records exactly that.

Worked example

The top claim C0 is: every sensor event is answered within 8 ms, on a stated board and firmware version, when events arrive at least 10 ms apart. The strategy splits the response time §9.32, from the event to the answer, into four successive phases, and this split implies C0 only if the phases cover the whole interval without overlap.

  1. C1, interrupt §6.11 handling: from the event until the interrupt handler §6.12 has finished. The interrupt handler is the routine that the processor runs when the sensor signals; this phase includes the wait before the handler starts, called interrupt latency, and the handler’s own run time.

  2. C2, waiting: from the end of the interrupt handler until the processing thread starts, which may happen only after threads of higher priority have run.

  3. C3, processing: parsing the message and computing the answer.

  4. C4, sending: transmitting the answer.

The evidence on offer: a worst-case execution time §9.33 (WCET) analysis, which computes an upper bound on how long the code itself can run, gives 5 ms for C3; the radio datasheet, confirmed by a measurement, gives 3 ms for C4; and a unit test of the parser passed. The bounds add up to 5+3=85 + 3 = 8 ms, exactly the budget, so the material looks complete.

Placing each item under the subclaim it supports shows the gaps. C1 and C2 have no evidence, so their time was silently taken as 0 ms. The parser unit test supports the correctness of C3’s result, not its duration. Suppose that further analysis bounds C1 at 0.2 ms, and that a schedulability §9.37 analysis, which computes how long a thread can be delayed by threads of higher priority, bounds C2 at 1.5 ms. The total is 0.2+1.5+5+3=9.70.2 + 1.5 + 5 + 3 = 9.7 ms, so C0 fails by 9.7−8=1.79.7 - 8 = 1.7 ms. The structure of the case exposed the failure; no single item did.

The bound on C2 also holds only if events arrive at least 10 ms apart, because an event that arrives while the previous one is still being handled waits for it. Unless evidence about the sensor supports that spacing, the spacing condition stays in C0 as a stated limit, and C0 must not be quoted without that condition.

Stated precisely

Write CC for a claim, C1,…,CnC_1, \dots, C_n for the subclaims that a strategy splits it into, and AA for the assumptions that the strategy uses. The strategy step is valid when C1∧C2∧…∧Cn∧A⇒C,C_1 \wedge C_2 \wedge \dots \wedge C_n \wedge A \Rightarrow C, where ∧\wedge means “and” and ⇒\Rightarrow means “implies”. In the example, let tit_i be the time spent in phase ii and bib_i its bound. The assumption AA is that the phases cover the response time without overlap, so the response time equals t1+t2+t3+t4t_1 + t_2 + t_3 + t_4; then ti≤bit_i \le b_i for every ii gives a response time of at most b1+b2+b3+b4b_1 + b_2 + b_3 + b_4.

The whole case supports its top claim when three conditions hold.

  1. Every strategy step is valid in the sense above.

  2. Every lowest-level subclaim is established by its evidence, for the same version, configuration and environment that the claim names.

  3. Every assumption is either supported by evidence or stated in the top claim as a limit.

Even then the case gives confidence, not certainty: the top claim is no more reliable than the weakest evidence and the least-checked assumption it rests on.

Limits and common mistakes

An assurance case is an argument, not a certificate. A certification authority may require one and judge it, but drawing the diagram establishes nothing by itself.

Authors tend to collect evidence for a claim and overlook evidence against it. A case that records no counter-evidence and no defeaters has usually not looked for any.

A filled checklist or traceability matrix shows that every listed item was addressed, not that the evidence suffices or that the list left nothing out. A hazard that nobody listed gets no subclaim, so no evidence is ever sought for it.

Evidence belongs to the version it examined; the incremental validation §10.42 entry explains how to decide which evidence still applies after a change. Reviewers of a case can share the author’s wrong picture of the system; the independent review §10.44 entry explains what makes a second check independent.

Questions answered

Which claim lacks evidence or relies on an unvalidated assumption?

In an assurance case, a structured argument that links a top claim to subclaims and evidence, a claim lacks evidence when no item of evidence is attached to it, or when the attached evidence establishes something else: a different property, a different version or configuration, or less than the claim’s wording, such as tests of some inputs offered for a claim about all inputs. A claim relies on an unvalidated assumption when the reasoning that supports it needs a statement that no evidence supports and that the top claim does not state as a limit.

To find such claims, walk the case upward from each lowest-level claim and ask which evidence is attached, whether it establishes this exact claim for this exact artifact, and which assumptions the step above needs. For example, if a claim that every event is answered within 8 ms rests on a 5 ms processing bound and a 3 ms sending bound, the subclaim about the time an event waits lacks evidence, because it was silently taken as 0 ms. If the waiting-time bound holds only for events at least 10 ms apart, and nothing supports that spacing, the claim relies on an unvalidated assumption. Close each gap with matching evidence, or state it in the top claim as a limit.

Related entries: Assumption versus guarantee (§1.36), Mechanism versus evidence (§1.37), Security claim scope (§1.45), Independent review (§10.44), Incremental validation (§10.42), Response time versus execution time (§9.32), Worst-case execution time (WCET) (§9.33). Further reading: [499].