gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfd4fc028fd4fc028Exercise member status reads with a populated check statemrefd4fc028/reports/E38b-konrad-needs.md

3.6 KB

  1. # #38 — what Konrad (PR reviewer) needs, from Vinzenz 2026-11-01
  2. Source: Vinzenz (lisbeth chat 1792702425501-661095), verbatim content summarised; based on what Konrad uses on GitHub.
  3. Auth: app = bot user with own name; owner installs per repo; short-lived per-repo token (contents read, reviews/comments write, status write); every push HMAC-signed, delivery id, delivery log + redelivery.
  4. Events (repo, PR no., head sha, base ref, draft, author, title, body): 1 opened/reopened/ready/new commits incl. force-push; 2 review re-requested; 3 human reply to app's comment; 4 PR conversation comment (`@konrad reset`); 5 thread resolved/unresolved (nice); 6 closed/merged.
  5. Reads: git fetch over HTTPS with token, PR head as ref (refs/pull/N/head) + base (diffs locally, no diff API); merge-base; PR meta; app's own review threads (id, path, line, resolved, comments) paginated; linked tickets text+comments (spec source).
  6. Writes: review (approve/request_changes/comment, body, inline by path+line new side; commentable lines clear or predictable rejection); reply in thread; resolve thread; status per head sha pending→success/failure with title+summary, red/green, can be required for merge; never merge.
  7. Also: event only after ref fetchable; rate limits documented.
  8. ## Gitoria's comparison with option B (reports/E38-push-api-eval.md) — NOT HIS
  9. Option B already covers: per-repo owner connect, HMAC signature + delivery id + redelivery, comments, status, never merge.
  10. Missing from option B, to add:
  11. 1. Bot identity per app (reviews shown as the app's name).
  12. 2. Git fetch over HTTPS with the app token (read-only) and a PR head ref refs/pull/N/head; merge-base. (B planned a diff API instead; Konrad does not need it.)
  13. 3. Review = one submission with verdict + body + inline comments; threads with reply and resolve (B had flat comments keyed by sha).
  14. 4. More events: review re-requested, reply to app comment, conversation comment, thread resolved, closed/merged. Needs a re-request button and conversation comments on PRs (not in gitoria today).
  15. 5. Status "required for merge" setting per repo.
  16. 6. Read linked tickets: through gitoria (it holds the tickets key) or Konrad connects to tickets himself — open question.
  17. 7. Short-lived token (B planned a long-lived key, rotatable).
  18. 8. Ordering: send the event only after the ref exists; documented rate limits.
  19. Size: B was ~13 steps; with these roughly 20+.
  20. ## Reviewer's view on point 6 (2026-11-01, unconfirmed)
  21. Read linked tickets through gitoria: one read-only route with the app token, returning only the tickets the PR links to (text + comments). No second connect, same shape as Konrad reading GitHub issues. To be checked with Vinzenz and caramboleyo.
  22. ## Update on point 6 (2026-11-01, unconfirmed, replaces the view above)
  23. Vinzenz advises, and Kunibert now leans this way: Kunibert reads linked tickets DIRECTLY from tickets with its own read-only token. Gitoria only names which tickets a PR links (in the event payload or PR meta) and serves no ticket content. Tickets stays the source of truth; gitoria needs no tickets read route. Caramboleyo decides.
  24. ## Signature header scheme (Apollo via Kunibert, 2026-11-01; unconfirmed by caramboleyo)
  25. HyperConductor has a general signed push: `POST /api/push/<chatId>`, header `X-Push-Signature-256: sha256=<hex HMAC-SHA256(secret, raw body)>`, plus `X-Push-Delivery`.
  26. Apollo wants gitoria's events to use the same header scheme, so a parked conductor can receive gitoria events directly. Plan change: gitoria signs every delivery with these two headers (replaces the gitoria-specific header names in E38 sec.3). This also answers the neutral-header question with tickets#51.

Branches

Latest commits

  • fd4fc028Exercise member status reads with a populated check statemre
  • 536ca6f9Allow repository members to read pull workflow APIs with user tokensmre
  • 705dd834W49 missionmre
  • b554cd5flogmre
  • f4c9440ddeploy.sh: tar --hard-dereference for the live data backupmre
  • 1a687b15Merge branch 'w48-member-merge'mre
  • 166c775fW48 report, logmre
  • 1b4623f0Members merge pull requests: API route, button on /pulls and /pulls/N, one shared merge pathmre
  • 1075c38cW48 mission, logmre
  • 17bdd0d6V37/V39 missions, logmre
  • 146de5f8Re-vendor gitoria to Hybriel set-day39 (51e921d7)mre
  • e874e44dtests/status-keyed: app token lives 60 s so it outlives the gate's two restartsmre
  • 270b8d61deploy.sh: DEPLOY_STOP_START=1 stops, waits for the old pid, then starts (mpackdb freeze, replaces the standby swap)mre
  • 3f9235b8project.hl: drop the dummy /pulls/:n component route (hybriel#294 is fixed in day37)mre
  • c90daf19Re-vendor gitoria to Hybriel set-day37 (f6b3d45b)mre
  • 03b5bb08W39 report to reports/, drop scratch repro, mission + logmre
  • 154d333fMerge w39-create-api: POST /api/repos with a user token (#39)mre
  • 149dd512Rewrite W39 reportmre
  • e5385075Expect 401 for POST /api/repos without a tokenmre
  • 1a76055cDocument repository creation APImre