# Electronic load control panel

Version 0.0.6 is hardware-only and starts disconnected. Run `python3 control-panel/server.py start --ai-thread YOUR_THREAD --port auto` from the project root. Bind an exact instrument with `--device` and `--serial` only when the assembled hardware is ready. History can restore; connection and enable never restore automatically.

The expandable digital model uses Board32 and the nominal sink, fan, carrier and sensor harness studies. It is not a qualified assembly: fin geometry is inferred, and clamp/contact/airflow tolerances remain unresolved. See ../mechanical/board32-review/README.md.

Fan animation is read-only. Valid hardware RPM drives the named rotor animation at 1:500 visual time scale; measured zero explicitly stops it. Disconnected, invalid, out-of-range or more than 1500 ms old feedback pauses motion and displays unknown. Server age uses the monotonic clock and the browser adds receipt age. No animation control can command hardware. The separate assembly demonstration remains explicitly simulated.

The model loads lazily when expanded. Its canonical Adom 3D Viewer 0.7.1 distribution is unchanged; `twin/vendor-provenance.json` records every bundled asset hash and upstream source. The fan model's MIT license and source assets remain in ../mechanical/installed-fan-study/source/.

Validation: 25 Python tests ran: 23 passed and two were skipped; measured/unknown/zero/stale telemetry adapter tests passed in Node. A real native browser loaded the merged model against the running disconnected server and reported unknown with the rotor paused. This is UI/software evidence, not physical tachometer, load or thermal qualification.


Temperature protection now uses a qualified upper bound: nominal case estimate plus a positive, finite allowance from trusted assembly calibration. The unchanged actual-case ceiling is 55 °C. Unknown calibration locks enable; older firmware without this telemetry remains monitorable only while OFF. The MCU bring-up adapter explicitly supplies unknown qualification and stays output locked. CSV exports include the estimate, allowance, upper bound and measured fan feedback. Tests use synthetic margins, never production calibration.

## Reconnect behavior

On every SSE open, the page obtains a fresh control-session token. Loss of the link immediately clears its token and command ownership and disables controls. An old in-flight bootstrap or command result cannot restore ownership after the connection generation changes. Reconnect never connects the instrument, replays a command, or arms the load. A failed session fetch stays locked until another reconnect or page reload.

`node tests/test_control_session.mjs` checks response races and invalid credentials; `node tests/test_panel_reconnect.mjs` uses an isolated synthetic HTTP/SSE fixture to check the actual browser. It sends no hardware commands. Existing browser pages loaded before0.0.6 need a one-time reload to receive the new JavaScript.
