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,
    )

Incident-ready runbook.

pub type Runbook {
  Runbook(
    domain: Domain,
    name: String,
    trigger: String,
    steps: List(Step),
  )
}

Constructors

  • Runbook(
      domain: Domain,
      name: String,
      trigger: String,
      steps: List(Step),
    )

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 canonical_runbooks() -> List(Runbook)

Canonical M40 runbooks.

pub fn dashboard_signature(dashboard: Dashboard) -> String

Stable dashboard signature.

pub fn dashboards() -> List(Dashboard)

Standardized M40 dashboards and alert contracts.

pub fn dashboards_cover_alert_contracts() -> Bool

Validate dashboard + alert contracts.

pub fn domain_label(domain: Domain) -> String

Domain label.

pub fn drill_scenarios() -> List(DrillScenario)

Deterministic M40 operations drills.

pub fn drill_signature(drill: DrillScenario) -> String

Stable drill signature.

pub fn drills_reproducible() -> Bool

Validate deterministic and reproducible drill contracts.

pub fn operations_kit_ready() -> Bool

Full M40 readiness guard.

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 runbook_signature(runbook: Runbook) -> String

Stable runbook signature.

pub fn runbook_valid(runbook: Runbook) -> Bool

Validate one runbook contract.

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_label(action: WorkflowAction) -> String

Workflow label.

pub fn workflow_plan_signature(plan: WorkflowPlan) -> String

Stable workflow-plan signature.

pub fn workflow_plans() -> List(WorkflowPlan)

M40 workflow plans.

Search Document