137. Numbers that arrive by themselves: the automation plan¶
Status: ๐ก Partly built. Bank alerts arrive by themselves from the Outlook inbox with one tap (slice 1b) and from an SMS forwarder (owner fallback); Gmail, web push, the monthly CAS and Kite are next. What the lights mean
Owner, 2026-11-14: "I can't depend on copy-pasting SMS; automation is one of the best features, even if it costs some money." Share or paste stays as the fallback (#279, #280).
The routes, ranked 80/20 (researched 14 November 2026)¶
| Route | What arrives | Cost | Decision |
|---|---|---|---|
| An SMS forwarder on the phone: open source, MIT, on F-Droid, filters by sender (android_income_sms_gateway_webhook) | Every bank, card, UPI and EPFO message, in real time | Free | Slice 1. The forwarder posts only the chosen senders to the person's own estate, with a token. The Life OS picks them up on open and feeds them to the spend reader already built. |
| The depositories' monthly CAS email (NSDL/CDSL; CDSL: the password is the PAN in capitals), read with casparser (MIT) | Mutual funds and demat holdings, monthly (half-yearly when there is no activity) | Free | Slice 2. The estate reads the statement from a mailbox the person points it at, parses it on the estate, and sends only the totals. |
| Zerodha Kite Connect Personal (free since March 2025) or the official Kite MCP server | Holdings, positions, funds, orders, GTT | Free; live data is โน500 a month and not needed | Slice 3: the birthday-month rebalance. Read holdings, compare with the target mix, propose the trades; the person approves every order. Nothing trades by itself. |
| Account Aggregator (Finvu, OneMoney) | Bank data | โ | Not for a personal app: data goes only to a regulated institution (FIU). |
| Fitbit | Health | โ | The legacy API is switched off on 2 November 2026; the Google Health API takes no new projects. Revisit. |
The rules every route keeps¶
- Least data: only the senders and fields that feed a number. Card numbers and CVVs never; the last four digits at most.
- The person's own estate, never a third-party cloud. A token per device, which one switch revokes (
one-door). - A threat model first for each route (
governance/threat-models.json); the forwarder crosses the phone-to-estate boundary. - Nothing irreversible without a tap. Rebalancing proposes; the person approves each order.
- The fallback always works: share or paste a message, offline.
Slice 1b is built: bank e-mails, with nothing to install¶
The zero-setup route. Many banks send the same alert by e-mail as by SMS, so the Life OS reads them from the mailbox the person already signs in with. Nothing to install, no token, no address.
- Money, then "Read my bank e-mails". If the Life OS is signed in with Microsoft, the tap asks Microsoft for one more permission, Mail.Read (read-only). Allow it once.
- Done. The last 31 days come in at once; after that, new alerts are read each time the app refreshes from Microsoft (about every 30 minutes while it is open). A short note says how many.
What it keeps: only the Inbox, never Junk; only bank sender domains (India today: the .bank.in domains and the major
banks' and card issuers' own); never a message with a one-time code; digit runs of 12 or more masked; at most 50 messages a
read. Mail goes from Microsoft straight to the device. The message text is not stored, only the spend, card and balance it
gave. Off switch: Ops, Microsoft 365, Disconnect; or remove the app in your Microsoft account's app permissions.
Threat model life-os-bank-mail; test guiding-map/tests/test97.js.
Not yet: Gmail (Google treats reading mail as a restricted permission: fine for the owner as a test user, a paid
security assessment before a public launch; the next slice) and pairing by one scan. Web push is built (the Life OS's
Allow alerts tap). Until a shared Microsoft app
id ships with the Life OS, signing in still needs a one-time app registration (friction ms-client-id-paste).
Slice 1 (owner fallback): an SMS forwarder, five minutes to set up¶
- On the estate: in
local/compose/.env, setSYNC_INBOX_TOKENSto a new random token (for exampleopenssl rand -hex 24) andSYNC_INBOX_USERto your Life OS sync id. Restart:./securax up. While the token is empty the door stays shut. - On the phone: install the open-source forwarder (F-Droid or GitHub). Add one rule:
- Sender: a pattern for your banks' sender ids, for example
.*-(HDFCBK|ICICIB|SBICRD|AXISBK|IDFCFB|BOBCRD|EPFOHO).*; - URL:
https://<your estate's Tailscale name>/sync/inbox/sms?user=<your sync id>; - Header:
Authorization: Bearer <the inbox token>; body:{"from":"%from%","text":"%text%"}. - Done. Open the Life OS: new bank messages are read by themselves, a short note says how many, and the inbox is cleared.
What the estate refuses: any sender that is not a bank id, every one-time code (never stored), digit runs of 12 or more (masked), over 60 messages a minute, and any request without the inbox token. The inbox token cannot read anything.
The one registration that ends the client-id paste (owner, once)¶
Slice 1b works today, but signing in with Microsoft still asks for an app's client id (friction ms-client-id-paste).
One registration, owned by the publisher, ends that: its client id ships with the Life OS, and every person after only
taps Accept on Microsoft's consent screen. The client id is not a secret.
Why these choices (Microsoft's rules, checked 14 November 2026):
- Since June 2024 an app must live in a directory (a tenant); a personal account alone can no longer register one.
- The Life OS reads mail on the device, when the person is there, so a single-page app is right: its refresh token
lasts 24 hours, and the app asks again in one tap when it lapses. A reader that runs while nobody is there would need
the estate to hold the connection instead (a public client, 90 days); that waits until it is needed.
- Mail.Read (delegated) is the narrowest permission that can read an alert's text; Mail.ReadBasic leaves out the body.
Microsoft has no permission for "only these senders", so the Life OS keeps bank senders and drops everything else.
The steps (about 15 minutes):
1. Your own tenant. Never an employer's directory. Make a free Azure account with the Microsoft account you use for
SecuRAX (card and phone check; no charge unless you choose to upgrade). It creates a tenant in which you are the
administrator. Entra ID Free and app registrations stay free after the trial credit ends.
2. Register the app. In the Microsoft Entra admin center, switch to that tenant, then
Identity โ Applications โ App registrations โ New registration:
- Name: SecuRAX Life OS;
- Supported account types: Accounts in any organizational directory and personal Microsoft accounts (it cannot be
changed later without a new registration);
- Redirect URI: platform Single-page application; add each address the Life OS is opened from, exactly as the
browser shows it (the published app and your hub address from ./securax names).
3. Permissions. API permissions โ Add โ Microsoft Graph โ Delegated: Calendars.Read, Tasks.ReadWrite,
Files.ReadWrite.AppFolder and Mail.Read (the ones the Life OS asks for; openid, profile, offline_access and
User.Read come with sign-in). No client secret and no certificate: the app needs none.
4. One value back. From Overview, copy the Application (client) ID and give it to Claude once; it ships as the
Life OS's default, and the paste field folds away as a fallback.
Later, for other people: publisher verification (a Microsoft partner id) removes the "unverified" label on the consent screen; a person in an organisation may need their administrator's approval, which the card will say plainly.