trails/apps/journal/app/jobs
Ullrich Schäfer 881991ca18
feat(journal): federation protocol doc + delivery observability
Task group 4 of federation-hardening.

4.1 — FEDERATION.md at the repo root: actor discovery (WebFinger, actor,
NodeInfo), object/activity types with real JSON examples (Note, Create,
Delete, the narrow follow-graph inbox), addressing, HTTP-Signature
expectations, the two-layer dedup contract, durable delivery/retry
policy, and blocklist moderation semantics — precise enough for another
implementation to interoperate. Linked from README and docs/architecture.

4.2 — three prom-client metrics + a journal dashboard row:
- `federation_delivery_total{outcome}` — incremented in deliver-activity
  (delivered/skipped/failed).
- `federation_inbox_dropped_total{reason}` — incremented at every inbox
  drop (duplicate | blocked); this is the counter deferred from task 3.2.
- `federation_queue_depth` — gauge sampled at scrape time in
  /api/metrics from PgBossMessageQueue.getDepth(); the restart-loss
  regression detector.
Grafana journal.json gains a Federation row (delivery rate, queue depth,
inbox drops); the logs panels shift down to make room.

Verified: dashboard JSON valid; journal typecheck + lint clean; unit
suite 357 passing (route-template guard unaffected).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 23:11:43 +02:00
..
backfill-user-keypairs.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
consumed-jti-sweep.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
deliver-activity.ts feat(journal): federation protocol doc + delivery observability 2026-07-13 23:11:43 +02:00
demo-bot-generate.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
demo-bot-prune.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
federation-dedup-sweep.ts feat(journal): inbound federation replay defense 2026-07-13 22:07:30 +02:00
federation-kv-sweep.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
garmin-import-activity.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
import-batches-sweep.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
komoot-bulk-import.test.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
komoot-bulk-import.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
notifications-fanout.integration.test.ts Cursor-based pagination for /notifications 2026-04-26 01:42:32 +02:00
notifications-fanout.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
notifications-purge.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
payloads.test.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
payloads.ts feat(journal): inbound federation replay defense 2026-07-13 22:07:30 +02:00
poll-remote-actor.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
poll-remote-outboxes.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
send-welcome-email.ts journal: typed job seam + Komoot credentials through the manager 2026-06-10 02:05:24 +02:00
surface-backfill.test.ts route-surface-breakdown (Phase 2): async Overpass backfill + SSE 2026-06-14 19:18:03 +02:00
surface-backfill.ts route-surface-breakdown (Phase 2): async Overpass backfill + SSE 2026-06-14 19:18:03 +02:00