koala_artifact/lib.rs
1//! Reviewer artifact record / verify.
2//!
3//! Stage 4 implementation of [ADR-0003] (artifact-over-signing) and
4//! [ADR-0005] (sampling verification). Reviewers `record` a command and
5//! its output into `.review/round-N/<kind>-<name>.md`; CI later `verify`s
6//! a sample by re-running each command and comparing the normalised hash.
7//!
8//! [ADR-0003]: ../../wiki/decisions/0003-artifact-over-signing.md
9//! [ADR-0005]: ../../wiki/decisions/0005-sampling-verification.md
10
11mod kind;
12mod normalize;
13mod path;
14mod record;
15mod runner;
16mod verify;
17
18pub use kind::ReviewerKind;
19pub use normalize::compute_hash;
20pub use path::{ArtifactPath, PathError, REVIEW_DIR};
21pub use record::{ArtifactRecord, ParseError, SCHEMA_TAG};
22pub use runner::{run_and_record, RecordOptions, RecordSummary, RunError};
23pub use verify::{
24 verify, DiffLine, DiffSide, VerifyError, VerifyOptions, VerifyOutcome, VerifyReport,
25 VerifyStatus,
26};