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