gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmainbd3591c7conductor: gates run on the live day44 binarymremain/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

  • 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