Runtime topology
BHTune separates the operator interface, tuning logic, plant connectivity, and run history.
Crate and workspace graph
The Cargo workspace separates domain logic, tag I/O, persistence, and adapters. The frontend
MRFT engine and time model
bhtune-core contains the MRFT algorithm as a deterministic state machine. The caller supplies
Safety model
A tune changes a live loop's mode and MV, so BHTune treats a run as a physical operation rather
Persistence and migration policy
BHTune stores templates, tune requests, samples, results, and write or actuation audit records
HTTP API and live streaming
The HTTP API is the shared contract between bhtune-server, the browser frontend, and
Browser frontend
The browser interface is a React and TypeScript single-page application in frontend/. It
Packaging and distribution
The Windows NSIS installer is BHTune's primary distribution artifact. It installs the CLI
Architecture decision records
5 items