# `Insider.Sentinel.Sandbox.Body`
[🔗](https://github.com/hiivemarkets/insider/blob/v0.1.0/tools/insider_lab/lib/insider/sentinel/sandbox/body.ex#L1)

Behaviour for trusted work that runs while a disposable target lease is live.

Body modules are host-configured and selected by module reference through the
direct API. Portable target and request data never select a module. A body
must not return until all work it owns has stopped; it should handle the
`{:cancel_sandbox_body, cancellation_reference}` message and return promptly.

# `arguments`

```elixir
@type arguments() :: %{
  owner_id: binary(),
  target: Insider.Sentinel.Sandbox.Target.t(),
  observed_provenance: map(),
  input: map(),
  deadline: integer(),
  stop_deadline: integer(),
  cancellation_reference: reference()
}
```

# `identity`

```elixir
@callback identity() :: map()
```

# `run`

```elixir
@callback run(arguments()) :: {:ok, map()} | {:error, atom(), map()} | {:cancelled, map()}
```

---

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