jukebox
All repositories: gitoria
13.1 KB
# LOG — jukeboxAppend-only, one short dated line per step.- 2026-10-25 JB1: project created (git init, vendor from gitoria c1b1010f + math), ID3 reader, tags, scanner, covers, database, API, fixtures, gate 112/0.- 2026-10-25 JB1: full scan of the real library (13,449 songs, 706 s; rescan 0.4 s), mpackdb comma-key bug found and worked around, report written.- 2026-10-25 JB2: library screens (Songs, Artists, Albums, artist, album, Search, Favourites), compact player bar, /stream/<id> with Range, /api/thumb, sort=plays; new component virtual-list (components branch jb2-virtual-list); ui gate 53/0, real-library check.- 2026-10-25 JB3 (half done, branch jb3-wip): album key without folder and with the CD marker folded into a disc number, compilations get "Various Artists", duplicate songs shown once with a copy count and the highest play count, the jukebox's own play counter (table plays, POST /api/played/<id>), server-side seeded shuffle queue (lib/queue.hl, GET /api/queue). Screens, overlay, keyboard, media session and gates not done yet.- 2026-10-25 JB3b: shuffle (my favourites on Songs, Shuffle on songs, album, artist, search), now-playing overlay (full screen on the phone, side panel from 60rem), next and previous, play counting at half the song or 4 minutes, media session; keyboard NOT done (Hybriel gap, .scratch/KEYBOARD-GAP.md); real-database run at 390 NOT done; gates 120 / 53 / 50 all pass.- 2026-10-28 JB12 (jukebox#12): the virtual list has a scroll handle for a finger on touch screens (44 px wide tap area, slim look, drag = proportional jump through all rows); gate tests/touch.mjs 27/0 (fails on 0f2157a); gates 120 / 53 / 50 / 27 pass. Same change belongs into components' virtual-list.- 2026-10-28 JB12b (jukebox#12): the scroll handle is 2.75rem x 4rem, drawn in the accent colour, on EVERY device (no media query); native bar hidden; gate tests/touch.mjs checks drawn width >= 40 px with touch and without any touch emulation.2026-10-30 JB15 jukebox#15 overlay queue on short screens (980859c)jukebox JB18 (jukebox#17): onto Hybriel set-day31 (SIGPIPE fix 6d2ca454); aborted /stream requests no longer kill the server2026-10-31 16:00 Jukebox conductor started (Apollo's brief): wrote CONDUCTOR.md (project part), new STATUS.md; old STATUS moved to archive/2026-10-31/STATUS-missions-JB1-JB12.md. Verified: live :8700 PID 3917192 = b19c478 with HL_COMPILER set to a Hermes scratch build (drift vs README); main 1b0d0bc; no git remote; 18 tickets read (open #1 #4-#10 #16 #17, review #2 #11 #15). Port 8765 taken by custom-ide; tickets gate ports 8767-8784 overlap my slot. No token yet: read only.2026-10-31 16:10 Apollo: identity Jukebox created; tokens at ~/.config/jukebox/tickets-token (admin in jukebox only) and gitoria-token; paths in CONDUCTOR.md.2026-10-31 16:20 Sol check of CONDUCTOR.md + STATUS.md vs base (worker 1793457986900-561501, $0.14, 12 findings): fixed 11 (health check vs no-test-traffic, theme copied by hand from layouts.worldapi.org, obvious-bug exception bounded, test port defaults corrected incl. jb14 8736, Apollo channel, read WORKER-RULES/RULINGS, repeats of base removed, gate numbers out of CONDUCTOR, setup history out of STATUS). Not fixed: a usage-measurement command (none documented; HyperConductor's usage note is the signal, Apollo gives windows). Last gate results (b19c478, set-day31): gate 120, ui 53, jb3 50, jb11 5, jb13 10, jb14 5, jb15 33, all 0 failed (Atlas JB15/JB18 reports).2026-10-31 16:25 Reported setup done to Apollo (byrodin 1792244287358-777437): port overlaps, HL_COMPILER drift on :8700, no git remote. Waiting for context files + respawn + GO.2026-10-31 16:40 Apollo: context files set; port slot now 8820-8839 (verified free with ss); take HL_COMPILER out at the next :8700 restart; make a gitoria repo jukebox like the other apps and push; then respawn and park, no more work today (week nearly used). Done: CONDUCTOR/STATUS updated. Repo blocked: gitoria has no create API (README; only the web form or tools/create-repo.hl with the app stopped), push needs the owner's token, other app repos are owned by Caramboleyo -> asked Apollo who creates it and under which owner.- 2026-10-31 16:50 Apollo's answer on the repo: he gave the job to the Gitoria chat (after its #38): create gitoria repo jukebox under Caramboleyo, give Jukebox push access as a member if gitoria supports it (else Gitoria reports what it would take), and open a gitoria ticket for repo creation by API. Pending: push main when the repo exists (owner: Jukebox).- 2026-10-31 17:00 Gitoria created repo jukebox (public, owner Caramboleyo, Jukebox member). Added origin https://jukebox.gitoria.worldapi.org/jukebox.git, pushed main; ls-remote main = 1722d70 = local HEAD.- 2026-10-31 17:10 Apollo: Atlas's folder is worldapi-conductor again; MANUAL/RULINGS/REFERENCE/WORKER-RULES/MOVE-PLAN now in worldapi-conductor/archive/2026-10-31/. CONDUCTOR.md paths fixed (verified the files exist); STATUS had none. Deploy blocker (not jukebox): loreana /media/SLOW1TB2 is read-only.- 2026-11-01 13:00 Apollo: ticket pushes now come from tickets subscriptions (tickets#51). Created my subscription 0mvxs2jqcq6w (project jukebox, pushUrl hycon loreana chat 1793457877549-165062); push-secret file deleted; id in CONDUCTOR.md. Earlier pushes today came via subscription 0mvxrymjmy0q (not in my list; only push-test#1 TEST events).- 2026-11-02 01:20 Apollo GO (window 01:10–06:10, Sol up to 1.5 %): theme/components current + own Styles in the language's form, like tickets' 025. Brief missions/001-style-form.md written; sent to Apollo first. Found: components 8176eb1 has no virtual-list (jukebox's is from unmerged branch jb2-virtual-list 46d90ec) and its media-player lacks the jukebox#11 fix (b58e449); jukebox is on Hybriel day31, the shared parts on day35. Delta 0mvxs2jqcq6w fetched: empty.- 2026-11-02 01:35 Apollo GO on my proposal (theme 17e0f03 + icons 8176eb1 unchanged; media-player/virtual-list stay; stop at step 1 if day35 shows hybriel#277). Started Sol worker S1 = subagent 1793578586637-198599 on missions/001 (scratch claude-scratch/jukebox/S1, ports 8820–8839). Atlas will take virtual-list (branch jb2-virtual-list) and the #11 fix (b58e449) into components main after he confirms #11; I sent him the facts and promised to tell him when #11 is confirmed.- 2026-11-02 02:00 S1 (1793578586637-198599, Sol $1.23, ~55 requests) stopped at step 1: its own minimal repro (S1/repro) re-confirmed hybriel#277 on day35, but all jukebox gates pass on day35 (gate 120, ui 53, jb3 50, jb11 5, jb13 10, jb14 5, jb15 33, theme 0) and the app checks in his Chrome passed (favourites, next song by itself, sort plays after reload). Apollo's stop condition (gates show it) is not met → started S1b (1793579072088-409295, Sol) for the step-1 commit + steps 2–3; told Apollo. Extra tab http://192.168.178.75:8560/ in lisbeth Chrome is not ours (not in S1's lists); left alone.- 2026-11-02 02:25 S1b (1793579072088-409295, Sol $1.66, ~65 requests) done: branch style-form in claude-scratch/jukebox/S1/wt, HEAD 7601518, 7 commits (day35 vendor 6219211; theme/shared 17e0f03 706c52e; icons 8176eb1 + sync-components.sh --check per source 0b7165e; main/songs/search/styles Style form). Served CSS: 344 rule/value entries identical (rule order differs, 78 pairs, no element matches both on checked pages). AE 0 on 34/37 pairs (search: the input caret, plus one pixel at phone size). Gates at step 3 all 0 failed, theme 0 (jb3 timed out once on the search heading, then passed on rerun). tests/real.mjs fails 2 count checks before and after: the test predates JB3's de-duplication (13449 files vs 10258 shown), so it is outdated, not a regression. Reviewed: @media bare and nested, quoted keys each with a reason. Report: S1/REPORT-S1b.md. Not merged, not live; asked Apollo for the live step.- 2026-11-02 02:40 Apollo GO for the live step (ff main, push, restart :8700 on day35 without HL_COMPILER after 5 min with no connection; then a live check of play, next song and favourites in his Chrome; later: update real.mjs for the duplicate-song merging, a small item). Started Sonnet worker L1 (1793579860827-142165) on missions/002-live-style-form.md. (This line is uncommitted until L1 has merged.)- 2026-11-02 02:30 L1 (1793579860827-142165, Sonnet $0.15, ~17 requests): rebased + ff-merged style-form; main = f2b5db9, pushed (ls-remote equal). Rollback SHA 89e10f0. Day35 bin prepared at claude-scratch/jukebox/L1/bin-new (sha checked); root bin/ is still day31. NO restart: from 01:38 to 02:18 (81 samples) one connection from 192.168.178.74:37648 to :8700 stayed open the whole time (not a tab in lisbeth's :9223 Chrome; device unknown). Live is still PID 3917192 (b19c478, day31); main is ahead of live. Reported to Apollo; waiting.- 2026-11-02 02:40 Apollo: option (a), wait for the connection to close. L1 now runs one background wait until 09:00 (connection checked every 30 s, needs 5 clean minutes) and then does the restart and live check (L1/wait2.log). Event at 09:05 for me: if it's still open, Apollo asks him which device 192.168.178.74 is.- 2026-11-02 09:08 mission 002: L1's wait2 ended READY 06:15:51 (the .74 connection closed at about 06:10), but L1 never woke up, so there was no restart; PID 3917192 still live. Woke L1 at 09:07 to do a fresh 5-minute check, then steps 3–5.- 2026-11-02 09:25 mission 002 LIVE: L1 restarted :8700 after 5 clean minutes (09:05–09:10). New PID 3112715, main f2b5db9 code (records head 60d90cb), Hybriel day35, started with env -u HL_COMPILER. Verified by me: ss shows 3112715 on :8700, cwd = root, environ has HL_COMPILER=<root>/bin/hybriel (set by the runtime itself, instances.hl:646; the hermes drift is gone), lisbeth tabs = only his about:blank. L1's live check (390 + 1280): list 10,258 songs, play and next advance currentTime, favourites list 3,523, no favourite toggled; shots in claude-scratch/jukebox/L1/shots/. Rollback: L1/bin-day31 + git reset 89e10f0. Finding (old, also in S1 old-code shot): at 1280 the bar's next button shows no glyph. L1 stopped. Close #17 after day35 runs a while with no stop.- 2026-11-02 Apollo/Anton DATA-INTEGRITY warning (hl:mpackdb, fix m559 in day38): a second process OPENING a store while another writes can revive old/deleted records (later 'Duplicate key'; 5/10 runs). Until jukebox runs day38: no standby swap and no tool run (CLI, tests/real.mjs, etc.) against the live ./storage; restarts only stop-then-start by PID (old process gone before the new one opens). Emergency = ask Apollo first. Copies of storage for tests only from a stopped store or via Apollo's coming read-only checker. Live still PID 3112715 (day35).- 2026-11-02 Apollo: copying ./storage files while live is safe for live data (no mpackdb open); the copy may be torn mid-write, so if real.mjs shows odd data, re-copy before suspecting code. No need to wait for the checker.- 2026-11-02 Apollo/Anton refinement: the danger is only an OLD-binary process OPENING a store while another writes. A day38 opener next to an old writer is safe, so the day38 deploy may be a normal swap without downtime. Until then: no swap, no tool on the live store, restarts wait until the old PID is gone.- 2026-11-02 mpackdb check-integrity.mjs (hybriel 65447ff0) on a copy of live storage/mpackdb: 6 tables (albums 1581, artists 3960, covers 295, plays 62, scans 264, songs 13449), duplicates 0, uniqueCollisions 0. Copy deleted. Reported to Apollo.- 2026-11-03 Apollo: day38b (hybriel 1e554d75, bin 5ff2a46d, mpackdb open-race fix) is out; the freeze ends once jukebox runs it. Wrote missions/003-day38b.md (re-vendor, gates, Chrome proof, live swap). Live still PID 3112715 (day35) since 2026-11-02 09:20 with no stop.- 2026-11-03 Started Sonnet worker V1 (subagent 1793680618194-494857, cap $6) on missions/003-day38b.md, scratch claude-scratch/jukebox/V1, ports 8820–8839.- 2026-11-03 V1 (1793680618194-494857, Sonnet $0.69) stopped at step 2: branch day38b 8470125 in claude-scratch/jukebox/V1/wt (plugins web+mpackdb from 1e554d75 + set libmpackdb.so; bin = set, sums OK). Gates on day38b: gate 120/0, ui 53/0, jb11 5/0, jb13 10/0, jb14 5/0, jb15 33/0, theme 0; jb3 41/1 twice: "Shuffle my favourites uses the N" — server error lib/queue.hl:18 `>=` Number vs String (spec.minPlays arrives as String; same code passes jb3 50/0 on day35). Looks like a day38b framework regression. Real-data copy: integrity 0 dup / 0 collisions. Chrome proof (play, next, favourites at 390 + 1280) passed. Nothing merged, live untouched (PID 3112715 day35). Verified: error lines in V1/logs/jb3*.log; lisbeth tabs = only about:blank. V1 now builds a minimal repro for Anton (V1/repro/).- 2026-11-03 Atlas reported 3 headless Chromes in his slot 8800–8802 (PIDs 3129520, 3132694, 3143038, cwd claude-scratch/jukebox/L1 = my L1 leftovers since 2026-11-02). Verified cwd, stopped by PID, all gone; told Atlas. Lesson: check for leftover processes by worker cwd after each report.- 2026-11-03 V1 repro done ($0.27): claude-scratch/jukebox/V1/repro (no jukebox code; Number from toNumber via client emit -> emit server arrives as String; day38b fails main.hl:11:7 '>=' Number vs String, day35 passes; range cb9e480d -> 1e554d75). Checked the files and that no repro process or 882x/883x port is left. V1 stopped. Sent to Apollo for Anton; day38b deploy waits for a fixed set. Branch day38b 8470125 stays in V1/wt.
Branches
Latest commits
- f80504e1Records: day38b repro sentmre
- 8048258bRecords: day38b jb3 regression, L1 Chromes stoppedmre
- 68aace7fRecords: mission 003 day38bmre
- d105d8a9Records: mpackdb integrity check cleanmre
- 6e980c53Records: mpackdb rule refinementmre
- 6d335ac4Records: storage copy rulingmre
- 7eb2898dRecords: mpackdb second-opener rule until day38mre
- b011f98eRecords: style form live on day35mre
- 60d90cb2Records: L1 woken for the restartmre
- 75ae544fRecords: restart waits for the connection to closemre
- e0b75951Records: L1 merged and pushed, restart waits for an open connectionmre
- f2b5db98styles: format styles with nested rules and bare queriesmre
- f036bab4search: format styles with nested rules and bare queriesmre
- ef9a9d4asongs: format styles with nested rules and bare queriesmre
- f22f9aacmain: format styles with nested rules and bare queriesmre
- f56cd7c7Sync icons from 8176eb1 and verify mixed component sourcesmre
- d56e5054Sync theme and shared tokens from layouts 17e0f03mre
- b1362547Re-vendor to Hybriel set day35mre
- 89e10f08Records: mission 002 rollback wordingmre
- 9485dee7Records: mission 002 brief (live step)mre