1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! # keystate-core
//!
//! Canonical domain model, extraction ports, completeness verification, and
//! idempotent output for **Keystate** — a read-only tool that pulls the
//! complete, verified configuration state of an IAM system out of its
//! database as a single backend-agnostic JSON document.
//!
//! Core is deliberately **backend-agnostic** and carries no runtime or
//! database dependency. Adapters (own repos) implement the [`Extractor`],
//! [`CompletenessVerifier`] and [`OutputSink`] ports against one backend's
//! schema. The canonical structs are a thin set of *common* fields plus an
//! open `native` escape hatch, per the architecture document:
//!
//! ```text
//! {
//! "id": "a1b2c3d4",
//! "name": "my-client",
//! "enabled": true,
//! "native": { /* backend-faithful representation, adapter-owned */ }
//! }
//! ```
//!
//! The three guarantees this crate provides are:
//!
//! 1. **Completeness** — a [`FieldManifest`] describing every field a backend
//! version must carry, checked by the [`ManifestVerifier`] into a
//! [`VerificationReport`] that is part of the output, not a side log.
//! 2. **Idempotency** — [`canonical_bytes`] produces byte-stable output and
//! [`content_hash`] fingerprints the *config* portion only, so a git diff
//! on the output reflects real configuration change, never extraction
//! noise or volatile churn.
//! 3. **Testability** — the [`testing`] module is a shared contract suite
//! every adapter runs as part of CI.
//!
//! See `ARCHITECTURE.md` in this repository for the full design.
//!
//! # Module map
//!
//! - [`model`] — canonical entities and the extraction envelope.
//! - [`port`] — the traits adapters implement.
//! - [`verify`] — manifests, reports, the verification engine, path resolution.
//! - [`canonical`] — deterministic serialization and content hashing.
//! - [`error`], [`version`] — cross-cutting types.
pub use ;
pub use ;
pub use *;
pub use ;
pub use ;
pub use Version;