c7a3cd8
Temperature safety software replay
The C harness calls the actual portable policy with synthetic inputs and an illustrative 2 °C allowance. Unknown temperature qualification rejects an ARM request at 500 ms. A synthetic qualified sample permits ARM at 1000 ms. The nominal estimate rises; at 3667 ms the calculated upper bound reaches 55.001 °C and the core latches THERMAL fault, commands DAC zero and disables its output command. Cooling the synthetic sample at 5000 ms does not restart the load. Assertions check these events.
This is a host policy test, not physical shutdown timing, calibration, a thermal simulation or MCU execution. The synthetic allowance is not a proposed production calibration. The real STM32 image remains output locked.
Reproduce from the project root:
gcc -std=c11 -Wall -Wextra -Werror -fsanitize=address,undefined demos/temperature-safety/trace.c firmware/load_core.c -lm -o /tmp/adom-load-temperature-demo
/tmp/adom-load-temperature-demo > demos/temperature-safety/trace.json
Serve this directory to view index.html; the capture tool starts an isolated temporary server and records the replay without opening the user's browser. Saved samples replay at 1× simulation time. Capture timing is separate; the simulation timestamp is authoritative. No instrument commands are possible from this page.
# Temperature safety software replay
The C harness calls the actual portable policy with synthetic inputs and an illustrative 2 °C allowance. Unknown temperature qualification rejects an ARM request at 500 ms. A synthetic qualified sample permits ARM at 1000 ms. The nominal estimate rises; at 3667 ms the calculated upper bound reaches 55.001 °C and the core latches THERMAL fault, commands DAC zero and disables its output command. Cooling the synthetic sample at 5000 ms does not restart the load. Assertions check these events.
This is a host policy test, not physical shutdown timing, calibration, a thermal simulation or MCU execution. The synthetic allowance is not a proposed production calibration. The real STM32 image remains output locked.
Reproduce from the project root:
```sh
gcc -std=c11 -Wall -Wextra -Werror -fsanitize=address,undefined demos/temperature-safety/trace.c firmware/load_core.c -lm -o /tmp/adom-load-temperature-demo
/tmp/adom-load-temperature-demo > demos/temperature-safety/trace.json
```
Serve this directory to view `index.html`; the capture tool starts an isolated temporary server and records the replay without opening the user's browser. Saved samples replay at 1× simulation time. Capture timing is separate; the simulation timestamp is authoritative. No instrument commands are possible from this page.