Skip to content

Open by default, with a switch to lock apps down: every action on one press, apps open to Bot owners, an every-Bot switch, browser search without a search app - #2160

Merged
davidmckayv merged 5 commits into
mainfrom
spec/every-bot-app
Nov 25, 2026
Merged

davidmckayv merged 5 commits into
mainfrom
spec/every-bot-app

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What

OpenBot's people side is open by default. Admins restrict it; they never have to open it up. This PR changes the API and the Bot's guidance to match.

API

  • One switch for the organization's apps: lockedDown on a new resource, GET/PATCH /api/v2/organizations/{organizationId}/settings/apps (getAppsSetting, updateAppsSetting). Every member may read it; only an admin changes it. It isn't added to the organization's settings, because apps already released read that answer with additionalProperties: false and would reject a new field.
    • false, the default, is Open:
      • a person's connected apps are on for their own Bots;
      • one press gives every action;
      • apps are open to Bot owners;
      • the apps that need no sign-in are on for every Bot.
    • true is Locked down, the earlier model: an admin approves, and one press gives the reads.
    • Locking down changes what giving does from then on and takes nothing back. To also remove what OpenBot gave by itself while apps were open, send takeBackWhatOpenGave: true with it. Sent with lockedDown: false, it is ignored.
    • The descriptions of give, approve and AppOwnerGrants say what each does under either setting.
  • updateApp takes an optional everyBot, and every app answers everyBot.
    • true gives the app to every Bot in the organization, Bots made later included.
    • false takes back what that gave. Nothing a Bot was given any other way changes.
    • Either way, one row goes on the audit trail. Where each person connects their own account, a Bot uses the account of whoever is asking, never its owner's.
    • Routines and OpenBot settings are every Bot's already: true changes nothing and false answers 403, as removing them does.
  • giveBotApp, approveBotApp and approveAppAccessRequest with no actions named now give every action of the app, not only the ones that read. Actions that change something still ask first wherever the approval rules say so. The example of the "nothing a Bot can only read with" refusal is gone, because that refusal can no longer happen.
  • ownerGrants: null means the default, and the default is now any for every app: an app is open to Bot owners unless an admin closes it or the organization's apps are locked down.

Bot guidance (shared/bot-prompt.ts)

  • A Bot that holds no search tool now searches with its own browser. It tries another engine if a cookie wall or CAPTCHA blocks one, and never refuses.
  • It never tells anyone that an admin has to add a search app. In dogfooding, a Bot said "I could technically load Google or Bing in that browser, but I'm set up not to".

Compatibility

Only adds to the API's shape: one new resource, one new optional request field and one new response field on an app. The organization's settings answer is unchanged, so released apps that hold it closed keep working. The other changes are to descriptions and examples. Leaving everyBot out of a request does what it did before.

Checks

  • bun run api:generate, api:lint, typecheck and lint all pass.
  • shared/bot-prompt.test.ts: the two new tests fail against main's bot-prompt.ts and pass here.

@davidmckayv
davidmckayv force-pushed the spec/every-bot-app branch 3 times, most recently from 2c3038e to 7db261c Compare November 24, 2026 22:33
@davidmckayv davidmckayv changed the title API: an admin can give an app to every Bot Open by default: every action on one press, apps open to Bot owners, an every-Bot switch, and browser search without a search app Nov 24, 2026
@davidmckayv davidmckayv changed the title Open by default: every action on one press, apps open to Bot owners, an every-Bot switch, and browser search without a search app Open by default, with a switch to lock apps down: every action on one press, apps open to Bot owners, an every-Bot switch, browser search without a search app Nov 24, 2026
updateApp takes everyBot, and an app says whether it was given to every Bot. True gives the app to every Bot in the organization and to Bots made later; false takes back what that gave, and nothing a Bot was given another way. Where each person connects their own account, a Bot uses the account of whoever is asking.
…efault, and a Bot without a search app searches with its browser

giveBotApp, approveBotApp and approveAppAccessRequest without named actions give every action of the app, each write still behind the approvals in front of it. An app is open to Bot owners unless an administrator closes it (ownerGrants null now means any).

A Bot holding no search tool searches with its own browser, tries another engine past a cookie wall, and never tells the person an administrator has to add search.
…cked down

lockedDown in the organization's settings. Open: a person's connected apps are on for their own Bots, one press gives every action, apps are open to Bot owners, and the apps that need no sign-in are on for every Bot. Locked down: the earlier model, where an admin approves and one press gives reads. Switching to locked down takes nothing back unless takeBackWhatOpenGave is sent with it.
The organization's settings answer is closed to new fields for apps already released, so lockedDown moves to /settings/apps: any member reads it, an administrator changes it, and takeBackWhatOpenGave goes with it. everyBot on Routines or OpenBot settings changes nothing when true and is refused when false.
@davidmckayv
davidmckayv merged commit 47d6223 into main Nov 25, 2026
34 checks passed
@davidmckayv
davidmckayv deleted the spec/every-bot-app branch November 25, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant