wist-contracts
Versioned contract and schema objects shared by edge and center components.
wist-contracts is the single source of truth for the serialized objects exchanged between the
edge (wist-agentd) and the center (gateway / center). Every type is a plain
serde struct so it can round-trip over JSON and stay versioned independently of any single
consumer.
Modules
| Module | Purpose |
|---|---|
action_plan |
The ActionPlan executed by wist-exec. |
action_result |
The result of an execution. |
agent_config |
The wist-agentd runtime configuration (agentd.toml). |
agent_state |
Agent runtime state (identity, credentials, mode). |
capability_report |
Agent capability declarations. |
discovery |
Discovered resources and target views. |
enrollment |
Enrollment and credential objects. |
execution_state |
Execution local state objects. |
exporter |
Export / delivery contracts. |
gateway |
Gateway-facing request / response objects. |
ingest |
Telemetry ingestion contracts. |
telemetry_record |
Normalized telemetry records. |
Version markers are exposed as constants:
API_VERSION_V1; // "v1"
SCHEMA_VERSION_V1; // "v1"
Example
use ActionPlanContract;
let plan: ActionPlanContract = from_str?;
Related crates
wist-validate— validates these contracts.wist-shared— helpers used to read and write them.wist-agentd— the primary edge consumer.