Bourse.OptionReadiness.Cell (bourse v0.1.0)

Copy Markdown View Source

One timestamped evidence cell in the option readiness matrix.

Cells are mechanical capture records. Status labels for the whole venue row are derived separately; a cell itself never claims fill_ready.

Summary

Functions

True when the cell recorded a broken/error capture.

Rebuilds a cell from a JSON map or atom-key map.

Builds a cell from keyword or map attributes.

JSON-safe map representation.

True when the cell has not been exercised.

Types

outcome()

@type outcome() ::
  :ok | :error | :empty | :untested | :skipped | :blocked | :unsupported

t()

@type t() :: %Bourse.OptionReadiness.Cell{
  environment: String.t() | nil,
  error: map() | nil,
  evidence: map(),
  name: atom(),
  observed_at: integer() | nil,
  outcome: outcome(),
  summary: String.t() | nil
}

Functions

broken?(cell)

@spec broken?(t()) :: boolean()

True when the cell recorded a broken/error capture.

from_map(map)

@spec from_map(map()) :: t()

Rebuilds a cell from a JSON map or atom-key map.

new(name, attrs \\ [])

@spec new(atom(), keyword() | map()) :: t()

Builds a cell from keyword or map attributes.

to_map(cell)

@spec to_map(t()) :: map()

JSON-safe map representation.

untested?(cell)

@spec untested?(t()) :: boolean()

True when the cell has not been exercised.