tracker
All repositories: gitoria
3.7 KB
# SL1-slices: slice the details-repair and person-fill steps so no step blocks the request loop for secondsTask (Apollo 2026-11-03, GO): "slice the repair and person-fill steps (Sonnet, gates, deploy after ~19:30 ...)". Tracker deploys; you do code + gates + measurement only.Origin: caramboleyo: "setting episodes to watched feels offly slow". Diagnosis: reports/ST1-stalls.md (read sections 1 and 5): one `details repair` step (lib/jobs.hl repairTick → completeStep) blocks the single request loop 1.5-10.9 s; person fills (lib/people.hl startFill/fillStep/personFillStep) take median 2.2 s wall while TMDB is only ~0.26 s.Tracker's reading (unconfirmed): same results, same data written, same order of work; only the work per loop turn gets small (target: no single synchronous unit > ~100 ms on real data), the loop answering requests between units. No new features, no change to what the jobs do or how often they ask TMDB/TVmaze (pauses stay), no new env switches unless needed for the gates.## Read first- Worker rules: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (read fully).- Hybriel: /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, docs/CODE-ORDER.md. Existing slicing patterns in this app to copy: lib/jobs.hl `every(0.1)` clocks, `collectStep`/`collected` (scan in slices), the boot scan "in steps of 60 ms" (project.hl / lib/shows.hl). At a Hybriel gap: STOP with a repro, no workaround.- README.md sections about the jobs (repair, person fill); project.hl map.- Fixed rules: no hand-written JS; mpackdb-touching helpers used in `on server` faces must be `static`; logins never expire, never delete session files.## Steps1. First MEASURE where a slow step spends its time (not guess): on a local copy of real data. Real data: extract storage/ (NOT .env, NOT .sessions) from /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261103-1135.tgz into your scratch dir (read only source). TMDB/TVmaze: use the gates' fake TMDB (tests/) — never the real API, no token. Instrument timings locally (time per sub-part: TMDB wait vs. parse vs. upserts/persist vs. index updates vs. poster/photo work). Name the parts with numbers.2. Split the work so each loop turn does at most one bounded unit (e.g. one request's handling, a batch of N upserts, persist in chunks), state kept between turns like the existing jobs do. Same for the person fill (a person page request must not do the whole fill inline if that blocks; keep what the page shows the same).3. Prove on the real-data copy: per-unit max and p99 time before vs after (log them), and that results are identical (same records written for a sample of ≥20 titles and ≥20 people: compare stores or dumps before/after).4. Gates: all of deploy.sh GATES (11) + `node tests/tmdbfix.mjs`, LC_ALL=C, ports 8701-8719 only (never 8700), each start waits ≥120 s. Expected only the known #277 failures (browser 'results for g', franchises 'added Pager Older Series (2019)'). Any other failure: fix your change, never a gate.5. Work on a branch `sl1-slices` from main in worktree /media/STORAGE/claude-scratch/tracker/SL1/wt (copy main's bin/ into it: day38b 5ff2a46d). Scratch only /media/STORAGE/claude-scratch/tracker/SL1/. No live access, no byrodin, no deploy, no push, no lisbeth Chrome.6. Stop everything you started by saved PID; delete the extracted data copy at the end; list name+PID.## Report/media/STORAGE/claude-scratch/tracker/SL1/REPORT.md, copy to reports/SL1-slices.md in the worktree, commit on the branch. Final message ≤10 lines: commits, where the time went (numbers), max/p99 unit time before → after, identical-results check, gate counts, stopped processes.Cap ~60 API requests / 150k context: if near, commit, stop what you started, report exact next steps.
Branches
Latest commits
- 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
- 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
- e84586a7Mission AP56bmre
- 15917f03Record PR workflow rule (gitoria#50)mre
- 942ac995status: paused workers statemre
- 44b934e5log: respawn cleanupmre
- 03a80097Log: Anton GC A/Bmre
- c7cdef62Log: Apollo STOP, workers pausedmre
- d0c083fbLog: usage stopmre
- c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
- 1eb6f1a1Missions AP56, BS1mre
- 4871f8adLog: AP52 live on day52, browser gate greenmre
- d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
- c4a60ef2Log: RT52 retest passed, AP52 startedmre