Insider.Fixtures.Observation (Insider Lab v0.1.0)

Copy Markdown View Source

Bounded evidence emitted by a deterministic fault fixture.

Observations contain measurements, not detector verdicts. This lets the same fixture exercise future detectors without teaching those detectors the answer.

Summary

Types

event()

@type event() :: %{
  :sequence => pos_integer(),
  :kind => atom(),
  :monotonic_time => integer(),
  optional(:metadata) => map()
}

t()

@type t() :: %Insider.Fixtures.Observation{
  cleanup: %{status: :complete},
  events: [event()],
  resources: [pid()],
  run_id: pos_integer(),
  samples: map(),
  scenario: atom(),
  settled: map(),
  variant: :faulty | :healthy
}