Fault Scenarios

This page shows what happens across the whole machine when a fault occurs. Each scenario names the contracts that its steps rely on, and lists what is still open. Normal operation is in chapter 6.

The USB link to a Pod breaks while the Pod pours, and the end state is open. The Station fails the mix and sends an EmergencyStop to every Pod, but nobody has decided whether the Pod that lost its link ends its pour.

The link to a Pod breaks during a pour
Figure 1. The link to a Pod breaks during a pour

What does the machine do when the link to a Pod breaks during a pour, and what does the Pod do?

Contracts

  • IF-01, IF-01-R06: The Station notices a Pod that does not answer within a bounded time, and the other Pods and the UI are not stalled.

  • IF-01-R07: The Station can stop every pump and valve of a Pod at once, and it does so for every Pod.

  • IF-01-R11: A Pod should end a running pour on its own when the link breaks, which is open.

  • IF-07, IF-07-R03: A pulled or pinched cable never leaves a Pod pouring, which is open.

Open

  • Whether a Pod ends a running pour on its own when the USB link breaks, and who guarantees it, because the only known bound is the limit of 30 s for a pour (provisional, to be confirmed on the assembled machine) (IF-01-R11, IF-07-R03).

  • Which bounded time the Station needs to notice a silent Pod, and what it does with a Pod that stays silent and with the requests that are pending for it (IF-01-R06).

  • Whether the EmergencyStop reaches the Pod with the broken link, and what that Pod does when it does not (IF-01-R07).

Details

The Power Fails During a Pour

The power fails during a pour, and the end state is an unfinished drink in the glass. The Station and every Pod stop at once, and when the power returns, the Station starts again from its state files and corrects the fill levels. What a Pod actuator does at that moment is open.

The power fails during a pour
Figure 2. The power fails during a pour

What happens to a running pour when the power fails, and how does the machine come back?

Contracts

  • IF-04: The Power Grid supplies the 230 V AC, and a mains of 230 V AC at 50 Hz is the only one the machine takes.

  • IF-02, IF-02-R03: A power cut at any moment leaves the Station able to start again with its data intact.

  • IF-03, IF-03-R04: All Pods take their power from the one 24 V rail, and no actuator should move before the Station has started the Pod again.

  • IF-01-R01: A Pod never acts without a request from the Station, so it does not go on with the pour by itself.

Open

  • Whether the Station gets a warning or a short run-on time before the 5 V stops, and what it does on a brown-out of the 5 V (IF-02).

  • What a Pod does when the 24 V drops or returns during a pour, and who guarantees that no actuator moves before the Station has started the Pod (IF-03-R04).

Details

  • Station runtime view, A Pod Comes Back After a Power Loss: how the Station corrects the fill levels after the load cells took a new zero point.

  • Switching On: how the machine starts and how the Station finds its Pods.

  • STA-006: once the Station is deployed with NixOS, the NixOS configuration will start the Station program after the boot, so the Station will start by itself when the power returns.

  • SYS-004: the single power supply is a single point of failure, so a power supply fault ends the same way.

A Guest Cancels

A Guest cancels a running drink, and the end state is that every pump and valve of every Pod has stopped and the Guest is on a known-good screen. A Pod that does not acknowledge the stop leaves this end state open.

A Guest cancels
Figure 3. A Guest cancels

What does a Guest set off by cancelling a drink, and what stops where?

Contracts

  • IF-01, IF-01-R07: The Station can stop every pump and valve of a Pod at once.

  • IF-01-R06: A Pod that does not answer is noticed within a bounded time, and it stalls neither another Pod nor the UI.

  • IF-01-R11: A Pod should end a running pour on its own when the link breaks, which is open.

  • IF-08: The EmergencyStop stops every pump and valve, and a running tare or load cell calibration carries on.

Open

  • What the Station does when a Pod does not acknowledge the EmergencyStop, and whether the Guest or the Operator is told, because the sources decide nothing more than the limit of 30 s for a pour (provisional, to be confirmed on the assembled machine) (IF-01-R11).

Details

A Bottle Runs Empty During a Pour

A bottle runs empty during a pour, and the end state is a finished drink after a refill, or an ended drink after a cancel. A blocked line looks the same as an empty bottle, so the Station only suspects that the bottle is empty, and a cancel in the dialog ends the drink instead.

A bottle runs empty during a pour
Figure 4. A bottle runs empty during a pour

What does the machine do when a bottle runs empty during a pour, and who has to act?

Contracts

  • IF-05, IF-05-R05: An empty bottle is noticed, and its missing amount is never counted as poured.

  • IF-01-R08: The Pod reports the amount that really came out, and a pour that came up short is never reported as complete.

  • IF-05-R03: An Operator refills a bottle from the top while the Pod keeps weighing it.

  • IF-08, IF-08-R03: The Operator reaches every point that service needs with the Pod installed.

Open

  • How the Operator reaches the bottle during a drink, and whether the Pod must be opened for it (IF-08-R03).

  • The Station does not notice an Operator who puts the wrong ingredient into the bottle (IF-05-R02).

Details

The Pump Lid Is Opened While the Pump Can Move

The end state is open, because the pump has no interlock: opening the lid does not stop the pump, and a finger can be trapped when the pump can still move. This is the residual risk that IF-08 states, and the lid, the rule never to run the pump without the lid and the service steps are the precaution.

The pump lid is opened while the pump can move
Figure 5. The pump lid is opened while the pump can move

What stops the pump when an Operator opens its lid, and what does the machine leave to the Operator?

Contracts

  • IF-08, IF-08-R01: An Operator cannot reach a moving part or a pinch point while a Pod can still move, and the lid is the guard of the pump.

  • IF-08-R04: An Operator can bring every actuator of a Pod to rest before opening it, which is open.

  • IF-01-R07: The Station can stop every pump and valve of a Pod at once.

  • IF-01-R01: A Pod never acts without a request from the Station.

Open

  • What brings every actuator of a Pod to rest when an Operator opens it, because the pump has no interlock, and how the Operator stops the pump before the service steps (IF-08-R04).

Details

  • Mechanics pump page: the warning never to run the pump without the lid, because the nip between roller and tube can trap a finger.

  • Mechanics pump service page: the tube change starts with stopping the pump and draining the line, then the three lid screws.

  • CM3D-002: the pump has no interlock.

  • CM3D-004: the lid of the closed housing is the guard.