Skip to main content

Crate chio_workflow

Crate chio_workflow 

Source
Expand description

Skill and Workflow Authority for Chio.

This crate extends the Chio capability model with multi-step skill composition. A skill is an ordered sequence of tool invocations with declared I/O contracts, dependency relationships, and budget envelopes.

§Core concepts

  • SkillGrant – extends capability model for ordered tool sequences
  • SkillManifest – describes tool dependencies, I/O contracts, budget
  • WorkflowReceipt – captures complete execution trace as single artifact
  • WorkflowAuthority – validates each step against declared scope and budget

§Example

let manifest = SkillManifest { ... };
let authority = WorkflowAuthority::new(signing_key);
let execution = authority.begin(&manifest, &capability)?;

for step in &manifest.steps {
    authority.validate_step(&execution, step, &arguments)?;
    // ... invoke tool ...
    authority.record_step_result(&mut execution, step, result)?;
}

let receipt = authority.finalize(execution)?;

Re-exports§

pub use authority::WorkflowAuthority;
pub use authority::WorkflowError;
pub use authority::WorkflowExecution;
pub use grant::SkillGrant;
pub use manifest::IoContract;
pub use manifest::SkillManifest;
pub use manifest::SkillStep;
pub use receipt::StepRecord;
pub use receipt::VendorSignatureRequirement;
pub use receipt::WorkflowReceipt;
pub use receipt::WorkflowReceiptBody;
pub use receipt::WorkflowReceiptError;
pub use receipt::WorkflowVendorSignature;

Modules§

authority
Workflow authority – validates each step against declared scope and budget.
grant
SkillGrant – extends the capability model for multi-step skill composition.
manifest
Skill manifests describing tool dependencies, I/O contracts, and budgets.
preflight
receipt
Workflow receipts capturing complete execution traces.

Structs§

WorkflowPreflightPlan
WorkflowPreflightReport

Enums§

WorkflowPreflightError
WorkflowPreflightVerdict

Functions§

evaluate_workflow_preflight