Decision 0003 · Accepted · 2026-11-22

Sync replies with Socket Mode events plus a periodic reconcile

Context

The owner answers inside Slack and the visitor must see the answer on the tracking page. The service sits behind a reverse proxy and should not need to expose a public callback URL for a third party to call.

Options considered

  1. Slack HTTP events to a public endpoint: requires exposing and verifying a callback route.
  2. Polling every thread constantly: wasteful and slow to react.
  3. Socket Mode (an outbound WebSocket) for events, plus a low-frequency reconcile as a safety net.

Decision

Option 3. An event only means "this thread changed": the worker re-reads that thread and stores any new owner messages. A unique constraint on the Slack timestamp makes processing idempotent. Every five minutes the worker also re-reads threads from the last seven days, which catches events missed while the service was down. Only messages from the configured owner are accepted, and unsupported attachments are skipped with a note posted in the thread.

Consequences

← 0002 Deliver to Slack through a transactional outbox0004 Validate images by content, reject SVG, strip metadata →