gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain10f8a8c8Merge branch 'code-order' into mainJukeboxmain/missions/011-day39.md

6.0 KB

  1. # 011 — jukebox: re-vendor to Hybriel day39 and put it live (Apollo 2026-11-03 ~18:00)
  2. TASK (NOT HIS; Apollo 2026-11-03): "day39 (hybriel 51e921d7, bin 6b481aa7) is live on loreana + byrodin since 17:58 ...
  3. It carries ... #298 (jukebox Number→String) ... Re-vendor to day39 now (complete plugin dirs from the set, sources AND .so),
  4. gates, normal standby swap, live check; report one line."
  5. No app code change is wanted. Only the Hybriel vendor changes. This replaces mission 003 (day38b, blocked on hybriel#298).
  6. ## Read first
  7. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full (esp. HIS JUKEBOX :8700,
  8. A CONNECTION = WAIT; GATE PORTS; PROOF IN HIS CHROME; STOP WHAT YOU STARTED; never commit a bin symlink).
  9. - /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification" and "Path to live"; README.md "Run it" and the vendoring note.
  10. - The day38b attempt for the shape: commit 8470125 (branch day38b in claude-scratch/jukebox/V1/wt, do not touch V1) and
  11. missions/003-day38b.md + its LOG lines (jb3 failed 41/1 on "Shuffle my favourites" = hybriel#298; day39 must pass it).
  12. - Set: /media/STORAGE/claude-scratch/anton/set-day39 (SOURCE = commit 51e921d7de72ebe3ba4d0febdcc32e9a9084b178 in
  13. /media/STORAGE/projects/hybriel; bin/hybriel sha256 6b481aa7…; SHA256SUMS). The set's plugins/ has only the .so files;
  14. the plugin sources come from the hybriel repo at 51e921d7.
  15. ## Rule until live runs day39 (data safety)
  16. Live (PID 400016, day35, main 019f660 + record commits) uses ./storage. Never open ./storage from any other process. Tests use a
  17. COPY of storage (copying is safe; a copy taken mid-write can be torn, so if data looks odd, copy again).
  18. ## Steps
  19. 1. Worktree /media/STORAGE/claude-scratch/jukebox/D39/wt, new branch day39 from current main (9515d2c or later).
  20. bin/ = the set's bin/ + lib/ (not in git), check SHA256SUMS. For EVERY plugin dir the app vendors (plugins/core, crypto, data,
  21. fetch, fs, http, http1, math, mpackdb, proc, time, web): replace it with the complete dir from hybriel 51e921d7
  22. (`git -C /media/STORAGE/projects/hybriel archive 51e921d7 plugins/<name>`), and where the set has a .so for it, the set's .so
  23. (check its sha256 against SHA256SUMS). List per plugin: changed / unchanged / not in the set (and what you did). Do not add
  24. plugins the app does not vendor. Update the README vendoring note (day39, 51e921d7, 6b481aa7). Commit (no attribution lines).
  25. 2. Gates on day39, every port overridden into 8820–8839 (check `ss -ltn` first): node tests/gate.mjs, ui.mjs, jb3.mjs, jb11.mjs,
  26. jb13.mjs, jb14.mjs, jb15.mjs, jb19.mjs, jb20.mjs, node theme/check-theme.mjs . — last results on main day35:
  27. 120, 53, 50, 7, 10, 5, 33, 26, 9, 0. A single jb3 "songs heading" timeout or a single jb19 25/1 is known flaky: rerun once
  28. before judging. jb3 "Shuffle my favourites" must pass.
  29. One run on a fresh COPY of ./storage (real data) with the server on a test port: start, list songs, stop it, then run
  30. /media/STORAGE/projects/hybriel/plugins/mpackdb/tools/check-integrity.mjs (or the day39 copy) on that copy: 0 duplicates, 0 collisions.
  31. 3. Proof in his Chrome on lisbeth :9223 (tunnel `ssh -f -N -L 9223:127.0.0.1:9223 lisbeth` if needed; lock
  32. /media/STORAGE/claude-scratch/atlas/lisbeth.lock; one own plain tab, closed in finally; json/list before and after), server on a
  33. test port with the storage copy: at 390×844 and 1280×800 the songs list shows, play runs (currentTime grows), next starts
  34. another song, "Shuffle my favourites" starts a song, the favourites list shows. Shots in D39/shots/. If anything fails: stop, report, no merge.
  35. 4. Live (UPDATED 2026-11-04, PR-only repo): rebase day39 onto origin/main; make the top commit subject start with '|||PR ' and push the
  36. BRANCH day39 (never main) with `git -c credential.helper='!f(){ echo username=Jukebox; echo "password=$(cat ~/.config/jukebox/gitoria-token)"; }; f' push origin day39`.
  37. That opens a PR on https://jukebox.gitoria.worldapi.org/pulls. Report the PR number and STOP; the conductor merges it after the 'kunibert' check succeeds,
  38. then sends the worker on with the swap below.
  39. check ls-remote. Prepare the root's new bin/ (day39) in a fresh dir; keep the root's day35 bin as D39/bin-day35 (rollback).
  40. There is no standby port for the jukebox: the swap is stop-then-start on :8700.
  41. A CONNECTION = WAIT: sample `ss -tnp | grep ':8700'` (connections, not LISTEN) every 30 s in ONE background command; restart only
  42. after 5 minutes with none; if not within 60 minutes, change nothing live (merge/push may stay) and report.
  43. Then: check PID 400016's /proc cwd = root, stop it by that PID only, WAIT until it is gone, swap bin/ (two mv's), start:
  44. `cd /media/STORAGE/projects/WorldAPI/jukebox && env -u HL_COMPILER HL_HOST=0.0.0.0 JUKEBOX_WATCH=0 setsid nohup ./bin/hybriel project.hl > /media/STORAGE/claude-scratch/jukebox/D39/live.log 2>&1 &`
  45. Cold compile 10–40 s; then `curl -s -o /dev/null -w '%{http_code}' 127.0.0.1:8700/` = 200. If not up within 3 minutes: stop the new
  46. PID, put bin-day35 back, `git reset --hard <old main>` in the root, start the same way, report.
  47. Then one live check in his Chrome (as step 3, http://192.168.178.75:8700/, 1280×800 only, under 2 minutes; do not toggle
  48. favourites; do not change his scroll positions or shuffle/repeat state on purpose).
  49. ## Environment
  50. - Scratch: /media/STORAGE/claude-scratch/jukebox/D39/ (wt, logs, storage copy, shots, REPORT.md). Ports 8820–8839 only;
  51. e.g. servers 8820–8829, Chrome via HL_PORT_BASE=8630 (debug ports 8830–8839).
  52. - No ticket writes. Model Sonnet. Cap about 60 requests. Waiting = ONE background command, never polling calls; do not end your
  53. turn while it runs.
  54. - Stop every process you started except the new live server; list name + PID. Delete the storage copy at the end.
  55. ## Report (D39/REPORT.md + final message at most 10 lines)
  56. Vendor commit + per-plugin changes, gate numbers, integrity result, Chrome shots, merge/push SHAs, old/new PID, connection
  57. samples (times), curl code, environ (no HL_COMPILER other than the runtime's own), processes stopped, final json/list.

Branches

Latest commits

  • 10f8a8c8Merge branch 'code-order' into mainJukebox
  • 204fc828Merge branch 'day72' into mainJukebox
  • 95f5faae|||PR jukebox#7 Drop needless let declarationsmre
  • 33072bb5|||PR Record day72 gates and Chrome proofmre
  • 95f2cd73|||PR Use typed parent methods for screen playback and local server facesmre
  • 6422a020Sync media-player at 51c3818mre
  • b582ba1cVendor complete Hybriel day72 plugin setmre
  • 02dccbc9Merge branch 'records-1119' into mainJukebox
  • a39e1c23|||PR Records: missions 013-015, reconnect fix livemre
  • fc7db075Merge branch 'reconnect-retry' into mainJukebox
  • ac6f4c6fL2: plain declaration for a in pickedNextmre
  • 2f335086Review round 2: only an explicit queue pick drops pend (not the automatic advance); jb23 records every source changemre
  • 3eb6695fReview fixes: action generation, queue pick clears pend, Previous/Next retry the decided request, typed handlersmre
  • 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
  • 1f0cd77bMerge branch 'records-day41' into mainJukebox
  • 67be229f|||PR Records: day41 live (PR #4), mission 012, statusmre
  • 0bb027daconductor: caramboleyo is the user, not owner/creatorApollo
  • 04f5d9d5Merge branch 'day41' into mainJukebox
  • 8ed6da45|||PR README: media-player pin df9e7dfmre
  • d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre