gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite84586a7e84586a7Mission AP56bmree84586a7/missions/HM60-shortids.md

3.9 KB

  1. # HM60 — tracker#60 short-ID lookup without 4.5 M heap objects
  2. Task (ticket tracker#60, created by Tracker on Apollo's order 2026-11-04; Apollo verbatim: "start 1 (short-ID lookup packed/mpackdb index) … on Sol, each on a copy with gates + an [hl-gc] before/after"). Ticket text: "Goal: the same short-ID lookups, redirects and uniqueness from a packed buffer or an mpackdb index instead of a map of strings."
  3. Tracker's reading (unconfirmed): HM1 measured the short-ID owner map at ~4.50 M objects (1,500,318 owners, ~3 objects each) of 17.99 M. Replace it with either (a) a packed sorted buffer (fixed-width shortId/kind/id records, binary search) or (b) declared mpackdb indexes on shortId in both tables (needs an index migration on existing stores — test on the copy, measure native-index cost and boot time). Choose by measurement and say why. Keep: uniqueness across shows and persons, old reservations (data/old-short-ids.json, 702), tombstone redirects, the short-ID queue/backfill behaviour.
  4. ## Rules (both HM workers)
  5. - 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.
  6. - 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).
  7. - 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).
  8. - Branch `hm60-shortids` from main 2e7d625 in a worktree at /media/STORAGE/claude-scratch/tracker/HM60/wt. Commit on that branch only; never touch main, never push, never deploy, never touch byrodin.
  9. - Data: unpack /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261104-0940.tgz into /media/STORAGE/claude-scratch/tracker/HM60/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).
  10. - Port for your copy app: 8710 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.
  11. - GATES: the gate suite uses ports 8701-8709, 8711, 8713-8719, and the other HM worker runs 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.
  12. - 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).
  13. - 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.
  14. - Report: /media/STORAGE/projects/WorldAPI/tracker.worldapi.org/reports/HM60.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

  • 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
  • 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