* feat: add a shared base for integrations that connect an account through OAuth
* fix: keep OAuth account scopes current and bound provider answers
* fix: share parent registration between form APIs
* fix: preserve refreshed OAuth tokens when actions fail
* refactor: use absolute imports for parent OAuth modules
* refactor: decouple OAuth cleanup from application publication models
* refactor: use common import hooks for OAuth connections
* fix: keep OAuth account integrations out of the workspace
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* docs: add ADR 015 for encrypting stored secrets
Records why secrets sent to other services are encrypted with a dedicated key and one shared field.
* docs: keep ADR 015 to decisions, without implementation details
* docs: add a developer guide for encrypted secrets and update ADR 015
Unreadable secrets now stay stored and are never sent, and adopters need the field's usage, limits and required tests.
* docs: add diagrams to the encrypted secrets guide
* docs: stage key changes in the encrypted secrets guide
Services not yet restarted can't read what new ones write unless the new key is a fallback first.
* docs: flag expression updates, raw SQL and db defaults on encrypted fields
They skip the field's encryption, so adopters must review them separately.
* docs: cover rollout of released columns and damaged values in the secrets guide
Old processes read ciphertext as the secret during a deploy, and damaged values now count as encrypted.
* feat(core): encrypt stored secrets with a dedicated key
A database dump or read access shouldn't reveal the credentials Baserow sends
to other services. Values say which key encrypted them, so keys can rotate.
* feat(integrations): encrypt the keys and tokens of MCP servers
They are the first secrets stored with the new encrypted field.
* docs: explain that one key encrypts every stored secret
The key, field and rotation command are shared by every secret encrypted at rest, so losing or changing the key affects all of them.
* fix(core): never decrypt written secrets and keep rows with unreadable ones loading
A written ciphertext was decrypted on save, and one unreadable value broke every query on its row.
Also reads secrets after a SECRET_KEY change, fixes the context per field, and stops the image generating a key per container.
* fix(core): keep unreadable secrets stored, never sent, and load dumps once
An unreadable secret read as empty, so moving its server skipped the credential
check and refreshing erased the tokens. Dumps were encrypted twice on load.
* fix(core): refuse encryption keys that share an id
A value names its key by id only, so the second key could never be used.
* fix(core): make reencrypt_secrets decrypt every secret and fail on any it can't
--check only counted prefixes, so missing keys and tampered values passed.
* docs: explain backups, restores and changing the encryption key
* fix(core): keep damaged secrets unusable and verify against the primary
A damaged envelope read as plain text and passed --check, and --check could
read a lagging replica instead of the database rotation writes to.
* docs: stage a first dedicated key and upgrades from development builds
* Rename backend node types
* Rename backend trigger service types
* Rename frontend node types
* Rename frontend service types
* Rename CorePeriodicServiceForm to match the service type
* Rename node test fixtures method names
* Update skill and document naming convention
* Rename some imports after rebase
* feat(mcp): add django-oauth-toolkit metadata and scopes for MCP OAuth POC
Adds the OAuth provider settings, endpoint scope validator and discovery URLs behind BASEROW_MCP_OAUTH_ENABLED.
* feat(mcp): redirect OAuth authorize to Baserow consent and issue endpoint-bound codes
The consent API validates the authorization query, binds the code to an MCP endpoint, and returns the client redirect URL.
* fix(mcp): reject non-S256 and foreign-resource OAuth requests and read consent client from credentials
Shared validation backs both authorize and consent; the token audience is pinned to the MCP resource.
* test(mcp): cover CIMD host allowlist for MCP OAuth
* feat(mcp): serve Streamable HTTP /mcp with OAuth or endpoint-key bearer auth
MCP clients doing OAuth need a single resource URL; endpoint keys keep working as bearers.
* feat(mcp): revoke OAuth tokens when their MCP endpoint is deleted
Scope is matched as a whole word so endpoint:1 never hits endpoint:12.
* feat(mcp): add title and read-only/destructive annotations to MCP tools
MCP directories require a title and readOnlyHint/destructiveHint on every tool.
* feat(mcp): add consent page for MCP OAuth sign-in
* fix(mcp): only issue OAuth tokens through the consent flow
Open DCR let a client register for the password grant and request an endpoint scope,
skipping consent. DCR and the token endpoint now allow only authorization_code and
refresh_token, and only the consent view can add an endpoint scope.
* fix(mcp): strip trailing slash from the OAuth issuer and resource URL
A PUBLIC_BACKEND_URL ending in / produced a //mcp audience and a mismatched issuer.
* fix(mcp): add iss to OAuth deny and error redirects
The metadata advertises RFC 9207 support, so every redirect back to the client carries iss.
* fix(mcp): pass the authorize query to /mcp-authorize as base64url
The login redirect re-encoded the plain query, so the consent request failed after
signing in. /mcp-authorize also stays clear of the backend /mcp/* route.
* feat(mcp): limit an endpoint to its allowed tools
Null keeps every enabled tool, so existing endpoints and keys are unchanged.
tools/call now also refuses disabled tools, which match_by_name let through.
* feat(mcp): consent picks a workspace and tools
Users never see the endpoint row behind an OAuth connection; consent creates
or reuses it per client and workspace and stores the chosen tools.
* feat(mcp): pick a workspace and tools on the consent page
Replaces the MCP endpoint picker; the backend manages the endpoint row now.
* fix(mcp): reuse a consent grant only for the same OAuth client
Keying on the client name let manual endpoints and same-named clients share a grant.
* feat(mcp): drop dynamic client registration, keep CIMD only
Clients without CIMD use the endpoint key in the Authorization header.
* feat(mcp): redesign the consent page
Card with client avatar pair, verified badge, database counts and tool badges.
* feat(mcp): list and disconnect OAuth connections, refuse grant keys
Endpoints created by OAuth consent only accept their OAuth tokens, so their key
is refused on SSE and as a bearer, and they move from the endpoint list to a
connected apps API.
* feat(mcp): connect URL and connected apps in MCP server settings
Shows the one OAuth URL with per-client setup steps and lets users disconnect
apps they granted. Endpoint keys stay below under their own title.
* fix(mcp): hide OAuth grants from endpoint routes and left workspaces
The legacy endpoint routes no longer return grant rows or their key, and the
connections list skips grants in workspaces the user left, which can't be used
or disconnected.
* fix(mcp): load consent on the client so tool checkboxes render ticked
Server-rendered checkboxes lacked the checked class, which hydration kept while the state was ticked.
* fix(mcp): define django-oauth-toolkit swappable model settings
migrate resolves them when checking for model changes on an already migrated DB, which broke CI.
* fix(mcp): reset the SSE endpoint key when the key is unknown
The early 401 left current_key set, leaking it into later work in the same context.
* feat(mcp): give OAuth grants no key and one row per client and workspace
* fix(mcp): resolve the /mcp endpoint once and drop the /mcp/ route
* feat(mcp): hash OAuth tokens, expire refresh tokens and accept offline_access
Resource metadata lists only mcp; the CIMD host allowlist is now BASEROW_MCP_OAUTH_CIMD_ALLOWED_HOSTS.
* test(mcp): assert offline_access reaches the token and add refresh expiry control
* feat(mcp): rate-limit the OAuth token endpoint per client IP
* fix(mcp): validate consent once and only keep a grant when a code is issued
* fix(mcp): roll back the grant when the library answers consent with an error
oauthlib re-validates while issuing and returns non-fatal errors as a redirect, which committed the grant.
* fix(mcp): revoke OAuth grants when a user leaves the workspace
* fix(mcp): count only usable tools on connected apps
* fix(mcp): start reconnects from the existing grant's tools on the consent page
* fix(mcp): give the connections section its own BEM elements
* feat(mcp): send mcp_connected for Streamable HTTP clients
* fix(mcp): route /mcp, /oauth and OAuth metadata to the backend
* fix(mcp): route /mcp-authorize to frontend before /mcp to prevent 404
* feat(mcp): let MCP clients without CIMD register with DCR
Registration is anonymous, limited to public code-grant clients with https or loopback redirects, and unused clients are removed after a day.
* fix(mcp): reject DCR redirect URIs containing whitespace
DOT splits stored redirect URIs on whitespace, so one URI could smuggle in a second.
* docs(mcp): document OAuth sign-in for MCP clients
* test(mcp): load the URLconf before tests turn OAuth off
The OAuth routes are only mounted if the flag is on at URLconf import, so a test
that turned it off first left later tests in the worker with 404s.
* feat(mcp): periodically clear expired OAuth tokens
Rotation and reuse protection leave revoked refresh tokens, used codes and
expired access tokens behind. DCR registration tokens now expire so they're cleared too.
* style(mcp): drop dead and invalid rules in the OAuth SCSS
* fix(mcp): keep unnamed library metadata routes instead of crashing
* refactor(mcp): remove unused MCPEndpointHandler.get_by_key
* fix(mcp): only accept an OAuth token for its own client's grant
* fix(mcp): leave resource_metadata out of the 401 when OAuth is off
The metadata route isn't mounted then, so the hint pointed at a 404.
* fix(mcp): rate-limit the OAuth authorize redirect per client IP
Each anonymous authorize request can fetch and store a CIMD client.
* fix(mcp): delete CIMD clients that have no grant
Anonymous authorize requests store CIMD clients and nothing removed them.
* fix(mcp): say a CIMD host published the client, not that it verified it
With the default * allowlist the host is not vouched for.
* fix(mcp): name a DCR client without client_name by its redirect host
The consent title read "Connect " and the grant had an empty name.
* fix(mcp): route MCP and OAuth paths to the backend in the no-caddy nginx config
* fix(mcp): reject an access token that has no application
It crashed the /mcp request instead of returning invalid_token.
* fix(mcp): return the 404 JSON for RFC 7592 PUT and DELETE
Django's CSRF check answered them with a 403 page first.
* refactor(mcp): move the shared client avatar placeholder out of mcp_authorize
The connections list extended a placeholder defined in another component.
* fix(mcp): issue a refresh token only for offline_access
ADR 009 decision 6 ties refresh tokens to the offline_access scope.
* fix(mcp): stop the consent page from being framed
The consent page grants a client access, so it is a clickjacking target.
* fix(mcp): make the consent page tool toggles keyboard reachable
* docs(mcp): say the CIMD host allowlist only covers CIMD clients
* docs(mcp): route MCP and OAuth paths in the k8s and AWS examples
/mcp is only served by the ASGI app, so the examples sent it to a 404.
* fix(mcp): refuse to show the consent form inside a frame
Logging in inside a frame reaches the consent page by client-side navigation, which skips the frame headers.
* fix(mcp): always issue OAuth refresh tokens
Users stay signed in until they disconnect or the app goes unused for 30 days,
whether or not the client asks for offline_access.
* fix(mcp): keep the endpoint scope when a refresh narrows scopes
A refresh asking for scope=mcp issued a token without endpoint:<id>, which
failed on /mcp and escaped revocation on Disconnect.
* fix(mcp): keep OAuth clients that are still in use after a disconnect
Cleanup deleted a disconnected client the next day while the app kept using
its client_id. Clients now go after 30 days without a token, and an unknown
client on authorize tells the user to re-add the server.
* fix(mcp): serve the SSE route with a trailing slash
Turning off redirect_slashes made /mcp/<key>/sse/ a 404 instead of a redirect.
* fix(mcp): drop the error code from the 401 when no token was sent
RFC 6750 section 3.1 says no error code when the request has no credentials.
* fix(mcp): delete grantless CIMD clients a day after creation
Any anonymous authorize re-fetch bumps a CIMD client's updated, so it can't
mark use. CIMD clients are fetched again on demand anyway.
* fix(mcp): mark the OAuth client as used after saving its tokens
Matches the cleanup's lock order, tokens before the application row.
* style(mcp): rewrap the OAuth validator docstring
* fix(mcp): describe offline_access as it now behaves
Refresh tokens are issued whether or not it is requested.
* feat(mcp): audit log MCP OAuth connect and disconnect
ADR 009 decision 6: connecting and disconnecting are recorded in the audit log.
* test(mcp): give the OAuth action tests a unique module name
test_actions.py clashed with other test modules of the same name and broke collection in CI.
* fix(mcp): let users disconnect their OAuth grants without endpoint permissions
Listing grants and using them only needs membership, so disconnecting must not need the MCP endpoint operations either.
* fix(mcp): require the mcp scope on OAuth tokens used at /mcp
A refresh asking only for offline_access issued a token without mcp that /mcp still accepted. Refreshes now keep mcp, and /mcp rejects tokens without it.
* fix(mcp): ignore the redirect URI's own query when checking for an issued code
A client registered with a redirect URI like https://app.example/cb?error=0 never got a code.
* fix(mcp): send the OAuth connect PostHog event only after consent commits
The consent transaction rolls back when no code is issued, and the event was already sent by then. The audit log entry stays in the transaction.
* fix(mcp): keep OAuth grants out of the key endpoint lookup
Callers had to remember to pass a key-only queryset; grants have their own lookup.
* fix(mcp): show a CIMD client's host in a neutral badge
Any host can publish a client metadata document, so a green check made lookalike hosts look trusted.
* fix(mcp): show the readable reason when the consent request is rejected
* style(mcp): tidy an import and an outdated comment
* fix(mcp): name every client on the consent page by its client name
Matches Settings, which shows the client name with the host as a badge. A nameless CIMD client falls back to the host that published its metadata.
* fix(mcp): show fatal authorize errors on the styled consent page
The authorize endpoint answered unknown clients and bad redirect URIs with a bare text 400.
* test(mcp): add an e2e spec for the OAuth connect and disconnect flow
Enables BASEROW_MCP_OAUTH_ENABLED on the e2e and CI backends so the spec runs.
* fix(mcp): send only an error code to the consent error page
Free text in the URL could be injected and came back double-encoded after login. The page now maps codes to its own text and shows errors without sign in.
* fix(mcp): keep a CIMD client's host in the consent title
Any host can publish metadata under any name, so the title reads "Connect {name} from {host}". The neutral badge only repeated the host and is dropped.
* test(mcp): check the MCP status before parsing the body in the e2e spec
* test(mcp): await the login redirect in the consent middleware spec
The unawaited navigation ran the settings middleware after the request mock was restored, making a real request.
* fix(mcp): address final review findings on the OAuth flow
Authorize errors no longer redirect to client-registered URIs, CIMD redirect URIs follow the DCR rule, consent is rate-limited per user, and deleting a grant any way revokes its tokens.
* fix(mcp): accept ChatGPT, Claude and VS Code CIMD documents
django-oauth-toolkit 3.4.1 ignores token_endpoint_auth_methods_supported and refuses extra grant types; fixed upstream in #1856 and #1858 but not released.
* fix(mcp): update ChatGPT connect steps to the Plugins page
* feat(mcp): split MCP server settings into OAuth and Endpoint tabs
* fix(mcp): route /mcp without a trailing slash on K8s
The OAuth resource is /mcp, which the /mcp/ prefix missed.
* fix(mcp): give the CIMD document download one deadline
The library's timeout applies per read, so a slow-drip document held a worker.
* fix(mcp): bound anonymous client registrations
Caps the body at 16 KB and redirect URIs at 10; unsupported URIs are dropped instead of failing the registration.
* fix(mcp): rate-limit token revocation, count only failed token calls
Revocation loads the client, which can fetch and store a CIMD client.
* fix(mcp): preselect the granted workspace when reconnecting
It picked the first workspace with databases, so one Allow could move the app with every tool ticked.
* fix(mcp): carry the consent request in the path so SSO keeps it
SSO sign-in only keeps the return path. The frame headers move to the page so every spelling of the path gets them.
* fix(mcp): canonicalize the resource URL, scrub OAuth fields from Sentry
SDK clients send the resource normalized; the Sentry denylist only matches exact keys.
* fix(mcp): lock the membership while granting an OAuth client
A member removed during consent could otherwise keep the new grant.
* chore(mcp): count databases through the registry, add missing translations
* test(mcp): check the OAuth routes follow the flag
* test(e2e): skip the MCP OAuth test only when the route is missing
Any other status hid a broken metadata endpoint.
* fix(mcp): explain rejected CIMD clients and load failures on the consent page
Both showed the invalid request message, which suggested re-adding the server.
* fix(mcp): answer a refresh that lost a race with invalid_grant
With hashed storage the library returned a blank token and the token view raised a 500.
* feat(mcp): mark connected apps whose sign-in has ended
Grants stay listed after their refresh token expires, but the app has to sign in again.
* docs(mcp): add a self-hosting note for MCP OAuth sign-in
Covers the public URL, routing, outbound HTTPS for CIMD, the client IP the limits use and what turning the flag off does.
* fix(mcp): sign OAuth apps out on password change or reset
Browser sessions already end then; grants stay so apps show as signed out.
* feat(mcp): tick only the read tools on a first connection
Changing data becomes opt-in; reconnecting still starts from the existing grant.
* fix(helm): keep the MCP consent page on the frontend on a shared domain
Caddy ingress turns Prefix /mcp into /mcp*, which also caught /mcp-authorize.
* feat: make assistant routing stateful and intent-aware
Add compacted action memory, mutation reconciliation, grounded final-answer validation, deferred cross-mode routing, and ask_user intent handling. Keep the eval platform and broad contract suites in the dependent layer.
* fix: reconcile only the field settings a request actually stated
FieldItemCreate defaults every type-specific setting, so a request that
named a field without mentioning its settings looked identical to one
demanding those defaults. Reusing a populated table then reported them as
mismatches, and next_steps told the model not to claim completion until
it resolved each one through update_fields: rounding every number,
clamping every rating, dropping the time off every date and nulling
select columns that nobody asked to change.
Compare a setting only when the request stated it, and report missing
fields with the same restraint. Duplicate requests now compare on stated
settings too, since pydantic equality ignores which fields were set and
stated-ness has become load-bearing.
Expose routed_tool_names so the child branch can pin every tool's reach.
* refactor: name the mode redirect instead of matching its wording
The retry text that asks the model to re-issue a routed call is protocol,
and consumers were recognising it by searching for two of its phrases.
Expose it as mode_redirect_message and is_mode_redirect so a reworded
message cannot silently turn routing protocol back into a tool failure.
* refactor: treat a run's own identical workflow request as answered
Reusing an exact-name workflow always returned next_steps saying the
model could not verify trigger or action configuration and must not claim
completion, including when this run had just built that workflow from the
same request. Record what each call created against the request that
created it, and stay quiet when a reused workflow matches it exactly. A
workflow the run did not create, or one re-requested with different
configuration, keeps the warning.
This removes a wrong signal and aligns the automation reconciler with the
database one, which already returns nothing when reuse satisfies the
request. It is not the cause of the request-limit aborts measured on this
branch: repeating the case with this change left the retry loop intact.
* fix: stop discarding generated formulas whose ids came back as text
The formula agent answers in JSON, so its object keys are always text,
while the fields to resolve are keyed by integer field id. Every returned
formula therefore failed `field_id not in remaining` and was skipped
without recording feedback, so three identical attempts produced
"Failed to generate any valid formulas after 3 attempts. Feedback:" with
nothing after it.
The agent had generated a correct formula each time. Losing it made
create_workflows report formula_errors, which the model read as a failed
creation: in a measured run it built the same workflow four times under
suffixed names, and each attempt spent a tool call plus three formula
sub-agent requests until the run hit its request limit.
Match ids by their text form, and report an id that matches nothing so a
retry can act on it instead of repeating the same answer.
* fix: reject a blank row id on row actions
A node type's required fields were checked with `is None`, so an empty
string satisfied them. An update_row or delete_row node built with
row_id="" passed validation and produced a workflow that names no row to
act on, which the model then reported as a completed automation.
Judge only text as empty: a row action with no field values still creates
or clears a row, so an empty values list stays valid.
* fix: say that a row action needs to name its row
The row_id description read only "Row ID", so the model routinely omitted
it on update_row after a row trigger and the call was rejected for a
missing required field. State the requirement, and name the triggering
row as the usual answer after a row trigger.
The partial-update model keeps the old wording: patching a node's values
without restating its target is a legitimate request.
* fix: verify assistant completion and preserve partial results
* fix: distinguish documentation from assistant completion claims
* fix: limit assistant completion checks to direct assertions
* chore: refresh Kuma evaluation baseline
* chore: add Kuma routing changelog entry
* fix: ground Kuma requests and preserve Builder updates
* fix: retrieve assistant documentation from bounded passages
* test: verify Kuma saved state and record exhausted runs
* fix: finish requested Kuma work and retain grounded partial answers
* fix: require a knowledge base for docs evals
* chore: refresh Kuma evaluation baseline
* fix: complete routed assistant actions and verify saved automation mappings
* fix: keep mode routing outside tool error retries
* fix: infer page parameters and retain eval execution failures
* fix: clarify assistant prerequisites and preserve model settings
* fix: retain partial docs evidence and clarify workflow inputs
* fix: isolate eval identities and strengthen main-agent reasoning
* fix: retain default reasoning and trust available action tools
* fix: clarify schema completeness and new page prerequisites
* fix: default unspecified landing-page links to the existing home page
* fix: resolve lookup and default options before requesting clarification
* fix: verify saved Slack reminder configuration in evals
* fix: report incomplete sample row generation to the main agent
* fix: allow negated documentation descriptions in completion checks
* fix: recognize descriptive retention statements in completion checks
* fix: reject invalid assistant row links without clearing them
* fix: accept equivalent per-view wording in documentation evals
* fix: execute complete cross-mode tool calls without deferring them
* fix: preserve native Groq GPT-OSS reasoning history
* fix: accept equivalent address-answer negation in docs evals
* fix: use high reasoning for Groq orchestration and docs
* fix: check newly requested apps in Builder evals
* fix: scope deeper reasoning to documentation synthesis
* fix: constrain Groq documentation synthesis output
* chore: move Kuma eval baseline and dataset updates to #6007
The eval baseline, datasets, run reporting, and their tests move to the eval PR. The harness keeps the routing adaptations this PR's API changes require.
* fix: accept automation formulas keyed by the described field name
Row actions request formulas keyed by field id with the field's name in the description, but the automation formula prompt said keys are field names. When the model answered with the name, all three attempts failed as an unknown field id, so the mapping was lost and Kuma recreated the workflow. Accept a unique described name as the field's key, and tell the model to copy keys exactly.
* fix: clarify Kuma's ask, build, and tool-argument rules
Live evals failed consistently on four instructions: a bare 'create an app for my team' was built without asking, an imperative formula request was answered with instructions, a shared header was created with an application_id the tool does not take, and a request for an example app asked before creating its sample data. Row batches also missed the requested total. Each tool or intent rule now states the expected behaviour.
* fix: search Kuma docs with the user's own words
A rewritten docs question can drop the concern that decides the relevant page: 'Where is the save button in Baserow?' retrieved Builder button docs, while the user's 'I don't want to lose my work' points to automatic saving. Retrieval and synthesis now also see the user's message. The data-backed app rule also says that a described layout is not a request for sample records.
* fix: ask before inventing the records an app should show
When no table holds the records an app should display, Kuma must create nothing and ask whether to create a table with sample data, agree on its fields first, or use data the user points to. Live evals showed Kuma skipping the table lookup and creating a new database; the data-backed app rule and create_builders now state this directly.
* fix: state the missing-records choices where Kuma looks for the table
list_tables results now say to create nothing and offer a sample-data table, agreeing on fields first, or existing data, and name the example or demo app exception, so the decision is made with the lookup result in view.
* fix: report the running row total when Kuma creates rows in batches
Row creation is split into batches of at most 20, and the model had to keep its own running total: asked for 30 rows it created 28, 33, 35, or 36 while answering that it added 30. Each create call now returns total_rows_created for the table.
* fix: keep loaded row tools available after a mode switch
Row tools were only exposed in database mode and have no route back, so create_rows_in_table_N failed as an unknown tool after Kuma switched to application or automation mode. They exist only after an explicit load_row_tools in the same message, so they now stay available in every mode.
* fix: keep remembered tool data from acting as Kuma instructions
The verified_prior_actions block carries names and values from earlier tool calls into the system prompt, and some of that text can be written by other workspace members. Escape < and > so stored text cannot close the block, label it as data never to be followed, and remember row counts and IDs instead of the cell values row tools wrote.
* fix: let Kuma change whether a record selector allows multiple rows
record_selector updates reused the input_text converter, which never mapped multiple, so the unsupported-property check rejected the whole update and Kuma offered to recreate the element.
* fix: clear Kuma's reasoning bubble after a rejected answer
pydantic-ai emits no event when the output validator rejects a text answer, so a printed tool call or an unverified 'I've created...' stayed in the bubble with the retry appended. The bubble now resets when the next model response starts after a rejected one.
* fix: answer and keep the turn when Kuma runs out of output retries
The output retry budget is shared across a run, so a fourth rejected answer raised UnexpectedModelBehavior: the user saw an error and the turn's history was dropped although tools had already changed data. Catch it outside the telemetry trace, which still records the failure, reply that changes may already have been made, and save the captured run so the next turn sees them.
* fix: stop treating how-to steps as unverified change claims
A bare 'Set up ...' step, 'Created rows appear ...' and the 'Created on'/'Created by' field names were read as completion claims, so how-to answers were retried. Bare 'set up' now needs a 'Done' or 'Successfully' lead-in, and more present-tense descriptions are recognised; passive claims such as 'Updated rows have been saved.' are still retried.
* chore: remove the sample-row permission branch that can no longer fire
Row tools now return permission denials as results instead of raising them, so this except in _create_sample_rows was unreachable.
* fix: give the knowledge base sync enough time to re-embed after upgrading
Passage chunking makes the first sync re-embed every document in one transaction. Measured with the bundled CPU embedder, that took 172 s for the website export and about 456 s including dev docs, beyond Celery's default 300 s soft limit, so the sync would roll back on every deploy and the new index would never land. The task now has its own 30 minute limit.
* docs: describe row tools, row-write memory and the fallback answer after review
* fix: let Kuma search the docs in every mode on pydantic-ai 2.50
pydantic-ai 2.50 refuses a call to a deferred tool until tool search reveals
it, so docs questions asked outside explain mode cost an extra model request.
search_user_docs is now active in every mode. The eval harness no longer
counts that refusal as a tool error, like unknown-tool exploration.
* fix: address Kuma routing review feedback
* refactor: centralize Kuma model-specific configuration
* feat: retire AI provider flag and add rollout audit
* test: remove obsolete AI provider flag setup and docs
* chore: clean up AI provider configuration and tests
* feat: deprecate legacy AI provider environment configuration
* docs: explain AI provider migration sizing and timing
* docs: mark AI provider migration audit for removal
* docs: explain AI provider migration audit usage
* fix: log AI provider env deprecations after logging setup
log_ai_provider_env_deprecations() ran at the tail of _setup_health_checks(),
which ready() calls before setup_logging(). The notice went out through
loguru's default sink and missed BASEROW_BACKEND_LOG_LEVEL, the Baserow
format, and the OpenTelemetry log exporter, so operators shipping logs to a
collector never saw it.
Also drop two references the flag removal invalidated: the getEffectiveAIAgentModels
JSDoc still described filtering as conditional on the removed provider flag, and
the AI field architecture doc still pointed provider authors at the deleted
legacy workspace-setting hook. That doc now names BuiltInGenerativeAIModelType,
which is what grants an integration override model inheritance.
* fix: reuse environment AI settings in generation workers
* feat: import legacy AI provider settings on upgrade
Removing the ai-providers flag makes database-backed providers the default, which
would leave every existing installation on an empty AI providers page with a
management command as the only way to populate it. A data migration imports the
environment and each workspace's stored settings instead, so a standard upgrade
needs no commands.
Both scopes are imported in one migration. Legacy workspace settings replaced the
instance ones entirely, while database providers inherit, so each imported workspace
is also switched off the instance provider of the same type. Without that a workspace
would silently gain models billed to the instance account.
Settings that cannot fit their columns are skipped and logged rather than raising
DataError and rolling back the whole upgrade. The migration reverses as a no-op
because the previous version does not read these tables, so deleting rows would only
discard edits made during a rollback window.
migrate_ai_provider_settings stays as the recovery path and now shares its planning
logic with the migration, so both agree on which legacy settings are complete. It
deliberately does not switch workspaces off inherited providers, and warns instead.
* chore: remove the temporary AI provider audit command
audit_ai_provider_settings existed to inventory legacy configuration before a manual
import. The upgrade now imports automatically, so the command has no remaining step
to support. Removal was already tracked in #5749.
* docs: reduce AI provider docs to lasting behaviour
The upgrade procedure, rehearsal plan and sizing query described a one-time
transition and do not help anyone after the release; they live in the pull request
instead. What remains explains how providers work: the two scopes, how they combine,
the inheritance switch, what the deprecated environment variables still do, and how
integration overrides and published applications behave.
Also corrects claims that no longer hold: published applications keep materialised
credentials only when they were published before the upgrade, the import is no longer
optional, and a workspace-owned provider suppresses the environment fallback too.
* docs: shorten the AI provider changelog entries
Bullet points render as single list items under the entry. The released entries
average around twenty characters; these ran to four hundred, so the detail belongs
in the AI providers guide rather than the changelog.
* docs: clarify where imported AI credentials are stored
The previous wording implied Baserow's own exports carry provider credentials.
They do not: AIIntegrationType lists ai_settings as a sensitive field and
ImportExportConfig excludes those by default, and AIProviderConfig is not part of
any export path.
* docs: explain the AI provider upgrade and where to configure providers
State that the upgrade imports the BASEROW_* provider variables once and no longer
reads them, list the exceptions, and give the exact navigation for instance admins
(Admin tools -> AI providers) and workspace admins (workspace Settings -> AI
providers). Map each deprecated variable to the field that replaces it.
* fix: renumber the legacy AI provider import after 0121_agent
Develop's core 0121_agent and this branch's import migration both depended on
0120, leaving two leaf nodes, so migrate refused to run and the startup check and
E2E shards failed. The import is now 0122 and depends on 0121_agent.
* feat: remove the legacy workspace generative AI settings endpoint
GET/PATCH /api/workspaces/{id}/settings/generative-ai/ had no caller left, yet a
PATCH was still honoured for any provider type without a workspace provider and
never shown in the AI providers UI. Remove it with the handler parameter,
receivers and frontend handler that only it could trigger.
* fix: stop instance AI provider changes from fanning out per workspace
An instance-level change queued one Celery task per 25 workspaces behind a global
blocking lock, sent a payload to every connected user, and made the premium receiver
serialize every AI field on the instance. Instance changes now notify staff only;
other users see them after a reload. The render lock is per scope, and the in-use
guards no longer read one row per workspace.
* fix: keep inherited Kuma when a workspace switches off the instance provider
The upgrade switches imported workspaces off the same-type instance provider, which
made an inherited instance Kuma model invalid there, so Kuma fell back to the
deprecated env model or turned off. Inheriting the instance Kuma selection now
ignores workspace switch-offs; explicit workspace selections stay strict and are
the only ones that block a switch-off.
* fix: skip malformed Ollama URLs during AI provider migration
* fix: preserve skipped legacy AI provider connections
* test: cover independent legacy AI workspace connections
* fix: skip malformed legacy AI provider settings
* fix: move legacy AI import after current core migrations
The linear rebase omitted the migration renumbering from the previous merge commit, while develop advanced through core 0124. Rename the existing AI import to 0125, depend on 0124, and update its historical migration test so core has a single leaf.
* fix: use TipTap Markdown for rich text fields
* fix: escape markdown at line starts only and skip saves without edits
* perf: skip the preview markdown round-trip when no empty paragraphs are possible
* fix: address feedback; add docs
* fix: copilot feedback
* fix: copy one cell, paste in edit mode in another one
* create backend justfile; switch to uv
* Add deploy and dc-deploy recipes to build images
* Add uv.lock for reproducible builds
* CI fixes + improvements
* Reduce build time
* improve CI caching
* Improve exit early conditions
* Set requires_python==3.11.*; add backend/media to gitignore
* Fix all-in-one Dockerfiles and some other fixes
* Introduce frontend justfile + some other useful recipes
* Fix permissions issue with dev containers
* Improve dockerfiles and docs on how to use the dev env
* Fix mjml-email-compiler service
* Update docs + address feedback
* Fix containers healthchecks
* Fix yarn test in dev container
* Minor fixes to docs and justfile attach command
* Address Petr's feedback
* Address additional feedback
* Add changelog entry
* Address feedback: Petr and Przemek
* address feedback + prepare for saas PR
* minor fixes
* Address Bram's feedback 2
* Switch to udspy
* fix search tool and message history
* Added embeddings server docs
* Remove remaining litellm references
* bump udspy version to v0.1.6
* Added docs for setting up the AI-assistant
* fixed table
* port workflow formula generation tools to udspy
* Set a fake OPENAI_API_KEY for tests
* Fix flaky tests
---------
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>