treeship_core/artifacts/mod.rs
1//! Command artifact schemas: signed control-plane messages a Witness (or
2//! comparable supervisor) sends to a running ship.
3//!
4//! These are primitives. v0.9.0 ships the schemas, payload-type strings, and
5//! a single signature-validation helper (`verify_command`). The CLI surfaces
6//! that issue and consume them ship in later releases (approval loop in
7//! v0.10.0, kill/terminate in v1.0). Witness consumes them today.
8//!
9//! All command artifacts are wrapped in the same DSSE envelope used for
10//! actions/approvals — verification reuses `treeship_core::attestation`.
11
12pub mod types;
13pub mod verify;
14
15pub use types::{
16 ApprovalDecision, BudgetUpdate, CommandType, Decision, KillCommand, MandateUpdate,
17 TerminateSession, COMMAND_PAYLOAD_PREFIX, TYPE_APPROVAL_DECISION, TYPE_BUDGET_UPDATE,
18 TYPE_KILL_COMMAND, TYPE_MANDATE_UPDATE, TYPE_TERMINATE_SESSION,
19};
20pub use verify::{verify_command, VerifyCommandError, VerifyCommandResult};