Skip to main content

Module record_notice

Module record_notice 

Source
Expand description

What is said of a flag of the record’s rules (docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §7, task #47820): a quiet note in the status bar, and a note for the machine’s steward agent. Nothing is stopped and the person is not interrupted.

  • The status bar follows the record-flags event: the flags still said (record_flags::still_said), shaped like the host’s health-signal payloads (kind is record; a normal level clears it). It is persisted, so a window that opens later gets it. It is published when the rules look (once an hour), while there is something to say and once more when there no longer is.
  • Each steward running here (an agent whose seat says so, agent_seat::is_steward) gets one held note for the flags a look wrote: it waits for the agent’s next turn and starts none, and a later one replaces one not read yet. With no steward here nobody is told; the flags are in the record all the same.

The decisions are pure (event, note_text), so they are tested without a broker or an agent.

Structs§

RecordFlagLine
One flag that is still said, as the record holds it: its rule, what it is about and its numbers.
RecordFlagsEvent
The record-flags event’s payload (mps_events::RecordFlags), shaped like the host’s health-signal payloads so the status bar’s store takes it: kind is record, and a normal level clears the signal.

Constants§

NOTE_KEY
The key of the held note: a later note replaces an earlier one that its agent has not read yet.

Functions§

event
The event for the flags still said (Looked::said).
note_text
What the stewards are told about the flags a look wrote; nothing when it wrote none.
tell
Say what a look found: the event for the status bar, then the note for the stewards. BLOCKING (the note takes the message handler’s lock); call it where the look ran, off the async workers. The event goes first, so a handler that cannot be reached costs the note and not the status bar.