The quorum program
Three replica processes, a voter built on the core, fault injection, and enforced resource limits. It reports what it delivered and what that cost.
Synopsis
quorum [--policy shrink|tmr] [--ticks N] [--seed S] [--upset-rate R] [--common-mode C] [--kat-period P] [--fault kill|corrupt|stuck|hang|sensor:I@T | stuckbit:I@T/LOC.BIT.V] ... [--faults-file F] [--max-memory-mb M] [--max-cpu-seconds S] [--cpu-percent P] [--max-seconds S] [--reply-timeout-ms T] [--sensor-mb M] [--sensor-every N] [--log file.csv] [--progress-every N] [--summary file.txt] [--checkpoint file] [--checkpoint-every N]
An unknown option prints this list. Every run is reproducible from its seed.
Run settings
| Option | Default | Meaning |
|---|---|---|
| --policy | shrink | shrink or tmr |
| --ticks | 10000 | Results to compute |
| --seed | 1 | Seed for random upsets and where they land |
| --upset-rate | 0 | Chance per replica per tick of a bit flip in working memory |
| --common-mode | 0.05 | Share of single-replica upsets that hit both self-check runs alike |
| --kat-period | 64 | Ticks between known-answer tests on the last replica |
Faults
Schedule a fault as kind:replica@tick. Repeat the option, or read a schedule with --faults-file.
| Kind | What happens |
|---|---|
| kill | The replica process dies. |
| hang | The replica stops answering. The voter drops it after the reply timeout. |
| stuck | The replica returns the same wrong value from then on. |
| corrupt | One bit flips in the replica's working memory during its next computation. (In v0.2.0, a corrupt fault on an odd tick in self-check mode was lost. Fixed in v0.3.0.) |
| stuckbit | stuckbit:I@T/LOC.BIT.V: from tick T, bit BIT of LOC is forced to V (0 or 1), in both self-check runs and in the known-answer test. LOC is in (the input, bits 0 to 63), block (the 4 KiB working block, bits 0 to 32767), acc (the hash accumulator, 0 to 63) or out (the result, 0 to 63). Added in v0.3.0. See known-answer test coverage. |
| sensor | A flip in the radiation-sensor block, to test logging and repair. Needs --sensor-mb. The replica number is ignored. |
Limits
Safe on shared hardware. Each process enforces its own memory and CPU-time limits. The voter enforces the CPU share and the run time.
| Option | Default | Meaning |
|---|---|---|
| --max-memory-mb | 128 | Memory limit per process (Linux only) |
| --max-cpu-seconds | off | CPU-time limit per process |
| --cpu-percent | off | Cap on the voter's CPU share |
| --max-seconds | off | Maximum run time |
| --reply-timeout-ms | 2000 | Drop a replica that does not answer in time |
Radiation sensor
--sensor-mb M holds M MB of memory in a known pattern and checks it every --sensor-every ticks (default 1000). Every flipped bit is logged with its location, then repaired. On flight hardware, this measures the real upset rate. It must leave at least 32 MB under --max-memory-mb. In both runs of the demo in orbit it found only the injected self-test flip, and no real upset.
Output
--log file.csv writes every event: stuck, stuck bit, hang, lost, outvoted, retired, cleared, killed, detected, wrong, resumed, stopped, halted and sensor flips. --progress-every N adds running totals. --summary file.txt writes the final report for downlink.
The run from the Quickstart, --policy shrink --ticks 20000 --seed 1 --upset-rate 0.001 --fault kill:0@5000 --fault kill:1@10000, prints:
policy=shrink ticks=20000 seed=1 upset_rate=0.001
useful=14989 detected=11 wrong=0 halted_at=never alive_at_end=1 stopped=completed last_useful=20000 kat_tests=174
footprint: voter_max_rss=1952KiB replica_max_rss=1808KiB cpu=0.389s wall=0.384s
limits: memory=128MB/process cpu_time=none cpu_share=none max_run=none reply_timeout=2000msflight v0.9.0 on an Apple M4, November 18, 2026. The footprint line varies by host and run.
last_useful is the tick of the last correct result. With a scheduled stuck, hang or corrupt fault, the output adds a detection: line (also for stuckbit, since v0.3.0): the faults injected, how many the voter caught, and the mean and longest ticks from fault to first reaction. The bench runs this program over a matrix of faults.
Resets and power cuts
--checkpoint file saves the run's state every --checkpoint-every ticks (default 100). The voter writes a new file, flushes it to storage and renames it over the old one, so a power cut leaves either the old checkpoint or the new one. It writes out and syncs the event log first.
After a reset, the same command resumes from the checkpoint. Dead, stuck and hung replicas stay that way. The ticks after the last checkpoint run again and give the same results, so the run ends with the same counts as one that was never interrupted. A resumed line in the log marks where it picked up. A checkpoint from a run with other options is refused. A finished run removes its checkpoint.
The scenario checks test this on every change: they kill the voter with kill -9 in the middle of a run and compare the counts. scripts/board.sh runs the same test on a board, with reboots or power cuts.
On OPS-SAT
For experiment exp4051 on ESA's OPS-SAT PRETTY satellite, run by ESA's OPS-SAT Space Lab and TU Graz. The same v0.3.1 package ran in orbit on October 18, 2026, at 09:45 UTC, after ESA's software environment test (October 15) and the TU Graz FlatSat test (October 16). Results matched the prediction written before the run: 227 s in total, both runs exit 0, every fault on its scheduled tick, the shrinking quorum 2,745 correct and 0 wrong over 5,250 ticks, fixed TMR 239 correct then a detected disagreement on every tick to 4,500. Three software replicas on one processor in user space, scheduled faults, no real upset in the window; not a hardware-redundancy test.
| Run | Host | Shrinking quorum | Fixed TMR | Total | Exit |
|---|---|---|---|---|---|
| Software environment, 2026-10-15 | ESA Linux VM, ARMv8, two cores | 14,886 correct, 0 wrong, 29,532 ticks | 239 correct, detected to tick 19,250 | 222 s | 0, 0 |
| FlatSat, 2026-10-16 | SEPP, Cortex-A9, TU Graz | 2,745 correct, 0 wrong, 5,250 ticks | 239 correct, detected to tick 4,778 | 224 s | 0, 0 |
| In orbit, 2026-10-18 | SEPP, Cortex-A9, OPS-SAT PRETTY | 2,745 correct, 0 wrong, 5,250 ticks | 239 correct, detected to tick 4,500 | 227 s | 0, 0 |
Counts from the summary files and totals from the start and end times in run-info.txt, in theresult files. The same binary ran on all three hosts; the software environment is a Linux VM, not the flight processor. Fixed TMR delivered 0 wrong results on every host; its last correct result is tick 239, then a detected disagreement on each tick to the tick shown. Both runs overran the 110 s cap by about 3 s because the limit is checked once per tick and the last tick was a 64 MB scan; fixed in v0.4.0, where the scan checks the limit every 1 MiB and the sleep stops at the cap.
Run 2, October 22, 2026
The v0.4.0 package ran in orbit on October 22, 2026, at 09:49 UTC, after ESA's software environment and the TU Graz FlatSat on October 21. Three segments in 136 s. Segment 1: the shrinking quorum on a lifecycle schedule (a bit flip at tick 30, replica 2 hangs at 60, replica 1 stuck at 120, a stuck bit in the last replica's result at 1,280). The known-answer test caught the stuck bit on its tick and the quorum halted at 1,281: 698 correct, 0 wrong. Segment 2: fixed TMR on the same schedule, 119 correct, then a detected disagreement on every tick. Segment 3: the shrinking quorum with a checkpoint every 100 ticks, killed with SIGKILL at tick 900 and started again; it resumed once from tick 900 with the retired replica still retired, 1,750 correct and 0 wrong. Results matched the prediction written before the run.
| Run 2 | 1 · Shrinking quorum | 2 · Fixed TMR | 3 · Restart | Total |
|---|---|---|---|---|
| FlatSat, 2026-10-21 | 698 correct, 0 wrong, halted at 1,281 | 119 correct, detected to tick 1,000 | 4,000 correct, 0 wrong, 3 resumes | 133 s |
| In orbit, 2026-10-22 | 698 correct, 0 wrong, halted at 1,281 | 119 correct, detected to tick 750 | 1,750 correct, 0 wrong, 1 resume | 136 s |
From the summary files, checkpoints and run-info.txt in theresult files. Segment 1's event log is the same in orbit as on the FlatSat. On the FlatSat, segment 3 resumed three times from a checkpoint an earlier run had left in the home folder; since v0.4.1 the run script removes it. The voter after the restart used 5.7% of wall time against its 5% setting; the cause is not known yet. Write-up:№ 007.
On the flight processor at the 5% CPU share the voter made about 45 ticks per second on the FlatSat, and in orbit about 46 for the shrinking quorum and 40 for fixed TMR in run 1, and about 25 to 30 in run 2 (operations note). opssat/run is the entry point the OPS-SAT runner executes: since v0.4.0 the three segments of run 2, one after the other, same seed, all output in a folder for downlink, finished inside a five-minute window. opssat/package.sh builds the package from a checksum-verified release binary. opssat/run.sh starts, checks and stops a long run on any Linux system. Tagged releases ship each static Linux binary (three ARM, one x86_64) with both launchers, the fault schedules and the operations note.
Run 3, October 28, 2026
Run 3 flew the F´ components instead of this demo: the same decision core in an F´ deployment, each replica a process of its own on the SEPP's two cores, with the faults of run 1 and a real process kill. 342 correct and 0 wrong down to the last replica, fixed TMR 239 then a caught disagreement on every cycle, and a restore from the manager's state file with the retired replica still retired. See F´ on OPS-SAT.
Run 4, in orbit November 20, 2026
The OPS-SAT team approved run 4 on November 16, 2026. The package is the v0.9.0 release asset exp4051-mru-flight-v0.9.0.tar.gz. It ran on TU Graz's FlatSat and in orbit on November 20, 2026, 244 seconds in orbit, every exit 0, 0 wrong results in every segment. Six segments of 40 seconds: automatic resets of a replica that stops answering and of a dead one, the same faults with resets off and under fixed TMR, three simulated sensors, the decision core as a cFS application, and real bit flips in each replica process's memory, made by software. Segments 1 to 5 inject each fault at its symptom; the run shows the recovery logic, not a recovered device. Before flight, in ESA's environment image, the whole package ran three times at full length: 246 seconds, every exit 0, 0 wrong results in every segment. See F´ on OPS-SAT, the fault model and № 010.
Updated November 18, 2026 · Source: demo/src/main.rs · Edit on GitHub · Questions? Get in touch
