Skip to content

Incremental sync, webhooks, and instance state

Duckbill™ wakes on provider hints, reads authoritative delta, and applies mailbox state to MessageInstance only. This is Stream A of Sprint 04 (MAIL-24, MAIL-26).

Rules

HTTP

Do not put the signing secret in git, Jira, or logs.

Code

ModuleRole
packages/application/src/webhook-ingress.tsValidate → persist → queue → ack
packages/application/src/incremental-sync.tsDelta retrieval and cursor advance
packages/application/src/subscriptions.tsRenewal and polling fallback
packages/application/src/instance-state.tsInstance-only mailbox state
database/migrations/0013_incremental_sync.sqlNotification and subscription tables

Reconciliation and MailMessage identity matching stay on Streams B and C.