supercode_interchange/orchestration/codec/mod.rs
1//! The orchestration codecs (`docs/ONTOLOGY.md` §2.5, §3): a home folder ⇄ [`Orchestration`].
2//!
3//! `folder` is our own flavor and the Hermes flavor of the same file layout
4//! (a profile folder IS a Hermes home); `hermes` writes a Hermes home back;
5//! `openclaw` compiles and decompiles an OpenClaw state directory. The
6//! decoders in `decode` are strict for O-records (unknown key = error) and
7//! residue-keeping for H-records, exactly as `docs/ORCHESTRATOR-IR.md` §1
8//! rule 1 states; `canonical` is the snapshot every "unchanged" decision
9//! compares; `sqlite` opens stores read-only and writes fresh files.
10
11pub mod canonical;
12pub mod decode;
13pub mod dotenv;
14pub mod folder;
15pub mod hermes;
16pub mod openclaw;
17pub mod sqlite;
18
19pub use canonical::{canonical_json, sort_keys};
20pub use decode::LoadError;
21pub use folder::{carry_unmodeled, load_home, save_home, Flavor, LoadedHome, ProfileIo};
22pub use hermes::{from_hermes, to_hermes, HermesReport, Refusal};
23pub use openclaw::{from_openclaw, to_openclaw, OpenclawLoaded, OpenclawReport};