Raxol.Harness.Fixture.Header (Raxol v2.6.1)

View Source

Line 1 of a harness fixture JSONL file: schema + provenance tags for the whole recorded session (FI-2: every transcript version-tagged).

See docs/proposals/in-flight/harness-ui-testing/06-projection.md §1.1.

Summary

Types

One machine-readable corruption entry of an adversarial fixture: class names the pathology (matches the table in the sibling .notes.md), offset is the 1-based physical line it lives at. Downstream tests seek named corruptions via Raxol.Harness.Fixture.Session.pathologies/1 instead of hardcoding line numbers.

t()

Types

kind()

@type kind() :: :golden | :adversarial

pathology()

@type pathology() :: %{class: String.t(), offset: pos_integer()}

One machine-readable corruption entry of an adversarial fixture: class names the pathology (matches the table in the sibling .notes.md), offset is the 1-based physical line it lives at. Downstream tests seek named corruptions via Raxol.Harness.Fixture.Session.pathologies/1 instead of hardcoding line numbers.

t()

@type t() :: %Raxol.Harness.Fixture.Header{
  backend: String.t(),
  config_hash: String.t(),
  envelope_v: pos_integer(),
  harness_version: String.t(),
  kind: kind(),
  model: String.t(),
  name: String.t() | nil,
  notes: String.t() | nil,
  pathologies: [pathology()],
  recorded_at: String.t() | nil,
  schema: String.t()
}