Manuscript Offprint

arXiv:2610.32955

Measure Before You Train: Typed Decision Models vs. a Classical Baseline vs. a Generative LLM for Routing a Personal Multilingual Inbox

Federico Lucca

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Personal email agents decide, for every incoming message, what kind of message it is, whether it is urgent, whether a reply should be drafted, whether a task should be created, and whether the message should be ignored. In production these decisions are usually delegated to a generative LLM or to ad-hoc rules, and their error rate is rarely measured: the labels in the database were written by the system itself. We describe Foyer (formerly SecondBrain), a self-hosted personal inbox agent in daily use since 2026, and a measurement protocol—stratified sampling, a frozen snapshot of what the model sees, thread-grouped splits, secret redaction, and human labels collected in the agent's own review loop—that produces ground truth before any training. On 231 real emails in Italian and English labelled by the owner, we compare, under the same thread-grouped 5-fold cross-validation or zero-shot on the same rows, the production keyword rules, a TF-IDF + logistic-regression baseline, three sizes of a local typed decision model (Tev1 0.8B and 4B, Nimble 9B via Ollama on CPU and on a T4), a hosted typed decision model (Bespoke Nimble v4-max) and three hosted generative LLMs (Qwen2.5-7B, Gemma 4 26B-A4B and 31B). Three results. First, the production rules for message type score 28% against a 58% majority class: the field the dashboard displayed most prominently carried no information. Second, with about two hundred labels, a logistic regression has the highest accuracy of any system on every field (type 0.79, urgency 0.74, needs-reply 0.83, is-noise 0.90), at a latency three orders of magnitude lower—though it never predicts the two rarest types, and removing the sender from its input costs it four points on type; the best zero-shot systems are Gemma 4 on type (0.74) and the hosted decision model on urgency and is-noise (0.71, 0.86), with Tev1 4B on a T4 the best local option (0.69 on type, 0.35 s per decision). Third, the sender's relationship to the owner—client, supplier, partner, service—is recovered from other emails of the same contact with 98.6% accuracy on the 63% of emails whose sender has been seen before, and 85.7% overall with a majority fallback; it belongs in the contact graph, not in the prompt. Fourth, per-email accuracy is not the product metric: when the labels are composed into the agent's actions, the trained baseline—more accurate on every field—is also the system that most often ignores an email that needed a reply or a task (18% of such emails, against 4% for the best generative model), because it is precise and conservative while the LLMs over-act; a cost-chosen threshold on its noise probability halves that rate and makes it the cheapest system overall. A third, adversarially sampled round of 500 emails (722 in total), with eleven hypotheses pre-registered before the labels were opened, confirms seven of them and refutes four. We release the protocol, the harness and the pre-registration; the emails stay private.

1 Introduction

A growing share of what personal AI agents do is not generation but decision: which project does this email belong to, is it urgent, does it need a reply, is it noise. Generative LLMs answer these questions by producing text that is then parsed; typed decision models, introduced with TypeSafe's Jev in September 2026 [1] and followed within weeks by open models (Nimble [2], Tev1, Clef, Strands Decider) and a local endpoint in Ollama [3], answer them directly with a probability distribution over caller-defined options, in one forward pass and without free text.

Whether this new class of models is good enough to replace the generative step in a personal agent is an empirical question, and it cannot be answered with the data such agents typically keep: the stored labels are the model's own output. Early evidence is mixed. Classical classifiers trained on a few thousand records outperform Jev on network-traffic classification [7]; a community benchmark reports a plain 9B instruct model ahead of every decision model on triage tasks; the vendor's own benchmark places the open models within three points of Jev [3]. None of it concerns personal, multilingual correspondence.

This paper makes three contributions.

  1. A measurement protocol for a production email agent that yields human ground truth without changing the system: stratified sampling by predicted class, a frozen snapshot of the exact model input, deterministic splits keyed on record ids, and labelling in the agent's own

Lucca

interface.

  1. A comparison of nine systems on that ground truth—production rules, a classical baseline, local and hosted typed decision models, hosted generative LLMs—on message type, urgency, three agent switches (draft a reply, create a task, ignore) and project assignment, with calibration, latency and cost.

  2. A decomposition of the agent's labels into what is learnable from the text of one message (type, urgency, the three switches) and what is not (the sender's relationship to the owner), with a measured alternative for the latter: inheritance from the contact graph.