Skip to main content

Module browser_bypass_routes

Module browser_bypass_routes 

Source
Expand description

The routes of Bypass (docs/specs/SPEC_BROWSER_PANE_BYPASS_2026_10_16.md): an agent’s request_bypass and end_bypass, the person’s Bypass button and End bypass through the host, and the check that lets a committing click through without asking. The grants themselves are browser_bypass.

Functions§

ask_is_payment 🔒
Does the committing click ask describes pay? The element’s text after its name is judged with the name, so a payment word on any line asks (roadblocks report R7). A control that submits a form (it has an action, or that is why it asks) is judged on its name as it is.
bypass_pane 🔒
The pane a bypass for target is recorded on: the pane itself, or for a popup window (which has no AgentMux header of its own) its opener. A popup pane has its own header, so it has its own grant (bypass spec §4.2).
bypassed_click 🔒
The click ask describes (a committing click’s needs_approval), made without the person’s approval if they granted agent a bypass on the site the page is on (bypass spec §4.1). approved is the act request to send for it. page is the address the host read from the page itself. A payment still asks (§11.2). None: ask as usual. log describes the click for the pane’s action log. route is the host route that makes the click (act, or press for Enter and Space taken as one).
form_leaves_the_site 🔒
Does the form this click submits send its fields to a site other than the page’s? The person’s grant is for the site they gave, and a fake form on it can point action anywhere (now with a secret in its fields), so such a click always asks. A click with no form has no action.
granted 🔒
The answer to a request that was granted.
granted_asked_for 🔒
A grant that was already there answers a request for it. It lasts what was asked or less: an ask for fewer minutes cuts it, and the answer says so.
granted_cut 🔒
A grant, and (when an earlier one was cut to what was asked) the minutes it had left before.
handle_host_browser_bypass 🔒
POST /api/v1/host/browser_bypass — the person’s Bypass button and End bypass, relayed by the CEF host (bypass spec §5). Only the host can call it: an agent holding the instance auth key gets 403, so no agent can grant itself a bypass. Body {block_id, on, minutes?, agent, origins}: agent and origins are what the confirmation showed; the grant is made only if they are still true.
handle_ui_browser_end_bypass 🔒
POST /api/v1/ui/browser/end_bypass — backs Browser’s end_bypass: an agent ends its own bypass when its job is done. An agent can end a grant, never start one.
handle_ui_browser_request_bypass 🔒
POST /api/v1/ui/browser/request_bypass — backs Browser’s request_bypass (SPEC_BROWSER_PANE_BYPASS_2026_10_16.md §6): a banner asks the person to let this agent act without asking first, on the site the pane shows, for a while; the call waits for their answer. Only their click in the pane, relayed by the host, grants it.
is_browser_pane 🔒
Is block_id a browser pane?
page_url 🔒
The address target (a pane or popup window) shows, as the host reports it from the browser’s own record of the page: never block meta, which a client can write. Not the agent’s eval: that scans the whole page for secrets first, which on a large page outlasts the person’s button.
payment_exception 🔒
The click ask asks although auto-approve is on for its site, because it pays: the words to add to the banner’s “Asked because”, so that it doesn’t read as auto-approve being broken (#47625).