Inspiration
BlinkFlow started as a host-side debugging loop for a simulated biped (Meta hackathon, Oct–Nov 2026): it watches the robot on video, finds the moment it hits something, reads the brain's log and code, fixes it and replays the scene to prove the fix. Real robots do not run their software on the developer's laptop. We moved the system under test to QNX 8.0 and kept the tooling on the host.
What it does
- Builds and starts a QNX 8.0 target (QEMU/KVM, no root); a board is configured by address (
BLINKFLOW_QNX_HOST,BLINKFLOW_QNX_BIND), not yet tried on one. - Deploys the robot's brain to it and runs it at priority 30 (
on -p 30), unchanged. - Carries the robot's UNIX sockets over TCP with a byte-for-byte bridge, so the brain on QNX drives the simulator on the host.
- Puts the brain's ticks on the host clock (offset measured over SSH), so video, segmentation and logs line up.
- Cross-target check: replays a recording through the same brain on QNX and on the host and compares every answer bit for bit: identical / same decisions / different decisions.
--target qnxruns BlinkFlow's whole loop with the brain on QNX.
How we built it
Python on both sides; standard library only on the target. blinkflow/qnx/: bridge, target (SSH deploy, launch, interrupt, fetch), probe, vm, CLI. QNX SDP 8.0 (mkqnximage), QEMU user networking.
Challenges
- The brain's timestamps are the target's monotonic clock: we measure the offset before each launch.
- The same Python source is not guaranteed to give the same last bit on another OS: the check found the fixed brain one ULP apart on 5 of 289 ticks, with every decision equal.
Accomplishments
- The whole loop with the brain on QNX: SAM 3.1 confirmed the robot touching the purple box; Muse Wonder found the cause (
side_memory_seconds = 0.0, after one wrong diagnosis that BlinkFlow refused to accept as fixed); Muse Code changed one line; the twin proved it (1 → 0 contacts, other scenes clean); redeployed to QNX, the robot passes the box (no contact, 28 px). - The purple-box recording replays identically on QNX with the brain that made it (same SHA-256 on both).
- With the fix: same decisions on QNX and on the host; 5/289 ticks one ULP apart.
- A 15 s walk of the simulated robot driven from QNX: 295 ticks recorded and fetched back.
Try it
Setup (about 30 minutes, once, with a free non-commercial QNX licence), commands and measurements: docs/QNX.md. The cross-target check on the bundled incident needs only the QNX VM: no simulator, no API key.
What's next
A real board; the brain in C++ built with qcc; the check run in CI on every change to the brain.