Update a contract
- Change the relevant backend route and Pydantic models.
- Update the relevant backend checks.
- Regenerate the frontend schema and types from
src/platform:
generate:api-schema and then generate:api-types, exporting src/api/openapi.json and generating src/platform/src/types/api.d.ts. Do not edit these generated artifacts by hand.
Model integration points
Model routes mount throughcore.routes.models.v1. The frontend ModelRunner.tsx maps model choices to the supported /rest/v1/models/... routes, configuration dialogs, and input submission. RunModelPage.tsx chooses the dashboard or runner layout, while ModelDownloads.tsx handles run files.
When extending a model workflow, review all these boundaries, the organization entitlements, and the run-scoped authorization checks. Keep heavy computation outside the request handler and use the existing Databricks and Models API integration.