Domain creation [Flow]
Source path: knowledge-base/diagrams/flows/domain-creation.md
# Domain creation `[Flow]`
Every on-ramp terminates in the same canonical Domain record. The UI's `CreationWizard` and the headless
operations differ only in how they prepare the input; a malformed model response is a failed generation,
not a second repair path.
```mermaid
flowchart LR
New([New Domain]) --> Form["Title · paradigm · premise<br/>optional source text"]
Form --> Path{On-ramp}
Path -->|Start blank| Blank[buildBlankDomain] --> Add
Path -->|Generate| Generate[generateDomain<br/>streamed reasoning + validated output] --> Tree[fileTreeBuildTime<br/>self-organises topic tree] --> Add
Path -->|From text corpus| Extract[extract-text operation] --> Add
Add[["ADD_DOMAIN / createDoc"]] --> Open([Open Domain])
Open --> Loop([Enter the daily loop])
```
Headless equivalents: `create-domain` (title + premise), `extract-text` (corpus → Domain), and
`extend-domain-from-text` / `run-interview` (enrich an existing Domain).
Open on GitHubRaw Markdown source