#!/usr/bin/env python3 """Email triage by reading answer probabilities, against generating the whole JSON. The three answers that decide what the page does with a mail -- action, priority, suspicious -- asked four ways, on the same prompt: luoke-mail's SYSTEM_PROMPT and build_messages, cut and told as the 16 GB recipe says (the body cut to 6000 characters of prompt, the mailbox's sender verdict not told; RECIPE below). G triage.analyze: the whole JSON under json_schema strict, asked again once if unusable (what the app does) G3 the same prompt, a schema of only the three fields D oMLX's POST /v1/decisions: the prompt as one user message, the three questions in one request A AnyDecisionModel (mail/decide-adm, Swift, MLX backend): the prompt as the state, the three in one decide() python3 mail/run_decide.py --arm D --omlx --models --model Qwen3.5-9B-4bit --set rewrite --label d9 python3 mail/run_decide.py --arm A --adm --models --model gemma-4-e4b-it-4bit --set samples --label a4 The engine is started here (oMLX as luoke-core starts it: its own HOME, an API key in settings.json, --no-cache; decide-adm loading the same model directory) and its footprint sampled every 0.5 s. --cache hot gives oMLX a memory-only prefix cache instead; --prefix-caching and --rotation turn on decide-adm's options of those names, and --mlx-cache-mb caps the buffers MLX keeps for reuse (left alone, it may keep up to MLX's memory limit); --reverse lists every choice's options last to first. The first mail is asked once untimed (loading). Every answer's probabilities are kept: the suspicious threshold is chosen afterwards (mail/decide_report.py); what is printed here uses 0.5. A choice whose letters hold under half the next-token mass is a refusal in oMLX (no answer, counted wrong); decide-adm answers anyway and reports the mass, kept beside the answer. Results -> mail/results/decide//