gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitcb78a1a0cb78a1a0HM65 report missing heap diagnostic package with repromrecb78a1a0/missions/HM62-personindex.md

4.8 KB

  1. # HM62 — tracker#62 person lookups as native mpackdb indexes (on top of tracker#61)
  2. Task (ticket tracker#62, created by Tracker on Apollo's order 2026-11-04; Apollo verbatim: "open the ticket for option 3 (person slug/TMDB maps as native mpackdb index), build it on Sol on top of #61, copy + gates + GC before/after; the index migration tested on a copy first."). Ticket text: "Goal: the same person lookups from native mpackdb indexes, together with the packed people order of tracker#61."
  3. Tracker's reading (unconfirmed): HM1 (reports/HM1-heap-objects.md) measured the person slug map (1,220,368 keys) and the person TMDB map (1,220,368 keys) at ~2.44 M objects together; HM61 (reports/HM61.md) showed that packing the people order frees nothing while these maps still hold the person ID strings. Replace both maps with declared mpackdb indexes on the persons table (slug, tmdb id) and lookups through them; keep the packed order from #61. Find out from the mpackdb plugin source/docs how indexes are declared and how an existing store gets a new index (open-time build or explicit migration); measure its boot time and native memory (RSS) cost on the copy. Keep: slug conflicts and their resolution, guest/new-person creation, TMDB-id lookup at cast import, /person/<slug> and /person/tmdb/<id> pages and redirects, person-lookup gate behaviour.
  4. BEFORE = main 90734c6 (the code going live tonight); AFTER = your branch. Objects, live_bytes, mark/pause, boot scan time and process RSS.
  5. Live migration: if the index must be built on the live store, describe exactly how (does it happen at first open of the new code, how long on 1.22 M persons, is it safe through a standby swap where the standby opens the same store, what happens on rollback to old code). This decides the deploy plan — be exact.
  6. ## Rules (both HM workers)
  7. - Read fully: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md, /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md. Map: project.hl; README.md relevant sections only. Measurement basis: reports/HM1-heap-objects.md and its evidence in /media/STORAGE/claude-scratch/tracker/HM1/ (start.sh, instrumentation.patch, server4.log, heap-deltas.json) — reuse its start recipe, do not redo HM1.
  8. - Fixed tracker rules: no hand-written JavaScript; .hl only. mpackdb UUID @id. Hybriel gap: STOP with a repro for Anton, never a workaround (no `import c`, no runtime patch).
  9. - Behaviour must stay identical (same pages, same order, same redirects, same uniqueness). One ticket = one step: build only this option, nothing from the others (search text, person maps, catalog are later tickets).
  10. - Branch `hm62-personindex` from main 90734c6 (contains tracker#60, now going live), then merge branch hm61-peopleorder b5357ac (tracker#61, packed people order, built and gated) into it as the first commit in a worktree at /media/STORAGE/claude-scratch/tracker/HM62/wt. Commit on that branch only; never touch main, never push, never deploy, never touch byrodin.
  11. - Data: unpack /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261104-0940.tgz into /media/STORAGE/claude-scratch/tracker/HM62/copy (storage only, no posters/profiles, no sessions, no .env; check disk first, another worker unpacks one too). All jobs off as in HM1/start.sh. Delete the copy at the end. Set HL_CACHE_DIR inside your scratch dir (HM1 found the compile cache otherwise lands in home).
  12. - Port for your copy app: 8712 only (HL_HOST=127.0.0.1). If the change touches stored data or indexes (a migration), run it on the copy only and describe it exactly for the live step.
  13. - GATES: the gate suite uses ports 8701-8709, 8711, 8713-8719, and other workers may run it too. Run it ONLY under the shared lock: `flock /media/STORAGE/claude-scratch/tracker/gates.lock bash <your gates.sh>` with a copy of /media/STORAGE/claude-scratch/tracker/CB/gates.sh (cd to your worktree, logs into your scratch dir). Each gate start waits ≥120 s (cold compile). All 11 must pass with 0 failed. Stop your copy app while you hold nothing else on those ports.
  14. - Proof required: [hl-gc] (HL_GC_STATS=1) on the warmed copy BEFORE (main 2e7d625) and AFTER (your branch): marked objects, live_bytes, median mark_ms and pause_ms over ≥10 GCs each, same load (HM1's census-streaming method or a fixed request loop). Plus a functional check against the real copy of every behaviour you touched (e.g. sample URLs before/after give the same status/Location/HTML).
  15. - Budget: maxUsd 6, ~60 requests/150k context, then commit, report, stop. Stop everything you started (servers, chromes, loops); list them with pids in the report; `ss -ltnp` your port free at the end.
  16. - Report: /media/STORAGE/projects/WorldAPI/tracker.worldapi.org/reports/HM62.md (only that file in the main repo; no LOG/STATUS edits), plus a short final message: branch + commit, objects before/after, mark/pause before/after, gates result, any live migration step.

Branches

Latest commits

  • cb78a1a0HM65 report missing heap diagnostic package with repromre
  • 89606a5cHM65 briefmre
  • 096ce0d4log: DP69 live on day48mre
  • b3d8a80bDP69 brief, RV48 mergedmre
  • ce6d7d32Merge rv48: Hybriel day48mre
  • 3da2ea86RV48: report day48 cold starts, gates and cleanupmre
  • 8d9ecdfeRV48: re-vendor Hybriel set day48 (source b6a8f429, bin 660a9524)mre
  • 4a802ae7status: RV48 runningmre
  • 0a5412b6RV48 brief, day48 outmre
  • 56665efelog: CB69 mergedmre
  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre
  • 9a99659blog: hybriel#334, batch waits for day48mre
  • 85fa6c9blog: CB68 result, CB69 startedmre
  • 2f07c1b7log: DP68 boot gate failed, CB68mre
  • 9652782dlog: HM59 merged, DP68 startedmre
  • 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
  • f7bfe90bMove remaining page builders into their topicsmre
  • 7c3991f9log: day46 from Antonmre
  • ec54fc35Move show page logic into the shows topicmre