gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc7cdef62c7cdef62Log: Apollo STOP, workers pausedmrec7cdef62/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

  • 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
  • 6e951d91AP52: show-page rows are keyed records; closing a season is one upsert and removes (tracker#56, hybriel#331)mre
  • 3bb4ccddAP52: modal close button refers to its nested rule with Style.buttonModalX (tracker#51, hybriel#333)mre
  • ba16933fAP52: login callback and title route are static handlers taking the server as third argument (tracker#58, hybriel#332)mre
  • 85153900AP52: re-vendor Hybriel set day52 (source 77cfca31, bin 0a8ed496)mre
  • 7c051eddLog: hybriel#338 answermre
  • d049b8b8Log: HM50 live, #52 donemre
  • 6d05fa37Log: HM50 Part A mergedmre
  • 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
  • e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
  • 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
  • 2f391aa9Log: HM50 startedmre
  • 4b59c03dHM50 mission: doc pathmre