Arth
Decision 1 of 18

Rules first. The model is the fallback, not the feature.

One decision from Arth, which asks: Can an app understand your money without ever being told what it is?


The parsing pipeline is a deterministic-first cascade. Layer one is regex and rule-based extraction handling the majority of cases — known SMS templates from major Indian banks, known statement table layouts — deterministically, fast, at zero inference cost and zero battery impact. Layer two is the on-device model, invoked only for the formats the rules cannot confidently parse, and for merchant-name normalisation where fuzzy semantic judgment genuinely helps.

I wrote “the majority of cases” long before I had checked it, and on real messages it was not yet true. Decision 16 is what happened when I checked.

This avoids a false choice. Handling every format perfectly with rules is unrealistic given how much SMS templates and statement layouts vary across dozens of Indian banks and card issuers. Routing everything through the model is unrealistic given what mobile inference costs in time and battery. The cascade takes the cheap path for the common case and reserves the expensive one for the tail.

Traded away: a single code path. Two parsing strategies means two sets of failure modes and a confidence threshold that has to be tuned rather than assumed.

Your opinion

Would you have decided this differently?

Where do you stand?

What gets published. I read every opinion and publish substantive ones, including those that disagree with me, as a scroll on this page. I may add a reply. I leave out spam, abuse and anything off-topic, so please include only what you’d be happy to see in public.

Where it goes. I keep your opinion, your stance and, if you allow it, your name in a database run by Neon. I don’t ask for your email or store your IP address, but Netlify, which hosts this site, may log it when it handles your request. To have yours removed, email pkrishna@vaulthai.health. A published opinion is removed from the site, though it can remain in my site’s version history.

Next