tracker
All repositories: gitoria
11.8 KB
# tracker mission 038 — #43 Variety → Shows, #42 series pages, #36 TMDB id check (hybriel 06617221)Worktree tracker-w38, branch w38 (on 4fa303b), ports 8700–8719. Hybriel NOT re-vendored (bin/hybriel sha256 af6dfcea…, = 06617221).Real data: `tracker.worldapi.org-20261019-0245.tgz`, ONLY `storage/` extracted (no `.env`, no `.sessions`) into `.scratch/w38/`copies; trees from `git archive` + bin (no `.env`), every background job off (`.scratch/w38/scripts/realdata.sh` = tests/realdata-m028.sh+ TRACKER_FRANCHISE_SEED=0), own az5b2 session. Commits: 085c2e5 (#43), ca5ee63 (#42), 120f7f9 (#36), + docs.## #43 — Variety (and the other non-scripted TVmaze types) → Shows — DONE- Taken from parked w37-wip a79c8c1 ONLY the #43 part (lib/backfill.hl details.hl jobs.hl search.hl shows.hl sync.hl tmdb.hl,tools/tvmaze-types.hl, tests: fake TVmaze `types`, seed Variety Gate Series, 2 browser.mjs checks, start waits 150 s); no plugins,no re-vendor, no deploy.sh / docker-compose (cache volume) changes.- Rule (`lib/shows.hl kindOfTitle`): a show genre, TMDB type Reality/Talk Show/News/Video, or now TVmaze type Variety, Talk Show,Reality, Game Show, News, Panel Show, Award Show, Sports → **Show**. `tvmazeType` comes from the sync and the TVmaze statusbackfill, which after the deploy asks every series with a TVmaze id once (live copy 1,652, 550 ms apart ≈ 15–18 min), movingeach title at once.- Real copy (`tools/tvmaze-types.hl`, `.scratch/w38/real43/tvmaze-types.log`): 1,652 asked, 1,652 types stored, 0 errors,1,104 s; types seen: Scripted 1233, Animation 141, Talk Show 76, Documentary 66, Reality 48, Variety 42, Game Show 25, Award Show 9,Panel Show 7, News 3, Sports 2. **44 titles move Series → Shows**, 0 the other way; Shows 2,810 → 2,854 (independent recount`.scratch/w38/scripts/count43.hl`). In the app on that copy (`scripts/check43.sh` → `check43-copy.txt`): 44/44 on /shows (allpages), 0 on /series, page heading "Show | …" (SNL UK, MADtv, The Oscars …). TMDB type was "Scripted" for all but two:- **Variety** (23): True Story with Ed & Randall (2022), A Black Lady Sketch Show (2019), Messyness (2021), The Dana Carvey Show (1996), Gotham Comedy Live (2012), Live at Gotham (2006), MADtv (1995), Saturday Night Live Arabia (2016), What Just Happened??! with Fred Savage (2019), The Friday Night Project (2005), The Standups (2017), Yo Gabba Gabba! (2007), Your Show of Shows (1950), The Kennedy Center Honors (1978), The Julie Andrews Hour (1972), The Danny Kaye Show (1963), In Concert (1972), Saturday Night Special (1996), Miss America (1954), The George Gobel Show (1954), Great Performances (1971), Artsnight (2015) [TMDB Documentary], Saturday Night Live UK (2026)- **Game Show** (8): Blockbusters (1980), 1 vs. 100 (2006), Child Support (2018), Figure It Out (1997), Hollywood Squares (1998), To Tell the Truth (2016), All New Blockbusters (2012), Nashville Squares (2019)- **Reality** (4): Derren Brown: Trick or Treat (2007), Celebrity Rehab Presents Sober House (2009), 1000 Ways to Die (2009) [TMDB Documentary], Flight Attendant School (?)- **Award Show** (4): Teen Choice Awards (1999), The Daytime Emmy Awards (1974), The Oscars (1953), The Emmy Awards (1949)- **Panel Show** (3): Ask Rhod Gilbert (2010), Comedy World Cup (2012), What's My Line? (1950)- **Talk Show** (1): Comedy Nights with Kapil (2013)- **Sports** (1): WWE Saturday Night's Main Event (1985)- Gate (browser.mjs): "#43: TVmaze type Variety makes a series a show …" + "#43: after a restart … still a show". On OLD code (4fa303blib + the new tests, `.scratch/w38/gates-43old/browser.txt`): 379 passed, **3 failed** (both #43 checks and the #35 log line`types= moved=`). On 085c2e5 all six gates green (`.scratch/w38/gates-43/`: 382/0, 32/0, 53/0, 229/0, 26/0, theme 0).- Limits: only titles WITH a TVmaze id get a TVmaze type (1,652 of 15,026 TV titles); `/series/<slug>` of a show still renders thepage (200, og:url = /shows/<slug>) as before #43.## #42 — series pages — measured, two costs removed; the remaining slow loads are GC pausesMeasured on the real copy, jobs off (`.scratch/w38/scripts/gcper.sh`: 100 sequential curl loads per page, `HL_GC_TRACE=1` countsthe GCs and their allocations; `usable.mjs`: headless Chrome, navigation start → hl:web socket open, 5 loads × 1280/390).| page | server old: median / max, GCs per 100 | server new | usable old (median 1280/390) | usable new ||---|---|---|---|---|| /shows/Saturday-Night-Live | 0.087 / 3.865 s, 6 | 0.065 / 1.281 s, 6 | 305 / 227 ms | 215 / 188 ms || /series/The-Simpsons | 0.057 / 1.015, 7 | 0.056 / 1.058, 5 | 204 / 200 | 200 / 176 || /series/The-Flash | 0.054 / 0.886, 6 | 0.065 / 1.622, 5 | 192 / 177 | 175 / 183 || /series/Greys-Anatomy | 0.058 / 1.246, 5 | 0.052 / 1.001, 4 | 176 / 180 | 178 / 175 || /series/Reacher | 0.043 / 0.743, 4 | 0.047 / 1.126, 4 | 191 / 166 | 165 / 153 || /series/Star-Trek-Picard, /Foundation | 0.038–0.040 / 0.94–1.12, 4 | 0.041–0.046 / 1.15–1.45, 4 | 159–168 / 149–153 | 138–145 / 135–151 || unknown slug (/series/No-Such-Title-w38) | **10.7–15.7 s** | **0.013–0.015 s** | | |- Profile (`.scratch/w38/scripts/profile42.hl`, `alloc42.hl`): a series render's own work is small — show fetch 0.4 ms, seasons1–2 ms, statusOf/isAiring 1 ms, widgets < 1 ms — except the CAST: `castRowsOf` fetched every cast member's WHOLE person record(SNL: 303 people with 4,761 credits, 721 KB decoded; Simpsons 300 / 4,864) = **~49k allocations and 11 ms per render**, ~1/4–1/3 ofthe page's ~110–200k. Every ~3M allocations the GC stops the server for **0.7–1.2 s** on the copy's heap (3.7 GB RSS) — thosepauses are every "max" above and the 0.8–2.2 s Chrome outliers; the median is 40–90 ms server, 130–300 ms usable.- Fixed: (1) `showBySlug` no longer scans every title for a slug the map does not know (4 scans per page → 10–15 s, theone-request-at-a-time server blocked for every visitor); new titles enter the map via `refreshTitleCaches → noteSlugsOf` (bothtitle puts call refreshCatalogShow right after). (2) `personLinkOf` (name + slug, cached per person; neither ever changes oncestored). Allocations per load (GC-counted): SNL 172k → 147k, Simpsons 204k → 124k, Flash 170k → 130k, Grey's 138k → 101k (±1 GCwindow). Same output: 20 pages (10 titles × signed out/in) diffed old vs new after masking per-request values (ms times, sessionhex, build hash, view source lines, port): **20/20 SAME** (`.scratch/w38/htmldiff-42.txt`, scripts/htmldiff.py).- Target ≤ 0.5 s server / ≤ 1.5 s usable: met at the median on the copy (before and after); NOT guaranteed per load — a GC pause(0.7–1.6 s) lands on ~4–6 of 100 series loads. Live now (05:30, curl, public): series 0.16–0.77 s, one 1.52 s (SNL); report 036's1.3–2.1 s were taken right after a deploy, with the first-start jobs running (their fetches block the server) — not reproduciblewith jobs off. Also not reproduced: live's own heap (bigger → longer pauses).## #36 — tools/tmdb-check.hl — tool done, REAL RUN NOT DONE (no TMDB token in this session)- `tools/tmdb-check.hl` (logic `lib/tmdbcheck.hl`): every live migrated title with a TMDB id (9,364 on the copy): migrated title(`migratedTitle` else `title`) + year (`year` else `release`) vs `GET /movie|tv/<id>?append_to_response=alternative_titles`(title, original, alternatives; normalized; "partly" = containment). ok / **ambiguous** (one of title, year disagrees) /**clear** (both, or 404). Read-only (no put/update/persist; copy only — opening a table rewrites its files). 260 ms per request,passing failures (no answer/429/5xx) once more. ≈ 70 min for 9,364.- Token: **`TMDB_READ_TOKEN`**, from the environment only; this session's environment has none (`REFUSED: TMDB_READ_TOKEN is notset`), and `.env` may not be read → the mismatch list against TMDB is NOT in this report. Command for whoever has the token:`TMDB_READ_TOKEN=… TRACKER_STORAGE=<copy>/storage/mpackdb ./bin/hybriel tools/tmdb-check.hl > tmdb-check.txt` (copy of the newestbackup, `storage/` only).- Tested against a fake TMDB (`.scratch/w38/t36/run36.sh` → `run36.txt`): 8 seeded titles → 7 migrated asked (the imported oneskipped), ok 3 (same; translated title = TMDB original), ambiguous 2 (Doctor Who 1963 vs TMDB 2005; renamed film, same year),clear 2 (other title + other year; 404), a 503 asked again → ok; Authorization sent; shows.mpack md5 unchanged.- No-request preview `--stored` on the copy (`.scratch/w38/tmdbcheck-stored.txt`): the TMDB names the app already stored differ from878 of 9,364 migrated titles (352 "differs", 526 "partly") — almost all translations (Korean/Japanese/Hindi originals → Englishnames), which the online check settles by TMDB's original title. Visible candidates: "AAA - Tour 2009 -A depArture pArty-" →TMDB 622511 "AAA TOUR 2012 -777- TRIPLE SEVEN"; "Untitled Italian/Indian Citadel Installment" → "Citadel: Diana"/"Citadel HoneyBunny" (renamed, fine). The Daily Show (tmdb 2224, ours "The Daily Show with Trevor Noah") = "partly" — not a wrong id (mission 037).## Hybriel finding (06617221, not in hybriel tickets) — repro `.scratch/w38/repro-let-list/`A callee's own local declaration hits the CALLER's same-named variable: `repro3.hl`/`repro4.hl` — in a file's top-level `for`, `let xs= [1..5]`, then a function (same file or imported) that does `xs = []; xs.push(n) ×2` → the caller's `xs.length` is 2 (expect 5);`repro6.hl` — a function's `while` loop with plain `x = setsX(i)`, `setsX` has its own `x = n * 2` → 2nd call fails "Cannot reassignimmutable variable 'x'" INSIDE the callee (lib/x.hl:3). Found because `profile42.hl`'s `seasons` became isAiring's 2. App codeuntouched by it so far as I saw; the new tools keep unique local names and run inside functions.## Gates (06617221, HEAD) — `.scratch/w38/gates-final/`- 085c2e5 (#43 alone): browser 382/0, kinds 32/0, franchises 53/0, pager 229/0, franchiseseed 26/0, check-theme 0 problems (`.scratch/w38/gates-43/`).- 120f7f9 (HEAD code: #43 + #42 + #36): kinds 32/0, franchises 53/0, pager 229/0, franchiseseed 26/0, theme 0 — **browser 374/8**(`.scratch/w38/gates-final/browser.txt`). All 8 failures are the in-app daily run block (clock-started sync at the configured hour:"run 0 s, during: []", then its 7 follow-ups). The gate logged `tmdb sync: daily at 3:00 UTC` and ran across the 03→04 UTC hourchange, so the clock trigger probably never fired. NOT proven: rerun pending (quota stop).## HANDOFF (quota stop, 2026-10-19 ~06:05)- Finished and committed: #43 (085c2e5), #42 (ca5ee63), #36 tool (120f7f9); docs (README, docs/kinds.md, STATUS, LOG, this report) in the last commit.- **Next step 1**: rerun `node tests/browser.mjs` on HEAD well inside one UTC hour (e.g. `.scratch/w38/scripts/gates.sh <tree of HEAD> <out>`,ports 8703–8705 + Chrome 8711–8715). Green → #42 is gated. If the in-app daily run fails again: the suspect is #42's`refreshTitleCaches → noteSlugsOf` (lib/shows.hl), which the sync's refreshCatalogShow calls. Compare its log with 085c2e5 (green).- **Next step 2** (#36): run `tools/tmdb-check.hl` with `TMDB_READ_TOKEN` on a fresh copy of the newest backup (`storage/` only),≈ 70 min. Put the `clear …` / `ambiguous …` lines into a report.- Real-data copies deleted; evidence, scripts and repros kept in `.scratch/w38/`.## Open questions for the creator1. #36: who runs `tools/tmdb-check.hl` with `TMDB_READ_TOKEN` (≈ 70 min on a copy)? Then the clear/ambiguous list comes as its own report.2. #43: borderline titles in the 44 — Yo Gabba Gabba! (kids), Great Performances, Miss America, In Concert, Artsnight and 1000 Waysto Die (TMDB "Documentary") become Shows by TVmaze's type. Keep the type rule as is?3. #42: the remaining slow loads are runtime GC pauses (0.7–1.6 s, ∝ heap size, ~5 % of series loads). Accept, or a Hybrielticket (incremental GC / shorter pauses) / test `HL_GC_THRESHOLD`?
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