gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb6b3bb4db6b3bb4dMerge branch 'ap56e' into mainTrackerb6b3bb4d/missions/HM65-fields.md

3.6 KB

  1. # HM65: fewer live heap objects with mpackdb `fields` and hl:heap.snapshot
  2. Task (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.
  3. 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.
  4. ## Read first
  5. - 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.
  6. - /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.
  7. - reports/HM1-heap-objects.md (method: copy, warm-up, [hl-gc]), reports/HM64.md, HM63.md (the last such steps and how they measured).
  8. - At a Hybriel gap: STOP with a repro, never a workaround. No hand-written JS. Never edit gates to make them pass.
  9. ## Setup
  10. Worktree: `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).
  11. ## Steps
  12. 1. 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.
  13. 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.
  14. 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.
  15. 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.
  16. ## Limits
  17. Scratch 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.
  18. ## Report
  19. HM65/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.
  20. Cap ~60 API requests / 150k context: if near, commit, stop what you started, report exact next steps.

Branches

Latest commits

  • b6b3bb4dMerge branch 'ap56e' into mainTracker
  • 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
  • 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
  • 4b54f6f9Merge branch 'records-audit' into mainTracker
  • cab4a3bc|||PR records: branch audit, PR-onlyTracker
  • 641e1c4cMerge branch 'records-dp71' into mainTracker
  • 85a6e9f5|||PR records: DP71 checked in ChromeTracker
  • f5be5f18records: gitoria PR-only planTracker
  • 46a37036records: DP71 liveTracker
  • 3bcb7039Status/log: DP71 in progressTracker
  • 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
  • 783957c2Merge branch 'sr1-search' into mainTracker
  • 792b9652README: search results come from the routeTracker
  • fd8570b1|||PR search: one server exchange per keystrokeTracker
  • e8f5cbcaLog: SR1 result, SR1bTracker
  • 8ad275a4Log/status: tracker 68, SR1Tracker
  • f5a06a0fLog: gitoria push setup, SR1Tracker
  • d6b109baMission SR1mre
  • 608b7558Log: FF1 merged via PR #1mre
  • 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker