#!/usr/bin/env python3 """What sorting writes about a mail: the summary, the reply points, the reason (sets/text_real.py). python3 mail/run_text.py --base-url http://127.0.0.1:8000/v1 --model Qwen3.5-9B-4bit [--api-key KEY] [--label 9b] python3 mail/run_text.py --hub SOCKET --label "..." # through 螺壳主控's task luoke-mail.triage (a hub named) python3 mail/run_text.py --selftest # the judging on made-up answers, no model python3 mail/run_text.py --rescore RESULT.json [...] # judge saved answers again, no model Each mail goes through triage.analyze() as the app sends it. Judged, per question: summary not empty; mostly Chinese; at most 40 字 (the prompt's 「不超过 40 个字」: a CJK character, or a run of letters / digits, is one); every summary_must group hit; no summary_never word; no number the mail lacks reply reply_none: no points. reply_must: points there, at most 3, mostly Chinese, every group hit, no number the mail lacks. Neither: not judged reason not empty; mostly Chinese; every reason_must group hit 编了数字 a number in the summary or the reply points that the mail (subject, body, attachment names, date line) does not have -- a hard error. Dates may be written another way (2026-10-16 -> 10月16日), 「周四」 or 「the 30th」 may become the date it means, 20:30 may become 8 点半, 1.5万 may stand for 15,000; nothing else is let through. Words are matched without case and without spaces. Only observed: in no release gate. The app under test: the luoke-mail checkout named by LUOKE_MAIL (mailrepo.py). Stdlib only, Python 3.9+. Results -> mail/results/text/