issue 1857: judge at most 6 mails a batch (1857.3)

ADR 0516 §3: the answer grows by each mail's tasks and promises, so a batch holds 6 mails, not 10, to stay
within its 40 s; a test proves the largest question stays under 64 KiB with every mail whole.
This commit is contained in:
jochen
2026-10-22 19:41:17 +02:00
parent c3b504e26e
commit 6b759f708e
6 changed files with 62 additions and 12 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ account never does. It reads mail; it moves, flags, deletes and sends nothing (A
mail seats, serving six verbs: `entries`, `groups`, `correct`, `lessons`, `undo`, `status` (ADR 0459 §2).
Each answers only a caller the trusted setting `callers` names (default `["mesh-mail-web"]`); any other
caller is refused, naming why.
- **Hears mesh-mail's added events** and judges a batch of up to 10 at a time against a question put to
- **Hears mesh-mail's added events** and judges a batch of up to 6 at a time (ADR 0516 §3) against a question put to
`claude_code_judge`, keeping an entry per mail — never its body — in its own database (issue 1518, 1427;
not yet built).
- **Keeps a health of its own**, `mail_reader_health`: unhealthy once a judgement is refused, times out or