gitoria

tickets

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain5d144817Merge branch 'records-t40' into mainTicketsmain/missions/026-push-api-eval.md

8.2 KB

  1. # 026 — Evaluation: a push API for ticket events (tickets#51). NO CODE.
  2. TASK (his words, unchanged): "we will also change the information you get to a delta like we have in conductor-hub as
  3. vinzenz the conductors should get their ticket updates directly as a push from tickets via a similar subscriber as gitoria
  4. builds it now. you don't need to know every detail of all projects its enough if you keep the overview." ('you' = Apollo)
  5. Ticket: https://tickets.worldapi.org/tickets.worldapi.org/51 (do not write to it).
  6. NOT HIS (Apollo's order): tickets gets a push API: a conductor (or any app) subscribes to a project and gets its events
  7. pushed, built the same way as gitoria's push API (gitoria#38), one design shared with gitoria. It replaces Apollo's
  8. subscriber byrodin:/CONTAINERS/APOLLO/tools/ticket-push/subscriber.py (reads GET /api/events, wakes parked conductors).
  9. This mission is an evaluation only: no code, no commits, no deploy.
  10. ## Read first
  11. - /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md (all).
  12. - tickets: CONCEPT.md, DECISIONS.md, README.md (esp. "API", "Event stream for programs (ticket #26)", the connect flow
  13. /connect, tokens), project.hl, lib/ (events, connect/gitoria link, tokens, sessions).
  14. - gitoria's evaluation: /media/STORAGE/projects/WorldAPI/gitoria.worldapi.org/reports/E38-push-api-eval.md (Option B:
  15. per-repo apps, connect-style registration, one signed POST per event, back-channel) and what Gitoria answered (below).
  16. - conductor-hub's delta as Vinzenz explained it (below).
  17. - Apollo's subscriber (read only): `ssh byrodin cat /CONTAINERS/APOLLO/tools/ticket-push/subscriber.py`.
  18. - The consumer side: how HyperConductor wakes a parked chat (a message to it via its API); ask nothing, read what is
  19. documented in /media/STORAGE/projects/hyper-conductor (README/docs only).
  20. ## Answers (what was asked, with facts from code and docs, file:line)
  21. 1. Today: what /api/events sends (event kinds, fields, cursor `after`, filters, auth, limits, reconnect), who uses it, and
  22. what Apollo's subscriber does with it (filters, batching, how it wakes whom, what it loses when down).
  23. 2. The delta: what conductor-hub's delta is, and what a ticket delta would be (fields; one event vs. a summary since the
  24. last delivery; how "you don't need to know every detail … keep the overview" maps to it, e.g. per-subscriber filters
  25. or a short form).
  26. 3. Options, at least: A push = signed HTTP POST per event to a registered URL (gitoria Option B); B push = a held stream
  27. (today's /api/events) with a small shared client; C a hybrid (POST "something changed" + pull of the delta by cursor).
  28. For each: registration (who may subscribe to which project; private projects; the connect flow), authentication and
  29. signature, delivery (retry, order, de-duplication, catch-up after downtime by cursor), how a parked conductor is woken
  30. (where does the receiver run: loreana/byrodin/lisbeth; does it need a public URL?), load, failure modes, and what it
  31. costs (work steps).
  32. 4. Shared design with gitoria: which names, headers, signature format, event envelope and registration UI both apps should
  33. use; what is already decided there; what differs and why.
  34. 5. Compatibility: /api/events and the Markdown view must keep working for existing users (CONDUCTOR.md); what changes for
  35. them and what must be announced.
  36. 6. Recommendation with reasons, and the open questions only caramboleyo can decide (each one short, with the choices).
  37. ## Environment
  38. - Scratch: /media/STORAGE/claude-scratch/tickets/P51/ (REPORT.md there; nothing else anywhere). Read-only on byrodin.
  39. - No servers needed; if you start one, ports 8740–8759 only, stop and list it.
  40. - Model Sol (codex|gpt-6.1-sol), budget hard cap given by the conductor. Cap ~40 requests.
  41. ## Report
  42. REPORT.md: short answer first (at most 10 lines), then sections 1–6 with file:line evidence; facts vs. assumptions marked;
  43. "not checked" list. Short final message.
  44. ## Gitoria's answer (2026-11-01, verbatim points, his design is still a PROPOSAL; caramboleyo has not said yes to Option B)
  45. - Nothing built. First client: reviewer app Kunibert (loreana chat 1793500539617-709491), Vinzenz advising. Newer doc:
  46. /media/STORAGE/projects/WorldAPI/gitoria.worldapi.org/reports/E38b-konrad-needs.md (bot identity, short-lived token,
  47. delivery id + log + redelivery; point 6 unconfirmed: Kunibert reads tickets directly with its own read-only token →
  48. likely a client of this push API too).
  49. - Gitoria asks tickets to match: POST application/json; headers X-<App>-Event, X-<App>-Delivery (uuid, same on
  50. redelivery), X-<App>-Signature-256: sha256=<hex HMAC-SHA256(secret, raw body)> (GitHub's shape); timeout 10 s, no
  51. redirects; retries 1 min, 5 min, 30 min, 2 h, then failed; GET …/deliveries and POST …/deliveries/:id/redeliver;
  52. retention 7 days, max 200 rows per subscriber; receiver de-duplicates on the delivery id and does one catch-up read on
  53. start (for tickets: /api/events); callback URLs only on worldapi.org and subdomains; registration through the existing
  54. connect flow (tickets-connect-apps.md) with gitoria in tickets' role. Open: neutral headers X-WorldAPI-* so one receiver
  55. code serves both — evaluate this (section 4).
  56. - Evaluate in section 3/4: a parked conductor in HyperConductor has no worldapi.org URL; who receives the POST and wakes it?
  57. ## Vinzenz's answer (2026-11-01): conductor-hub's delta (repo ASI-Reisen/conductor-hub, private; not readable here)
  58. - No client cursor: the hub keeps a server-side "delivered" flag per message (messages.delivered_at IS NULL = queued).
  59. - A poller upserts items idempotently (key, kind, title, state, url, desc_hash, source, author, assignee); a line is made
  60. only when an item is new, its state / title / description (desc_hash) / assignee changes. Comment and review activity
  61. lines too (each ≤ 300 chars). Lines go into ONE open digest message per conductor (kind=board, from=hub), appended and
  62. de-duplicated, capped at 4 KB (then a new digest), until the conductor reads it. Example:
  63. board:
  64. new NXT-3012 (open): Fix price rounding — by Eva, assigned: Markus
  65. asi-next#1990 open -> merged (Release 11-01)
  66. NXT-2997 assigned: Poldi
  67. Lines carry a source; a conductor's subscription filters per source. Items found in a new board's first 10 min = seed,
  68. no "new" lines.
  69. - Delivery: content is PULLED (inbox tool over MCP, or POST /api/inbox, marks delivered); the WAKE-UP is PUSHED (SSE
  70. GET /stream; a local bridge.js keeps it open and injects a notification into the session; wake fires only when a message
  71. is CREATED in an empty queue, never on appends; on connect `{backlog: n}`; one live bridge per conductor, newest wins).
  72. - Auth: one bearer token per conductor (sha256 stored), conductor must be approved; the poller writes with a service secret.
  73. - His advice: pushes only as content-free wake-ups, the receiver pulls the delta; one growing digest per receiver instead of
  74. one message per event; idempotent upsert so neither side has to remember state.
  75. Evaluate this model against gitoria's signed-POST proposal and say where they fit together (e.g. POST = wake-up only,
  76. digest = pull), in sections 2–4.
  77. ## Vinzenz's recommendations for tickets#51 (copy he also sent to Apollo)
  78. 1. Push on write from tickets itself, not by polling (real-time, no seed window). 2. Relevance per line (assigned to you /
  79. your ticket / @mention). 3. Structured lines ({ticket, event, from, to, actor, ts}) plus a text rendering. 4. Coalesce
  80. per ticket inside one digest (open -> review -> done = one line). 5. At the cap, summarise instead of a second digest.
  81. 6. Leave the receiver's own changes out of its delta. 7. Keep from the hub: one growing digest per receiver, content-free
  82. pushes with the delta pulled, server-side delivered flag, idempotent upserts. Evaluate each point.
  83. ## Priority (his words via Apollo 2026-11-01, verbatim): "do the tickets delta and push subscription first to get it away from you"
  84. NOT HIS (Apollo): tickets#51 goes first; it does not wait for gitoria's design. Gitoria may follow tickets' design later.
  85. So: recommend the design tickets should BUILD NOW (gitoria's proposal is input, not a constraint), and end the report
  86. with a build plan in steps (files, routes, tables, tests, how Apollo's subscriber is retired). Questions for caramboleyo
  87. only where there is a real choice that changes the result.

Branches

Latest commits

  • 5d144817Merge branch 'records-t40' into mainTickets
  • 44ee6f06|||PR records: #43 #45 livemre
  • b8fdeee9Merge branch 'p39-routes' into mainTickets
  • a0187a0a|||PR Remove redundant route-order loopmre
  • 369e4b9cMerge branch 'k40-lists' into mainTickets
  • 9af8e780|||PR Use keyed list mutations for live ticket updatesmre
  • 610d8e8aMerge branch 'records-t39' into mainTickets
  • 32bcdf24|||PR records: GO P39 K40mre
  • 4123c6d1Merge branch 'records-t38' into mainTickets
  • cd3641a1|||PR records: day72 deploy live, tickets closedmre
  • 7d44d852Merge branch 'records-t37' into mainTickets
  • 926f7061|||PR records: merges, D36 deploymre
  • bf58534eMerge branch 'l33-final' into mainTickets
  • 759a9ac3|||PR thin login (tickets#46, #45): merge main, route entry cleanupmre
  • 239436d8Merge remote-tracking branch 'origin/main' into l33-finalmre
  • 5822cb3aMerge branch 'o34-clean' into mainTickets
  • 0870653c|||PR offline note from __hlOnline, no polling (tickets#41)mre
  • 14cf96b4Merge branch 'records-t36' into mainTickets
  • 07749fa1|||PR records: day72 + #40 mergedmre
  • ecd7e226|||PR Consolidate login and move handler logic into topic libraries (partial)mre