Skip to main content

Crate lonca_audit

Crate lonca_audit 

Source
Expand description

The independent auditor (“the gatekeeper’s gatekeeper”).

Reads a repository (the daemon’s store, a pushed remote or a CI checkout) without writing to it and checks that:

  1. the operation log is an unbroken, correctly signed hash chain whose time never goes backwards;
  2. every decision is reproduced by the decision function from the state before it and the policy in force at that point;
  3. every recorded fact set equals the facts recomputed from the Git objects, and every merged commit equals the recomputed merge, both with the symbol engine version recorded in the entry;
  4. every daemon key switch (daemon.rotate, daemon.recover) was authorised: its decision replays as allowed, so a forged human signature can not move the log to another key;
  5. trunk and policy refs equal the replayed state;
  6. (compare) a pushed log is a prefix of the local one, so history that was published can not be rewritten unnoticed.

It contains no AI and calls no network.

Structs§

Finding
KeySwitch
Options
Report

Constants§

POLICY_REF
TRUNK_REF

Functions§

audit
audit_ops
compare
Checks that published is a prefix of local: everything that was pushed is still in the local log, unchanged.