F´ components
Layer 1 as components for NASA JPL's F´ framework, version 4.4.1. Every decision comes from the quorum crate, through a C interface that Kani proves equal to it.
The source is in fprime/ of mruspace/flight. The requirements and the design were written and approved in F´'s own order, requirements first, then the model, then the code: requirements, design and results.
Components
| Component | Kind | What it does |
|---|---|---|
RedundancyManager | active | Asks the replicas for a result each cycle, decides with the core, delivers or rejects, steps the mode down as replicas are lost, and runs known-answer tests. |
HealthRegistry | passive | Holds the strike record per replica: three outvotes within 200 cycles start a diagnosis. |
ReplicaHost | active, one per replica | Runs the payload and answers requests and known-answer tests. A disabled host does not answer. |
FaultInjector | passive, test builds only | Sits between the manager and the replicas in a test topology: silence (kill, hang), a stuck value, and bit flips in a replica's working memory, with the same random upsets as the demo for a seed. |
RunRecorder | passive, test builds only | Stands in for the ground in an experiment: checks every delivered result against the payload computed without a fault, counts correct and wrong results, and reads the manager's last telemetry for the summary. The manager never sees it. |
In a flight topology the manager connects to the replicas directly, so no test code is in the flight path.
The replicas run as three threads of one deployment. Three processes, and then separate processors, use the same components.
RedundancyManager
| Element | Name |
|---|---|
| Input ports | schedIn (rate group, once per cycle), replyIn[3], pingIn |
| Output ports | requestOut[3], enableOut[3], resultOut, healthStrike, healthClear, pingOut |
| Commands | SET_POLICY, STANDBY_REPLICA, ADMIT_REPLICA |
| Parameters | KatPeriod (64 cycles), StateSavePeriod (1,000 cycles; 0 saves on change only) |
| Telemetry | CurrentPolicy, CurrentMode, LiveReplicas, Retired, Slots on change; Delivered, Caught each cycle |
| Events | Mode changes, caught disagreements (throttled), diagnoses, retirements with their reason, standby and admission, the state file, and the halt |
The full model: RedundancyManager.fpp in fprime/Mru/Components/RedundancyManager.
A replica is retired when its known-answer result is wrong or missing, or after three missed cycles in a row. The event gives the reason: a diagnosis that failed or was not answered, a periodic test on the last replica that failed or was not answered, or lost.
F´ returns 0 for a parameter that was never loaded. The manager then uses the model's defaults, so a topology that skips loadParameters() does not run the known-answer test every cycle.
Spares and standby
Each of the three slots is ACTIVE, STANDBY or RETIRED. Only ACTIVE slots get requests. These follow section 8 of the whitepaper, where salvaged processors join as spares and declining nodes are set aside.
- STANDBY_REPLICA disables an ACTIVE slot to save power. It is refused if the policy could not run on the slots left. A power accountant will use it; that accountant is not built.
- ADMIT_REPLICA enables a STANDBY slot, or new hardware in a RETIRED slot, and asks for its known answer. The slot becomes ACTIVE only if the right answer arrives by the end of the next cycle.
Resets
The manager saves the policy, the slot states and the cycle counter when one of them changes, and every StateSavePeriod cycles. The record is 21 bytes with a CRC-32. It writes a new file, flushes it and renames it over the old one, so a power cut leaves the old state or the new one. At start it restores a valid file and reports it, or starts with all slots ACTIVE and warns. Strikes are not saved: after a reset each replica starts a fresh window.
Deployment
MruOpsSat is the first F´ deployment of the components. It runs them with F´'s own services: the command dispatcher, the event manager, the telemetry database, health pings and a command sequencer (the CdhCore subtopology), driven by a Linux timer every 100 ms. The faults and the policy come from F´ command sequences, as an operator would send them. It has no communications stack: events are written as text lines and the summary as a file.
It is built as a static, optimized 32-bit ARM binary for the SEPP, the Cortex-A9 payload processor of OPS-SAT PRETTY. In ESA's OPS-SAT experiment environment, on a laptop under emulation, the package ran full length on October 22, 2026: 148 seconds, 0 wrong results, the counts of the demo within the system test's rule, a restore from the state file after a kill, and 1.2% to 1.5% CPU in the timed run. The second deployment flew in its place. See the operations note.
A second deployment puts each replica in a process of its own: MruQuorum, the manager process, starts three MruReplica processes, linked through F´'s GenericHub over Unix socket pairs (no network), and pins them to the SEPP's two cores. The kill is real: the manager sends SIGKILL to a replica process at the start of a cycle. In ESA's environment under emulation it gave the same counts and events as the first deployment, with the three processes pinned in every segment. It ran on the SEPP, on the FlatSat and in orbit, on October 28, 2026 (below).
On one processor the manager and the replicas share the processor. A manager that falls behind used to close cycles before their answers were dispatched, so healthy replicas looked silent and were retired as lost. Since v0.6.0 a cycle that closes late, with other messages still in the manager's queue or every expected answer missing at once, counts against no replica; with an answer missing it is withheld and counted (MRU-RM-023). In a container starved of processor time, the old rule halted 9 of 15 runs and the new one none; no run gave a wrong result.
On OPS-SAT
The second deployment ran in orbit on ESA's OPS-SAT PRETTY satellite on October 28, 2026, at 09:13 UTC, as run 3 of experiment exp4051, after ESA's software environment and the TU Graz FlatSat the same morning. It was the first run of these components on flight hardware: the SEPP, with each replica process pinned to a core (0, 1, 1). Three segments in 148 s, the faults of run 1 from an F´ command sequence. Segment 1: the shrinking quorum; a bit flip at cycle 60 outvoted, replica 1 stuck at 120 and retired at 122, replica 0's process killed with SIGKILL at the start of cycle 240 and retired as lost at 242, then self-check on the last replica from 243. Segment 2: fixed TMR on the same faults. Segment 3: the shrinking quorum with replica 1 retired at 202; the manager killed 35 s in and started again, restored from its state file at cycle 303 with replica 1 still retired. Results matched the prediction written before the run.
| Run 3 | 1 · Shrinking quorum | 2 · Fixed TMR | 3 · Restart | Total |
|---|---|---|---|---|
| FlatSat, 2026-10-28 | 342 correct, 3 caught, 0 wrong, 1 withheld | 239 correct, caught to cycle 348, 1 withheld | 299 correct, 0 wrong, restored at 303 | 148 s |
| In orbit, 2026-10-28 | 342 correct, 3 caught, 0 wrong | 239 correct, caught to cycle 348 | 299 correct, 0 wrong, restored at 303 | 148 s |
From the summary, event and state files and run-info.txt in theresult files. On the FlatSat the kill landed while the manager was behind, so it withheld cycle 240 (MRU-RM-023) and retired replica 0 one cycle later; the counts did not change. In orbit no cycle was withheld. On the SEPP the manager used 1.7 MB resident and 11.8 MB of address space, and 0.40% to 0.46% of wall time; all four processes together 0.79% to 0.96%. Scope: one payload processor with two cores, in user space, faults from a command sequence; not a hardware-redundancy test. Write-up:№ 008.
One cycle
The order follows a tick of the demo, so the same seed gives the same counts:
- Close the last cycle. Decide it if it is not yet decided, with a missing reply as absent. Count missed replies, and fail tests that had a full cycle to answer.
- Start the next. Ask every ACTIVE slot. On the last replica, ask for two results on even cycles only, and add the known-answer test every
KatPeriodcycles. - Decide as soon as every answer is in. Strikes, the test of two disagreeing replicas, and the periodic test follow at once.
A replica that dies stops answering, so the manager finds the death by silence. When a death leaves one replica, the cycles until it is marked lost end as caught disagreements. The demo kills its replicas itself and knows at once; this is the one place the counts differ.
C interface
quorum-ffi builds the core as a no_std static library with a C header, quorum.h. It is not tied to F´: any C or C++ framework can use it.
uint8_t quorum_mode(uint8_t policy, uint32_t alive); quorum_verdict quorum_decide(uint8_t policy, const quorum_reply *replies); void quorum_health_init(quorum_health *health); bool quorum_health_strike(quorum_health *health, uint32_t replica, uint64_t cycle); void quorum_health_clear(quorum_health *health, uint32_t replica);
Only plain values cross. The health record lives in the caller's memory. Out-of-range input gets the safe answer: a policy that is not 0 or 1 halts, an unknown reply kind counts as absent, a replica above 2 changes nothing, and a null pointer does the same. Five Kani proofs show that quorum_mode, quorum_decide, quorum_health_strike and quorum_health_clear give the core's answer for every valid input, and the safe answer for a bad policy, an unknown reply kind or a replica above 2. Unit tests check the null pointers. See Kani proofs.
Verification
| Check | Result |
|---|---|
| Kani, core and C interface | 9 of 9 proofs |
| C test of quorum.h | Sizes, layout and known cases pass |
| F´ unit tests | 44, by requirement: HealthRegistry 5, ReplicaHost 5, FaultInjector 8, RedundancyManager 23, RunRecorder 4. Built with address and undefined-behavior sanitizers. |
| System test against the demo | 60 cases: the five bench schedules, both policies, three upset rates, two seeds, 4,000 cycles. 36 identical to the demo. In the other 24, a kill that leaves one replica costs 2 correct results and adds 3 caught disagreements. Wrong results are identical in all 60. |
| Deployment against the demo | The MruOpsSat package with short caps: each segment's counts against the demo on the same faults, the events on their cycles, the restore from the state file, and a second run in the same folder. |
All of these run in CI on every change. The expected counts are written by the demo itself, and CI checks they are current.
Build and test
# in a clone of mruspace/flight git submodule update --init --recursive cd fprime python3 -m venv fprime-venv && . fprime-venv/bin/activate pip install -r requirements.txt fprime-util generate && fprime-util build fprime-util generate --ut && fprime-util check --all # the deployment, from the repository root, in the build container cd .. && ./opssat/fprime/build.sh # static 32-bit ARM build and its sequences
The build calls cargo to compile the core, so it needs a Rust toolchain. On macOS 27, the CMake that F´ v4.4.1 pins fails; CMake 4.4 works. Linux works with the pinned version.
Limits
- One run on flight hardware. The second deployment ran once in orbit, 148 seconds on one payload processor with two cores, in user space, with faults from a command sequence. Not a hardware-redundancy test and not a radiation test. Everything else runs in tests on general-purpose processors, the ARM build under emulation. See the architecture status.
- No ground link yet. The first deployment has no communications stack. A deployment with commands and telemetry from the ground is planned.
- Not built: the retry of a cycle after a disagreement on two replicas (the whitepaper's "dual with checkpointing"), the health score by error rate and response time, the power accountant, and memory scrubbing.
Updated October 19, 2026 · Source: fprime/Mru/Components · Edit on GitHub · Questions? Get in touch
