gitoria
All repositories: gitoria
3.6 KB
# #38 — what Konrad (PR reviewer) needs, from Vinzenz 2026-11-01Source: Vinzenz (lisbeth chat 1792702425501-661095), verbatim content summarised; based on what Konrad uses on GitHub.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.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.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).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.Also: event only after ref fetchable; rate limits documented.## Gitoria's comparison with option B (reports/E38-push-api-eval.md) — NOT HISOption B already covers: per-repo owner connect, HMAC signature + delivery id + redelivery, comments, status, never merge.Missing from option B, to add:1. Bot identity per app (reviews shown as the app's name).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.)3. Review = one submission with verdict + body + inline comments; threads with reply and resolve (B had flat comments keyed by sha).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).5. Status "required for merge" setting per repo.6. Read linked tickets: through gitoria (it holds the tickets key) or Konrad connects to tickets himself — open question.7. Short-lived token (B planned a long-lived key, rotatable).8. Ordering: send the event only after the ref exists; documented rate limits.Size: B was ~13 steps; with these roughly 20+.## Reviewer's view on point 6 (2026-11-01, unconfirmed)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.## Update on point 6 (2026-11-01, unconfirmed, replaces the view above)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.## Signature header scheme (Apollo via Kunibert, 2026-11-01; unconfirmed by caramboleyo)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`.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
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre
- 71b2fa4blog: hybriel#335mre
- bd94cc7elog: #25 cause found (run() leak)mre
- 565cb508log: H25 round 1mre
- 90a0af84log: H25 startedmre
- 87bd53b8mission H25mre
- 71a746cflog: day48 livemre
- bf568e14log: V48 mergedmre
- 09955dedMerge v48: Hybriel set-day48, theme layouts ce4a0bamre
- f2a2b0cevendor: Hybriel set-day48, theme layouts ce4a0bamre
- 5d0834e7log: Apollo model rulemre
- fe8e5bd5log: #25 sample, V48 missionmre
- 8580c5d9log: theme fix from Atlasmre
- 46823d93log: Apollo budget correctionmre
- f6d32341log: Apollo on budget and #25 nextmre
- d7184f53log: batch live, #25 evidencemre
- 5e25e816log: W61 mergedmre
- aafe330dTidy: drop evidence JSON (kept in scratch), collapse blank linesmre
- aca1fda1Merge W61: theme from layouts 17e0f03, Views refer to Style rules (gitoria#37 #27)mre
- 03cb650blog: W61 theme decisionmre