gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit5db849745db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre5db84974/missions/BS1-bootscan-000.md

2.8 KB

  1. # BS1: the 4 x 000 near every deploy swap — find which boot-scan step blocks the event loop
  2. Finding (Tracker, deploys DP67/69/70, HM50, AP52): during each deploy swap, 4 requests from outside get no answer (nginx 499 after 15 s); each ends within 1 s of a boot-scan phase end (standby episodes, main episodes, search index, people). Hypothesis (unproven, HM50 report): the last step of each scan phase blocks the event loop 25-33 s. This is a bug in the live app (visitors get no answer during deploys).
  3. Task: prove or refute the hypothesis with measurements, find the exact step(s), and if the cause is in tracker code, fix it the language's way (e.g. smaller slices / yielding as the existing job-slice pattern does); if the cause is inside Hybriel (runtime/mpackdb), STOP with a minimal repro and timings for Anton, no workaround.
  4. ## Read first
  5. WORKER-RULES /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (fully); /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md; docs/CODE-ORDER.md; README.md sections about boot/warm start and jobs; reports/T17-boot.md, reports/ST1-stalls.md, reports/SL1-slices.md, reports/044-jobs-slices.md; deploy.sh; missions/AP52-day52-rows-routes-style.md and /media/STORAGE/claude-scratch/tracker/AP52/REPORT.md + REPORT-B.md (copy recipe, probe method, where the 000s were). Hybriel source at day52: `git -C /media/STORAGE/projects/hybriel show 77cfca31:<path>`.
  6. Fixed rules: no hand-written JavaScript; Hybriel gap = STOP with repro.
  7. ## Steps
  8. 1. Real-data copy (6.6 GB, recipe as AP52: storage only from /media/STORAGE/deploy-backups/tracker.worldapi.org-20261108-1302.tgz, no posters/profiles/.env/sessions, jobs as in live main boot; delete it at the end). Worktree: `git worktree add -b bs1 /media/STORAGE/claude-scratch/tracker/BS1/wt main`.
  9. 2. Start main on the copy (port 8717; check `ss -ltnp`; never 8700). During boot, probe a cheap page every 0.5 s with a 15 s timeout and log latencies; log the boot-scan phase markers (existing log lines; add temporary timing logs in the worktree only if needed). Find the windows where the probe stalls and which step runs then.
  10. 3. If tracker code: fix, prove on the copy (no probe >2 s during boot, same ready time ±10 %, same pages), run all 11 gates (deploy.sh GATES, LC_ALL=C, under `flock /media/STORAGE/claude-scratch/tracker/gates.lock`, same port; starts wait >=120 s), commit on bs1. Remove temporary logs before committing.
  11. 4. Stop everything (list processes). Report /media/STORAGE/claude-scratch/tracker/BS1/REPORT.md: stall windows with timestamps and the step for each, cause, fix or repro; end with <=8 lines. Do NOT merge or deploy; no tickets, no LOG/STATUS.
  12. ## Limits
  13. Scratch only /media/STORAGE/claude-scratch/tracker/BS1/. No loreana Chrome needed. maxUsd 4; ~60 requests. The two workers run at the same time: gates under the shared flock only.

Branches

Latest commits

  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • 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