pre-release v0.3.0-alpha.1 Tell us what breaks
downrange

Contributing to Downrange

Downrange is a developer preview. The fastest ways to help right now: run the test suite on macOS or Windows and send the output, or run it against your own telemetry and report what breaks.

Ground rules #

  1. Raw data first. No change may reduce what gets recorded or make loss invisible. If a frame is dropped, a counter must say so.
  2. Numbers need tests. An estimator, predictor or detector comes with a test against known truth. State the bound and why.
  3. No claims without measurements. "Faster" needs a workload, hardware, and a reproducible command.
  4. Small, working increments. No empty modules. No placeholder crates.
  5. The core stays quiet. downrange-core has no threads, sockets or clocks. Keep it that way so replay stays reproducible.
  6. Nothing phones home. No dependency that makes network connections goes into the daemon, generator, flight module or workstation.
  7. Measured is not estimated. Analysis outputs use the analysis record types and message kinds. They never go into the channel store.

Build and test #

cargo test --release --workspace
cargo clippy --release --workspace --all-targets -- -D warnings
cargo fmt --all -- --check
scripts/airgap-test.sh        # Linux

The minimum supported Rust version is 1.95 (rust-version in Cargo.toml; eframe 0.37 requires it). CI builds with exactly 1.95 and with current stable. Cargo.lock is committed and CI uses --locked: change a dependency on purpose, in its own commit, and run cargo deny check.

Linux needs the usual windowing libraries for the UI. The daemon, generator, flight module and benchmarks need nothing beyond a C compiler.

Where things go #

You want to add Put it in And bring
A field type, framing or protocol decoder crates/downrange-core A real capture in tests/data and a round-trip test
A health counter downrange_core::ipc::health! It appears in the daemon log and the UI with no other change
A vehicle model, estimator or detector crates/downrange-flight (rockets) or a new module crate, exposed through downranged::analysis::Analyzer and registered in analysis::build Seeded Monte Carlo acceptance tests, and an end-to-end test like apps/downranged/tests/intelligence.rs
Something the operator is told (a status, a warning) apps/downrange-ui/src/view.rs A unit test on the text and level. Drawing code only lays it out
A UI panel apps/downrange-ui A screenshot; the panel must only read the model
A benchmark workload apps/downranged/src/bin/downrange-bench.rs The sample-rate arithmetic in the description

Sign-off #

Downrange is open source under the AGPL (LICENSING.md). Before your first pull request is merged, sign the Contributor Licence Agreement. A bot asks you to when you open the pull request. You keep your copyright.