gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit0923398b0923398bMerge branch 'records-1124d' into mainJukebox0923398b/PROCEDURES.md

4.3 KB

  1. # PROCEDURES — jukebox (how-to recipes; taken from LOG.md, current 2026-11-23)
  2. ## Live server (loreana :8700)
  3. - 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).
  4. - 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.
  5. - Restart: stop the old PID only (never by name), wait until gone, then
  6. `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 &`
  7. 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).
  8. - 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.
  9. ## His Chrome on lisbeth (proof of every change)
  10. - 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.
  11. - 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.
  12. - Test server must be reachable from lisbeth: loreana Tailscale address 100.77.141.84:<test port>.
  13. - Sizes: 390x844, 800x1280, 1280x800. If :9223 has no listener, his debug Chrome is down: wait (one background command) or report.
  14. ## Gates (each starts its own server; override every port into the worker's range of 8820–8839)
  15. - `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 .`
  16. - 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.
  17. - 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.
  18. - 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.
  19. ## Re-vendor a Hybriel set
  20. - 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.
  21. - Components (media-player, virtual-list, icons): `tools/sync-components.sh` with the pin updated, then `--check`. Never edit copies.
  22. ## Git / Gitoria (PR-only repo)
  23. - Branch, top commit subject starts with `|||PR `, push the branch only:
  24. `git -c credential.helper='!f(){ echo username=Jukebox; echo "password=$(cat ~/.config/jukebox/gitoria-token)"; }; f' push origin <branch>`
  25. - 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>`.
  26. - 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).
  27. ## Tickets
  28. - 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`.
  29. - 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).
  30. ## Workers
  31. - 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

  • 0923398bMerge branch 'records-1124d' into mainJukebox
  • 78f0cc86|||PR records 2026-11-24: inbox-thread rule, "Not playing" confirmed and closedmre
  • c1b153c4Merge branch 'records-1124c' into mainJukebox
  • d7b5e780|||PR Records 2026-11-24 (2): live day72, PR #19 merge, #10 newsmre
  • 43b564dbMerge branch 'records-1124b' into mainJukebox
  • fa86b08c|||PR Records 2026-11-24: LOG, STATUS, missions 020-023mre
  • 0a2ae3daMerge remote-tracking branch 'origin/records-1123' into records-1124mre
  • 9a48cfcaMerge branch 'vendor-theme' into mainJukebox
  • 170d3735Merge branch 'code-order-2' into mainJukebox
  • 3f1918a7|||PR Re-sync layouts theme 4099e64 with Segoe UI firstmre
  • 2e7f6a43Vendor virtual-list 489afcf from components.hybrielmre
  • 0ba85799Merge branch 'reset-classes' into mainJukebox
  • 502eeed5jukebox#20: vendor virtual-list initial resetKey baseline fixmre
  • 6d5ce287|||PR jukebox#9 Centralize songs table reads and writes in db.hlmre
  • dcca21abjukebox#8 Move copies and queue logic into their topicsmre
  • 3b76651cjukebox#20: update virtual-list README pin and resetKey optionsmre
  • bc09e1e8|||PR jukebox#20: reset virtual lists through resetKey (partial validation)mre
  • a3796dc5Records: live step waits for idlemre
  • 3b158e16Records: merges of #9 and #11mre
  • 27204167Merge main into records-1123mre