[BTAPI-72] Surface Wealthsimple doorbell trigger health on GET /sync/status #84

Merged
chris merged 6 commits from feature/BTAPI-72 into main 2026-08-30 16:26:02 -06:00
Owner

Ticket

BTAPI-72 Surface Wealthsimple doorbell trigger health on GET /sync/status

Summary

  • Add lastDoorbellTriggerAt to WealthsimpleSyncState, advanced whenever the API accepts a doorbell ring (POST /sync/wealthsimple) — distinct from lastSyncedAt, which also advances on cron runs and would otherwise mask a dead doorbell
  • Surface the new timestamp on GET /sync/status alongside the existing Wealthsimple health block
  • The health-tracking write is best-effort: a failure to record it is logged and swallowed rather than blocking the actual forward to the sync process, so a Mongo hiccup can't turn into a missed real-time purchase
  • Deliberately does not fold doorbell silence into the existing wealthsimpleSyncFailing alert path — the ticket itself frames that as an open design question (threshold, false-positive risk) rather than a given, better left to a follow-up ticket once real-world silence patterns are visible
## Ticket [BTAPI-72](http://192.168.2.100:7123/home/browse/BTAPI-72/) Surface Wealthsimple doorbell trigger health on GET /sync/status ## Summary - Add `lastDoorbellTriggerAt` to `WealthsimpleSyncState`, advanced whenever the API accepts a doorbell ring (`POST /sync/wealthsimple`) — distinct from `lastSyncedAt`, which also advances on cron runs and would otherwise mask a dead doorbell - Surface the new timestamp on `GET /sync/status` alongside the existing Wealthsimple health block - The health-tracking write is best-effort: a failure to record it is logged and swallowed rather than blocking the actual forward to the `sync` process, so a Mongo hiccup can't turn into a missed real-time purchase - Deliberately does not fold doorbell silence into the existing `wealthsimpleSyncFailing` alert path — the ticket itself frames that as an open design question (threshold, false-positive risk) rather than a given, better left to a follow-up ticket once real-world silence patterns are visible
chris merged commit b5176ea338 into main 2026-08-30 16:26:02 -06:00
chris deleted branch feature/BTAPI-72 2026-08-30 16:26:02 -06:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
chris/budget-tracker!84
No description provided.