Runtime Model
The runtime is generated from the published DomainConfig. It exposes the business app to users, agents, external systems, and custom pages.
Request pipeline
Runtime calls follow the same general path:
- Resolve tenant, app, environment, and published config.
- Authenticate the caller and resolve the actor.
- Authorize the requested command, projection, or tool.
- Validate request input against generated schemas.
- Execute the command, projection, webhook, subscription, or MCP tool.
- Return a structured response or error.
That pipeline is why the published model, auth rules, and generated contracts must stay in sync.
Runtime surfaces
Generated OpenAPI
Every published app exposes its generated REST contract at:
Use that contract as the canonical reference for command and projection endpoint names. Do not hard-code endpoints from examples without checking the generated contract for the current app.
Projection rebuilds and event import
Projection rebuild and event import are operational tools. Use them deliberately:
- rebuild projections after projection definition changes or recovery tasks
- import events only through controlled migration or repair workflows
- verify projection output after either operation
For normal user workflows, execute commands instead of importing events directly.