| Describe the live channels in AsyncAPI, with lint and a breaking-change check (#1616) * Describe the live channels in AsyncAPI, with lint and a breaking-change check api/asyncapi.yaml (AsyncAPI 3.1.0) describes every WebSocket a client opens today: a conversation's runs on Intelligence's realtime gateway, and OpenBot's own sockets for conversation events, a Bot's screen and its terminal. Redocly lints it with the REST spec. On a pull request, the AsyncAPI CLI's diff (pinned in api/asyncapi-tools) lists what changed against the base branch, and api/asyncapi-diff.ts fails on anything that could break a client unless api/accepted-live-breaking-changes.md lists it. * Describe leaving a thread, the gateway closing it, and a join with nothing seen yet * Name today's socket addresses as the legacy channels, so the API's addresses can take the plain names * Format | 9 days ago |
| Only an admin adds a server by its address (#2075) A server added by its address on Connections is added for everyone in the organization, so only an admin adds one, as every other way of adding an app. Connections offers Add server only to an admin and the personal edition's one person, and a member who opens the Add server address is told an admin adds it. The spec says so for createApp, says updateOrganizationSettings saves the settings sent all or none with context read-only, and lists the audit events for deleting an organization and for every change to its teams, which get words on Activity and Audit. | 3 hours ago |
| Organizations, phase 2: each organization governs itself, its own memory and Learning, one's own organization and invitations, teams, and Desktop connected to a remote OpenBot (#1705) Organizations, phase 2, fused into one branch: each organization governs itself, memory and Learning are kept per organization, an organization of one's own at first sign-in with invitations, teams inside an organization, and OpenBot Desktop connected to an OpenBot that runs somewhere else. This branch merges, at their current heads: - #1701 Say in the spec and Admin that each organization governs itself - #1697 Say in the API that memory and Learning are kept per organization - #1700 Invitations, organization settings and an organization of one's own in the app - #1699 Teams inside an organization: the API, the screens, and granting to a team - #1698 Add an API keys page to Settings, and say what OAuth needs in the spec - #1702 Connect OpenBot Desktop to an OpenBot that runs somewhere else - main, with #1704 On top of the merges: - The spec bundled once and the clients generated again from it, keeping every piece's additions in the shared spec files. - The teams tests' organization and member fixtures carry the fields an organization and a member answer with (`personal`, `removable`, `assignableRoles`). - The rust-toolchain action's pin is commented with the tag it is (`v1`), as the static analysis of the workflows asks. Checked locally: format, lint, typecheck, API lint, the teams, Learning and audit tests. Draft: the pieces' own PRs stay open; this lands them together after one end-to-end test. | 7 days ago |
| Don't break the API or the database: the hard rules, and a pointer to them everywhere an agent starts (#2061) docs/api-and-migrations.md is a short list of hard rules: anything a released app uses keeps working for 12 months, only add, deprecate with a sunset at least 365 days out, every database change an expand or a later contract, forward only with a backup first, release-policy.json's database.to and database.from, and what a managed upgrade refuses. It links to api-versioning.md and api/README.md for the detail. Root AGENTS.md and CLAUDE.md, mobile/AGENTS.md and CLAUDE.md, CONTRIBUTING.md, the PR template, api/README.md, the docs index and the openbot-data-access skill each point to it. | 7 hours ago |
| Add TrustedRouter to the desktop model provider screen (#1901) A TrustedRouter row on Connect your AI and in Settings, between Unbiased AI and the custom endpoint. TrustedRouter is an OpenAI-compatible gateway in front of many providers with no sign-in, so the row asks only for an API key: OpenBot fills in https://api.trustedrouter.com/v1 and the model anthropic/claude-sonnet-5.5, which stays editable. The API takes provider trustedrouter with login endpoint, as it takes unbiased. In answers the provider is declared open (AiConnectionProviderAnswer, x-extensible-enum), so an app released before this one shows a provider it doesn't know by its id instead of failing. Requests still name one of the closed AiConnectionProvider list. | 7 hours ago |
| Stop describing the socket addresses from before the API's (#1658) Conversation events, a Bot's screen and a Bot's terminal are opened at the API's addresses, under the organization's, by the web app and by mobile's live screen. The addresses they had before (/api/channels/events, /api/computers/{botId}/stream and /terminal) are retired, so the three legacy channels and their five operations leave api/asyncapi.yaml. Each removal is listed in api/accepted-live-breaking-changes.md with its reason, as the breaking-change check asks of a removed channel or operation. | 8 days ago |
| Stop describing the socket addresses from before the API's (#1658) Conversation events, a Bot's screen and a Bot's terminal are opened at the API's addresses, under the organization's, by the web app and by mobile's live screen. The addresses they had before (/api/channels/events, /api/computers/{botId}/stream and /terminal) are retired, so the three legacy channels and their five operations leave api/asyncapi.yaml. Each removal is listed in api/accepted-live-breaking-changes.md with its reason, as the breaking-change check asks of a removed channel or operation. | 8 days ago |
| Describe the live channels in AsyncAPI, with lint and a breaking-change check (#1616) * Describe the live channels in AsyncAPI, with lint and a breaking-change check api/asyncapi.yaml (AsyncAPI 3.1.0) describes every WebSocket a client opens today: a conversation's runs on Intelligence's realtime gateway, and OpenBot's own sockets for conversation events, a Bot's screen and its terminal. Redocly lints it with the REST spec. On a pull request, the AsyncAPI CLI's diff (pinned in api/asyncapi-tools) lists what changed against the base branch, and api/asyncapi-diff.ts fails on anything that could break a client unless api/accepted-live-breaking-changes.md lists it. * Describe leaving a thread, the gateway closing it, and a join with nothing seen yet * Name today's socket addresses as the legacy channels, so the API's addresses can take the plain names * Format | 9 days ago |
| API: delete an organization, and hold keys, events, the Recorder, push and the realtime socket to one organization (#1897) * API: organizations can be deleted, API keys and the realtime socket can be held to one organization Adds deleteOrganization (DELETE .../profile), refusing a person's own organization and default; organizationOnly on a new API key and organizationId on a key; organizationId on conversation events and on a Recorder connection; the realtime socket relayed at /api/v2/organizations/{organizationId}/realtime/websocket; and says a push device is registered per organization. Deprecates the role property of updatePerson in favour of updateOrganizationMember, sunset 2028-05-19, and reserves Intelligence's /api/v2/platform root. * API: an API key acts only in the organization it was made in Drops organizationOnly from a new key: every key is bound to the organization it was made in, and a key with no binding acts in default. ApiKey.organizationId says which, and createApiKey, the apiKey scheme and the changelog say so. * Support window: hold the tree's first real deprecation without reaching the network in tests The support-window tests assumed the spec deprecates nothing, and their run of the check looked every release's spec up by tag, fetching each from GitHub once the spec marks something deprecated: it timed out in CI. SUPPORT_WINDOW_RELEASE_SPECS reads release specs from a directory instead, which the test points at its fixtures, and the tests now find the real deprecation of updatePerson's role. * API: an organization keeps its own OAuth client for a server-to-server app in its vault createCredential takes kind mcp_oauth_client, with the app's slug as provider, keyId server-to-server, the client's id as metadata.clientId and its secret as secret. The organization's app connects with that client, and the app is offered to the organization once it is kept. The changelog says so. * API: this OpenBot's own audit trail, and Require SSO per organization Adds listDeploymentAuditEvents (GET .../deployment/audit-events): what happened to the installation and to no organization, for the admin who runs this OpenBot, filtered by eventType, from and to. updateOrganizationSettings, ssoRequired and the deployment's ssoRequired now say that where OpenBot may keep more than one organization, each one requires single sign-on of its own members and signs out only them, and that where it keeps one, that organization's rule holds for everybody as before. * API: the deployment says whether people sign in through the hosted sign-in Adds optional hostedSignIn to the deployment answer: true where people sign in through OpenBot by CopilotKit's own sign-in, which starts at /api/auth/hosted/sign-in. authProviders is unchanged. * API: the Recorder can say which organization it records into Adds optional organization (id and name) to who a Recorder acts as (getRecorderIdentity), and optional organizationName to a new Recorder connection, so the Recorder can name where it records. * API: an organization's members include those who haven't opened OpenBot yet Adds optional notOpenedYet to OrganizationMember: on a hosted OpenBot, somebody who is a member at OpenBot by CopilotKit and hasn't opened OpenBot yet, with their id there, an empty email when none is known, and no role change or removal until they do. * API: a member who hasn't opened OpenBot yet can be removed notOpenedYet's description now says an owner or an admin removes such a member by their id, as any member, with removable saying whether they can be; only another role waits until they open OpenBot. The changelog line says the same. * API: an organization's company sign-in, as its members and admins see it listIdentityProviders in an organization other than default also lists the providers registered for the whole OpenBot, marked deployment, which can't be removed there (deleteIdentityProvider answers 403). A member held out of an organization for not having used its company sign-in is refused with 403 SSO_REQUIRED. getCompanySignIn (GET .../people/{personId}/company-sign-in, with me) still answers them: whether it is required, whether they meet it, and the providers they can use. * API: an organization's own identity providers come first for its Require SSO listIdentityProviders, IdentityProvider.deployment and CompanySignIn.providers now say that the providers registered for the whole OpenBot count for an organization's Require SSO only while it has no provider of its own. The changelog says the same. * API: an app links a company account through a one-time ticket Adds createCompanySignInTicket (POST .../people/{personId}/company-sign-in/tickets): for a providerId getCompanySignIn lists, an address the app opens in the system browser, carrying a ticket that is the person's, for this organization and provider, lasts two minutes and opens once. Session or app token only, never an API key; answered while the organization holds the person out; never replayed for an Idempotency-Key, as it is a credential. getCompanySignIn says how an app links. * API: a company sign-in ticket can send the browser back to the phone app Adds optional returnTo (app) to createCompanySignInTicket: once the company account is linked, the browser goes back to the phone app at openbotmobile://company-sign-in/linked. Without it the browser stays on a page saying the account is linked. * Changelog: the one-organization API notes belong to the release after 1.1.2 The rebase onto the 1.1.2 release applied them inside 1.1.2's released section. They move to Unreleased, with the role deprecation in its Before upgrading, and 1.1.2's section is as released. | 3 days ago |
| Load a part of the app that didn't download again, and show OpenBot's error screen (#2092) * Load a part of the app that didn't download again, and show OpenBot's error screen Back in a conversation after another one, OpenBot Desktop's window showed the router's own "Something went wrong!" with WebKit's "Importing a module script failed." in the pane, and stayed there. A file of the app's code was asked for after a release had replaced the build that named it, and the OpenBot answered 404. A part loaded with React's lazy keeps that failure for good, TanStack Router's own reload is remembered per message for the session (one message for every file in WebKit), and the route's error component fell through to the router's default screen. A failed chunk import now asks the OpenBot which build it serves, up to three times, and loads the page again once to get it, guarded per build for ten minutes so it never loops. Loading again is the only retry: the browsers fail every later import of a file whose import failed. With no answer, or after that, the route shows OpenBot's own error screen: what failed, Reload, the details to copy into a bug report, and in OpenBot Desktop its log folder. * Name the error screen's read of the app's own page in the client boundary | 1 hour ago |
| Fail a new hand-written call to the server outside the generated client (#1664) * Fail a new hand-written call to the server outside the generated client api/client-boundary.test.ts reads the app, mobile, the Recorder, shared, Desktop's window and native side, and the scripts, and fails on any address of the server or request sent by hand that api/client-boundary.allow.ts does not name with its rule: sign-in's protocol, a check before sign-in, a machine credential, the runtime, a socket, a stored format, an installed client, a hand-built address in the API's place, a third party, or the transport itself. Today's calls still moving onto the API are in a separate temporary list, each naming what removes it. An entry that matches nothing fails, a whole address in the API's place must be one the API describes, and an address allowed for good must be one that stays outside the API. Biome refuses the global fetch, WebSocket, EventSource and XMLHttpRequest in the app, mobile and the Recorder, outside the files that send every request or open the API's sockets. Sign-out goes through Better Auth's client, which owns sign-in's addresses; and the unused package read is deleted. * Drop the apps calls PR 1649 moved onto the API from the temporary list What stays temporary names its owner: product events (PR 1656) and Learning and memory (PR 1667). The addresses mobile and the Recorder build by hand are allowed under hand-built-v2, pinned to the spec, and the browser path tables the server registers today's routes from under a new server-routes rule. | 8 days ago |
| API: delete an organization, and hold keys, events, the Recorder, push and the realtime socket to one organization (#1897) * API: organizations can be deleted, API keys and the realtime socket can be held to one organization Adds deleteOrganization (DELETE .../profile), refusing a person's own organization and default; organizationOnly on a new API key and organizationId on a key; organizationId on conversation events and on a Recorder connection; the realtime socket relayed at /api/v2/organizations/{organizationId}/realtime/websocket; and says a push device is registered per organization. Deprecates the role property of updatePerson in favour of updateOrganizationMember, sunset 2028-05-19, and reserves Intelligence's /api/v2/platform root. * API: an API key acts only in the organization it was made in Drops organizationOnly from a new key: every key is bound to the organization it was made in, and a key with no binding acts in default. ApiKey.organizationId says which, and createApiKey, the apiKey scheme and the changelog say so. * Support window: hold the tree's first real deprecation without reaching the network in tests The support-window tests assumed the spec deprecates nothing, and their run of the check looked every release's spec up by tag, fetching each from GitHub once the spec marks something deprecated: it timed out in CI. SUPPORT_WINDOW_RELEASE_SPECS reads release specs from a directory instead, which the test points at its fixtures, and the tests now find the real deprecation of updatePerson's role. * API: an organization keeps its own OAuth client for a server-to-server app in its vault createCredential takes kind mcp_oauth_client, with the app's slug as provider, keyId server-to-server, the client's id as metadata.clientId and its secret as secret. The organization's app connects with that client, and the app is offered to the organization once it is kept. The changelog says so. * API: this OpenBot's own audit trail, and Require SSO per organization Adds listDeploymentAuditEvents (GET .../deployment/audit-events): what happened to the installation and to no organization, for the admin who runs this OpenBot, filtered by eventType, from and to. updateOrganizationSettings, ssoRequired and the deployment's ssoRequired now say that where OpenBot may keep more than one organization, each one requires single sign-on of its own members and signs out only them, and that where it keeps one, that organization's rule holds for everybody as before. * API: the deployment says whether people sign in through the hosted sign-in Adds optional hostedSignIn to the deployment answer: true where people sign in through OpenBot by CopilotKit's own sign-in, which starts at /api/auth/hosted/sign-in. authProviders is unchanged. * API: the Recorder can say which organization it records into Adds optional organization (id and name) to who a Recorder acts as (getRecorderIdentity), and optional organizationName to a new Recorder connection, so the Recorder can name where it records. * API: an organization's members include those who haven't opened OpenBot yet Adds optional notOpenedYet to OrganizationMember: on a hosted OpenBot, somebody who is a member at OpenBot by CopilotKit and hasn't opened OpenBot yet, with their id there, an empty email when none is known, and no role change or removal until they do. * API: a member who hasn't opened OpenBot yet can be removed notOpenedYet's description now says an owner or an admin removes such a member by their id, as any member, with removable saying whether they can be; only another role waits until they open OpenBot. The changelog line says the same. * API: an organization's company sign-in, as its members and admins see it listIdentityProviders in an organization other than default also lists the providers registered for the whole OpenBot, marked deployment, which can't be removed there (deleteIdentityProvider answers 403). A member held out of an organization for not having used its company sign-in is refused with 403 SSO_REQUIRED. getCompanySignIn (GET .../people/{personId}/company-sign-in, with me) still answers them: whether it is required, whether they meet it, and the providers they can use. * API: an organization's own identity providers come first for its Require SSO listIdentityProviders, IdentityProvider.deployment and CompanySignIn.providers now say that the providers registered for the whole OpenBot count for an organization's Require SSO only while it has no provider of its own. The changelog says the same. * API: an app links a company account through a one-time ticket Adds createCompanySignInTicket (POST .../people/{personId}/company-sign-in/tickets): for a providerId getCompanySignIn lists, an address the app opens in the system browser, carrying a ticket that is the person's, for this organization and provider, lasts two minutes and opens once. Session or app token only, never an API key; answered while the organization holds the person out; never replayed for an Idempotency-Key, as it is a credential. getCompanySignIn says how an app links. * API: a company sign-in ticket can send the browser back to the phone app Adds optional returnTo (app) to createCompanySignInTicket: once the company account is linked, the browser goes back to the phone app at openbotmobile://company-sign-in/linked. Without it the browser stays on a page saying the account is linked. * Changelog: the one-organization API notes belong to the release after 1.1.2 The rebase onto the 1.1.2 release applied them inside 1.1.2's released section. They move to Unreleased, with the role deprecation in its Before upgrading, and 1.1.2's section is as released. | 3 days ago |
| Ask once for a star on GitHub, on the personal edition, after real use (#1553) On the personal edition only, a card above the message box asks once: "Enjoying OpenBot? Star it on GitHub so that we can keep making it better." with Not now and Star on GitHub. It shows only after the person has used OpenBot on three separate days and has just had a win (copied a Bot's answer, a routine ran, or a long task finished), never right after an error. Either answer is kept on the person's account, so no device asks again. Settings > General gains a "Star OpenBot on GitHub" row on the personal edition. The answer is kept in a general list of dismissed notices on the person's preferences, and shown, clicked and dismissed are recorded as general nudge events, so later nudges need no new API. Tested in Chromium and WebKit, light and dark, on a personal-edition stack. | 5 days ago |
| Add TrustedRouter to the desktop model provider screen (#1901) A TrustedRouter row on Connect your AI and in Settings, between Unbiased AI and the custom endpoint. TrustedRouter is an OpenAI-compatible gateway in front of many providers with no sign-in, so the row asks only for an API key: OpenBot fills in https://api.trustedrouter.com/v1 and the model anthropic/claude-sonnet-5.5, which stays editable. The API takes provider trustedrouter with login endpoint, as it takes unbiased. In answers the provider is declared open (AiConnectionProviderAnswer, x-extensible-enum), so an app released before this one shows a provider it doesn't know by its id instead of failing. Requests still name one of the closed AiConnectionProvider list. | 7 hours ago |
| Add apps, connections, Bot grants and app access requests to the API spec (#1635) * Name the apps, connections, Bot grants and app access requests the API will describe, with the parts they share * Describe the apps in the API: list, read, add, change and remove them, the directory of apps that can be added, and how apps are set up Twelve operations under /api/v2/organizations/{organizationId}: listApps, getApp, createApp (from a directory entry or by a server's address), replaceApp (a server at an id an admin chooses), updateApp (who may give an app to a Bot), deleteApp, refreshApp, setAppAccountMode (personal or shared, with validateOnly to see what a switch would do), setAppOAuthClient, listAppDirectory (the catalogue and the wider directory, searchable), getAppSetup and getShortenedToolNames. The client is regenerated, and api/openapi-apps.test.ts holds the directory's entries, the ids createApp takes back and the apps they become to one another, and every directory service app-setup can name to a page of its own in both editions. * Describe a person's connections to apps and an app's shared account in the API spec A person's own connections live under people/{personId}/connections: list and read them, start connecting an app (a sign-in page, a key form, or already connected), confirm with the app on return, re-check a key, disconnect, preview what a disconnect also ends, read and start consent action by action, and manage the accounts connected at one app. An app's one shared account lives at apps/{appId}/shared-connection with the same acts, read by anybody and changed by an admin. The way back from a sign-in page is one of OpenBot's own pages, never an address. Generates the client, and pins that both holders answer alike, that each says who may act, and that no request names an address. * Rebuild the bundle and the client from the merged sources * Say which app a refusal names when the app is already here * Describe what each Bot may use, a Bot's apps, and requests for apps in the API spec Bot grants: list what a Bot was given (app actions, skills and other Bots), give or take one by its id (action:<app id>:<action name>, skill:<slug>, bot:<Bot id>), change one app's actions together, and describe or test such a change before saving it. A Bot's apps, each as it stands for the person asking, with an owner giving their own app and taking it back, and an admin turning an app on and giving it in one step. The apps a person could give their own Bots. App access requests: list (everybody's for an admin, your own otherwise), ask, withdraw, approve and dismiss. Pins that a grant id names exactly the kinds a grant is listed with, and that every operation asks for its own area's permission, read to look and write to change. * Merge the Bot grants and app access requests into the apps spec, and say what a refusal with several reasons lists * Rebuild the bundle and the client after merging main * Carry the app a refusal names on an apps problem of its own, not on the shared problem, and let the lint accept a problem type that extends the shared one * Rebuild the client's index after merging main * List the catalogue's apps in the catalogue's own order listAppDirectory returns OpenBot's own catalogue in the order the catalogue keeps, the order the screens have always shown it in, and then the wider directory by title and id. * Rebuild the bundle and the client after merging main * Say the apps lists order titles without regard to case listApps and the wider directory in listAppDirectory order by title ignoring case, then by id, the order the store has always listed apps in. * Rebuild the bundle and the client after merging main | 9 days ago |
| Add the audit trail to the API spec and the generated client (#1608) The audit trail joins the API at /api/v2/organizations/{organizationId}/audit-events, admin only, in the conventions the Bots operations set: - listAuditEvents: one page of the trail, newest first, with every filter the Audit page uses today and cursor/limit paging. A cursor belongs to the filters that made it. - exportAuditEvents (/audit-events/export): the same filters as one CSV file, declared as text/csv with its errors still problem details. Capped at 5,000 events, with OpenBot-Export-Truncated saying how many the file holds when more matched. - getAuditEventVocabulary (/audit-events/vocabulary): what a filter can name. - askAuditEvents (POST /audit-events/ask): a question in English turned into filters, taking an Idempotency-Key like every write. App tokens read it with a new audit-events:read scope. The generated client and Zod schemas are regenerated. api/openapi-audit.test.ts holds the export to exactly the list's filters and the question's filters to the shared filter set. | 9 days ago |
| Organizations, phase 2: each organization governs itself, its own memory and Learning, one's own organization and invitations, teams, and Desktop connected to a remote OpenBot (#1705) Organizations, phase 2, fused into one branch: each organization governs itself, memory and Learning are kept per organization, an organization of one's own at first sign-in with invitations, teams inside an organization, and OpenBot Desktop connected to an OpenBot that runs somewhere else. This branch merges, at their current heads: - #1701 Say in the spec and Admin that each organization governs itself - #1697 Say in the API that memory and Learning are kept per organization - #1700 Invitations, organization settings and an organization of one's own in the app - #1699 Teams inside an organization: the API, the screens, and granting to a team - #1698 Add an API keys page to Settings, and say what OAuth needs in the spec - #1702 Connect OpenBot Desktop to an OpenBot that runs somewhere else - main, with #1704 On top of the merges: - The spec bundled once and the clients generated again from it, keeping every piece's additions in the shared spec files. - The teams tests' organization and member fixtures carry the fields an organization and a member answer with (`personal`, `removable`, `assignableRoles`). - The rust-toolchain action's pin is commented with the tag it is (`v1`), as the static analysis of the workflows asks. Checked locally: format, lint, typecheck, API lint, the teams, Learning and audit tests. Draft: the pieces' own PRs stay open; this lands them together after one end-to-end test. | 7 days ago |
| Add the rest of the Bots, and Team Bots, to the API spec (#1628) The API now describes everything a Bot's screens do beyond list, read, create, change and delete, so every client can move to it: - a Bot's actions, each a POST on a verb under the Bot with an Idempotency-Key: duplicate, hide, unhide, pin, unpin, issue-callback-token, revoke-callback-token, report-decline, pause, resume, reset and stop-handoff, and test-connection on the collection; - a Bot's handoff permissions, the caller's own state with it (lifecycle) and its activity for the caller, read as single resources; - what each Bot has waiting on a person, paged, at people/{personId}/bot-attention; - Team Bots as their own resource, with team-bots:read and team-bots:write: list and read, publish (PUT) and unpublish, assign to and unassign from a directory group, answer a Team Bot's request to use the caller's account, and clear a person's answers; - whether a Bot can run inside OpenBot and whether this OpenBot can give a Bot a computer of its own, as two fields of deployment. Resetting says validateOnly every time: true counts what a reset would delete, false deletes it, following Google's AIP-163 for previewing a change. Hiding a Bot an admin assigned is refused as a conflict. bots:read and bots:write now cover a person's own state with their Bots; a test holds every Bots and Team Bots operation to its resource's read or write scope. The operations are in api/openapi/bots.yaml, the deployment fields in admin-settings.yaml, and the tag, scopes and paths in common.yaml; the bundle and the generated client are rebuilt from them. | 9 days ago |
| Organizations, phase 2: each organization governs itself, its own memory and Learning, one's own organization and invitations, teams, and Desktop connected to a remote OpenBot (#1705) Organizations, phase 2, fused into one branch: each organization governs itself, memory and Learning are kept per organization, an organization of one's own at first sign-in with invitations, teams inside an organization, and OpenBot Desktop connected to an OpenBot that runs somewhere else. This branch merges, at their current heads: - #1701 Say in the spec and Admin that each organization governs itself - #1697 Say in the API that memory and Learning are kept per organization - #1700 Invitations, organization settings and an organization of one's own in the app - #1699 Teams inside an organization: the API, the screens, and granting to a team - #1698 Add an API keys page to Settings, and say what OAuth needs in the spec - #1702 Connect OpenBot Desktop to an OpenBot that runs somewhere else - main, with #1704 On top of the merges: - The spec bundled once and the clients generated again from it, keeping every piece's additions in the shared spec files. - The teams tests' organization and member fixtures carry the fields an organization and a member answer with (`personal`, `removable`, `assignableRoles`). - The rust-toolchain action's pin is commented with the tag it is (`v1`), as the static analysis of the workflows asks. Checked locally: format, lint, typecheck, API lint, the teams, Learning and audit tests. Draft: the pieces' own PRs stay open; this lands them together after one end-to-end test. | 7 days ago |
| Add apps, connections, Bot grants and app access requests to the API spec (#1635) * Name the apps, connections, Bot grants and app access requests the API will describe, with the parts they share * Describe the apps in the API: list, read, add, change and remove them, the directory of apps that can be added, and how apps are set up Twelve operations under /api/v2/organizations/{organizationId}: listApps, getApp, createApp (from a directory entry or by a server's address), replaceApp (a server at an id an admin chooses), updateApp (who may give an app to a Bot), deleteApp, refreshApp, setAppAccountMode (personal or shared, with validateOnly to see what a switch would do), setAppOAuthClient, listAppDirectory (the catalogue and the wider directory, searchable), getAppSetup and getShortenedToolNames. The client is regenerated, and api/openapi-apps.test.ts holds the directory's entries, the ids createApp takes back and the apps they become to one another, and every directory service app-setup can name to a page of its own in both editions. * Describe a person's connections to apps and an app's shared account in the API spec A person's own connections live under people/{personId}/connections: list and read them, start connecting an app (a sign-in page, a key form, or already connected), confirm with the app on return, re-check a key, disconnect, preview what a disconnect also ends, read and start consent action by action, and manage the accounts connected at one app. An app's one shared account lives at apps/{appId}/shared-connection with the same acts, read by anybody and changed by an admin. The way back from a sign-in page is one of OpenBot's own pages, never an address. Generates the client, and pins that both holders answer alike, that each says who may act, and that no request names an address. * Rebuild the bundle and the client from the merged sources * Say which app a refusal names when the app is already here * Describe what each Bot may use, a Bot's apps, and requests for apps in the API spec Bot grants: list what a Bot was given (app actions, skills and other Bots), give or take one by its id (action:<app id>:<action name>, skill:<slug>, bot:<Bot id>), change one app's actions together, and describe or test such a change before saving it. A Bot's apps, each as it stands for the person asking, with an owner giving their own app and taking it back, and an admin turning an app on and giving it in one step. The apps a person could give their own Bots. App access requests: list (everybody's for an admin, your own otherwise), ask, withdraw, approve and dismiss. Pins that a grant id names exactly the kinds a grant is listed with, and that every operation asks for its own area's permission, read to look and write to change. * Merge the Bot grants and app access requests into the apps spec, and say what a refusal with several reasons lists * Rebuild the bundle and the client after merging main * Carry the app a refusal names on an apps problem of its own, not on the shared problem, and let the lint accept a problem type that extends the shared one * Rebuild the client's index after merging main * List the catalogue's apps in the catalogue's own order listAppDirectory returns OpenBot's own catalogue in the order the catalogue keeps, the order the screens have always shown it in, and then the wider directory by title and id. * Rebuild the bundle and the client after merging main * Say the apps lists order titles without regard to case listApps and the wider directory in listAppDirectory order by title ignoring case, then by id, the order the store has always listed apps in. * Rebuild the bundle and the client after merging main | 9 days ago |
| API deprecation headers from the spec, and open enums for response values that grow (#1814) A deprecation is written once in the spec: deprecated: true, x-deprecation-date and x-sunset. A shared reader turns those marks into one table, which the server uses to send Deprecation (RFC 9745), Sunset (RFC 8594) and Link rel="deprecation" on any request that uses a deprecated operation, parameter or body property. A test fails a change whose marks are incomplete, or whose deprecations the CHANGELOG doesn't list with their sunset under "Before upgrading". Deprecated response fields can't be counted per client, so the 12-month window alone gates their removal. 24 response enums that grow (statuses, roles, scope kinds, decidedBy) become x-extensible-enum with the same values, so a newer server can add one without breaking an older client. A test fails any request body that reaches an open enum, and the generated web and phone clients are tested with unknown values and fields. Red then green: generated client with unknown enum values and fields (4 failing before, 8 passing after); shared deprecation reader (17); open-enum guard (2). | 5 days ago |
| The Bot as orchestrator: Stop and follow-ups, agents as a list, Worked for and task details, finished tasks off the board (#1710) * Take a finished delegated task off the Needs you board A task a Bot delegated that has finished waits on nobody: its result line is already in the conversation that asked for it, and its Bot's Activity page lists it under Done. The board still listed it, as a Done row, untinted and uncounted. It now leaves the board on the Bots page and on the Bot's page, OpenDuet's Tasks and OpenFuse's bell, all by one rule (onTheBoard). A task waiting on the person stays on each. OpenFuse's Activity draws the board above the Bot's Activity groups and left every task out of those groups, so a finished task would have been on neither. The groups under the board now list the tasks the board leaves out, under Done. * Count a Bot's tasks on its page's Activity row, as its Activity page lists them The Bot page's row to its Activity page said "No tasks, routines or goals yet" while the page it opens listed a finished task under Done: the row counted only the Bot's own activity, and the Activity page lists its tasks beside it. Both now read one set of groups (useActivityGroups): the row's in progress is what the page lists under Needs you and Working, and it says nothing is running or scheduled whenever the page lists anything at all. * Stack a Needs you row where it is narrow, and fold its least actions into its menu At a phone's width a task waiting on a question, answered from its row, drew Answer, Dismiss, Mark done and Open beside its words, and the words had what was left: the title read "P.." and its status ran down the row a word to a line. Where the row itself is narrow (a container query, so a phone, a chat's width and a window with the sidebar beside it alike) it now stacks: the title in full and the status across the row, and the actions on a line of their own under them. Mark done and Open stay buttons while that line has room, and fold into the row's menu when it does not; a task waiting on an approval puts them in the menu it already has, so a row never has two. Wide rows are unchanged. needs-you-board-layout.test.tsx draws the Bots page and a Bot's page in a real browser at 390, 650 and 768 and holds every row to it. * Add stopTask: stop a task's work from outside its conversation POST /api/v2/organizations/{organizationId}/tasks/{taskId}/stop stops a working or waiting task the way Stop in its conversation does. Steps it finished stay done. Spec and regenerated clients. * Stop a task from its card and its Activity row, and draw the Bot's follow_up and stop A task that is working or waiting on the person has Stop on its card in the conversation that asked for it and on its row on the Bot's Activity page, through stopTask. The card reads Stopped as soon as the answer comes back. The Bot's follow_up and stop calls draw the card of the task they reached, with what it was told on the line under it. * Draw follow_up and stop as the task's card, and test Stop on the card The two renderers were registered inside the reaction's component instead of OrchestrationTools, so the calls folded into a plain step line. Stop on a task's card is tested through the API's stopTask, red against the card without it. * Tell a Bot to pass more to a task with follow_up and to stop one with stop The delegating section names the asks that are about a task already started (tell it to also..., stop the Figma one), so a Bot sends them to that task instead of starting another. * Stop only the task the person means, never another in its place * Say plainly when a follow_up or stop reached no task * Say what a follow-up told the task once, under the task's first card * Add listTaskTurns: how long a task worked on each thing it was asked, and which model answered A task's thread folds each turn's steps into one "Worked for" row. Nothing in the API said how long a turn took: the history keeps no times, and a task's workingSince covers only the turn running now. listTaskTurns answers each finished turn by the message it answered, with the time its runs took added up (a wait on the person is not counted) and the model its last run used. * Fold a task turn's steps into one Worked for row In a task's thread, each turn's steps and the lines its Bot said on the way fold into one row that opens to them, as dots draws a task: "Worked for 52s", timed by listTaskTurns (the turn's run time, not the wait on the person). A turn still running reads "Working for 12s" and shimmers; one the server has not listed says how many steps it took. Anything drawn, and anything that asks the person, stays in place. * Show a task's details beside its thread: who ran it, what it read and made A task's conversation gets a Task details pane, as dots lays out a task: Ran by (the Bot, what runs it, and the model its latest turn used, from listTaskTurns), Outputs (what it made or changed in an app, with the link the app gave), Sources (pages and apps it read) and Computer when it used one. Sources and outputs are read from the thread's own steps, by the line the server puts on each app call's answer. The Worked for row now also folds steps the app draws as cards of their own, such as a command it ran, and keeps out anything drawn for the person. * Add agents to the API: an organization's agents and each Bot's delegation A new area, api/openapi/agents.yaml, under bot-agents: list, add, read, change and delete the agents Bots hand work to, issue and revoke an agent's callback token, and read and set a Bot's delegation (self, on its one agent, or orchestrate, handing work to the agents it may use). The client is regenerated. The harness drift test covers the agent's harness list too. * Say who an orchestrating Bot's agents work for: everybody the Bot is shared with * Name the agent doing a task: an optional agent on Task, null for a task the Bot does itself * Give the agents' audit events their words: adding, changing and deleting an agent, its callback token, and how a Bot hands out work * Give the delegation refusal example the code the server answers it with * Agents screens: data access and the add or change sheet * Agents screens: the Agents page, a Bot's Agents page, and no model picker on a Bot that hands work out The Agents page lists the agents Bots hand work to, with where each runs, how many Bots use it and whether it is private, and adds or changes one in a sheet that reuses New Bot's framework and address steps. /agents?new and /agents?agent still lead to the Bots. A Bot's Agents page switches it between doing the work itself on one agent and handing work to an ordered list of agents, with its own model and instructions. The conversation's model picker is hidden for a Bot that hands work out. Agents joins the main menu beside Bots, and the copy glossary gains agent and Agents. * Stop reading a deleted Bot's delegation, and serve delegation in the tests that open a Bot A Bot's Agents row read how it works even after the Bot was deleted from this browser, so the page asked about a Bot that was gone. It now waits on the same delete as the Bot's other reads, and a delete drops what was read of its delegation. The fixtures that open a Bot answer its delegation, and the command menu lists Agents. * Name the agent on a task's card and in its thread, and save the Hand work to agents switch on its own A task handed to an agent says so in one quiet line under its card's state: who is on it while it works, who did it once done, and who it was handed to otherwise. The thread's brief reads Sent from the Bot to the agent. A task the Bot does itself names nobody. On a Bot's Agents page the switch is its own row and saves when switched, keeping the agent the Bot ran on as its default; the model, instructions and agents stay a form with Save. * On one person's OpenBot, add every agent for every Bot: its Bot is the install's own * Word the delegation instructions' example without naming agents a Bot may not have * Regenerate the API clients over the fused spec * Keep OpenDots' rail buttons full size with Agents beside Bots, and let the rail scroll Agents joined the rail's destinations, and in a 600px window the rail's buttons were squeezed to fit, so the Bots badge rode 2px over the button above it (opendots-rail-badge.test.tsx, failing on the fused branch). The buttons keep their size and the rail scrolls where they don't all fit. * Give follow_up and stop words for a task's line Every tool OpenBot offers a Bot has words for its line; follow_up and stop came with cards and none, so where no card is drawn the line read the bare name. * Keep a task's waiting approval out of its Worked for row A run of tool lines with a step still unanswered once the turn is over is held for the person, and the approval card for it is drawn under the run's line. The fold took the run in, so a task waiting on a payment's approval showed "Worked for 5s" and nothing to answer (the approvals journeys). Such a run, or one whose answer asks the person to connect or consent, now stays where it is; while the turn runs, an unanswered step is only working and folds as before. * Regenerate the API clients over the fused spec on main * Keep an approval waiting in a turn the person typed out of its Worked for row too A turn the person typed into a task's thread can still read as running while its step waits on their approval, so the fold took that run in and the card with it (the approvals journey's third order). The fold now also keeps out any run with a step the approval inbox holds for the person, read from the inbox the conversation already keeps. * Name the agent a task was handed to in its Details pane Slices 4 and 5 met here: the pane said the Bot ran the task, on its own kind and model, while the card and the brief said Fact finder did. A task handed to an agent now reads Handed to <agent> under Ran by, as its card says; a task the Bot did itself names none. * Teach the Bot that a new piece of work asked with also or too is a task of its own While a task wrote a guide for EU customers, "Also write a guide for US customers" was passed into that task with follow_up, so "Stop the EU one" could only steer the task writing both. The delegating section now says another thing to make or do starts its own task whatever word it is asked with, and follow_up is for changing or adding to the work a task already does. * Agents: Saved. that stays, delegation words only for editors, owner row hint A Bot's Agents page lost its Saved. confirmation when the save's refetch drew the form again; the confirmation now outlives that. How a Bot hands out work is shown only to people who can change the Bot, since its owner's words can name an agent that others see only as Private agent; the spec says the server sends it empty to everyone else. An agent's Bot count now counts the Bots the caller can see, and a refused delete names the ones they can see. An owner's row on People says why its Admin switch and Remove can't be used. * Stop on the Needs you board's task rows, and the board says the badge's count A working or waiting task's row on the board offers Stop, the same stop as its card and its Activity row, folded into the row's menu where the line has no room. The board's "N waiting" reads the badge's own count, so a task under a Bot no longer shared with the person is listed there to mark done and not counted. A task waiting on a question says the question in full at a phone's width; the row's menu is as wide as its longest item; Task details drops "yet" once the task has ended. * Show a hand-off's share on the Needs you board as its card shows it, with the whole text The board and a Bot's page listed a waiting hand-off as the approval's raw fields (Hand off, Preview, Audience, Recipients) in a box cut off at its foot, without the sentence that says who reads the text. They now show what the card in the conversation shows: the row titled as the card is (Hand this to Ledger Bot), the sentence, and the text itself. The text is never in a box that scrolls on its own: a long one is cut to a few lines with a fade and Show all, as a step's output is in the conversation. * Read a stopped task's line in full on the Needs you board At a phone's width it was cut to "You stopped this. Anything it had already...". It now wraps, as a waiting task's line does. * Show a task's result in the open conversation when it lands while the conversation's own turn is ending A task the Bot handed off can finish while the person's turn is still running; its result is said in the conversation the moment that turn lets go of it, and the open conversation read it in at once. The turn then ended by handing back the thread as it saw it, which put the messages back without the result, so the card read Done with no result under it until the conversation was opened again. A read asked for by a Bot's line said from elsewhere now waits for this tab's own turn to be over, and the turn's end runs it. * People: an owner's hint says only what is true where the person works A person's own organization always has them as its owner. In a shared one an owner gives the Owner role in Organization settings, which is where that control is. Where OpenBot lists no organizations, the row says only that owners are always admins. * A needs-you line for a stopped task says it was stopped, not answered Stop withdraws what a task waited on, answered or not, and the needs-you line in the conversation that asked then read "You answered this, and stopped it after." to a person who had answered nothing. It now reads "You stopped this task, so it no longer needs this." | 7 days ago |
| Add Learning and memory to the API spec (#1667) * Add Learning and memory to the API spec Learning, under /api/v2/organizations/{organizationId}. The skills Learning proposed, the evidence behind each insight, approving and rejecting a proposal, and Learning's runs, in the organization's spaces for an administrator (settings/learning/proposals, insights/{insightId}/evidence and runs, picked with botId) and in a person's own spaces for them or an administrator (people/{personId}/learning-proposals/{proposalId}, learning-insights/{insightId}/evidence and learning-runs, picked with containerId). Beside them: the organization's Learning settings, creating the space OpenBot assigns by itself, how Learning stands, the skills published to a space, how a Bot's learned skills reach it (bots/{botId}/learning-status), what people's recordings proposed (personal-learning-proposals), requests to share a skill with every Bot (skill-sharing-requests, by an id the server mints), and a person's own Learning choices (learning-settings), review (learning-review), the proposals made from one recording (learning-proposals), their learned skills and sharing, and their recordings' titles for a proposal's evidence. Memory: a person's memories and memory sources under people/{personId}, and the read actions a Bot could read facts in from (bots/{botId}/memory-source-tools). OpenBot keeps the record of each memory (who formed it, whether it is reviewed or paused, its source). The client is regenerated, and api/openapi-learning.test.ts holds the administrator's and a person's views of a proposal, its evidence, a review and a run to the same shapes. * Describe Learning and memory in the spec's own words Each description says what does the work: Learning for its spaces, proposals, runs and evidence, OpenBot and the server for what they keep, and long-term memory for memories formed outside OpenBot. The generated client carries these descriptions into the app, where tests/no-intelligence-in-user-copy.test.ts holds every text to OpenBot's words. No operation, field or value changes. * Say what went wrong in Learning's and memory's example refusals in plain words The example sentences match what the server now says: what happened and one next step, with no internals. No operation, field or value changes. * Say the backend where Intelligence was, as OpenBot's copy rules do The descriptions name the backend, the part of OpenBot that keeps conversations, memory and learning, and the example refusals are the sentences the server sends today. No operation, field or value changes. | 8 days ago |
| API: say when the chart's management agent went with OpenBot's release (#2044) API: say when the chart's management agent went with OpenBot's release Turning management off with Helm (management.enabled=false) removes the agent the chart installed along with OpenBot's own release. The managed updates state could not say so, so the screen asked for `helm uninstall openbot-agent`, which fails: there is no such release. ManagementEnrollment gains agentRemovedWithChart, true only while connected through the chart's agent after the chart turned management off. cancelManagementEnrollment's description says Disconnect then retires the install at once, as it does for the chart's agent. An agent installed as its own release is unchanged: uninstall it with Helm, then Disconnect. | 1 day ago |
| Add the vault, the model catalogue and each conversation's model choice to the API spec (#1621) Credentials (list, add, revoke) and where the Bots' model key is kept, the models Bots can run on (with an administrator's view of every model listed), and the model a person chose for one of their conversations. A secret only goes in: it is write-only in the input, and no answer has a place for it. | 9 days ago |
| Organizations, phase 2: each organization governs itself, its own memory and Learning, one's own organization and invitations, teams, and Desktop connected to a remote OpenBot (#1705) Organizations, phase 2, fused into one branch: each organization governs itself, memory and Learning are kept per organization, an organization of one's own at first sign-in with invitations, teams inside an organization, and OpenBot Desktop connected to an OpenBot that runs somewhere else. This branch merges, at their current heads: - #1701 Say in the spec and Admin that each organization governs itself - #1697 Say in the API that memory and Learning are kept per organization - #1700 Invitations, organization settings and an organization of one's own in the app - #1699 Teams inside an organization: the API, the screens, and granting to a team - #1698 Add an API keys page to Settings, and say what OAuth needs in the spec - #1702 Connect OpenBot Desktop to an OpenBot that runs somewhere else - main, with #1704 On top of the merges: - The spec bundled once and the clients generated again from it, keeping every piece's additions in the shared spec files. - The teams tests' organization and member fixtures carry the fields an organization and a member answer with (`personal`, `removable`, `assignableRoles`). - The rust-toolchain action's pin is commented with the tag it is (`v1`), as the static analysis of the workflows asks. Checked locally: format, lint, typecheck, API lint, the teams, Learning and audit tests. Draft: the pieces' own PRs stay open; this lands them together after one end-to-end test. | 7 days ago |
| Say in the spec whether every request-body object takes keys it doesn't name (#1671) Every request-body object in the spec now says whether it takes keys it doesn't name: the Bot, conversation, voice, audit and approval bodies that named their keys without saying so are closed, and a Bot is created from one closed object rather than two closed parts joined (which no body could satisfy). api/openapi-request-bodies.test.ts holds every request body to it. The organization settings' context is marked read-only where it is named, so no update body holds it, and the settings body is closed. A body that is too large is answered with one shared problem (PayloadTooLarge), documented on exactly the operations whose body the server limits. The phone app's and the Recorder's generated clients are left out of the hand-written code's lint beside the app's, now that Orval emits read-only helper types for a request schema. | 8 days ago |
| Work on a check-in item in the person's own conversation while task threads are off (#1942) Work on it on a check-in item opened a task thread even on a server that runs none. The app now calls a new operation, workOnCheckInItem, and the server decides: with task threads on, the item becomes a task as before; with them off, it is started and answered with the person's own conversation with the Bot and the message to send there. The app opens that conversation and sends the item as the person's message, so the Bot works on it inline like any other request. The phone app's Start does the same. startCheckInItem is unchanged, so apps already released keep working. | 3 days ago |
| API: the terms a person agrees to before using OpenBot Cloud (#2000) OpenBot Cloud asks each person to agree to its Terms of Service and Acceptable Use Policy before they use it, and again whenever those change. - getServiceTerms under people/{personId}/terms: the terms in force (a version and where each part is published), the version the person last agreed to and when, and acceptanceNeeded, the server's verdict. A self-hosted OpenBot and OpenBot Desktop on its own have no terms: current is null and acceptanceNeeded is false. - acceptServiceTerms under people/{personId}/terms/accept: agree to the version shown. A version that isn't current is refused (SERVICE_TERMS_CHANGED), as is agreeing where there are no terms (SERVICE_TERMS_NONE). Agreeing again keeps the first time. - Own only, on people:read and people:write. An agreement is the person's, not an organization's. - Audit words for service_terms.accepted. | 1 day ago |
| Refuse NUL in every text pattern the spec gives (#1815) The spec's NUL-refusing text pattern let its one required non-space character be a NUL, because \S matches one. The server refuses NUL in text on purpose, so every client and test generated from the spec read that refused request as valid. A Schemathesis run caught it with a NUL as an organization name. \S becomes [^\s\x00] in all 25 patterns, including the team: and group: forms of NetworkPolicyId. Each pattern now refuses NUL everywhere, as the server always did, so no request that worked stops working. The clients are regenerated, and each pattern change is listed in api/accepted-breaking-changes.md with that reason, worded for both oasdiff 1.34 and 1.38. Tested: api/openapi-text-patterns.test.ts fails on all 25 patterns before the fix and passes after. | 5 days ago |
| Only an admin adds a server by its address (#2075) A server added by its address on Connections is added for everyone in the organization, so only an admin adds one, as every other way of adding an app. Connections offers Add server only to an admin and the personal edition's one person, and a member who opens the Add server address is told an admin adds it. The spec says so for createApp, says updateOrganizationSettings saves the settings sent all or none with context read-only, and lists the audit events for deleting an organization and for every change to its teams, which get words on Activity and Audit. | 3 hours ago |