The rules

  1. Demo scripts

22. Demo scripts

type: demo is the presenter's run sheet for a live part of a session: a document (built like a lab) and the content of the ▶ Demos panel of the si play terminal (a deck lists it with demos:, §14).

markdown
---
type: demo
title: "Live: order #4711 meets a slow bank"
session: The Thursday Promise
slides: 6 (Payment: declined, then paid)
duration: 6 min
---

# Live: order #4711 meets a slow bank

## What this demo must accomplish
1. **A timeout is not a decline.** The room sees the bank answer late.

## Before the session (T-30 min)
```bash
docker compose up -d --wait
```

## The script
### Slide 6, "Payment: declined, then paid" (4 min)
> Say: "I am going to make the bank slow, the way it is every night at nine."
```bash
curl -X POST localhost:8081/admin/latency -d '{"ms": 25000}'
```
```text
{"ms": 25000}
```
Point at the latency while the room waits.

## If it goes wrong
## Reset between rehearsals

Example: si --export example --type demo; the showcase deck lists it, so si --export example && si play si-example shows it in the ▶ Demos panel.