lightspeed/ops/operations_kit_harness

Deterministic production app operations-kit harness for M40.

Types

Full M40 report.

pub type Report {
  Report(
    outcomes: List(ScenarioOutcome),
    failed_scenarios: Int,
    nondeterministic_failures: Int,
  )
}

Constructors

  • Report(
      outcomes: List(ScenarioOutcome),
      failed_scenarios: Int,
      nondeterministic_failures: Int,
    )

M40 operations-kit scenarios.

pub type Scenario {
  IncidentRunbookCoverage
  SafeWorkflowReversibility
  TelemetryDashboardAlertContracts
  DeterministicOperationsDrills
}

Constructors

  • IncidentRunbookCoverage
  • SafeWorkflowReversibility
  • TelemetryDashboardAlertContracts
  • DeterministicOperationsDrills

One M40 scenario outcome.

pub type ScenarioOutcome {
  ScenarioOutcome(
    scenario: Scenario,
    passed: Bool,
    deterministic: Bool,
    signature: String,
  )
}

Constructors

  • ScenarioOutcome(
      scenario: Scenario,
      passed: Bool,
      deterministic: Bool,
      signature: String,
    )

Values

pub fn deterministic(outcome: ScenarioOutcome) -> Bool

Determinism accessor.

pub fn failed_scenarios(report: Report) -> Int

Failed scenario count.

pub fn nondeterministic_failures(report: Report) -> Int

Nondeterministic scenario count.

pub fn outcomes(report: Report) -> List(ScenarioOutcome)

Report outcomes accessor.

pub fn pass_fail_label(outcome: ScenarioOutcome) -> String

Stable pass/fail label.

pub fn report_signature(report: Report) -> String

Stable report signature.

pub fn run_matrix() -> Report

Run all M40 scenarios.

pub fn run_scenario(scenario: Scenario) -> ScenarioOutcome

Run one M40 scenario twice and require deterministic parity.

pub fn scenario(outcome: ScenarioOutcome) -> Scenario

Scenario accessor.

pub fn scenario_label(scenario: Scenario) -> String

Scenario label.

pub fn signature(outcome: ScenarioOutcome) -> String

Scenario signature accessor.

pub fn snapshot_report_markdown() -> String

Deterministic markdown report for M40 fixture scripts.

pub fn snapshot_signature() -> String

Deterministic snapshot signature for M40 fixture drift gates.

pub const snapshot_version: Int
Search Document