gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmaind2e6d26bMerge branch 'records-park55' into mainTrackermain/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

  • d2e6d26bMerge branch 'records-park55' into mainTracker
  • f567f025|||PR records: park #55, no Claude workers ruleTracker
  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 3059f86cMerge branch 'records-design-rule' into mainTracker
  • 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
  • d1390692Merge branch 'records-dp75b' into mainTracker
  • a4d1a7d2|||PR records: later steps checked, branch auditTracker
  • e070e16fMerge branch 'records-dp75' into mainTracker
  • 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
  • bfc4ea4dMerge branch 'ap62' into mainTracker
  • 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker