Skip to main content Crate cleanlib_client Copy item path Source pub use customer_state::CustomerState ;pub use customer_state::Tier ;pub use derive_status::derive_status ;pub use derive_status::DerivedStatus ;pub use envelope::ReasonCode ;pub use envelope::Status ;pub use envelope::VerdictEnvelopeV1 ;pub use envelope::ALL_REASON_CODES ;pub use envelope::ALL_VERDICT_SOURCES ;pub use verdict_to_envelope::verdict_to_envelope_v1 ;pub use transport::Client ;pub use types::PolicyDecision ;pub use types::PreviousVerdict ;pub use types::Verdict ;pub use errors::CleanLibraryError ;pub use errors::ProblemDetails ;config Config-file + env-var loader per Client spec rev1 §5 and SDK config-file
format decision 2026-05-20. TOML on disk at ~/.cleanlibrary/config.toml;
env vars override file values. customer_state CLEANLIB-178 — canonical customer-facing state taxonomy (Rust surfaces). derive_status derive_status — canonical algorithm per App dispatch §4 binding contract.envelope VerdictEnvelopeV1 + ReasonCode — schema-locked mirror of
@cleanstart/cleanlib-sdk@0.4.1 (tarball sha-1
b5f00c160907a6ea1f490f14a9bda6f6de34b8b6).errors CleanLibraryError hierarchy per Client spec rev1 §2.3 + Rev 2 amendment §2.
Mirrors App Rev 4 §9.2 reason-code enum surfaced via X-CleanLibrary-Reason
response header.proxy Per-ecosystem proxy-config emit per [per-ecosystem-proxy-config-emit-format
decision 2026-05-20]. Phase 1 Tier A: npm + pypi + go. risk_acceptance Risk-acceptance rule YAML emit per Client spec rev1 §11.1 +
phase-1-storage-architecture §3 customer-flow. transport HTTP transport — Client wraps reqwest with auth header injection +
timeout + per Client spec rev1 §2 + Rev 2 amendment §2 + §4. types Verdict + ancillary response types per Client spec rev1 §2.4 +
App Rev 4 §4.1 Vector verdict shape. verdict_to_envelope verdict_to_envelope_v1 — structural adapter from the App’s wire-shape
Verdict to the canonical customer-facing VerdictEnvelopeV1 .