Skip to content

Browser Policy and Budgets 🟑 BETA

Confirm that browser automation is bounded by the policy crate and that a browser task cannot silently exceed its page or credential budget.

Admin guide Β· browser policy runbook

When to use Before you start Steps Verify Roll back
Enabling browser tasks, after a policy change Browser app enabled, policy crate compiled Read the policy, test a task, inspect enforcement Budget enforced, no credential-page capture Restore the previous policy

When to use

Use this runbook before allowing an agent to drive a browser, and whenever a browser task is suspected of visiting a credential page or ignoring a budget.

Before you start

  • The policy lives in botserver/crates/botbrowserpolicy/ (budget.rs holds the budget type). The browser adapter is botserver/crates/botbrowser/src/agent.rs; the generated surface is the browser API reference.
  • The browser app is described in the suite browser app; limits that apply to every request are in system limits.
  • A policy is enforced by code: a value read into a variable that nothing branches on is not a limit. Check the consumer before claiming a budget is active.

Steps

# 1. Read the policy source rather than a prose description of it.
sed -n '1,200p' botserver/crates/botbrowserpolicy/src/budget.rs

# 2. Confirm the adapter consults the policy.
grep -rn "botbrowserpolicy\|budget" botserver/crates/botbrowser/src/agent.rs

# 3. Run a single browser task and watch for a budget refusal.
#    Execute one action at a time; a long batch hides where the limit fired.
grep -E "browser|budget|WARN|ERROR" botserver.log | tail -30

Verify

Check Command / surface Pass condition
Policy source budget.rs present budget type and limits defined in code
Consumer grep in botbrowser adapter branches on the policy
Credential-page guard browser task pointed at a sign-in page task refused before acting
Budgets one task at a time over-budget task stops with a refusal
Health curl -s -o /dev/null -w '%{http_code}' http://localhost:8080/health 200

Roll back

πŸ”΄ Restore the previous policy source and redeploy through the deploy runbook. Disable the browser app until the rollback is verified; record an unexpected capture through incident response.