From 37fa1f4606c21e2816c08efdc06b0f5de3e82847 Mon Sep 17 00:00:00 2001 From: Michael B Reiser Date: Fri, 4 Sep 2026 16:39:09 -0400 Subject: [PATCH] fix(runner): disarm FicTrac closed-loop apply at sequence start, end and abort (Studio v0.71) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A stale bridge apply=true (left on by Console closed-loop use or a run that aborted mid-trial) leaked into the next run: the shared apply gate opens as soon as session.running is set, so FicTrac frames were pushed into the opening Mode-2 step and the firmware rejected every SET_FRAME_POSITION (0x70) with status 1 — 304 error lines in the first 3 s of rig03-sr run 8u5v10jg (2026-09-04). Harmless to the data, but it floods the Studio log and confuses operators. ArenaRunner gains a private _disarmClosedLoop() (idempotent, never throws) called from runSequence() before the first step, from its finally block, and from _clear() (abort()/disconnect). Existing closed-loop test updated for the two safety falses; two new regression tests: stale apply is cleared BEFORE the first controller send, and an abort mid-closed-loop leaves apply off. Co-Authored-By: Claude Fable 5.1 --- arena_studio.html | 2 +- .../development/arena-studio-release-notes.md | 10 ++ js/arena-runner-g6.js | 20 +++ tests/test-arena-runner-g6.js | 126 +++++++++++++++++- 4 files changed, 155 insertions(+), 3 deletions(-) diff --git a/arena_studio.html b/arena_studio.html index 9a14e24..dc56446 100644 --- a/arena_studio.html +++ b/arena_studio.html @@ -2917,7 +2917,7 @@

Import error