Skip to main content

Module artifacts

Module artifacts 

Source
Expand description

Command artifact schemas: signed control-plane messages a Witness (or comparable supervisor) sends to a running ship.

These are primitives. v0.9.0 ships the schemas, payload-type strings, and a single signature-validation helper (verify_command). The CLI surfaces that issue and consume them ship in later releases (approval loop in v0.10.0, kill/terminate in v1.0). Witness consumes them today.

All command artifacts are wrapped in the same DSSE envelope used for actions/approvals — verification reuses treeship_core::attestation.

Re-exports§

pub use types::ApprovalDecision;
pub use types::BudgetUpdate;
pub use types::CommandType;
pub use types::Decision;
pub use types::KillCommand;
pub use types::MandateUpdate;
pub use types::TerminateSession;
pub use types::COMMAND_PAYLOAD_PREFIX;
pub use types::TYPE_APPROVAL_DECISION;
pub use types::TYPE_BUDGET_UPDATE;
pub use types::TYPE_KILL_COMMAND;
pub use types::TYPE_MANDATE_UPDATE;
pub use types::TYPE_TERMINATE_SESSION;
pub use verify::verify_command;
pub use verify::VerifyCommandError;
pub use verify::VerifyCommandResult;

Modules§

types
Command artifact payload types.
verify
Verify a command artifact: signature against the provided authorized key set, then payload-type discriminated parse.