From 923aaca3a868ed8c25b758141f1b91a7007a87ac Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 17 May 2026 12:34:05 +0200 Subject: [PATCH] test(smoke): add T+/wall timer overlay to smoke page for D-13 stale-gap measurement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The smoke test page now displays a fixed top-right overlay showing elapsed-since-load (T+) and wall-clock (HH:MM:SS). Operator can: - Note timer values at save-click moment - Examine the saved WebM's last frame for the visible timer values - Compute (save-click value − last-frame value) = operator-visible "stale gap" the D-13 architecture leaks This converts the subjective "video isn't latest" observation into a precise measurement, enabling correct routing: - Gap ≤ 10s → matches D-13 in-flight-segment trade-off (architectural, not a regression; would inform a follow-up plan to reduce the gap) - Gap > 10s → real regression (ring buffer rotation broken or similar) Pure diagnostic addition to smoke.sh; no extension code changed. Co-Authored-By: Claude Opus 4.7 (1M context) --- smoke.sh | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/smoke.sh b/smoke.sh index 498b4c2..c582d4c 100755 --- a/smoke.sh +++ b/smoke.sh @@ -105,8 +105,28 @@ fi # --- compose the smoke tab data URL --- read -r -d '' SMOKE_HTML <<'EOF' || true Mokosh Smoke Test - + +
+
T+ 0.0s
+
wall --:--:--
+

🧵 Mokosh Smoke Test

This tab is the share-screen target. The picker auto-accepts because the title matches --auto-select-desktop-capture-source.

Steps:

@@ -114,10 +134,26 @@ read -r -d '' SMOKE_HTML <<'EOF' || true
  • First time only: Go to chrome://extensions → toggle Developer mode ON → Load unpacked → select /home/parf/projects/work/repremium/dist.
    (Set KEEP_PROFILE=1 when re-running this script to skip the reload.)
  • Click the AI Call Recorder toolbar icon (or puzzle-piece menu).
  • The picker auto-accepts this tab. Confirm Chrome's "Sharing your screen" indicator appears.
  • -
  • Wait ≥ 35 seconds. Move the mouse around or scroll this page so vp9 has frame deltas.
  • -
  • Click the toolbar icon again → click Сохранить отчёт об ошибке.
  • +
  • Wait ≥ 35 seconds. Note the timer value in the corner. Move the mouse around or scroll this page so vp9 has frame deltas.
  • +
  • Click the toolbar icon again → click Сохранить отчёт об ошибке. Note T+ and wall at the moment you click — compare to the LAST visible timer values in the saved video. Gap = operator-visible "stale" window.
  • The script in your terminal will detect the download and finish the ffprobe gate automatically.

    + EOF # WR-04 fix: python3 is required (asserted in pre-flight). NO fallback —