Single-commit clean baseline after security scrub of niche-tells, project codenames, internal jargon, and contributor-email leaks. Contents: - 100 Rust crates (_primitives/_rust/) - 37 agent manifests (_manifests/) + generated specs (_generated/) - 67 user-invocable skills (skills/) - 33 hooks (hooks/) - Composition blocks (_blocks/) - Documentation (docs/, README.md) - TS adapter packages (_ts_packages/) - Assembler (_assembler/) - Roles (_roles/) - Templates (_templates/) - Forgejo CI (.forgejo/) Author: Denis Parfionovich <info@greendragon.info> License: see LICENSE.
25 lines
869 B
Rust
25 lines
869 B
Rust
//! Error type for kei-prune.
|
|
//!
|
|
//! Constructor Pattern: one cube = one error enum. Keeps `rusqlite::Error`
|
|
//! wrapped so callers don't need to depend on rusqlite directly.
|
|
|
|
use thiserror::Error;
|
|
|
|
/// All failure modes produced by the kei-prune public API.
|
|
#[derive(Debug, Error)]
|
|
pub enum PruneError {
|
|
/// Underlying SQLite error (schema DDL, query, insert).
|
|
#[error("sqlite error: {0}")]
|
|
Sql(#[from] rusqlite::Error),
|
|
|
|
/// Agent id not present in the ledger `agents` table.
|
|
///
|
|
/// `mark_retired` returns this when the caller passes an id that has
|
|
/// no matching row — better to fail loudly than to retire a phantom.
|
|
#[error("agent id not found in ledger: {0}")]
|
|
UnknownAgent(String),
|
|
|
|
/// JSON serialisation failure (CLI output only).
|
|
#[error("json serialisation error: {0}")]
|
|
Json(#[from] serde_json::Error),
|
|
}
|