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
//! The frame's two **writes** to the ops trail (DESIGN §4.2 as amended, §7.3,
//! §11, bl-c417) — the operator's ack and the clear verb.
//!
//! Every other `ops.jsonl` line is written by the action it records, from the
//! path that ran it ([`crate::actions::verbs`], the start flow, the §7.2 sweep).
//! These two are written by the frame because the *action is the operator's
//! gesture itself*: dismissing an alarm and ending a trail are things done to
//! the trail, not things the trail observed. They live here rather than in the
//! shell so they are covered — `src/shell/*` is excluded, and the discipline is
//! that everything a click calls is a tested unit.
//!
//! Both are one write plus one dirty mark: the state root is the ops file's
//! root (§7.1), so marking it is the same convergence path a dispatched verb
//! takes — the worker re-reads the tail on its next pass and the alarms
//! re-derive from it. Nothing about the ack or the clear is held in RAM; the
//! log stays the single source of truth (§4.2).
use AppModel;
use crateopslog;