Which importer Bots ship in v1, and where do they run? #67
Notifications
Due Date
No due date set.
Depends on
Reference: bobby/hapi#67
Reference in new issue
Block a user
Part of #44
Question
Given the Finance ingest contract (resolution on #59) and the source findings (#65, #66): which importer Bots ship with v1 (e.g. a SimpleFIN Bot for the joint Accounts, an OFX/QFX file importer, the Apple Card export path), which repo they live in, where and how often they run (in-cluster CronJob vs a home machine, sharing ADR-0004's connection budget only if in-cluster), how each gets its Token and grant/Binding, where source credentials (e.g. the SimpleFIN access URL) live per ADR-0008, how they map source accounts to Financial Account ids, and how they report failure (ADR-0009 Kuma push)?
From the SimpleFIN check: SimpleFIN gives no purchase date for Capital One or Fulton (
transacted_at= posted date). Decide what a SimpleFIN Bot sends asoccurred_on: the posted date (which amends the Finance MVP's "occurred_on= purchase date"), a flag, or merging dates from file exports. History via SimpleFIN is only about 45–90 days, so decide the backfill path too. Apple Card shows up in SimpleFIN's search, so decide whether to try connecting it.Resolution: importer Bots in v1
One importer, the SimpleFIN Bot, for the Household Accounts only. It runs in-cluster.
occurred_onbecomes an editable best-known date. The platform side is in ADR-0011.Scope
tracked_fromis the first budgeted month (e.g. 2026-12-01), which SimpleFIN history already covers. If an OFX/QFX importer ever comes back, it may only send dates before an Account's first SimpleFIN date, because OFX FITIDs and SimpleFINTRN-…ids differ and overlapping imports would duplicate.The Bot
bots/simplefin/in this repo, with its own image. It talks to hAPI over HTTP only (import-linter enforced) and has no shared Bot library.botsnamespace, every 6 h,start-date = now − 14 d,concurrencyPolicy: Forbid. It calls the in-cluster hAPI Service with its Token.external_id= SimpleFINid,posted_on=postedas a UTC date,amount_minorfrom the decimalamount,payee_raw=description. It never sendsoccurred_on.simplefin-importer, with one Household grant offinance:writeand no Bindings.bot-simplefin(Token, Access URL,{simplefin_account_id → financial_account_id}mapping, Kuma push URL), mounted as files. Vaultwarden "SimpleFIN Access URL" stays the source of truth. Unmapped accounts are skipped with a warning.errorsarray, or a failed ingest exits non-zero. A clean run pings a Kuma push monitor (13 h window). "An Account went quiet" stays in the Notifications fog.toFQDNs) the SimpleFIN bridge and Kuma push hosts on 443. Non-root, read-only root filesystem, no service-account token.Finance MVP amendments (dates)
occurred_on= best-known date (purchase date if the source gives one, otherwise the posted date). It's editable on imported Transactions withinposted_on − 31 d … posted_on. Amount,posted_on, raw payee andexternal_idstay read-only. Re-imports still never overwrite edits.dated_by=source | posted | manual, mirroringcategorized_by. In ingest,occurred_onbecomes optional, andposted_onis required when it's absent. If it's omitted, hAPI copiesposted_on(posted). A Person's edit setsmanual.dated_by = postedandposted_onfalls on days 1–5 of its month (fixed rule). It shows up as adate_reviewfilter onGET /transactionsand as a count in the previous month's summary. A PATCH clears it; sending the same date counts as confirming it.