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/confirmation-tier policy as data (design CT-03,
14//! `FR-121`).
15//! - [`capability`] — the derived capability levels (Viewer/Author/Maintainer/Operator) that gate
16//! what a session may do, computed from prikk-side signing readiness (design AC-01…04).
17//! - [`change_token`] — the repository-change detection primitive (design `LC-4`; RFC 003), composed
18//! from prikk-observable state; a preview↔execute binding stamps and re-checks it, never a lock.
19
20#![forbid(unsafe_code)]
21#![warn(missing_docs)]
22
23pub mod capability;
24pub mod category;
25pub mod change_token;
26pub mod error;
27pub mod id;
28
29pub use capability::{Capability, MaintainerReadiness, Readiness};
30pub use category::{RequestCategory, Tier};
31pub use change_token::ChangeToken;
32pub use error::{Result, StikkError};
33pub use id::{ObjectId, RefName};