gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit46a3703646a37036records: DP71 liveTracker46a37036/missions/SR1-search-roundtrip.md

2.1 KB

  1. # SR1: does search.hl make an extra server round trip per keystroke?
  2. Origin (Tracker's later step, LOG 2026-11-08 13:0x): since HM50, typing in search calls navigate(replace) per keystroke; that changes q -> startText -> query, so search.hl's guard `query != v` drops the searchDb answer and `found` is re-derived from the address text. Question: does that re-derivation add a server round trip (or a second searchDb call) per keystroke compared with one call per keystroke?
  3. Tracker's reading (unconfirmed): measure first; change code only if there is a real extra round trip, and then with the smallest change that keeps the visible behaviour (typed text, caret, address /search/<q>, results) the same. If the cause is in the framework, STOP with a short repro.
  4. ## Rules
  5. - Read /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md fully. HL-STANDARD.md is in your system prompt and applies (L1-L19, F1-F21). No hand-written JavaScript in the app.
  6. - Scratch only /media/STORAGE/claude-scratch/tracker/SR1/. Worktree: `git worktree add -b sr1-search /media/STORAGE/claude-scratch/tracker/SR1/wt main`; bin/ is untracked: copy it from /media/STORAGE/projects/WorldAPI/tracker.worldapi.org/bin. Ports 8703-8706 (check `ss -ltnp`; never 8700).
  7. - Measure on the gate fixture (as tests/browser.mjs builds it) with Chrome DevTools Protocol from a harness in your scratch dir: type a 9-letter query letter by letter; count per keystroke the WebSocket frames / server face calls (and searchDb calls if visible in the server log). Loreana test Chrome http://127.0.0.1:9223 may be used: one own plain tab, closed in finally; or a headless Chrome you start and stop yourself.
  8. - If you change code: all 11 gates of deploy.sh GATES, LC_ALL=C, under `flock /media/STORAGE/claude-scratch/tracker/gates.lock`, starts wait >=120 s; measure again; commit with subject starting exactly `|||PR ` on the branch. Do NOT push, merge or deploy; no tickets, LOG, STATUS.
  9. - Stop everything you started; list it. Report /media/STORAGE/claude-scratch/tracker/SR1/REPORT.md; final message <=6 lines (round trips per keystroke before/after, commit if any, gates).
  10. - Limit ~40 requests.

Branches

Latest commits

  • 46a37036records: DP71 liveTracker
  • 3bcb7039Status/log: DP71 in progressTracker
  • 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
  • 783957c2Merge branch 'sr1-search' into mainTracker
  • 792b9652README: search results come from the routeTracker
  • fd8570b1|||PR search: one server exchange per keystrokeTracker
  • e8f5cbcaLog: SR1 result, SR1bTracker
  • 8ad275a4Log/status: tracker 68, SR1Tracker
  • f5a06a0fLog: gitoria push setup, SR1Tracker
  • d6b109baMission SR1mre
  • 608b7558Log: FF1 merged via PR #1mre
  • 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
  • c934361a|||PR tests: gates fail fast when the app exits during startmre
  • d714ae42Log/status: AP56 closed out, FF1mre
  • a429d088Mission FF1mre
  • 03bbfba3Log: AP56c causemre
  • 24845fe3Log: AP56b result, AP56cmre
  • 6a6d71eaLog: gitoria membershipmre
  • 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
  • 6bb7c20estatus: window 2026-11-09mre