jukebox
All repositories: gitoria
4.3 KB
# PROCEDURES — jukebox (how-to recipes; taken from LOG.md, current 2026-11-23)## Live server (loreana :8700)- Check: `ss -ltnp | grep :8700`, then `/proc/<pid>/cwd` (= this repo) and `/proc/<pid>/environ` (HL_HOST=0.0.0.0 JUKEBOX_WATCH=0; HL_COMPILER is set by the bin/hybriel launcher itself, that is normal).- Idle rule before any restart or request: sample `ss -tnp | grep ':8700'` every 30 s in ONE background command; restart only after 5 min with no connection; if it does not clear within 60 min, change nothing and report.- Restart: stop the old PID only (never by name), wait until gone, then`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 > <scratch>/live.log 2>&1 &`Cold compile 10–40 s. Health: `curl -s -o /dev/null -w '%{http_code}' 127.0.0.1:8700/` = 200 and `curl -s 127.0.0.1:8700/api/stats` (13449 songs in the table, 10,258 shown).- Rollback: stop the new PID, `git checkout <old main>` (and the old bin dir if the set changed), same start command. Record PID + commit in LOG.md.## His Chrome on lisbeth (proof of every change)- LAN has no route; use Tailscale: `ssh -f -N -o ExitOnForwardFailure=yes -L 9223:127.0.0.1:9223 [email protected]` (check first: `ss -ltnp | grep ':9223 '`). Stop the tunnel at the end if you opened it.- Lock /media/STORAGE/claude-scratch/atlas/lisbeth.lock. `curl -s 127.0.0.1:9223/json/list` before and after; one own plain tab, closed in finally; never new windows/contexts, never clear anything.- Test server must be reachable from lisbeth: loreana Tailscale address 100.77.141.84:<test port>.- Sizes: 390x844, 800x1280, 1280x800. If :9223 has no listener, his debug Chrome is down: wait (one background command) or report.## Gates (each starts its own server; override every port into the worker's range of 8820–8839)- `node tests/gate.mjs`, `ui.mjs`, `jb3.mjs` (~2 min), `jb11.mjs`, `jb13.mjs`, `jb14.mjs`, `jb15.mjs`, `jb19.mjs`, `jb20.mjs`, `jb23.mjs`, `node theme/check-theme.mjs .`- Chrome debug ports come from HL_PORT_BASE (+200..+209); HL_PORT_BASE=8630 gives 8830–8839. Known flaky: a single jb3 "songs heading" timeout, a single jb19 25/1 → rerun once.- Last numbers (day41): gate 120, ui 53, jb3 50, jb11 7, jb13 10, jb14 5, jb15 33, jb19 26, jb20 9, jb23 6, theme 0.- Real data: only on a COPY of storage/; integrity: `node /media/STORAGE/projects/hybriel/plugins/mpackdb/tools/check-integrity.mjs <copy>` = 0 duplicates, 0 collisions.## Re-vendor a Hybriel set- Sets: /media/STORAGE/claude-scratch/anton/set-dayNN (SOURCE = hybriel commit, SHA256SUMS). bin/ = set bin/ + lib/ (not in git; never commit a bin symlink). Each plugin dir complete from `git -C /media/STORAGE/projects/hybriel archive <commit> plugins/<name>` plus the set's .so. Update README vendor note. Shape: missions/012-day41.md.- Components (media-player, virtual-list, icons): `tools/sync-components.sh` with the pin updated, then `--check`. Never edit copies.## Git / Gitoria (PR-only repo)- Branch, top commit subject starts with `|||PR `, push the branch only:`git -c credential.helper='!f(){ echo username=Jukebox; echo "password=$(cat ~/.config/jukebox/gitoria-token)"; }; f' push origin <branch>`- ONLY ONE commit per branch may start with '|||PR ' (each one opens its own PR). Kunibert reviews automatically; its diff-size limit (400 kB) counted vendored code until fixed (2026-11-23). Read: `GET https://jukebox.gitoria.worldapi.org/api/pulls/N`, `/reviews`, `/threads`, `/statuses/<sha>` with `Authorization: Bearer <gitoria-token>`.- Merge after a green review: `POST /api/pulls/N/merge` with JSON `{"head":"<sha>"}` → 200 + mergeCommit; then `git pull --ff-only` in the root. The token cannot post PR comments or reviews (app-only).## Tickets- Read: `curl -s -A Jukebox -H 'Accept: text/markdown' https://tickets.worldapi.org/api/projects/jukebox/tickets/<n>`; list: `/api/tickets?project=jukebox&state=open`.- Write with ~/.config/jukebox/tickets-token (API manual /media/STORAGE/projects/antcolony-docs/docs/tickets-for-sessions.md). Push subscription 0mvxs2jqcq6w (fetch delta, see CONDUCTOR.md).## Workers- spawn_subagent, brief in missions/NNN-<topic>.md, scratch /media/STORAGE/claude-scratch/jukebox/<NAME>/, ports from 8820–8839 (check `ss -ltn`). After each report: check `curl -s 127.0.0.1:9223/json/list` and close leftover tabs; session_stop the worker.
Branches
Latest commits
- 3b158e16Records: merges of #9 and #11mre
- 27204167Merge main into records-1123mre
- 10f8a8c8Merge branch 'code-order' into mainJukebox
- 204fc828Merge branch 'day72' into mainJukebox
- 8e8d0e2b|||PR Records: PROCEDURES.md, missions 016-019, GO 2026-11-23mre
- 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