lightspeed/ops/operations_kit
Production app operations-kit contracts for M40.
Types
Alert contract attached to one dashboard.
pub type AlertContract {
AlertContract(
metric: String,
threshold: String,
window: String,
severity: String,
runbook: String,
)
}
Constructors
-
AlertContract( metric: String, threshold: String, window: String, severity: String, runbook: String, )
Dashboard contract with required metrics and alerts.
pub type Dashboard {
Dashboard(
name: String,
metrics: List(String),
alerts: List(AlertContract),
)
}
Constructors
-
Dashboard( name: String, metrics: List(String), alerts: List(AlertContract), )
Operations domain.
pub type Domain {
Runtime
Transport
Data
Etl
}
Constructors
-
Runtime -
Transport -
Data -
Etl
Deterministic operations drill scenario.
pub type DrillScenario {
DrillScenario(
name: String,
domain: Domain,
workflow: WorkflowAction,
runbook: String,
evidence_artifacts: List(String),
seed: String,
)
}
Constructors
-
DrillScenario( name: String, domain: Domain, workflow: WorkflowAction, runbook: String, evidence_artifacts: List(String), seed: String, )
One runbook step.
pub type Step {
Step(
id: String,
instruction: String,
evidence_tag: String,
reversible: Bool,
)
}
Constructors
-
Step( id: String, instruction: String, evidence_tag: String, reversible: Bool, )
Operator-safe workflow action.
pub type WorkflowAction {
Rollout
Rollback
Drain
Replay
Recover
}
Constructors
-
Rollout -
Rollback -
Drain -
Replay -
Recover
One operator workflow contract.
pub type WorkflowPlan {
WorkflowPlan(
action: WorkflowAction,
requires_dual_control: Bool,
reversible: Bool,
preflight_checks: List(String),
audit_markers: List(String),
post_checks: List(String),
)
}
Constructors
-
WorkflowPlan( action: WorkflowAction, requires_dual_control: Bool, reversible: Bool, preflight_checks: List(String), audit_markers: List(String), post_checks: List(String), )
Values
pub fn dashboard_signature(dashboard: Dashboard) -> String
Stable dashboard signature.
pub fn dashboards_cover_alert_contracts() -> Bool
Validate dashboard + alert contracts.
pub fn drill_scenarios() -> List(DrillScenario)
Deterministic M40 operations drills.
pub fn drills_reproducible() -> Bool
Validate deterministic and reproducible drill contracts.
pub fn operations_kit_signature() -> String
Stable full-kit signature for deterministic M40 fixtures.
pub fn required_workflows() -> List(WorkflowAction)
Required operator-safe workflows for M40.
pub fn runbooks_cover_domains() -> Bool
Validate M40 runbook-domain coverage.
pub fn workflow_contract(action: WorkflowAction) -> WorkflowPlan
Contract for one operator workflow.
pub fn workflow_contracts_safe() -> Bool
Validate operator-safe workflow contracts.
pub fn workflow_plan_signature(plan: WorkflowPlan) -> String
Stable workflow-plan signature.