pub const WRITTEN_EVENTS: &[&str];Expand description
Every event name this domain writes.
It is a list of names, not of declarations: share/events.yaml is the vocabulary and
this is the domain’s claim on part of it. A test in ledger asserts that every name
here is declared there, which is what fails when somebody adds an event and forgets the
vocabulary — rather than a durable line every reader silently ignores, which is what
mj_ledger_append produced before the vocabulary existed.
use majordomus_cli::session::WRITTEN_EVENTS;
assert!(WRITTEN_EVENTS.contains(&"session.closed"));