Start with the developer guide, architecture and the relevant behavior specification. Use synthetic data in issues, tests and pull requests. Report vulnerabilities through the security policy.
Install Rust through rustup; rust-toolchain.toml pins Rust 1.97.1 with rustfmt and Clippy. Use Node 24 and npm, as CI does. Native desktop builds need the Tauri 2 prerequisites:
| OS | Prerequisites |
|---|---|
| Windows | Microsoft C++ Build Tools with Desktop development with C++, the MSVC Rust host toolchain, and WebView2 Runtime. NSIS 3 is needed for the release installer. |
| macOS | Xcode Command Line Tools (or Xcode); the desktop console uses the system WebView. |
| Linux | A C/C++ build toolchain and pkg-config; libudev for serial endpoints; GTK 3, WebKitGTK 4.1 and the other libraries installed by the CI Tauri job. Use the Tauri prerequisite guide for distribution-specific package names. |
From the repository root:
cargo buildIn console/:
npm ci
npm run tauri devStart the engine separately as described in the developer guide. npm run dev runs the
browser UI with mock data. The Tauri backend is a separate Cargo workspace.
Follow docs/testing.md: run scoped checks when a unit of work is complete;
CI runs the workspace gate on every pull request and a maintainer runs it before
a release. Do not repeat the full gate after each edit. For a change to packie-core, for example:
cargo fmt --all --check
cargo test -p packie-core
cargo clippy -p packie-core --all-targets -- -D warningsChoose the affected crate and its regression tests. Protocol changes also need conformance
fixtures; channel behavior belongs in simulator scenarios. For console changes, in console/:
npm run typecheck
npm run lint
npm test
npm run build
cargo check --manifest-path src-tauri/Cargo.tomlFrom the repository root, build the engine and simulator, validate scenarios, then run the affected scenario (or the suite at the gate):
cargo build -p packie -p packie-sim
target/debug/packie-sim check tests/scenarios
target/debug/packie-sim run tests/scenarios/bridge-tcp-full-duplex.json
target/debug/packie-sim run-all tests/scenarios --jobs 4On Windows the binaries end in .exe. Serial scenarios require Linux pseudo-terminals;
unsupported capabilities are reported as skipped. CI uses --deny-skips on Linux.
Performance checks run at the release gate, not on every edit:
target/debug/packie-sim bench --assert
target/debug/packie-sim bench --target prf02 --channels 50 --assertUse the workspace lints and Rust 2024 conventions: errors are values with typed errors,
no unwrap, expect or panic shortcuts outside tests, and tracing for structured logs.
Keep clinical values in exact decimals. Never put PHI, message bodies or secrets in logs,
snapshots, alerts or error summaries. The console uses strict TypeScript, React Aria and
CSS Modules. Prefer existing dependencies; explain additions and their license compatibility.
Documentation describes the current state. Update the affected specification, operator guide and console help with behavior changes; avoid plans, diaries and duplicate implementation descriptions. Keep local investigation artifacts out of the repository.
The changelog has one Markdown file per change in changelog.d/. They
generate CHANGELOG.md and the console's What's new list, so never edit
CHANGELOG.md by hand.
When. Add an entry in the same pull request as any change that users, deployers or
integrators can observe: a feature, a behavior change, a fix, a removal, a security fix, a new
or changed setting, migration, file format, installer or dependency that affects an
installation. Refactors, tests, CI, internal documentation and changes only to website/ need
none; say "No changelog entry: nothing observable" in the pull request and a maintainer adds
the no-changelog label.
File. Name it changelog.d/YYYY-MM-DD-short-slug.md (today's date, lowercase slug):
---
date: 2026-11-17
type: added
impact: medium
title: Find a message by its specimen identifier
area: Messages
link: /messages
pr: 45
---
One to three plain sentences for the people who use the engine: what they can do now or what
behaves differently, and where to find it.
## Technical notes
Optional: settings, schema or migration identifiers, dependencies, upgrade steps.| Key | Required | Value |
|---|---|---|
date |
yes | The day the change merges; for a new change, the day you write the entry. |
type |
yes | added, changed, fixed, removed, deprecated or security (Keep a Changelog 1.1.0). |
impact |
yes | See below. |
title |
yes | Sentence case, no trailing period, written for users. |
area |
no | The part of the console users know it by: a navigation entry (Messages, Settings), or Engine, Command line, Installation, Documentation. |
link |
no | The console route where it is found, such as /settings/backup; it must be a real route. |
pr |
no | The pull request number, once known. |
release |
no | Set only by the release step (below); leave it out. |
Impact. high: a new capability or workflow, anything a user or deployer must act on, a
change to how people work, a removal or a security fix. medium: a noticeable improvement to
something that exists. low: small fixes and polish. Rate honestly; most changes are not high.
Wording. Write the summary for laboratory staff in the console's voice: plain words, what
they can do or what changed and where, no internal names. Commands and setting names go in
backticks. Technical detail for deployers goes under ## Technical notes, which the console
leaves out. Synthetic data only; no names of other products, organizations or customers.
Regenerate and check. In console/:
npm run changelog # rewrite CHANGELOG.md from changelog.d/
npm run changelog:check # fail on an invalid entry or a stale CHANGELOG.md (CI runs this)An invalid entry stops both with the file and key named. A branch that still edits
CHANGELOG.md by hand: move each of its additions into an entry file, then run
npm run changelog and keep the generated file. When two branches each add an entry, nothing
conflicts except the generated file; after the merge, run npm run changelog again.
Open an issue for a substantial behavior or design change before implementing it. Open pull
requests against develop, the integration branch; main is the release branch and receives
develop by pull request (branches).
Keep PRs small and focused. Include the problem and resulting behavior, affected specification or
requirement, tests/checks run with results, documentation updates, the changelog entry (or why
none is needed), new dependencies, and any remaining limits. Include a synthetic reproduction for a bug and a screenshot for a visible
UI change. Never include patient information, real laboratory exports or credentials.
Contributions are accepted under AGPL-3.0-only, the same license as the project; there is no CLA. Identify third-party material and preserve its notices.
OpenBGA Interface Engine is developed with substantial AI assistance. Contributors are responsible for reviewing and verifying their changes, including AI-assisted work. As stated in the README, the software is provided as is, without warranty, and is not clinically validated.