gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2047955b2047955bMerge branch 'u12-gateports' into mainTracker2047955b/missions/BS3-pr8-findings.md

4.5 KB

  1. # BS3: Kunibert's findings on PR 8 (boot index in slices, tracker#69 fix)
  2. Apollo 2026-11-11 00:4x, task line: "Fix major 1 (no import before the people view is ready, or retry the cast), major 2 (merge pass within the step budget) and the minor duplicate, through a new PR."
  3. Tracker's reading (unconfirmed): three code changes on top of main 310613f, same behaviour otherwise, proven with tests and a real-data boot.
  4. ## Kunibert's findings (review 0mwb86f1y2oo on head 0dd538a, verbatim summary)
  5. 1. Major, lib/bootscan.hl:110: `finishSearchIndex` makes `ensureIndex()` return true while the people finisher still yields with `warm.people == false`. A signed-in search import completing in this window reaches `applyCredits`, but `castPersonId` refuses through `warmBlocked()`: main cast and crew are omitted while `creditsAt` is persisted, preventing the credits job from retrying. Delay publishing search readiness or explicitly keep imports behind `warmBlocked()`.
  6. Live: search index ready at 220 s, people view at 269 s of boot (window ~50 s).
  7. 2. Major, lib/sort-rows.hl:25: Hybrids deep-copy on assignment, so `runs = nextRuns` copies every nested run and row in one operation after each merge pass. The deadline check cannot interrupt this data-sized allocation. Rotate buffers held by instance references, or transfer their contents incrementally.
  8. 3. Minor L16, lib/sort-rows.hl:20: second natural-run/stable-merge implementation alongside lib/util.hl `sortDesc`/`mergeDesc`. Back both synchronous and resumable entry points with one shared implementation.
  9. ## Choices
  10. - For 1: pick the smaller safe fix and say why in the report: either imports wait (or refuse cleanly so the user can retry) until people are ready, or credits saved without the cast are not marked done (creditsAt not set) so the credits job retries. Search itself should stay usable as early as now. Whatever is chosen: no credits row may be persisted with `creditsAt` while cast lookups were refused.
  11. - For 2: no data-sized copy in one step; measure the longest single step on real data.
  12. - For 3: one implementation in lib/util.hl (or lib/sort-rows.hl, used by util), sync callers unchanged in output.
  13. ## Read first
  14. WORKER-RULES /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (fully). /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md and HL-PRIMER.md. BS2 report /media/STORAGE/claude-scratch/tracker/BS2/REPORT.md and its brief missions/BS2-swap-end-000.md (probe/copy recipes, scripts under claude-scratch/tracker/BS2 if still there, BS1/scripts). Files: lib/bootscan.hl, lib/catalog.hl, lib/catalog-sort.hl, lib/sort-rows.hl, lib/util.hl, lib/people.hl, the import / applyCredits / castPersonId / warmBlocked code (rg), tests/boot-sort.hl, tests/boot-people.hl. Hybriel source /media/STORAGE/projects/hybriel (vendored day56, bin c1f595a2).
  15. Fixed rules: no hand-written JavaScript; login.js stays; Hybriel gap = STOP with a minimal repro for Anton, no workaround.
  16. ## Steps
  17. 1. Worktree: `git -C /media/STORAGE/projects/WorldAPI/tracker.worldapi.org worktree add -b bs3 /media/STORAGE/claude-scratch/tracker/BS3/wt origin/main`.
  18. 2. Tests first: a gate/test that shows finding 1 (import during the people window loses cast or sets creditsAt) and fails on main; extend tests/boot-sort.hl for the shared sort (sync and resumable give the same order as before).
  19. 3. Fix 1, 2, 3.
  20. 4. Real-data copy in BS3/copy: storage only from /media/STORAGE/deploy-backups/tracker.worldapi.org/tracker.worldapi.org-20261110-0743.tgz (no posters/profiles/.env/.sessions). Boot it once on old (origin/main) and once on new: boot phase times within ±10 %, longest step / probe latency during boot (probe every 0.5 s, 15 s timeout) no worse than BS2's (0 timeouts, >2 s only at GC), same pages byte-identical (normalized build token) for the 8 BS2 pages.
  21. 5. All 11 gates (deploy.sh GATES, LC_ALL=C, under `flock /media/STORAGE/claude-scratch/tracker/gates.lock`, starts wait >=120 s), 0 failed. Commit on bs3 with subject starting `|||PR BS3: ` (no "#N" anywhere in commit messages). Remove temporary logs before committing. Do not push.
  22. ## Limits
  23. - Scratch only /media/STORAGE/claude-scratch/tracker/BS3/. Ports 8716-8719 (check `ss -ltnp`; never 8700). No Chrome needed.
  24. - Do NOT push, merge, deploy; no tickets, LOG, STATUS. Delete BS3/copy at the end. Stop everything you started; list it.
  25. - Report /media/STORAGE/claude-scratch/tracker/BS3/REPORT.md: choice for 1 and why, the measurements old vs new, gate results with log paths, commit sha; final message <=8 lines. ~60 requests. Budget cap $2.5: at the cap, commit what is proven and report.

Branches

Latest commits

  • 2047955bMerge branch 'u12-gateports' into mainTracker
  • 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker
  • 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • 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