Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ COMPUTER_TOKEN=
# `enforce` blocks; `dry-run` decides and records but lets everything through, so a new rule can be
# tried against real traffic before it starts refusing anybody's work.
#
# A rule can also be a Cedar policy, which is how rules are written from now on: a `forbid` in
# `deny`, a `permit` in `allow`, the intent as the action and the attributes above in `context`,
# text other than ids lowercased. CEL rules like the one below keep working for 12 months. A Cedar
# rule that doesn't validate, or sits in the wrong list, stops the server starting. For example:
# "deny":["forbid (principal, action == OpenBot::Action::\"run_command\", resource) when { context.initiator.kind != \"person\" };"]
#
# AGENT_COMPUTER_POLICY={"mode":"enforce","deny":["(intent == \"activate\" && contains(element.name, \"submit\")) || ((tool.name == \"computer_key\" || tool.name == \"computer_type\") && intent == \"activate\")"],"allow":["true"]}

# How long one action waits for its element, in ms. Read by agent-computer, not the server.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ jobs:
app/tests/audit-computer-limit-layout.test.tsx
app/tests/bot-orb-one-color.test.tsx
app/tests/bot-screen-record-layout.test.tsx
app/tests/boundaries-screens-layout.test.tsx
app/tests/checkbox-contrast.test.tsx
app/tests/compact-avatar-layout.test.tsx
app/tests/composer-dictation-notice-layout.test.tsx
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ Old addresses redirect to the pages above:
- **A computer per person**: the supervisor gives each person their own container, with a folder and browser profile for each of their Bots. Tick Isolated on a Bot to give it a container of its own. Set `COMPUTER_RUNTIME=runsc` to run them under gVisor where the host supports it.
- **A shell, not just a browser**: a Bot can run a command in its workspace, install what it needs, and process a file it saved. Through the same gate as everything else, so a rule can refuse a shell outright or refuse particular commands, and the command is on the record either way. The command inherits PATH, locale, terminal and proxy variables, not the rest of the deployment's environment.
- **The gateway is the only way in**: it resolves the target from a server-held snapshot, evaluates the policy, writes the audit row, and only then calls the computer. There is no path that acts without the record existing first.
- **CEL policy, fail closed**: rules can inspect `tool.name`, `intent`, `bot.id`, `actor.id`, `page.url`, `page.host`, `element.*`, `key`, `command`, `file.*`, `mcp.*` and `initiator.*` (what started the run, so a rule can refuse a scheduled routine what it would allow a person). Deny is evaluated before allow, a missing policy permits nothing, and a broken rule refuses rather than opens.
- **Cedar policy, fail closed**: rules are [Cedar](https://docs.cedarpolicy.com/) policies, checked against OpenBot's schema when they are saved, and can inspect `tool.name`, `intent`, `bot.id`, `actor.id`, `page.url`, `page.host`, `element.*`, `key`, `command`, `file.*`, `mcp.*` and `initiator.*` (what started the run, so a rule can refuse a scheduled routine what it would allow a person). Forbid is evaluated before permit, a missing policy permits nothing, and a rule that can't be evaluated refuses rather than opens. Rules written in CEL keep working, and move to Cedar once a Cedar rule decides the same.
- **Watch what it is doing**: the screen shows what a Bot is looking at, and the Activity list under it shows what it ran, read and saved in this conversation, with the output. A command line in the transcript opens to the same thing. A saved file shows its path and size, never its contents.
- **Take the wheel**: a Bot that hits a login wall or a 2FA prompt asks for help. Control is handed over in the same panel and recorded as `computer.help_requested`, `computer.control_taken` and `computer.control_released`. While a person is driving, Bot actions are refused rather than queued.
- **Secrets never enter the transcript**: the trail records that a secret was requested and how long it was, not what it said.
Expand Down
Loading
Loading