notifications::level in cmd/allternit-cloud-api/src/routes/notifications.rs maps backbone events (thread.needs_user, urgency: "urgent") to a quiet-hours level. Nothing read an incoming message and decided. routes/mail_triage.rs does, and evals/triage measures it.
How the sort works
- Plain rules settle the obvious mail as “can wait” with no model call: Gmail Promotions or Social, an auto-reply, a calendar response. List headers (
List-Unsubscribe,Precedence) count only when Gmail also filed the message under Promotions or Social. - A message about a failed payment, a security alert or a paused account is protected: no rule may settle it, whatever its sender or headers say.
- A model reads everything else and answers with a verdict and a one-sentence reason. A model failure is an error, never a default verdict.
rule:<id> or model:<name>.
Run it
/chat/completions endpoint (set TRIAGE_EVAL_BASE_URL to change the host). Results go to evals/triage/results-<model>.md.
Reading the numbers
Recall for needs you is the headline: of the messages that needed the person, how many were flagged. A miss is a failed payment nobody saw. Precision is how many flagged messages really needed them; a low value makes people ignore the list. The set is 62 invented messages, so it is a regression check for rule, prompt and model changes, not proof of accuracy on a real inbox. Add a case toevals/triage/build-set.py whenever real use shows a mistake, then run python3 evals/triage/build-set.py.
The set and the approach come from OpenDuet (MIT, Copyright (c) 2026 CopilotKit); the licence is evals/triage/LICENSE-openduet.