gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchcode-order95f5faae|||PR jukebox#7 Drop needless let declarationsmrecode-order/missions/003-day38b.md

4.9 KB

  1. # 003 — jukebox: re-vendor to Hybriel day38b and put it live (Apollo 2026-11-03)
  2. TASK (NOT HIS; Apollo 2026-11-03): "day38b (hybriel 1e554d75, bin 5ff2a46d) ... carries the mpackdb store-open race fix.
  3. The freeze ends for each app once IT runs day38b: re-vendor to day38b, then normal deploys/standby swaps are fine again."
  4. No app code change is wanted. Only the Hybriel vendor changes.
  5. ## Read first
  6. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full (esp. HIS JUKEBOX :8700,
  7. A CONNECTION = WAIT; GATE PORTS; PROOF IN HIS CHROME; STOP WHAT YOU STARTED; never commit a bin symlink).
  8. - /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification" and "Path to live"; README.md "Run it" and the vendoring note (~line 141).
  9. - The day35 re-vendor for the shape: commit 6219211 and missions/001-style-form.md step 1.
  10. - /media/STORAGE/projects/hybriel/plugins/mpackdb/README.md "Checking a store after the open race (mission 559/560)".
  11. - Set: /media/STORAGE/claude-scratch/anton/set-day38b (SOURCE = commit 1e554d758497e16ee535ff71ee1b9c01051cef67; bin/hybriel sha256 5ff2a46d…; SHA256SUMS).
  12. ## Rule until live runs day38b (data safety)
  13. The live server (PID 3112715, day35) uses ./storage. Never open ./storage from any other process. Tests use a COPY of storage
  14. (copying files is safe; a copy taken mid-write can be torn, so if data looks odd, copy again).
  15. ## Steps
  16. 1. Worktree /media/STORAGE/claude-scratch/jukebox/V1/wt, new branch day38b from main (f2b5db9 code + record commits).
  17. bin/ = the set's bin/ + lib/ (not in git), check SHA256SUMS. plugins/core and plugins/web = unchanged source from 1e554d75.
  18. plugins/mpackdb: bring it to day38b (source from 1e554d75 + the set's libmpackdb.so; find out how the set expects it; the
  19. app's copy today differs). Other plugins: update only if day38b needs it to build/run; say which and why.
  20. Update the README vendoring note. Commit (no attribution lines).
  21. 2. Gates on day38b, every port overridden into 8820–8839 (check `ss -ltn` first): node tests/gate.mjs, ui.mjs, jb3.mjs, jb11.mjs,
  22. jb13.mjs, jb14.mjs, jb15.mjs, node theme/check-theme.mjs . — all must pass (last results on day35: 120, 53, 50, 5, 10, 5, 33, 0).
  23. One run on a fresh COPY of ./storage (real data) with the server on a test port: start, list songs, then run Anton's
  24. check-integrity.mjs (/media/STORAGE/projects/hybriel/plugins/mpackdb/tools/) on that copy after stopping it: 0 duplicates, 0 collisions.
  25. 3. Proof in his Chrome on lisbeth :9223 (tunnel `ssh -f -N -L 9223:127.0.0.1:9223 lisbeth` if needed; lock
  26. /media/STORAGE/claude-scratch/atlas/lisbeth.lock; one own plain tab, closed in finally; json/list before and after), server on a
  27. test port with the storage copy: at 390×844 and 1280×800 songs list shows, play runs (currentTime grows), next starts another song,
  28. favourites list shows. Shots in V1/shots/. If anything fails: stop, report, no merge.
  29. 4. Live: `git -C /media/STORAGE/projects/WorldAPI/jukebox merge --ff-only day38b` (note old main SHA = rollback), push with
  30. `git -c credential.helper='!f(){ echo username=Jukebox; echo "password=$(cat ~/.config/jukebox/gitoria-token)"; }; f' push origin main`,
  31. check ls-remote. Prepare root bin/ day38b in a fresh dir; keep the root's day35 bin as V1/bin-day35 (rollback).
  32. A CONNECTION = WAIT: sample `ss -tnp | grep ':8700'` (connections, not LISTEN) every 30 s in ONE background command; restart only
  33. after 5 minutes with none; if not within 60 minutes, change nothing live (merge/push may stay) and report.
  34. Then: check PID 3112715's /proc cwd = root, stop it by that PID only, WAIT until it is gone, swap bin/ (two mv's), start:
  35. `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/V1/live.log 2>&1 &`
  36. 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
  37. PID, put bin-day35 back, `git reset --hard <old main>` in the root, start the same way, report.
  38. 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 favourites).
  39. ## Environment
  40. - Scratch: /media/STORAGE/claude-scratch/jukebox/V1/ (wt, logs, storage copy, shots, REPORT.md). Ports 8820–8839 only;
  41. e.g. servers 8820–8829, Chrome via HL_PORT_BASE=8630 (debug ports 8830–8839).
  42. - No ticket writes. Model Sonnet. Cap about 60 requests. Waiting = ONE background command, never polling calls.
  43. - Stop every process you started except the new live server; list name + PID. Delete the storage copy at the end.
  44. ## Report (V1/REPORT.md + final message at most 10 lines)
  45. Vendor commit + what changed in plugins, gate numbers, integrity result, Chrome shots, merge/push SHAs, old/new PID, connection
  46. samples (times), curl code, environ (no HL_COMPILER other than the runtime's own), processes stopped, final json/list.

Branches

Latest commits

  • 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
  • 89cdabb1Vendor Hybriel day41 (57054d9e): plugin dirs, set .somre
  • 1fecd6a7Merge branch 'records-day39' into mainJukebox