gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2eee9dbb2eee9dbbMerge branch 'revendor-day44' into mainKunibert2eee9dbb/missions/K12-day39-cleanup.md

3.5 KB

  1. # Mission K12: use the Hybriel day39 functions instead of the workarounds (kunibert#12)
  2. Task (ticket title): "Use the new Hybriel day39 functions instead of the workarounds (JSON.tryParse, timingSafeEqual, tryFetch, map)."
  3. Apollo's GO (2026-11-02 06:26): cleanup on Sol, max $2, once hybriel#280–#284 are live. They are live in day39 (2026-11-03).
  4. ## Read first
  5. - /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md (line ~61: `JSON.tryParse`, `tryFetch`, `timingSafeEqual`) and /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md. Copy working shapes from the docs; a gap → a DOCS line in the report, no workaround, no hand-written JavaScript.
  6. - Background: reports/K5-intake.md (GAP 2, the 500 on a signed non-JSON body), reports/K8-tickets.md line ~73 (the map/join gap, the for loop), lib/gitoria-api.hl line ~55 comment.
  7. ## Build (.hl only, in /media/STORAGE/projects/kunibert)
  8. 1. lib/intake.hl: parsing the request body (lines ~83 and ~90) uses JSON.tryParse; a body that is not JSON → 400 `invalid_json` (with per-repo secrets the parse comes before the signature check: unparseable → 400, never 500 and never a source path in the answer).
  9. 2. lib/intake.hl line ~87: the signature compare uses `timingSafeEqual` from hl:crypto instead of `!=` (keep 401 bad_signature; different lengths must still give 401, not an error).
  10. 3. lib/tickets.hl and lib/gitoria-api.hl: `fetch` → `tryFetch`. Network failure (status 0): tickets → the ticket counts as "not readable" and the review continues; gitoria → handled like the existing failed-request path (the job fails/retries as now), never a crash. Remove the outdated hybriel#280 comment in gitoria-api.hl; use JSON.tryParse there if it makes the code simpler.
  11. 4. lib/tickets.hl: the for loop that replaced `.map((a) => { return a.join(...) })` (K8 report) goes back to map, now that hybriel#283 is fixed. Check the result is not [].
  12. 5. Other `JSON.parse` calls on files Kunibert wrote itself (queue, memory, config) stay as they are unless a corrupt file would crash the service; list them in the report, do not change them.
  13. 6. plugins/: re-vendor from /media/STORAGE/projects/hybriel plugins/ at the current day39 commit (git log there) and update plugins/VENDOR.txt. Local runs use the hybriel binary from /media/STORAGE/projects/hybriel/native/zig-out/bin.
  14. ## Proof (local, loreana, fake gitoria/fake codex only, no real model run)
  15. - In /media/STORAGE/claude-scratch/kunibert/K12/ (copy from K7/K8 scripts): (a) signed non-JSON body → 400 invalid_json, body has no file path; (b) wrong signature of equal and of different length → 401; correct → 202; (c) tickets server down (port with nothing listening) → review still posted, ticket marked not readable; (d) gitoria down → job fails/retries, service keeps answering /health; (e) the map path in tickets gives the same output as before.
  16. - All local gates: `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}` plus your K12 proof → each ALL OK (K9's last line is cleanup; grep for ALL OK). Ports 8840–8859 only, check `ss -ltn` first, all free after.
  17. ## Limits
  18. About 60 tool calls. Do NOT deploy, do NOT push, do NOT touch byrodin. Commit locally on main (`-c user.name=Kunibert -c [email protected]`, short message, no self-attribution). No tickets, no messages to others. Scratch only under /media/STORAGE/claude-scratch/kunibert/K12/.
  19. Report: /media/STORAGE/projects/kunibert/reports/K12-day39-cleanup.md: diff summary, exact proof commands and outputs, the hybriel commit vendored, open points. Stop when done or blocked.

Branches

Latest commits

  • 2eee9dbbMerge branch 'revendor-day44' into mainKunibert
  • e96721cb|||PR Re-vendor plugins from Hybriel day44 (hl:fetch redirect fix)mre
  • 0c67ab8cLog: kunibert repo ping provenmre
  • b6f3039cLog: kunibert repo connectedmre
  • b143c3c7CONDUCTOR: push recipemre
  • 7a1279eeRule: conductor merges own utility PRs after green reviewmre
  • 4038b3e0Log: kunibert#18 openedmre
  • 18543db1Log: day42 fetch fix, re-vendor pendingmre
  • 81a12f96Statusmre
  • 6ce706abRecords: neutral wording, split cleanupmre
  • 81a4d31bDocs: neutral wordingKunibert
  • 8205b05eRecords: #17 livemre
  • c3391204Answer fresh reviews under open threadsKunibert
  • a0f3d147Records: #16 livemre
  • 04322148Run reviews in parallel across repositoriesKunibert
  • a6577aaeRecords: #14 live, #16 startedmre
  • 0382238bStart fresh on Review again and name vendored pathsKunibert
  • 5608c6f1Records: kunibert#13 vendored paths livemre
  • 8840771dExclude vendored findings from app verdictsKunibert
  • 6aa65353Records: jukebox connected, first reviewmre