supercode_interchange/ontology/mod.rs
1//! The supercode ontology (`docs/ONTOLOGY.md`): the one model under the
2//! session spine and the orchestration world. Lower layers never import upper
3//! ones — this module depends on nothing above it except the session layer's
4//! [`crate::session::OrchestrationNouns`] wire block, which a [`Binding`]
5//! projects onto.
6//!
7//! * identity — [`HarnessId`], the one list every registry keys on
8//! * surface — [`SurfaceKey`], [`Trigger`], [`Recurrence`], [`CrossSurface`], [`WorkspaceRef`]
9//! * binding — [`Binding`], the one conversation record, decoded once per source
10//! * fidelity — [`Fidelity`], one vocabulary for what a codec gave up
11//! * residue — [`Residue`], retained source fields (distinct from measured loss)
12//! * secret — [`SecretRef`] / [`Vault`]: credentials are named, never held
13//! * codec — [`ArtifactFidelity`], [`WorldCodec`]: the contract both halves obey
14
15pub mod binding;
16pub mod codec;
17pub mod fidelity;
18pub mod identity;
19pub mod residue;
20pub mod secret;
21pub mod surface;
22
23pub use binding::{
24 hermes_cron_job_id, hermes_source_for_binding, hermes_trigger_for_source,
25 parse_hermes_session_key, parse_openclaw_session_key, render_hermes_session_key,
26 render_openclaw_session_key, Binding, EndReason, Handoff, HermesSessionRow,
27 OrchestratorBindingRow, Worker,
28};
29pub use codec::{ArtifactFidelity, WorldCodec};
30pub use fidelity::{
31 core_messages, measure_fidelity, messages_equal, messages_equal_multimodal, replay_eligible,
32 replay_excluded, Fidelity, FidelityMetric, FidelityResidue,
33};
34pub use identity::HarnessId;
35pub use residue::Residue;
36pub use secret::{SecretRef, Vault};
37pub use surface::{CrossSurface, Recurrence, SurfaceKey, Trigger, WorkspaceKind, WorkspaceRef};