Skip to main content

Module audit

Module audit 

Source
Expand description

The Audit’s rows for what a paired device does on this computer (docs/specs/SPEC_REMOTE_PANES_WATCH_AND_DRIVE_AN_AGENT_ON_ANOTHER_COMPUTER_2026_11_20.md §5.5, “Audit rows”).

Each is an action row (log_fleet_action_audit): the actor is the device, the target the agent it acted on, the outcome viewer.<act>, and the reason says what kind of device it is, how this computer knows the device did it, and, for a computer, that the person’s name is the computer’s own claim.

  • The actor is <user>@<computer> for a computer that names its person, else <name> (computer) or <name> (phone). Each always holds an @ or a space, so the Audit never takes it for an agent, the operator or the person (audit_query), and a : in a name is shown as -, so no name reads as agent:<id>.
  • A message a device sent is recorded when its line is stored, with the line’s position (note_landed), never its text: the text is in the conversation, as for any message.

What the host’s own person does to a device (a grant, a revoke, stopping its viewing, a setting) is recorded as their call, like any other (rpc::action_commands).

Structs§

ViewerActor
A paired device, as its rows name it.

Enums§

Proof
How this computer knows the device did it.

Functions§

feed_opened
Records the feed’s opening now and its closing when the lease drops.
note_landed
records (complete NDJSON lines) of block_id were handed to the transcript: stored says whether any copy was written, pos where the counted ones landed (empty when none is counted). A device’s message among them gets its row, naming the line’s position, never its text; one stored nowhere is recorded as not stored. A line is matched to its send by block, device and message id: an id is the device’s own, so two devices may use the same one.
record
One row: actor did act (viewer.<act>) to agent (empty for none), proven by proof. refused says why it was not done.
wrong_pairing_code
A device answered the code this computer shows with a wrong one. Nothing about it is proven: its name and kind are its own words.