Evaluation guide
For an engineer who has an hour and wants to know what Downrange does today, what it doesn't, and whether it could sit next to what they already run. Everything here works with no network connection.
1. What you can verify in ten minutes #
Downrange 0.2.0-alpha.1 is experimental software for evaluation and development. It is not certified for anything and must not be the only thing between you and a decision about a real vehicle.
git clone <repository> && cd downrange
cargo build --release --workspace # about 6 minutes on 2 cores the first time
target/release/downrange demo --headless # no window needed, about 5 seconds
The headless demo runs one simulated rocket flight with an accelerometer bias of 1 m/s^2 injected at T+9 s, records it, then decodes and analyses the recording offline and prints what it found: the phase transitions with the numbers that triggered each, and one monitor event with its statistic, threshold, window and four candidate explanations.
With a display, one command starts the daemon, the simulated rocket and the workstation, and stops them together when you close the window:
target/release/downrange demo
It prints where the recording went. Look at the same flight again with target/release/downrange replay <that file>.
The three programs stay separate processes. downrange only starts and stops them. scripts/demo.sh does the same from a shell script, and the README shows the by-hand version.
Watch for these on screen:
| Time | What should happen |
|---|---|
| T+5.0 s | Phase changes to BOOST |
| T+7.0 s | Phase changes to COAST. A blue dashed line appears on the altitude plot: predicted apogee, with a 2-sigma band that narrows every second |
| T+9.0 s | The bias starts. Nothing visible yet. The innovation plot begins to sag |
| about T+10.8 s | "1 OPEN ANOMALY" in the top bar. An amber line marks the estimated onset and a red line the detection. The prediction turns amber: SUSPECT |
| T+15.7 s | Phase changes to DESCENT. The prediction is greyed out as STALE |
Kill the workstation while it runs. Start it again. The daemon's counters don't move backwards and the recording has no hole. That's the process split doing its job.
2. Supported platforms #
Five separate claims, because a build that compiles says nothing about whether the window draws.
| Platform | Build verified | Automated tests passed | Offline demo verified | Interactive UI verified by a person | Status |
|---|---|---|---|---|---|
| Linux x86-64 (cloud VM, and Ubuntu on a GitHub runner) | Yes | Yes: 136 tests | Yes: validate-platform.sh 11 of 11, air-gap test 16 of 16 |
No. Run on a virtual display with software rendering and checked from screenshots. No person has used it on a real screen | Supported for evaluation, headless parts validated |
| macOS 26, Apple silicon (M1 Pro by hand, M2 Pro virtual in CI) | Yes | Yes | Yes: validate-platform.sh 11 of 11 |
Yes: six checks answered by a person, all pass | Supported for evaluation |
| macOS, Intel | Cross-compiled in the release workflow, from the next release | No | No | No | Untested. Started once under Rosetta in CI if the runner has it |
| Windows Server 2025 x86-64 (GitHub runner) | Yes, in CI | Yes, in CI | Yes, in CI: validate-platform.sh 11 of 11 |
No. The workstation starts and stays up for 12 s in CI. Nobody has looked at it | Automated checks pass. Never used by a person |
| Linux aarch64, Raspberry Pi, embedded Linux | No | No | No | Not a target | Untested. Headless only when it is |
On the Mac, the 10-second W1b smoke run lost nothing but showed p99 2.6 ms and a 49.5 ms maximum, against 86 us and 0.5 ms on the Linux VM. Not investigated. The air-gap test is Linux-only, so offline operation on macOS has not been checked with networking off.
How a platform moves up: run scripts/validate-platform.sh on it (section 9). The script writes a report file. CI runs the same script on GitHub's Linux, macOS and Windows machines and uploads the reports, once the repository is on GitHub.
Hardware actually used so far: a 2-vCPU cloud VM with 8 GB RAM and no GPU. Minimum requirements are not yet established. Treat "2 cores, 1 GB free RAM, any GPU from the last ten years for the workstation" as an estimate.
Toolchain: Rust 1.95 or newer for the workstation (eframe 0.37 requires it). The headless crates build with older compilers.
3. Telemetry interfaces #
| Interface | Status |
|---|---|
| UDP, VTP framing (Downrange's test protocol: sequence, time, CRC-32) | Works. Loss, corruption, reordering and duplication are detected and counted |
| UDP, raw framing (your packets exactly as you already send them) | Works. Described entirely by a mission file. Loss and corruption can't be detected because your packet has nothing to detect them with |
| Field types | u8 i8 u16 i16 u32 i32 u64 i64 f32 f64, little-endian, with scale and offset |
| Not yet | Big-endian fields, bitfields, arrays, strings, variable-length packets |
| Not yet | Serial, CAN, TCP input, MAVLink, CCSDS, ROS 2 |
| Output: client stream | TCP on loopback, one-way, documented in crates/downrange-core/src/ipc.rs |
| Output: recording | MCAP, raw datagrams with the mission file embedded |
| Output: export | downranged export: CSV per packet, analysis as CSV and JSON |
4. Connecting your own system without changing it #
examples/custom-udp/ is a worked example: a pretend flight computer that sends two packed C structs with its own id byte and a uint32 millisecond clock. The sender is about 50 lines of Python with no Downrange code in it.
target/release/downranged run --mission examples/custom-udp/legacy-vehicle.toml --record legacy.mcap
python3 examples/custom-udp/sender.py
target/release/downrange-ui
To do the same for your system:
- Copy
legacy-vehicle.toml. Setlink.udpto the address your system sends to. - For each packet, list the struct's fields in order with their C types. Add
scaleandunitwhere the raw value isn't in engineering units. - If more than one packet type shares the port, set
raw_id_offsetto the byte that distinguishes them. - Mark your timestamp field with
time = "ms"(orus,s,ns). Without one, Downrange uses the receive time. - Start
downranged. A mission file that doesn't make sense is rejected with the reason before any telemetry is accepted. Packets that don't match are counted asdecode_errorsand still recorded raw, so you can fix the file and decode the recording again.
Not possible yet without code: packets with a length that varies, big-endian fields, bit-packed flags.
5. Reading Downrange's data from your own software #
Live, any language. Connect to TCP 127.0.0.1:48621 and read length-prefixed messages. examples/python/stream_client.py is a complete client in about 110 lines of standard-library Python. It prints measured values, estimates, predictions and events as they arrive. A C, C++ or Qt application does the same with a socket and four struct layouts. It needs no Rust.
After the fact.
target/release/downranged verify flight.mcap --events # counters, digests, phases, events as JSON
target/release/downranged export flight.mcap --out out/ # CSV and JSON files
target/release/downranged replay flight.mcap # serve it again as if live
out/imu.csv begins:
t_vehicle_s,t_rx_s,imu.ax [m/s^2],imu.ay [m/s^2],imu.az [m/s^2],imu.gx [rad/s],imu.gy [rad/s],imu.gz [rad/s]
The recording itself is MCAP and opens in any MCAP tool. Each message is one raw datagram.
As a library (Rust).
use std::sync::Arc;
use downrange_core::schema::Mission;
use downranged::{Daemon, Options};
let mission = Arc::new(Mission::from_toml(&std::fs::read_to_string("mission.toml")?)?);
let mut opts = Options::new(mission);
opts.record = Some("flight.mcap".into());
let daemon = Daemon::start_live(opts)?; // threads start; returns immediately
// ... your application ...
let health = daemon.health(); // every counter
let latest = daemon.store.lock().unwrap().ring(downrange_core::ChannelId(0)).latest();
let summary = daemon.stop(); // closes the recording
A custom estimator or detector implements downranged::analysis::Analyzer (three methods) and is passed in through Daemon::start_live_with.
6. Security assumptions #
- The client stream is unauthenticated and unencrypted. The daemon refuses to serve it on anything but loopback. For remote viewing use
ssh -L 48621:127.0.0.1:48621 <ground station>. - Every local user on the ground-station computer can read the stream. Use a single-user machine.
- Anyone who can send UDP datagrams to the telemetry port can inject frames. Keep the vehicle network closed.
- The daemon never executes anything it receives and never reads from client sockets.
- Recordings are plain files with the permissions of the user running the daemon. They are not encrypted.
- Downrange makes no outbound connections. The air-gap test checks that no network client library is linked into the daemon.
Details are in SECURITY.md.
7. What it does not do #
- It cannot send commands to a vehicle. There is no code for it.
- The analysis module is one-dimensional. It assumes near-vertical flight, an unbiased barometer and no wind. It has been checked only against a simulator that shares its physics.
- No landing prediction. The map is a coastline outline with no tiles or terrain, and the 3-D views are wireframes (docs/12-dashboards.md).
- Dashboards are generated from the schema, edited in the window, or edited as a file (docs/12-dashboards.md). No video, no undo.
- Your own estimator or detector runs as a separate program (docs/13-plugins.md). It is not sandboxed, and its throughput limit is unmeasured.
- Several vehicles show in one workstation, one daemon each. Their clocks are not aligned with each other.
- No user accounts, roles or audit log.
- The longest run is one hour, on one machine. Nothing longer has been tested.
- No installer. Build from source.
- Performance numbers come from one cloud VM.
8. Developer-experience targets #
These are targets. No row has been measured with a new user. That needs people, and it is the one alpha requirement that could not be done from a development session. It is listed as open in RELEASE_CHECKLIST.toml.
| Step | Target for a new user | Measured |
|---|---|---|
| Clone to finished build | 15 minutes | 6 min 7 s on a 2-vCPU VM, dependencies already downloaded, by the author |
| Build to first live plot (demo) | 2 minutes: one command, downrange demo |
Not measured with a new user |
| First plot from your own UDP source, given a packet layout | 30 minutes | Not measured |
| Add a packet to an existing mission file | 10 minutes | Not measured |
| Record, replay and export a session | 10 minutes | Not measured |
| Mission dashboard | No target yet: dashboards aren't configurable |
Protocol for measuring: three people who have not seen Downrange, a written task sheet, a stopwatch, no help. Record where each one got stuck. This is on the alpha checklist.
9. Validating a platform #
One script does the automated part and writes a report. It needs Rust (rustup) and nothing else. It makes no network connection once dependencies are downloaded.
macOS or Linux:
cd ~/Documents/Downrange # or wherever the repository is
scripts/validate-platform.sh # build, tests, lint, offline demo, replay, export, short benchmark
scripts/validate-platform.sh --ui # opens the workstation, then asks you six yes/no questions
Windows: the same two commands in Git Bash, with Rust and the MSVC build tools installed.
The result is validation-<os>-<arch>.txt in the repository root. It lists every step as PASS or FAIL with the tail of the output for failures, the machine, the compiler, and a 10-second benchmark. Commit it under docs/validation/ or send it back.
What the script covers: clean build, unit and integration tests, lint, --version on every binary, generator, daemon, recording, intelligence processing (the injected fault must be detected), file permissions, refusal to overwrite a recording, replay to the end with a clean daemon exit, export. Reconnect behaviour is covered by the integration tests it runs. The --ui part covers start-up, live plotting, the prediction, the anomaly marker, recorder status and shutdown, as seen by a person.
What it does not cover: offline operation as such. On Linux run scripts/airgap-test.sh. On macOS and Windows, turn networking off and run target/release/downrange demo --headless again.
Expected differences: one test (the_operating_systems_own_disk_full_error_is_handled) is compiled only on Linux. The recording fuzz test is skipped on Windows. CPU and memory fields in benchmark output read zero outside Linux because they come from /proc. On Windows a parent process cannot send Ctrl-C to a child, so the downrange launcher asks the daemon to stop through a stop file (downranged run --stop-file <path>).
Things to look at by hand in the workstation: text sharpness on a high-density display, whether the window opens at a sensible size, plot pan and zoom while paused, a second monitor, the platform's quit shortcut.
A failing step with its output is the most useful thing you can send.
10. Running beside a ground system you already have #
Downrange does not need to replace anything. Three patterns, in order of effort.
Listen to the same telemetry. If your vehicle or your existing backend sends UDP, send a copy to Downrange's port: a second destination address, a multicast group, or a port mirror. Describe the packets in a mission file with framing = "raw". Your flight software and your Qt station are untouched. examples/custom-udp does exactly this. You get recording, replay, the health counters and, if the packets carry an accelerometer and a barometer, the analysis module.
Read Downrange's output from your application. The client stream is plain TCP on loopback with a documented layout (crates/downrange-core/src/ipc.rs). A Qt application reads it with a QTcpSocket on a worker thread: a 4-byte length, a kind byte, then little-endian arrays. examples/python/stream_client.py is 113 lines and shows the whole thing. Your application can show Downrange's estimates, predictions and monitor events next to its own widgets, and they arrive already separated from measurements by message kind.
Use the pieces as libraries. downrange-core (schema, decode, clock tracking, store, decimation) and downrange-flight (filter, predictor, monitor) are plain Rust crates with no threads, sockets or clocks. downranged is a library with a thin main. A C API is not written yet. Until it is, a C++ application uses the processes over sockets, which also keeps a fault in Downrange out of your process.
Offline analysis needs none of this: downranged export turns a recording into CSV and JSON for MATLAB, Python or a spreadsheet.
What Downrange does not offer an existing organisation yet: authentication, user roles, an audit log, commanding, MAVLink or CCSDS decoding, or any support commitment. See section 7.
11. Comparison with building the same thing in Qt #
No measurement has been made, so nothing is claimed.
What exists on the Downrange side, as facts: the workstation is 645 lines of drawing code plus 970 lines of link and view-model code including their tests; the mission file for the demo rocket is 150 lines of TOML and no code; the legacy-vehicle example needed no change to the "flight software".
The comparison that would mean something: an experienced Qt developer builds the same three-panel station (channel table, six linked plots, health bar) against the same UDP stream, with recording and replay. Measure hours, lines, frame time with six plots at a one-hour window, and behaviour when the UI is killed mid-run. Publish both programs. Until that's done, "easier than Qt" is a hypothesis.
12. Downloads and the container image #
Release archives. The Releases page of the repository has one archive per platform (Linux x86-64, macOS arm64, Windows x86-64) with every binary, the docs, the sample mission, the examples and that platform's validation report. They are unsigned builds from GitHub's hosted machines. Check the archive against its SHA256SUMS-*.txt. On macOS, Gatekeeper will object to unsigned binaries downloaded with a browser: build from source instead, or clear the quarantine flag yourself if you accept that.
Container image. ghcr.io/joeyheo/downrange is the headless part: downranged, downrange-gen, the downrange launcher, downrange-bench and downrange-soak. There is no workstation in it.
docker run --rm --network none ghcr.io/joeyheo/downrange # offline demo, prints what the analysis found
docker run --rm -v "$PWD:/data" ghcr.io/joeyheo/downrange downranged verify /data/flight.mcap --events
docker run --rm -v "$PWD:/data" ghcr.io/joeyheo/downrange downranged export /data/flight.mcap --out /data/csv
Tags: a version such as 0.2.0-alpha.1, latest for the newest release, edge for main. The image is only pushed after its own offline demo, run with --network none, finds the injected fault.
Limits of the container. The client stream is served on loopback only, so from outside the container nothing can read it; on Linux --network host puts the daemon on the host's loopback, where a workstation built from source can connect. To receive telemetry from outside, the mission file must bind the UDP input to 0.0.0.0 and the port must be published; the daemon warns that this input is unauthenticated. The image runs as an unprivileged user and has only been built and run by CI.