Skip to main content

stikk_model/
lib.rs

1//! Shared kernel for stikk (internal design `stikk-04` MOD-01).
2//!
3//! stikk is a TUI/GUI front-end for the prikk version control system. Its founding property, from
4//! which the whole design follows, is that **stikk owns no repository authority and no secrets**:
5//! every repository fact is re-derived from prikk through the seam, and prikk — never stikk — reads
6//! signing key material. This crate holds the vocabulary the layers above share and carries no I/O
7//! of its own, so it can be depended on freely without pulling a transport or a filesystem.
8//!
9//! - [`error`] — the single [`StikkError`] type with seven presentation classes, preserving prikk's
10//!   verbatim message (requirement NFR-I03, FR-110).
11//! - [`id`] — validated object-id and ref-name newtypes; stikk never fabricates an identifier.
12//! - [`category`] — the request-category vocabulary the seam and operation layer share, carrying
13//!   each category's mutation/cancellability/lock policy as data (design CT-03).
14//! - [`capability`] — the derived capability levels (Viewer/Author/Maintainer/Operator) that gate
15//!   what a session may do, computed from prikk-side signing readiness (design AC-01…04).
16
17#![forbid(unsafe_code)]
18#![warn(missing_docs)]
19
20pub mod capability;
21pub mod category;
22pub mod error;
23pub mod id;
24
25pub use capability::{Capability, Readiness};
26pub use category::RequestCategory;
27pub use error::{Result, StikkError};
28pub use id::{ObjectId, RefName};