Skip to main content

Crate rite_model

Crate rite_model 

Source
Expand description

Core domain model and IR for the Rite ceremony DSL.

rite-model defines the Intermediate Representation (IR): the fully resolved ceremony data consumed by the executor. The YAML schema (parser input) lives in rite-resolver; this crate contains only the runtime-facing types.

§Module structure

  • ir: IR types: Ceremony, Step, Role, etc. and typed ID newtypes
  • expression: Expression parsing for ${artifact.name | sha256 | hex} syntax
  • transcript: Persisted transcript schema (StepFact + friends)
  • safe_path: Confine untrusted, ceremony-derived names/paths to a directory
  • types (private): Shared semantic enums: ActionType, DutyType, etc.

§BackendConfig

Re-exported from rite-sdk for convenience. The canonical definition lives there.

Re-exports§

pub use safe_path::PathSafetyError;
pub use safe_path::confine;
pub use safe_path::is_safe_component;
pub use safe_path::safe_join;
pub use safe_path::validate_component;
pub use ir::Act;
pub use ir::ActId;
pub use ir::ArtifactId;
pub use ir::ArtifactRef;
pub use ir::Ceremony;
pub use ir::Material;
pub use ir::MaterialId;
pub use ir::MaterialKind;
pub use ir::Output;
pub use ir::OutputId;
pub use ir::ParamId;
pub use ir::Parameter;
pub use ir::PostCeremonyDuty;
pub use ir::RetryPolicy;
pub use ir::Role;
pub use ir::RoleId;
pub use ir::Section;
pub use ir::SectionId;
pub use ir::Step;
pub use ir::StepId;
pub use ir::StepInputs;
pub use ir::SymbolTable;
pub use transcript::ErrorClass;
pub use transcript::ErrorRecord;
pub use transcript::Prompt;
pub use transcript::ResponseRecord;
pub use transcript::StepFact;
pub use transcript::StepOutcome;
pub use transcript::ValidatorSpec;

Modules§

expression
Expression parsing for computed values in ceremony DSL.
ir
Intermediate Representation (IR) for resolved ceremonies.
safe_path
Path-safety helpers for confining ceremony-derived names and paths.
transcript
Persisted transcript schema.

Structs§

BackendConfig
Backend configuration entry from a ceremony file.
Metadata
Ceremony metadata (name and optional description).

Enums§

ActionType
Action types available in ceremony steps.
BackendUsage
Whether an action needs the backend: field on its step.
DutyType
Typed preset for common post-ceremony duty categories.
MaterialSource
Source for a ceremony material.
OutputType
Type of output produced by a ceremony.
ParameterType
Type of a ceremony parameter.

Functions§

derive_role_name
Derive a display name from a role ID.
derive_step_name
Derive a display name from a step or section ID.
role_type
Extract the role type from a role ID.