gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/missions/SL1-slices.md

3.7 KB

  1. # SL1-slices: slice the details-repair and person-fill steps so no step blocks the request loop for seconds
  2. Task (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.
  3. 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.
  4. 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.
  5. ## Read first
  6. - Worker rules: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (read fully).
  7. - 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.
  8. - README.md sections about the jobs (repair, person fill); project.hl map.
  9. - Fixed rules: no hand-written JS; mpackdb-touching helpers used in `on server` faces must be `static`; logins never expire, never delete session files.
  10. ## Steps
  11. 1. 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.
  12. 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).
  13. 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).
  14. 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.
  15. 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.
  16. 6. Stop everything you started by saved PID; delete the extracted data copy at the end; list name+PID.
  17. ## Report
  18. /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.
  19. Cap ~60 API requests / 150k context: if near, commit, stop what you started, report exact next steps.

Branches

Latest commits

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker