tracker
All repositories: gitoria
3.6 KB
# HM65: fewer live heap objects with mpackdb `fields` and hl:heap.snapshotTask (tracker#65; Apollo 2026-11-07): "GO fields + heap.snapshot, Sol $3 on a branch." Anton: GC incremental sweep is parked, fewer live objects is the lever.Tracker's reading (unconfirmed): measure with heap.snapshot what holds the live heap; where a boot map or scan reads whole records but keeps only some fields, use `fields`; prove the drop on a copy. No behaviour change. Tracker deploys.## Read first- Worker rules: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (read fully). .hl work: /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, docs/CODE-ORDER.md.- /media/STORAGE/projects/hybriel: plugins/mpackdb docs "Read selected fields (mission 600)"; SPEC.md near line 3303 (hl:heap, snapshot). main's bin is day48, it has both.- reports/HM1-heap-objects.md (method: copy, warm-up, [hl-gc]), reports/HM64.md, HM63.md (the last such steps and how they measured).- At a Hybriel gap: STOP with a repro, never a workaround. No hand-written JS. Never edit gates to make them pass.## SetupWorktree: `git worktree add -b hm65-fields /media/STORAGE/claude-scratch/tracker/HM65/wt main`, `cp -a` main's bin/ into it (git-ignored). Do not touch the main checkout. Copy data: extract /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261107-0814.tgz into HM65/ without posters/profiles, sessions or .env, jobs disabled (HM1 recipe). Port 8713 (slot 8701-8719 on loreana; 8700 never; `ss -ltnp` first).## Steps1. Baseline on the copy: warm up, then median of the final 10 [hl-gc] lines (marked objects, live bytes, mark, pause), ready time, RSS. heap.snapshot top roots: temporary instrumentation only, never committed unless behind nothing that runs on live.2. Apply `fields` where the snapshot and the code show whole records read to keep a part (Anton's list: catalog.index 294 MB, shortids.owners 101 MB, search.buckets 85 MB, search.entId/entText 76 MB each, castProfiles 50 MB; some may not profit: a map of strings stays a map of strings; say so). One commit per structure, each with its own measured before/after. Stop adding structures once one brings under 1 % of objects. A structure where the only real fix is a native index or a rebuilt store: name it with its number, do not start it.3. Same-page proof: canonical HTML of about 50 pages identical to baseline, search results identical, same CSS. Cold start to first 200 on empty storage, one run (RV48: 105-120 s): must not jump.4. All gates in deploy.sh GATES (11), LC_ALL=C, under `flock /media/STORAGE/claude-scratch/tracker/gates.lock`, runner as in RV48 (claude-scratch/tracker/RV48 or CB/gates.sh with your paths), detached with a log. Expected all 0 failed (browser 389, security 56, kinds 32, franchises 53, pager 229, franchiseseed 26, signin-return 3, theme 0, person-lookup ok, mobile 45, warmstart 12). Known: browser gate failed 8 once when a run crossed a full hour UTC (daily-sync fixture): if so, rerun that gate alone once, report both.## LimitsScratch only /media/STORAGE/claude-scratch/tracker/HM65/. Nothing in /tmp, /home/mre or projects/. No live access, no byrodin, no deploy, no push, no lisbeth Chrome, no LOG/STATUS/tickets. Do not merge. Stop everything you started by saved PID; list name+PID. Leave the worktree.## ReportHM65/REPORT.md, copy to reports/HM65.md, commit on the branch. Final message <=10 lines: commits, table per structure (objects and MB before/after), overall objects, mark, pause, ready, RSS before/after, cold start, page comparison, gates, stopped processes.Cap ~60 API requests / 150k context: if near, commit, stop what you started, report exact next steps.
Branches
Latest commits
- 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
- 83760a55Browser gate: search results belong to the address form of the typed text (tracker#52 navigate replace)mre