Section 19.2.12

Fault budget and compositional fault models

Definition

A fault budget is the part of a fault model §1.30, the stated list of failures a design must survive, that limits how many faults may happen and which of them may happen together in one run. A compositional fault model states, besides each kind of fault, how faults combine: two at once, one during recovery from another, or several from one common cause. Results for single faults do not combine by themselves: surviving each fault alone does not show surviving them together.

Where it fits

Main entry: Fault model (§1.30).

The Fault model entry lists the kinds of failure and the questions a fault model answers; the fault budget answers “how many and how often”. A guarantee covers exactly the runs the budget admits and says nothing about the others.

Example. A device keeps a configuration record in flash memory §6.6 as two complete copies, AA and BB, each with a CRC §4.32 (cyclic redundancy check), a check value computed from the copy’s bytes that reveals accidental damage. With each copy good or corrupt there are 2×2=42 \times 2 = 4 cases. The budget “at most one copy is corrupt” admits 3 of them, and each leaves a good copy. In the fourth, both copies are corrupt; no design that relies on these copies alone can recover the record, and the most it can do is detect the loss and fail closed §1.13, refusing to act on the record.

Faults survived one at a time can still defeat the design together. Flash memory is erased in whole sectors; suppose both copies share one sector. To repair a corrupt copy, the device holds the good copy in RAM, erases the sector and writes both copies back. Corruption alone is survived, because the repair finishes. A reset alone is survived, because outside a repair nothing is erased. But a reset that stops a repair between the erase and the rewrite leaves both copies blank and loses the good copy held in RAM. Whether that combination lies inside the budget must be written down before anyone claims tolerance of both corruption and resets.

A budget also names what is assumed never to be corrupt, such as a stored counter for anti-rollback §8.26, the protection that refuses versions older than the newest accepted one. Corruption of that counter is a single fault, yet it lies outside a budget that speaks only of the copies. And two copies do not fail independently just because there are two: copies in one sector, behind one flash controller or written by one faulty routine can fail together from one cause.

Limits and common mistakes

A fault budget limits which runs a claim covers; it is not a probability, and a reliability figure needs a separate estimate of how often runs exceed the budget. Fault injection §10.28 that damages one copy per test exercises single faults only; combinations need their own tests. A CRC detects accidental damage, not deliberate change, since anyone can recompute it.

Questions answered

Does surviving one corrupt record imply surviving arbitrary corrupt flash?

No. Take a design that keeps two copies of each record. Surviving one corrupt record shows only that the design survives the runs its fault budget admits, the stated limit on how many faults happen and which happen together; here, at most one corrupt copy. Arbitrary corruption of flash memory includes runs outside that budget: both copies corrupt, which leaves nothing to recover from; corruption of data the design trusts, such as a stored anti-rollback counter; and corruption combined with a reset that stops a repair partway, which can destroy the last good copy.

Against arbitrary corruption, no design that relies only on the flash contents can always recover, because the information may be gone; the strongest achievable claim is that the device detects damaged data and refuses to use it. A correct single-record claim stays true within its budget, but extending it needs a new argument for every added fault and every combination.

Related entries: Crash consistency (§8.4), Fault injection (§10.28), Reset injection (§8.37), Redundant copies, sequence floors, and split-brain records (§19.3.6).