# `MedEx.ControlInterlock`
[🔗](https://github.com/nshkrdotcom/med_ex/blob/med_ex-v0.2.0/components/core/med_core/lib/med_ex/control_interlock.ex#L1)

Pure technical command transitions. All identity and time are supplied.

# `command`

```elixir
@type command() :: %{
  id: binary(),
  fingerprint: binary(),
  boot_id: binary(),
  expected_epoch: non_neg_integer(),
  value: term()
}
```

# `t`

```elixir
@type t() :: %MedEx.ControlInterlock{
  boot_id: binary(),
  current_epoch: non_neg_integer(),
  historical_unknown: [map()],
  pending: map() | nil,
  target: binary()
}
```

# `device_decide`

Device-side decision: durable cached identity is consulted BEFORE the expected epoch.

# `request`

```elixir
@spec request(t(), command(), map()) :: {:ok, t(), [term()]} | {:error, atom()}
```

# `step`

```elixir
@spec step(t(), term()) :: {:ok, t(), [term()]} | {:error, atom()}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
