gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainbd3591c7conductor: gates run on the live day44 binarymremain/missions/K16-parallel-repos.md

4.0 KB

  1. # Mission K16: reviews run in parallel across repos (kunibert#16)
  2. Task (ticket title): "Reviews run in parallel across repos: one running job per repo, with a global cap."
  3. Order (2026-11-04, "now", relayed by Apollo, verbatim): "reviews must run in parallel across repos — one running job per repo instead of one for the whole service (lib/queue.hl has a single 'running' slot). Keep one-at-a-time within a repo (same PR never twice in parallel), add a global cap (e.g. 3) so the machine and the Codex plan aren't flooded, and make sure parallel jobs never share a worktree, session or token file."
  4. ## Read first
  5. - /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md (copy working shapes; gap → DOCS line, no workaround, no hand-written JavaScript).
  6. - lib/queue.hl (whole file: `running` slot, next-job selection ~line 224, finish ~283, start ~330, health ~358, restart recovery ~46), lib/run-job.hl, service/ (how the worker tick calls the queue and runJob), lib/runner.hl lines ~20–35 and ~220–250 (live.tokenFile = data + '/.token-' + now()), lib/gitcache.hl worktreePath (work/<repoKey>/<pr>), reports/K7-wiring.md (queue design), reports/K13-vendored-paths.md.
  7. ## Build
  8. 1. Queue: replace the single `running` slot by a set of running job keys. A job may start when (a) no other job of the SAME repo.id is running, (b) the number of running jobs < cap. Pick order stays oldest-startable first, skipping jobs whose repo is busy. Same PR never twice (a PR is in exactly one job key; keep the existing follow-up/merge logic for events arriving while a job of that PR runs).
  9. 2. Cap = config value `maxParallel` (default 3, minimum 1) read where the other config values are read; document it in the config example/README if one exists.
  10. 3. Every path that clears `running` (done, failed, timeout kill, closed-while-running drop, restart recovery of jobs left 'running') must remove exactly that key. /health: `running` becomes a list of keys (keep the field name; note the shape change in the report).
  11. 4. Isolation: the fetch-token file name must be unique per child (e.g. include the pid and the repo key / PR, not only the ms timestamp), created 600, removed after use as now. Confirm in the report (by reading the code) that worktree (work/<repoKey>/<pr>), session state file, git cache dir and notes file are per repo/PR; fix any shared path you find.
  12. ## Proof (local, loreana, fake gitoria/fake codex only, NO real model run)
  13. In /media/STORAGE/claude-scratch/kunibert/K16/ (copy the K7/K13 fake setup; two configured repos, fake codex that sleeps a few seconds and records start/end times): (a) jobs for repo A and repo B overlap in time (both running at once, /health lists 2 keys); (b) two PRs of the SAME repo never overlap; (c) with maxParallel=1 nothing overlaps; with 3 repos and maxParallel=2 at most 2 overlap; (d) an event for a PR whose job is running produces a follow-up, not a second parallel run; (e) restart with jobs left 'running' requeues all of them; (f) the token files of two parallel children have different names and none is left after.
  14. All local gates one at a time: `python3 -I /media/STORAGE/claude-scratch/kunibert/{K4/proof.py,K6/scripts/proof.py,K7/scripts/proof.py,K8/scripts/proof.py,K9/scripts/proof.py,K11/scripts/proof.py,K12/proof.py,K13/proof.py,K14/proof.py}` plus the K16 proof → each ALL OK (grep ALL OK). If an older gate asserts `running` as a single string, update only that assertion and say so in the report. Ports 8840–8859: check `ss -ltnp` first, kill only exact PIDs you started, all free after.
  15. ## Limits
  16. About 60 tool calls. Do NOT deploy, push, touch byrodin. Commit locally on main (`-c user.name=Kunibert -c [email protected]`, short message, no self-attribution). No tickets, no messages. Scratch only under /media/STORAGE/claude-scratch/kunibert/K16/.
  17. Report: /media/STORAGE/projects/kunibert/reports/K16-parallel-repos.md: diff summary, health shape change, isolation check, exact proof commands and outputs, any changed old assertion, open points. Stop when done or blocked.

Branches

Latest commits

  • bd3591c7conductor: gates run on the live day44 binarymre
  • 47f747a7records: jukebox #9 fix livemre
  • 0a3169fdMerge branch 'vendored-size' into mainKunibert
  • e447bb09Vendored size fix: keep renames with an app side whole; type the filter parameter (L10)mre
  • 99ccc742Vendored size fix: no renames in the app diff, filter the resumed delta toomre
  • 1a52e100|||PR Diff size limit counts only app files when vendored paths are setmre
  • 50a1867estatus: jukebox #9mre
  • c57484e6log: jukebox #9 diff sizemre
  • 795a20carecords: guard fix live (PR 8)mre
  • 6981d96fMerge branch 'fresh-on-nocmd' into mainKunibert
  • 37c47840runner: one shared prompt for both fresh-session fallbacks (L16)mre
  • f945d2e1|||PR runner: a resumed run with no command on a new head gets one fresh session instead of a tool errormre
  • 10b2a49estatus: PR 314, guard fix proposedmre
  • e73995a3log: hycon PR 314 approved after fresh reviewmre
  • f60427falog: hycon PR 314 false tool errormre
  • 481974f7log: Hermes accepts PR 259 findingmre
  • bb0976acrecords: hycon PR 259 design findingmre
  • 5c637c24records: hycon PR 259 false tool errormre
  • a344c406log: routger 132 reviewedmre
  • 56e70dcbrecords: review time limit 1800 s (routger 132)mre