# `Pixir.WorkspaceStrategy`
[🔗](https://github.com/Ranvier-Technologies/pixir/blob/main/lib/pixir/workspace_strategy.ex#L1)

Workspace Strategy vocabulary for Subagents and Workflow steps.

A Workspace Strategy describes how a child sees files and whether writes can mutate
the parent workspace. Subagents currently execute `shared` and `isolated`; Workflow
steps may also opt in to `virtual_overlay`, which runs explicit virtual commands over
an imported read set and returns a `virtual_diff` without mutating the parent.

# `delegation_context`

```elixir
@spec delegation_context(term(), map()) :: {:ok, map()} | {:error, map()}
```

Return compact Delegation Context fields for a modeled workspace mode.

# `normalize_runtime_mode`

```elixir
@spec normalize_runtime_mode(term(), String.t(), map(), keyword()) ::
  {:ok, String.t()} | {:error, map()}
```

Normalize a runtime workspace mode or return a structured error.

---

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