From 76e0371333bcde3526df3a497be942a8f1bcf1aa Mon Sep 17 00:00:00 2001 From: siddharth mehta Date: Mon, 27 Jul 2026 23:31:26 -0700 Subject: [PATCH] feat(recorder): move login into a version-aware preamble, out of measured steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The live recorder counted login as gate-task steps: navigate -> fill -> fill -> click -> (skip) were all recorded, so roughly five of six "gate task" steps were scaffolding and step-level validity was mostly measuring whether Grafana's login form had moved. `establishSession()` (src/recorder/preamble.ts) now logs in WITHOUT touching TrajectoryRecorder, so no preamble action reaches trajectory.steps or a step-validity denominator. Verified live on all eight pinned versions: every emitted trajectory has exactly one measured step and zero login steps. Login identity churns once, at 10.4.19, and in two places at the same time: 9.5.21, 10.0.13 username aria-label "Username input field", no