1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//! egui widget: the §11 Altitude-2 Inbox tab — the agent's undelivered
//! deposits (`✉n`), explained.
//!
//! A pure function of the [`InboxEntry`] listing (§2.11): each deposit's
//! framing (sender), its asserted facts (`from` / `deposited_at`, plus
//! `epitaph` / `terminal_ref` on a result message), and its body verbatim —
//! or, under the §11 Raw toggle, the deposit file's own bytes. No click, so
//! the whole tab is a headless shape-walk-tested pure render; the Flush =
//! `lernie scan` action is this tab's own Scan button, wired beside it in the
//! shell's `inspector::tabs_and_content` per-tab controls.
use ;
use crateTitles;
/// What an empty inbox **is** (QUALITY H2: "an empty region says what it is and
/// names the paved path in full"). The old wording was a parenthesised
/// `(no deposits)` and nothing else — true, and no use to an operator who has
/// never seen mail arrive.
pub const NO_DEPOSITS: &str = "no deposits — nothing is waiting for this agent to read.";
/// …and how one ever gets here: the two ways a deposit is written (§2.11 — the
/// operator's own message to a working agent, and a subagent's result message)
/// and the verb on this tab that delivers one already queued.
pub const HOW_MAIL_ARRIVES: &str = "mail arrives when you message this agent while it works, or a subagent \
reports back; Scan delivers any still queued.";
/// Render the inbox listing, oldest-first. An empty inbox names itself and the
/// paved path ([`empty`]) — the common quiescent case, not an error. `raw` is the §11 Raw toggle:
/// each deposit file's name and its bytes exactly as they sit on disk —
/// envelope included — instead of the parsed view that drops it.
///
/// `titles` is the frame's roster in the form a seat can hold (bl-1eb0): the
/// §3.3 ladder's input for each deposit's sender ([`super::header_line`],
/// bl-b6d0), borrowed at paint time rather than carried on the view-model, so
/// nothing here holds a second copy of a snapshot fact.
/// The empty inbox, top-anchored: what the region is, then the paved path.
/// Verbatim backing bytes under a filename header — the transcript tab's Raw
/// idiom, one wording of it per tab and no second spelling of the layout.
/// One deposit: a `from · deposited_at` header, the result-message epitaph +
/// terminal ref when present (§2.6), then the body verbatim. Absent fields
/// read as `?` rather than vanishing, so a hand-edited deposit stays legible.