Domain settings [UI]
Source path: knowledge-base/diagrams/ui/domain-settings.md
# Domain settings `[UI]`
The per-Domain configuration modal — where a Director tunes how the expert *authors*: its generation direction, prose style, point of view, audio, and the AI model allocation behind it all. A tabbed `DomainSettingsModal`; Director-gated.
```mermaid
flowchart LR
Entry["TopBar → Settings"] --> Modal
subgraph Modal["DomainSettingsModal — 5 tabs"]
direction TB
Dir["**Direction**<br/>generation controls · AI profile allocation<br/>(AiProfiles · AiProfilePicker · GenerationControls)"]
Style["**Style**<br/>prose shape · voice · fidelity axis"]
Pov["**POV**<br/>Single · Ensemble · Free (default)"]
Audio["**Audio**<br/>TTS voice + narration"]
Other["**Other**<br/>remaining per-domain knobs"]
end
Dir -.->|"AiProfilePicker → active profile"| Route(["ai-model-routing:<br/>category → tier → model"])
```
- **Direction carries the AI allocation.** `AiProfiles` / `AiProfilePicker` pick the active fleet profile (and optional per-category overrides); `GenerationControls` sets the generation knobs. This is the UI face of [ai-model-routing](../concepts/ai-model-routing.md) — choosing a profile re-routes every category's model live.
- **POV is a first-class mode.** Single / Ensemble / Free (default) shape how prose narrates — a domain-level authoring stance, not a per-scene toggle.
- **Style owns the fidelity axis.** The extractive/framed/generative anti-hallucination posture lives here (one named axis), driving the grounding block folded into every scene call.
- **Director-gated.** These settings change how the expert speaks for everyone; only the Director may edit them (`ACTION_META` category `edit`, area `governance`).
**Where it lives:** `src/features/settings/` — `DomainSettingsModal.tsx` · `AiProfiles.tsx` · `AiProfilePicker.tsx` · `GenerationControls.tsx` · `CollapsibleSection.tsx`. Profile model: `src/lib/core/ai-profiles.ts`. Entry from [topbar](topbar.md). Reuse primitives + tokens per `frontend-design`.
Open on GitHubRaw Markdown source