@foldrun/core 11.2.2 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
1
+ import { type NetworkPolicy } from "./network.ts";
2
+ export type BrowseTier = "hosted" | "vendor" | "none";
3
+ /** Which tier a step's browser falls in: no vendor (or foldrun) is ours. */
4
+ export declare function browseTier(vendor: string | null | undefined): {
5
+ tier: BrowseTier;
6
+ title: string;
7
+ };
8
+ /** The trace's network line for a step that may browse, on an install with
9
+ * an egress proxy: the step's list, and the plain fact that it does not
10
+ * hold yet — for the browser or anything else in the step. */
11
+ export declare function browseNetworkLine(policy: NetworkPolicy, vendor: string | null | undefined): string;
@@ -0,0 +1,43 @@
1
+ // Browsing and `network:` (FOL-110, foldrun-docs/proposals/browse-egress.md).
2
+ //
3
+ // A step that may browse is not held to its `network:` list yet: the runner
4
+ // gives it no forward proxy (a browser in the sandbox cannot send credentials
5
+ // written into a proxy URL), so the browser — and every other program in that
6
+ // step — reaches sites directly. Until the browse service and hosted
7
+ // enforcement ship, the trace says so plainly, and says which of the three
8
+ // tiers this step's browser will fall in:
9
+ //
10
+ // hosted — foldrun's own browser (the account's browser pod, Lightpanda,
11
+ // Obscura, a live session): our network boundary will confine it.
12
+ // vendor — a vendor that takes a customer proxy (Browserbase, Steel,
13
+ // Hyperbrowser, Browserless): through the egress proxy, enforced
14
+ // once that vendor is qualified by our own tests.
15
+ // none — a vendor that always browses through its own network (Bright
16
+ // Data, ZenRows) or any DevTools address: never enforced; a
17
+ // restricted, enforced `network:` will refuse it.
18
+ import { findBrowserApi } from "./providers.js";
19
+ import { networkLine } from "./network.js";
20
+ /** Which tier a step's browser falls in: no vendor (or foldrun) is ours. */
21
+ export function browseTier(vendor) {
22
+ const name = (vendor ?? "").trim().toLowerCase();
23
+ if (!name || name === "foldrun")
24
+ return { tier: "hosted", title: "foldrun's own browser" };
25
+ const api = findBrowserApi(name);
26
+ if (!api)
27
+ return { tier: "none", title: name };
28
+ return { tier: api.egress === "proxy" ? "vendor" : "none", title: api.title };
29
+ }
30
+ /** The trace's network line for a step that may browse, on an install with
31
+ * an egress proxy: the step's list, and the plain fact that it does not
32
+ * hold yet — for the browser or anything else in the step. */
33
+ export function browseNetworkLine(policy, vendor) {
34
+ const { tier, title } = browseTier(vendor);
35
+ const what = networkLine(policy, true);
36
+ const now = " — not enforced in this step: it may browse, and browsing does not go through the egress proxy yet, so the browser and every other program in this step reach sites directly";
37
+ const later = tier === "hosted"
38
+ ? `. Its browser is ${title}: it comes under network: when hosted enforcement ships (FOL-110)`
39
+ : tier === "vendor"
40
+ ? `. Its browser (${title}) browses from the vendor's network: it comes under network: through the egress proxy once that vendor is qualified (FOL-110)`
41
+ : `. Its browser (${title}) always browses through its own network and cannot be held to network: — a restricted, enforced network: will refuse it (FOL-110)`;
42
+ return `${what}${now}${later}.`;
43
+ }
@@ -279,7 +279,10 @@ export function networkLine(policy, enforced) {
279
279
  }
280
280
  /** What the proxy says when it refuses a site. */
281
281
  export function refusalText(policy, host) {
282
- return `network: ${host} is not a site this step may reach (network: ${policy.level}). Add it to the agent's network: list — network: [${normalHost(host)}] — or set network: open.`;
282
+ // Only the one site, never "set network: open": that opened the whole web
283
+ // to an agent that needed one more host (FOL-110). The list form adds
284
+ // sites and keeps the level.
285
+ return `network: ${host} is not a site this step may reach (network: ${policy.level}). To allow it, add just this site to the agent's network: list — network: [${normalHost(host)}] — which keeps network: ${policy.level} for everything else.`;
283
286
  }
284
287
  /** The proxy variables a sandbox's programs read, for a forward-proxy URL
285
288
  * (`http://foldrun:<token>@host:port`). Both spellings: curl reads only the
@@ -186,6 +186,11 @@ export interface BrowserApi {
186
186
  /** How a session is reached: a REST call that returns the endpoint, or a
187
187
  * websocket URL the key goes straight into. */
188
188
  how: "session" | "direct";
189
+ /** Whether its browser can be sent through foldrun's egress proxy (FOL-110,
190
+ * foldrun-docs/proposals/browse-egress.md): "proxy" — the vendor takes a
191
+ * customer proxy, so it can come under `network:` once qualified; "own" —
192
+ * it always browses through the vendor's own network and never can. */
193
+ egress: "proxy" | "own";
189
194
  host: string;
190
195
  secret: string;
191
196
  secretFormat?: string;
@@ -108,27 +108,27 @@ export const FETCH_APIS = [
108
108
  tier: "unblocker", batch: 1, what: "the page rendered in a real browser (render_js) behind ScrapingBee's proxy pool; credits per call, more for JavaScript" },
109
109
  ];
110
110
  export const BROWSER_APIS = [
111
- { name: "browserbase", docs: "https://docs.browserbase.com/reference/api/create-a-session", checked: "2026-09-29", title: "Browserbase", how: "session", host: "api.browserbase.com", secret: "BROWSERBASE_API_KEY",
111
+ { name: "browserbase", docs: "https://docs.browserbase.com/reference/api/create-a-session", checked: "2026-09-29", title: "Browserbase", how: "session", egress: "proxy", host: "api.browserbase.com", secret: "BROWSERBASE_API_KEY",
112
112
  session: { proxy: { on: true, country: true, state: true, city: true, own: true, needsCountry: true }, captcha: true, stealth: true, region: ["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"], timeout: [60, 21600], keep: true, record: true, block: ["ads"], options: "body" },
113
113
  what: "hosted Chromium with stealth; POST /v1/sessions (X-BB-API-Key) returns connectUrl" },
114
- { name: "steel", docs: "https://docs.steel.dev/overview/sessions-api/quickstart", checked: "2026-09-29", gaps: "session field names are from the official steel-node SDK source; the API reference page is script-only", title: "Steel", how: "session", host: "api.steel.dev", secret: "STEEL_API_KEY",
114
+ { name: "steel", docs: "https://docs.steel.dev/overview/sessions-api/quickstart", checked: "2026-09-29", gaps: "session field names are from the official steel-node SDK source; the API reference page is script-only", title: "Steel", how: "session", egress: "proxy", host: "api.steel.dev", secret: "STEEL_API_KEY",
115
115
  session: { proxy: { on: true, country: true, state: true, city: true, own: true }, captcha: true, stealth: true, timeout: [15, 86400], keep: true, block: ["ads"], options: "body" },
116
116
  what: "hosted Chromium, open-source core; POST /v1/sessions (steel-api-key), then wss://connect.steel.dev?apiKey&sessionId" },
117
- { name: "hyperbrowser", docs: "https://hyperbrowser.ai/docs/api-reference/create-new-session.md", checked: "2026-09-29", title: "Hyperbrowser", how: "session", host: "api.hyperbrowser.ai", secret: "HYPERBROWSER_API_KEY",
117
+ { name: "hyperbrowser", docs: "https://hyperbrowser.ai/docs/api-reference/create-new-session.md", checked: "2026-09-29", title: "Hyperbrowser", how: "session", egress: "proxy", host: "api.hyperbrowser.ai", secret: "HYPERBROWSER_API_KEY",
118
118
  session: { proxy: { on: true, country: true, state: true, city: true, own: true, stateOrCity: true }, captcha: true, stealth: true, region: ["us", "us-central", "us-west", "us-east", "asia-south", "europe-west"], timeout: [60, 43200], keep: true, record: true, block: ["ads", "trackers", "cookies"], options: "body" },
119
119
  what: "hosted Chromium with built-in unblocking; a session returns its wsEndpoint" },
120
- { name: "browserless", docs: "https://docs.browserless.io/baas/connection-url-patterns.md", checked: "2026-09-29", title: "Browserless", how: "direct", host: "production-sfo.browserless.io", secret: "BROWSERLESS_TOKEN",
120
+ { name: "browserless", docs: "https://docs.browserless.io/baas/connection-url-patterns.md", checked: "2026-09-29", title: "Browserless", how: "direct", egress: "proxy", host: "production-sfo.browserless.io", secret: "BROWSERLESS_TOKEN",
121
121
  session: { proxy: { on: true, country: true, city: true, own: true }, captcha: true, stealth: true, region: ["sfo", "lon", "ams"], timeout: [1, 86400], block: ["ads"], options: "query" },
122
122
  what: "hosted Chrome; wss://production-sfo.browserless.io?token=… (other regions by name)",
123
123
  note: "SSPL-licensed: the free path is out for a paid service; the cloud is a plain vendor." },
124
- { name: "brightdata", docs: "https://docs.brightdata.com/products/scraping-browser/configuration.md", checked: "2026-09-29", lacks: ["tab"], gaps: "the limits are from a summary of the configuration page, not quoted verbatim", aliases: ["bright-data", "bright_data"], title: "Bright Data Scraping Browser", how: "direct", host: "brd.superproxy.io", secret: "BRIGHTDATA_BROWSER_AUTH",
124
+ { name: "brightdata", docs: "https://docs.brightdata.com/products/scraping-browser/configuration.md", checked: "2026-09-29", lacks: ["tab"], gaps: "the limits are from a summary of the configuration page, not quoted verbatim", aliases: ["bright-data", "bright_data"], title: "Bright Data Scraping Browser", how: "direct", egress: "own", host: "brd.superproxy.io", secret: "BRIGHTDATA_BROWSER_AUTH",
125
125
  session: { proxy: { always: true, country: true }, captcha: true, block: ["ads", "cookies"] },
126
126
  secretFormat: "the zone credentials as `brd-customer-<id>-zone-<zone>:<password>` — the whole user:pass, which goes into the websocket URL",
127
127
  what: "Chromium behind a residential proxy pool, port 9222 — the one worth paying for when a site refuses everything else" },
128
- { name: "cdp", docs: "https://chromedevtools.github.io/devtools-protocol/", checked: "2026-09-29", aliases: ["devtools"], title: "Any DevTools address", how: "direct", host: "(the address in the secret)", secret: "BROWSER_CDP_URL",
128
+ { name: "cdp", docs: "https://chromedevtools.github.io/devtools-protocol/", checked: "2026-09-29", aliases: ["devtools"], title: "Any DevTools address", how: "direct", egress: "own", host: "(the address in the secret)", secret: "BROWSER_CDP_URL",
129
129
  secretFormat: "the ws://, wss:// or http(s):// DevTools address, token included where the browser needs one",
130
130
  what: "any browser that serves the DevTools protocol — a Chrome started with --remote-debugging-port, a self-hosted pool, a vendor not listed here" },
131
- { name: "zenrows", docs: "https://docs.zenrows.com/browser-sessions/get-started/playwright.md", checked: "2026-09-29", aliases: ["zen-rows", "zen_rows"], title: "ZenRows Scraping Browser", how: "direct", host: "browser.zenrows.com", secret: "ZENROWS_API_KEY",
131
+ { name: "zenrows", docs: "https://docs.zenrows.com/browser-sessions/get-started/playwright.md", checked: "2026-09-29", aliases: ["zen-rows", "zen_rows"], title: "ZenRows Scraping Browser", how: "direct", egress: "own", host: "browser.zenrows.com", secret: "ZENROWS_API_KEY",
132
132
  session: { proxy: { always: true, country: true }, timeout: [60, 900], options: "query", refuses: ["user_agent", "device"] },
133
133
  what: "hosted Chromium with residential IPs and fingerprinting; wss://browser.zenrows.com?apikey=…" },
134
134
  ];
@@ -47,6 +47,7 @@ import { PromptLayers, promptCacheKey } from "./prompt-layers.js";
47
47
  import { loadCatalog, checkModel, clampEffort, catalogCost, findModel, tokenPriceOf } from "./catalog.js";
48
48
  import { resolveSecrets, getSecret, materializeSecrets, secretSites, isClientCertValue, clientCertOf, withoutHeldCerts, isIdentityValue, identityOf } from "./secrets.js";
49
49
  import { resolveNetwork, networkLine, networkEnforceWanted, proxyEnv, siteCovers, EGRESS_CA_ENV } from "./network.js";
50
+ import { browseNetworkLine } from "./browse-egress.js";
50
51
  import { materializeFileSecrets, cleanupFileSecrets } from "./secret-files.js";
51
52
  import { buildApiTools, secretsUsedByApi } from "./api-tools.js";
52
53
  import { buildA2ATools } from "./a2a-tools.js";
@@ -2783,7 +2784,9 @@ mayDefer) {
2783
2784
  // and its bound secrets materialise as they did before the door.
2784
2785
  const browses = scriptSpecs.some((sc) => sc.name === "web") && (!web.actions || web.actions.includes("browse"));
2785
2786
  const forward = lease?.proxy && !browses ? lease : null;
2786
- push("info", networkLine(network, forward ? forward.enforce === true : null));
2787
+ // A browsing step on an install with the door says it is not held to
2788
+ // its list yet, and which tier its browser falls in (browse-egress.ts).
2789
+ push("info", browses && lease?.proxy ? browseNetworkLine(network, clockEnv.FOLDRUN_BROWSER_VENDOR) : networkLine(network, forward ? forward.enforce === true : null));
2787
2790
  const bound = forward ? Object.keys(boundSites).filter((name) => name in liveSecrets) : [];
2788
2791
  for (const name of bound) {
2789
2792
  for (const site of boundSites[name])
@@ -370,8 +370,10 @@ export interface AgentInfo {
370
370
  * the default (open when it may fetch or browse the web, else trusted).
371
371
  * `implied` here is its `apis:` hosts; a run also adds its MCP servers',
372
372
  * its web providers' and its bound secrets' sites. */
373
+ /** browses: the step may browse — not held to its list yet (FOL-110). */
373
374
  network: NetworkPolicy & {
374
375
  readsWeb: boolean;
376
+ browses: boolean;
375
377
  };
376
378
  /** Tools this agent declares inline rather than in `tools:` — `apis:`,
377
379
  * `scripts:` and `mcpServers:` names — which a limit may also name. */
package/dist/src/store.js CHANGED
@@ -1175,6 +1175,9 @@ export function listAgents(tenant, workspace) {
1175
1175
  ],
1176
1176
  }),
1177
1177
  readsWeb,
1178
+ // The runner's own test (runner.ts `browses`): such a step gets no
1179
+ // forward proxy yet, so its list does not hold (FOL-110).
1180
+ browses: tools.includes("web") && (!actions || actions.includes("browse")),
1178
1181
  };
1179
1182
  return {
1180
1183
  network,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldrun/core",
3
- "version": "11.2.2",
3
+ "version": "12.0.0",
4
4
  "description": "Agents are just folders. The format, the runner, the checks.",
5
5
  "license": "FSL-1.1-ALv2",
6
6
  "type": "module",
@@ -0,0 +1,47 @@
1
+ // Browsing and `network:` (FOL-110, foldrun-docs/proposals/browse-egress.md).
2
+ //
3
+ // A step that may browse is not held to its `network:` list yet: the runner
4
+ // gives it no forward proxy (a browser in the sandbox cannot send credentials
5
+ // written into a proxy URL), so the browser — and every other program in that
6
+ // step — reaches sites directly. Until the browse service and hosted
7
+ // enforcement ship, the trace says so plainly, and says which of the three
8
+ // tiers this step's browser will fall in:
9
+ //
10
+ // hosted — foldrun's own browser (the account's browser pod, Lightpanda,
11
+ // Obscura, a live session): our network boundary will confine it.
12
+ // vendor — a vendor that takes a customer proxy (Browserbase, Steel,
13
+ // Hyperbrowser, Browserless): through the egress proxy, enforced
14
+ // once that vendor is qualified by our own tests.
15
+ // none — a vendor that always browses through its own network (Bright
16
+ // Data, ZenRows) or any DevTools address: never enforced; a
17
+ // restricted, enforced `network:` will refuse it.
18
+
19
+ import { findBrowserApi } from "./providers.ts";
20
+ import { networkLine, type NetworkPolicy } from "./network.ts";
21
+
22
+ export type BrowseTier = "hosted" | "vendor" | "none";
23
+
24
+ /** Which tier a step's browser falls in: no vendor (or foldrun) is ours. */
25
+ export function browseTier(vendor: string | null | undefined): { tier: BrowseTier; title: string } {
26
+ const name = (vendor ?? "").trim().toLowerCase();
27
+ if (!name || name === "foldrun") return { tier: "hosted", title: "foldrun's own browser" };
28
+ const api = findBrowserApi(name);
29
+ if (!api) return { tier: "none", title: name };
30
+ return { tier: api.egress === "proxy" ? "vendor" : "none", title: api.title };
31
+ }
32
+
33
+ /** The trace's network line for a step that may browse, on an install with
34
+ * an egress proxy: the step's list, and the plain fact that it does not
35
+ * hold yet — for the browser or anything else in the step. */
36
+ export function browseNetworkLine(policy: NetworkPolicy, vendor: string | null | undefined): string {
37
+ const { tier, title } = browseTier(vendor);
38
+ const what = networkLine(policy, true);
39
+ const now = " — not enforced in this step: it may browse, and browsing does not go through the egress proxy yet, so the browser and every other program in this step reach sites directly";
40
+ const later =
41
+ tier === "hosted"
42
+ ? `. Its browser is ${title}: it comes under network: when hosted enforcement ships (FOL-110)`
43
+ : tier === "vendor"
44
+ ? `. Its browser (${title}) browses from the vendor's network: it comes under network: through the egress proxy once that vendor is qualified (FOL-110)`
45
+ : `. Its browser (${title}) always browses through its own network and cannot be held to network: — a restricted, enforced network: will refuse it (FOL-110)`;
46
+ return `${what}${now}${later}.`;
47
+ }
package/src/network.ts CHANGED
@@ -312,7 +312,10 @@ export function networkLine(policy: NetworkPolicy, enforced: boolean | null): st
312
312
 
313
313
  /** What the proxy says when it refuses a site. */
314
314
  export function refusalText(policy: Pick<NetworkPolicy, "level">, host: string): string {
315
- return `network: ${host} is not a site this step may reach (network: ${policy.level}). Add it to the agent's network: list — network: [${normalHost(host)}] — or set network: open.`;
315
+ // Only the one site, never "set network: open": that opened the whole web
316
+ // to an agent that needed one more host (FOL-110). The list form adds
317
+ // sites and keeps the level.
318
+ return `network: ${host} is not a site this step may reach (network: ${policy.level}). To allow it, add just this site to the agent's network: list — network: [${normalHost(host)}] — which keeps network: ${policy.level} for everything else.`;
316
319
  }
317
320
 
318
321
  /** The proxy variables a sandbox's programs read, for a forward-proxy URL
package/src/providers.ts CHANGED
@@ -285,6 +285,11 @@ export interface BrowserApi {
285
285
  /** How a session is reached: a REST call that returns the endpoint, or a
286
286
  * websocket URL the key goes straight into. */
287
287
  how: "session" | "direct";
288
+ /** Whether its browser can be sent through foldrun's egress proxy (FOL-110,
289
+ * foldrun-docs/proposals/browse-egress.md): "proxy" — the vendor takes a
290
+ * customer proxy, so it can come under `network:` once qualified; "own" —
291
+ * it always browses through the vendor's own network and never can. */
292
+ egress: "proxy" | "own";
288
293
  host: string;
289
294
  secret: string;
290
295
  secretFormat?: string;
@@ -293,27 +298,27 @@ export interface BrowserApi {
293
298
  }
294
299
 
295
300
  export const BROWSER_APIS: readonly BrowserApi[] = [
296
- { name: "browserbase", docs: "https://docs.browserbase.com/reference/api/create-a-session", checked: "2026-09-29", title: "Browserbase", how: "session", host: "api.browserbase.com", secret: "BROWSERBASE_API_KEY",
301
+ { name: "browserbase", docs: "https://docs.browserbase.com/reference/api/create-a-session", checked: "2026-09-29", title: "Browserbase", how: "session", egress: "proxy", host: "api.browserbase.com", secret: "BROWSERBASE_API_KEY",
297
302
  session: { proxy: { on: true, country: true, state: true, city: true, own: true, needsCountry: true }, captcha: true, stealth: true, region: ["us-west-2", "us-east-1", "eu-central-1", "ap-southeast-1"], timeout: [60, 21600], keep: true, record: true, block: ["ads"], options: "body" },
298
303
  what: "hosted Chromium with stealth; POST /v1/sessions (X-BB-API-Key) returns connectUrl" },
299
- { name: "steel", docs: "https://docs.steel.dev/overview/sessions-api/quickstart", checked: "2026-09-29", gaps: "session field names are from the official steel-node SDK source; the API reference page is script-only", title: "Steel", how: "session", host: "api.steel.dev", secret: "STEEL_API_KEY",
304
+ { name: "steel", docs: "https://docs.steel.dev/overview/sessions-api/quickstart", checked: "2026-09-29", gaps: "session field names are from the official steel-node SDK source; the API reference page is script-only", title: "Steel", how: "session", egress: "proxy", host: "api.steel.dev", secret: "STEEL_API_KEY",
300
305
  session: { proxy: { on: true, country: true, state: true, city: true, own: true }, captcha: true, stealth: true, timeout: [15, 86400], keep: true, block: ["ads"], options: "body" },
301
306
  what: "hosted Chromium, open-source core; POST /v1/sessions (steel-api-key), then wss://connect.steel.dev?apiKey&sessionId" },
302
- { name: "hyperbrowser", docs: "https://hyperbrowser.ai/docs/api-reference/create-new-session.md", checked: "2026-09-29", title: "Hyperbrowser", how: "session", host: "api.hyperbrowser.ai", secret: "HYPERBROWSER_API_KEY",
307
+ { name: "hyperbrowser", docs: "https://hyperbrowser.ai/docs/api-reference/create-new-session.md", checked: "2026-09-29", title: "Hyperbrowser", how: "session", egress: "proxy", host: "api.hyperbrowser.ai", secret: "HYPERBROWSER_API_KEY",
303
308
  session: { proxy: { on: true, country: true, state: true, city: true, own: true, stateOrCity: true }, captcha: true, stealth: true, region: ["us", "us-central", "us-west", "us-east", "asia-south", "europe-west"], timeout: [60, 43200], keep: true, record: true, block: ["ads", "trackers", "cookies"], options: "body" },
304
309
  what: "hosted Chromium with built-in unblocking; a session returns its wsEndpoint" },
305
- { name: "browserless", docs: "https://docs.browserless.io/baas/connection-url-patterns.md", checked: "2026-09-29", title: "Browserless", how: "direct", host: "production-sfo.browserless.io", secret: "BROWSERLESS_TOKEN",
310
+ { name: "browserless", docs: "https://docs.browserless.io/baas/connection-url-patterns.md", checked: "2026-09-29", title: "Browserless", how: "direct", egress: "proxy", host: "production-sfo.browserless.io", secret: "BROWSERLESS_TOKEN",
306
311
  session: { proxy: { on: true, country: true, city: true, own: true }, captcha: true, stealth: true, region: ["sfo", "lon", "ams"], timeout: [1, 86400], block: ["ads"], options: "query" },
307
312
  what: "hosted Chrome; wss://production-sfo.browserless.io?token=… (other regions by name)",
308
313
  note: "SSPL-licensed: the free path is out for a paid service; the cloud is a plain vendor." },
309
- { name: "brightdata", docs: "https://docs.brightdata.com/products/scraping-browser/configuration.md", checked: "2026-09-29", lacks: ["tab"], gaps: "the limits are from a summary of the configuration page, not quoted verbatim", aliases: ["bright-data", "bright_data"], title: "Bright Data Scraping Browser", how: "direct", host: "brd.superproxy.io", secret: "BRIGHTDATA_BROWSER_AUTH",
314
+ { name: "brightdata", docs: "https://docs.brightdata.com/products/scraping-browser/configuration.md", checked: "2026-09-29", lacks: ["tab"], gaps: "the limits are from a summary of the configuration page, not quoted verbatim", aliases: ["bright-data", "bright_data"], title: "Bright Data Scraping Browser", how: "direct", egress: "own", host: "brd.superproxy.io", secret: "BRIGHTDATA_BROWSER_AUTH",
310
315
  session: { proxy: { always: true, country: true }, captcha: true, block: ["ads", "cookies"] },
311
316
  secretFormat: "the zone credentials as `brd-customer-<id>-zone-<zone>:<password>` — the whole user:pass, which goes into the websocket URL",
312
317
  what: "Chromium behind a residential proxy pool, port 9222 — the one worth paying for when a site refuses everything else" },
313
- { name: "cdp", docs: "https://chromedevtools.github.io/devtools-protocol/", checked: "2026-09-29", aliases: ["devtools"], title: "Any DevTools address", how: "direct", host: "(the address in the secret)", secret: "BROWSER_CDP_URL",
318
+ { name: "cdp", docs: "https://chromedevtools.github.io/devtools-protocol/", checked: "2026-09-29", aliases: ["devtools"], title: "Any DevTools address", how: "direct", egress: "own", host: "(the address in the secret)", secret: "BROWSER_CDP_URL",
314
319
  secretFormat: "the ws://, wss:// or http(s):// DevTools address, token included where the browser needs one",
315
320
  what: "any browser that serves the DevTools protocol — a Chrome started with --remote-debugging-port, a self-hosted pool, a vendor not listed here" },
316
- { name: "zenrows", docs: "https://docs.zenrows.com/browser-sessions/get-started/playwright.md", checked: "2026-09-29", aliases: ["zen-rows", "zen_rows"], title: "ZenRows Scraping Browser", how: "direct", host: "browser.zenrows.com", secret: "ZENROWS_API_KEY",
321
+ { name: "zenrows", docs: "https://docs.zenrows.com/browser-sessions/get-started/playwright.md", checked: "2026-09-29", aliases: ["zen-rows", "zen_rows"], title: "ZenRows Scraping Browser", how: "direct", egress: "own", host: "browser.zenrows.com", secret: "ZENROWS_API_KEY",
317
322
  session: { proxy: { always: true, country: true }, timeout: [60, 900], options: "query", refuses: ["user_agent", "device"] },
318
323
  what: "hosted Chromium with residential IPs and fingerprinting; wss://browser.zenrows.com?apikey=…" },
319
324
  ];
package/src/runner.ts CHANGED
@@ -98,6 +98,7 @@ import { PromptLayers, promptCacheKey } from "./prompt-layers.ts";
98
98
  import { loadCatalog, checkModel, clampEffort, catalogCost, findModel, tokenPriceOf, type Catalog, type TokenPrice } from "./catalog.ts";
99
99
  import { resolveSecrets, getSecret, materializeSecrets, secretSites, isClientCertValue, clientCertOf, withoutHeldCerts, isIdentityValue, identityOf } from "./secrets.ts";
100
100
  import { resolveNetwork, networkLine, networkEnforceWanted, proxyEnv, siteCovers, EGRESS_CA_ENV } from "./network.ts";
101
+ import { browseNetworkLine } from "./browse-egress.ts";
101
102
  import { materializeFileSecrets, cleanupFileSecrets } from "./secret-files.ts";
102
103
  import { buildApiTools, secretsUsedByApi } from "./api-tools.ts";
103
104
  import { buildA2ATools } from "./a2a-tools.ts";
@@ -2990,7 +2991,9 @@ async function runStep(
2990
2991
  // and its bound secrets materialise as they did before the door.
2991
2992
  const browses = scriptSpecs.some((sc) => sc.name === "web") && (!web.actions || web.actions.includes("browse"));
2992
2993
  const forward = lease?.proxy && !browses ? lease : null;
2993
- push("info", networkLine(network, forward ? forward.enforce === true : null));
2994
+ // A browsing step on an install with the door says it is not held to
2995
+ // its list yet, and which tier its browser falls in (browse-egress.ts).
2996
+ push("info", browses && lease?.proxy ? browseNetworkLine(network, clockEnv.FOLDRUN_BROWSER_VENDOR) : networkLine(network, forward ? forward.enforce === true : null));
2994
2997
  const bound = forward ? Object.keys(boundSites).filter((name) => name in liveSecrets) : [];
2995
2998
  for (const name of bound) {
2996
2999
  for (const site of boundSites[name]) addGrant(grant, name, liveSecrets[name], site);
package/src/store.ts CHANGED
@@ -1048,7 +1048,8 @@ export interface AgentInfo {
1048
1048
  * the default (open when it may fetch or browse the web, else trusted).
1049
1049
  * `implied` here is its `apis:` hosts; a run also adds its MCP servers',
1050
1050
  * its web providers' and its bound secrets' sites. */
1051
- network: NetworkPolicy & { readsWeb: boolean };
1051
+ /** browses: the step may browse — not held to its list yet (FOL-110). */
1052
+ network: NetworkPolicy & { readsWeb: boolean; browses: boolean };
1052
1053
  /** Tools this agent declares inline rather than in `tools:` — `apis:`,
1053
1054
  * `scripts:` and `mcpServers:` names — which a limit may also name. */
1054
1055
  inlineTools: string[];
@@ -1664,6 +1665,9 @@ export function listAgents(tenant: string, workspace: string): AgentInfo[] {
1664
1665
  ],
1665
1666
  }),
1666
1667
  readsWeb,
1668
+ // The runner's own test (runner.ts `browses`): such a step gets no
1669
+ // forward proxy yet, so its list does not hold (FOL-110).
1670
+ browses: tools.includes("web") && (!actions || actions.includes("browse")),
1667
1671
  };
1668
1672
  return {
1669
1673
  network,