gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2f2959c52f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre2f2959c5/missions/E38-push-api-eval.md

3.3 KB

  1. # Mission E38 — evaluation: push API for outside apps (gitoria#38)
  2. Ticket: https://tickets.worldapi.org/gitoria.worldapi.org/38
  3. Task, caramboleyo's words unchanged:
  4. "gitorias first job is to evaluate how to make a push api where external apps can register to interact with gitoria. first use case being a code reviewer. The external reviewer built the reference reviewer over the past two weeks, a code rabbit replacement for github. basically we want the external reviewer now to build a similar tool with gitoria and hybriel."
  5. ## Result
  6. An EVALUATION, no code. Write `reports/E38-push-api-eval.md` (≤ 250 lines, plain words). Change no other file, no commits, no deploys, no ticket writes, nothing on byrodin or lisbeth.
  7. ## Read first
  8. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (fully; where it conflicts with this brief on scope, this brief wins: read-only evaluation).
  9. - In /media/STORAGE/projects/WorldAPI/gitoria.worldapi.org: CONCEPT.md, DECISIONS.md, README.md, project.hl, docs/git-backend.md.
  10. - The code that matters: lib/pulls.hl (how PRs work: a `|||PR` commit, Merge button), lib/tickets.hl (`notifyPush`, the connect flow `finishConnect`: gitoria already registers with another app), lib/tokens.hl (access tokens), lib/transport.hl (where a push lands), lib/api.hl (function routes), lib/repos.hl (owner/push rules).
  11. - tickets' connect protocol: /media/STORAGE/projects/antcolony-docs/docs/tickets-connect-apps.md (an existing WorldAPI "app registers with app" pattern; reuse it if it fits).
  12. - Hybriel/hl:web facts only from /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md and its docs (outgoing HTTP calls, background work, function routes). Do not guess framework features; a missing one = a gap line.
  13. - CodeRabbit / GitHub Apps / Gitea-Forgejo webhooks: public docs on the web, only to compare shapes (events, signing, comment API). The reference reviewer itself belongs to the external reviewer and is not available to you; don't look for it.
  14. ## Answer these
  15. 1. What gitoria has today that a reviewer needs (PR = commit, diff?, comments on a PR?, events) and what is missing. README says: no diff of a commit is built; PRs have no comments? check.
  16. 2. Registration: how an outside app registers (per repo by its owner? per user? like the tickets connect flow?), what it gets (a token with which rights), how the owner removes it.
  17. 3. Push: which events (PR opened, new commit on a PR branch, merged, push to main), payload shape, delivery (HTTP POST, signed with a shared secret, retries, what happens when the app is down), and where in gitoria's code the event is raised.
  18. 4. Back-channel: what the app may do (read diff, post a review comment / line comment, set a status/verdict on the PR), as API routes with token check.
  19. 5. 2–3 options with effort (small/medium/large in work steps), risks (security: secrets, SSRF on registered URLs, private repos #34), and a recommendation with reasons. Name framework gaps.
  20. 6. Open questions for caramboleyo/the external reviewer, each answerable in one word (e.g. who builds the reviewer and where — that is the external reviewer's decision, list it as a question, don't decide).
  21. ## Limits
  22. - Budget is small: ≤ 40 tool calls. No servers, no gates needed. Stop when the report is written.
  23. - Report back in ≤ 10 lines: the recommendation, the main gaps, the open questions, the report path.

Branches

Latest commits

  • 2f2959c5|||PR apps API: broken JSON body gives 400 invalid_json, not 500mre
  • f7c6ca07Merge branch 'ident-chooser-selector' into mainGitoria
  • 691abb8e|||PR tests: find ident identity choice without the removed .choose classmre
  • 16a3530fMerge branch 'heap-revert' into mainGitoria
  • 220a80e0|||PR Remove temporary /__heap route and heap helper; logmre
  • 13f0c342Merge branch 'hl25-records' into mainGitoria
  • a002ecb7|||PR records: HL25 report, heap helper, logmre
  • 2492a55cTemporary keyed /__heap route for the live memory snapshotmre
  • fefaedd2log: tracker PR-only, HL25 startedmre
  • 21aa57calog: parkmre
  • e9f950a8reports: G25c soakmre
  • a7783686log: deploy 9f41ffcmre
  • 9f41ffc1log: W30b mergedmre
  • bef635c1Merge branch 'w30b'mre
  • 15b996a5Org list: keyed rows by @id, newest first, concat instead of hand loopmre
  • c4f6d9e3reports: G25c growth huntmre
  • b88e39f1log: privacy cleanup donemre
  • bfd7826ddocs: neutral example organisation namemre
  • 01b71c2edocs: neutral wording in missions, reports and logmre
  • 3eeea733log: 2026-11-09 PR flow plan and membersmre