# `Threadline.Semantics.AuditContext`
[🔗](https://github.com/szTheory/threadline/blob/v1.2.0/lib/threadline/semantics/audit_context.ex#L1)

An `AuditContext` carries request or job details into a semantic audit action.

Plain struct — not an Ecto schema. Populated by `Threadline.Plug` for HTTP
requests and by the caller for Oban jobs. Passed explicitly to
`Threadline.record_action/2` when recording semantic actions.

## Fields

- `:actor_ref` — `%Threadline.Semantics.ActorRef{}` or nil
- `:request_id` — string from `x-request-id` header or nil
- `:correlation_id` — string from `x-correlation-id` header or nil
- `:remote_ip` — string representation of the client IP or nil

# `t`

```elixir
@type t() :: %Threadline.Semantics.AuditContext{
  actor_ref: Threadline.Semantics.ActorRef.t() | nil,
  correlation_id: String.t() | nil,
  remote_ip: String.t() | nil,
  request_id: String.t() | nil
}
```

Request or job context attached to a semantic audit action.

---

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