gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2ae8a47b2ae8a47bMerge branch 'sk-sec'mre2ae8a47b/missions/002-tracker-my-pages.md

2.5 KB

  1. # Mission 002 (old 041) — tracker.worldapi.org#8: /my/ pages, S01E01, years, speed
  2. Ticket + all comments: `curl -s -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/tracker.worldapi.org/tickets/8`
  3. Same setup and rules as mission 001 (old 040) (`missions/001-tracker-my-shows.md`) — read it.
  4. App: loreana:/media/STORAGE/projects/tracker.worldapi.org (ssh loreana, wrap in `bash -s`).
  5. ## Build
  6. 1. `/unwatched` → `/my/unwatched`, `/schedule` → `/my/schedule`; old addresses answer 301 to the new ones.
  7. 2. Episodes everywhere as `S01E01` (two digits each): /my/unwatched, /my/schedule rows (replace "Ep 1").
  8. 3. Show page: "1 episode" singular.
  9. 4. Year next to show titles wherever titles are listed: `Doctor Who (2005)` (from the show's year/release field).
  10. 5. SPEED with the real data (the creator's account: 128 follows, 11,692 watches, 231,584 episodes). Now: /my/shows
  11. ~25 s, /unwatched ~18 s full page load. Target: each /my/ page under 2 s full page load. Load the user's
  12. watched ids once (a map), no per-episode scans of all watches; find out why /my/shows' full render is slow when its
  13. data part is 0.2 s.
  14. 6. Gate: extend tests/browser.mjs for 1–4; all green with
  15. `TRACKER_GATE_SHOTS=/tmp/w041-shots TRACKER_GATE_PORT=8720 TRACKER_GATE_IDENT_PORT=8721 TRACKER_GATE_CHROME=8722-8726 node tests/browser.mjs`
  16. (the gate already takes screenshots when TRACKER_GATE_SHOTS is set — update its page list to the /my/ paths and LOOK
  17. at the PNGs yourself).
  18. ## Real-data check (required)
  19. Copy the live data to Loreana: `ssh [email protected] 'tar czf - -C /CONTAINERS/projects/tracker.worldapi.org storage'`
  20. into `.scratch/realdata/` (ONLY `storage/` — never `.env` or `.sessions`). Start a dev server on port 8730 with
  21. TRACKER_STORAGE pointing at the copy and its own `.scratch/realdata-sessions/`. Create a session there for the
  22. creator's user (users table, ident id `az5b2`) in that COPY's sessions dir, set it as cookie in headless Chrome
  23. (cdp.mjs), then load /my/shows, /my/unwatched, /my/schedule and one show page: time each full load, take screenshots,
  24. look at them. Delete the copy and stop everything afterwards. Never touch Byrodin's live folder except that one tar read.
  25. ## Report (short)
  26. Files changed, decisions, gate command + last line, the 4 real-data load times, where the screenshots are
  27. (/tmp/w041-shots/ and real-data PNGs in /tmp/w041-real/ on Loreana — keep those), open points, Hybriel issues.
  28. ## Added 2026-10-01
  29. - Kill only processes you started, by PID. Never `pkill -f <pattern>` (other workers run the same server command).

Branches

Latest commits

  • 2ae8a47bMerge branch 'sk-sec'mre
  • 8fee5d52sessions last 99 years (creator 2026-10-23: logins never expire; only sign out ends them)mre
  • 944ad51eSK: report reports/SK-sec.md, LOGsk
  • 415487c1SK: import budget per user + id type check, gate checkssk
  • 7b8a4f74security audit SK: nosniff + image sandbox headers, face id checks, adult follow, login budget + new session at login, guest-link budget, tests/security.mjssk
  • f0f26c5areports: T18 section (gates, boot-gate, 3x3 table, search + short-id compare)mre
  • 2a8682a1deploy.sh GATES: tests/warmstart.mjsmre
  • 3761338breports/T17-boot.md: handoff (phase table, fix, numbers so far, open proof)mre
  • 52e09eb2boot: sync window 1000 ms (the gates ask for a complete start), README boot-time sectionmre
  • c87149e8tests/warmstart.mjs: the progressive start proven over HTTP (note in the window, 503 short id, after: everything); bootBeginmre
  • 593a6350boot: resumable start-up scan, the server listens first (T17)mre
  • be4890a0reports: H2 hydration audit (no test change needed)mre
  • 1f9c8bf4re-vendor Hybriel 5406d146 (hl:web batches 9+10: #72 emits while the socket is closed delivered after reconnect, browser boot linear, faster list appends; contains int 6–14 + m406)mre
  • c1df88eddocker-compose: HL_GC_TABLE_LOAD=62 (tracker mission 048, T16 real-data numbers)mre
  • d0a82867mission 048: report, LOG (HL_GC_TABLE_LOAD=62 measured)mre
  • 2d4be66fre-vendor Hybriel 5df4eb7e (GC: HL_GC_TABLE_LOAD knob, mission 406)mre
  • 99e7c8b9tests: realdata-m035-radii, repro-t38, realdata-060-backfill ports from env (REAL_PORT, REAL_CHROME, REPRO_CHROME), defaults unchangedmre
  • 4625aa22re-vendor Hybriel 6f8a0689 (int 6–11: streaming cursors, #203 index heal + close() fix, fd403 listDir/cursor fds, hl:time browser side, hl:web batches 5+6)mre
  • a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
  • 33ad4bd5Merge commit 'f57f64f'mre