gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit91bcdf0e91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre91bcdf0e/missions/HM54-show-person-fill.md

5.1 KB

  1. # HM54: tracker#54 and the show/person part of #55: fill by server push, no animation timer
  2. Tasks, Atlas's audit tickets:
  3. #54: "the page's data are member initializers that read the server import; a long fill (TMDB fetch of an incomplete title or filmography) should be a push (`emit client` with audience) from a server job that writes the records, not a client loop that asks again and again. The face `showComplete` / `personFill` loop and the `r.done` / `r.pos` protocol disappear."
  4. #55: "the server pushes (`emit client ... audience`) when a title or person is complete; the online/offline state comes from the framework's own event or a real `every`/`after` clock, not a hidden animated element. If the framework has no way to react to the browser's online event, report that gap with a repro in .scratch/."
  5. Read both tickets fully: https://tickets.worldapi.org/tracker.worldapi.org/54 and /55 (headers `Accept: text/markdown`, `user-agent: Tracker`; read only).
  6. Tracker's reading (unconfirmed): one worker for both because the same code carries them. Three elements go: main.hl netProbe, show.hl showProbe, person.hl personProbe, plus their keyframes in styles.hl. What the visitor sees stays the same: an incomplete title or person fills in by itself without a reload, an offline note still appears and clears, a complete page does no extra work. Line numbers in the tickets are old; grep `animationiteration`, `completeTick`, `fillTick`, `netTick`, `showComplete`, `personFill`.
  7. STOP first if needed: read how the framework does it (hybriel/COMPONENTS.md, plugins/web/push.hl, plugins/web/README.md). If push with audience, or a browser online event, is missing or broken: minimal repro in your scratch dir, report, and do the parts that do not depend on it. No workaround.
  8. ## Constraints that matter
  9. - The live app is one process with a GC pause problem: the server fill must not allocate more than today's loop, and must never run more TMDB fetches at once than today; respect lib/ existing fetch queue and limits. A visitor leaving the page must not leave work piling up. State what happens when nobody watches and when the same title is opened by two visitors.
  10. - A page opened after the fill finished must show the full data; a push missed through a reconnect must not leave a page stuck half-filled forever. Say how that is covered.
  11. - No stored-data format change. Signed-out visitors keep getting the fill as today.
  12. ## Rules
  13. - 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, and in /media/STORAGE/projects/hybriel/COMPONENTS.md the sections on server imports, push, lifecycle. Map: project.hl.
  14. - Fixed tracker rules: no hand-written JavaScript; .hl only. One step: not #52, not #53 (branch hm53-dom holds those; do not touch franchiseedit, timelineedit, modal.hl). Pitfalls: mpackdb-touching helpers in an `on server` face must be `static`.
  15. - Branch hm54-fill from main (current HEAD) with main's bin/ copied in (`cp -a`), worktree /media/STORAGE/claude-scratch/tracker/HM54/wt. Commit on that branch only; never touch main or its checkout, never push, deploy or touch byrodin. A deploy of main runs at the same time: do not use claude-scratch/tracker/deploy/ or the deploy-init lock.
  16. - Data: unpack /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261106-0116.tgz into /media/STORAGE/claude-scratch/tracker/HM54/copy (storage only, no posters/profiles, no sessions; check disk first). TMDB needs the key: read how lib/ gets it and take only that value from the live .env if there is no other way, keep it out of files, logs and the report. Jobs off except what the fill needs. Delete the copy at the end. HL_CACHE_DIR inside your scratch dir, from the first run on. Nothing in /tmp or /home/mre.
  17. - App port 8713 only, HL_HOST=127.0.0.1; the sign-in gate derives its ident port as app port + 1, so stop your proof app before the gates. Check `ss -ltnp`. Every start waits >=120 s (cold compile).
  18. - Gates: ONLY under `flock /media/STORAGE/claude-scratch/tracker/gates.lock bash <your gates.sh>`, a copy of /media/STORAGE/claude-scratch/tracker/CB/gates.sh with your paths, plus HL_CACHE_DIR. All 11 pass with 0 failed.
  19. - Proof in a real browser at 390, 800x1280, 1280x800: an incomplete title fills without reload, an incomplete person likewise, a complete page sends no extra requests (count them), network off and on shows and clears the note, no `animationiteration` left, no console errors. Also [hl-gc] (HL_GC_STATS=1) and request counts for one fill before and after. His Chrome on lisbeth :9223 only under `flock /media/STORAGE/claude-scratch/atlas/lisbeth.lock`, one own plain tab, closed in finally, never touch cookies; see claude-scratch/tracker/HM53/ for the proof scripts.
  20. - Budget: maxUsd 8, ~80 requests/150k context, then commit, report, stop. Stop everything started, list pids, port free at the end.
  21. - Report: reports/HM54.md, committed on your branch (no LOG/STATUS edits, no tickets), plus a short final message: branch + commit, what changed, what a visitor sees differently if anything, proof, gates, gaps with repro paths.

Branches

Latest commits

  • 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre
  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
  • b2e2206dlog: #63 livemre
  • 5831e0e0log: HM64 donemre
  • 4042b923Flatten catalog membership rows into paired slotsmre