# `LlmCore.Executor.Control`
[🔗](https://github.com/fosferon/llm_core/blob/v0.3.0/lib/llm_core/execution/control.ex#L1)

Minimal execution control registry used by CLI providers to support HALT semantics.

Consumers that need richer state management can override these functions
or provide their own module via dependency injection, but the defaults keep
track of active ports so they can be cleaned up when executions end.

# `clear_active`

```elixir
@spec clear_active(String.t()) :: :ok
```

Removes the active port registration for the given execution ID.

# `lookup`

```elixir
@spec lookup(String.t()) :: {:ok, port()} | :error
```

Looks up the active port for the given execution ID.

Returns `{:ok, port}` if found, `:error` otherwise.

# `set_active_port`

```elixir
@spec set_active_port(String.t(), port()) :: :ok
```

Registers a port as the active process for the given execution ID.

---

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