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
- 7f04de33log: HM49Bmre
- 00616cf3log: #49 batch merged, DP67 startedmre
- d7232e86Merge hm49-styles: tracker#49 first batch of component stylesmre
- 079f376dMove seven components' styles into Style blocksmre
- 17d66feelog: #58 mergedmre
- 69a6640bMerge hm58-map: tracker#58 project.hl only the mapmre
- a85f7900Move route logic out of the project mapmre
- 13dea5belog: #56 live, HM49 and HM58 startedmre
- a31c8f2fdocs: tracker#36 remaining listmre
- 975d06d1log: #36 live, DP66 startedmre
- d6d03fa3mission: T36Bmre
- e7512d00status: #36 rolled back, retry askedmre
- c98e2043log: T36A rollbackmre
- ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
- 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
- 55257852log: #53 live, #56 mergedmre
- 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
- 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
- 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
- 6da612fclog: T36A tool defectmre