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
//! Storage layer for identity files, receipts, and trust grants.
//!
//! Handles `.aid` file format, encrypted private key storage, and
//! persistence for receipts and trust grants.
//!
//! # Directory layout
//!
//! By convention the default root is `~/.agentic/`, with sub-directories
//! created by each store:
//!
//! ```text
//! ~/.agentic/
//! ├── identity/
//! │ ├── default.aid
//! │ └── {name}.aid
//! ├── receipts/
//! │ └── {receipt_id}.json
//! ├── spawn/
//! │ └── {spawn_id}.json
//! └── trust/
//! ├── granted/
//! │ └── {trust_id}.json
//! ├── received/
//! │ └── {trust_id}.json
//! └── revocations/
//! └── {trust_id}.json
//! ```
//!
//! # Modules
//!
//! - [`identity_file`] — `.aid` file save/load with passphrase encryption.
//! - [`receipt_store`] — CRUD for `ActionReceipt` records.
//! - [`spawn_store`] — CRUD for `SpawnRecord` records.
//! - [`trust_store`] — CRUD for `TrustGrant` and `Revocation` records.
// Re-export the primary types so callers can write `storage::ReceiptStore`
// without reaching into sub-modules.
pub use ;
pub use ReceiptStore;
pub use SpawnStore;
pub use TrustStore;