Skip to content
Open
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
2 changes: 1 addition & 1 deletion .agents/skills/draft_conceptual/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ All headings (H1–H4) must use **sentence case**: capitalize only the first wor
## Existing examples

Read 2-3 of these strong examples to match the existing pattern:
- `src/content/docs/factories/deployment-patterns.mdx`
- `src/content/docs/factories/infrastructure.mdx`
- `src/content/docs/platform/index.mdx`
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ When readers can combine procedures from this page and related pages, read and c
- Do NOT include step-by-step procedures — link to a procedural or quickstart page instead
- Show real-world scenarios, not just abstract descriptions

**Existing examples**: `factories/deployment-patterns.mdx`, `platform/index.mdx`
**Existing examples**: `factories/infrastructure.mdx`, `platform/index.mdx`

**Template**: `.agents/templates/conceptual.md`

Expand Down
34 changes: 33 additions & 1 deletion scripts/validate-sidebar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,36 @@ for (const [source, destination] of [
assert.equal(matches[0].destination, destination);
assert.equal(matches[0].statusCode, 308);
}
console.log(`Sidebar OK: ${entries.length} tabs, ${groups} groups, ${hiddenTerminal.length} retained Terminal URLs, Platform ownership, redirects, and discovery.`);
const security = documentAt('factories/infrastructure-and-security');
assert.equal(security.querySelector('h1').textContent.trim(), 'Factory security');
assert.ok(security.querySelector('.sidebar-pane a[href="/factories/infrastructure-and-security/"]'));
for (const id of ['control-plane-and-execution-plane', 'network-controls', 'runners',
'choose-an-execution-host', 'managed-self-hosting-structures', 'choose-inference-independently',
'inference-options-for-factory-runs', 'zero-data-retention-zdr-for-factory-inference',
'provider-retention', 'choose-inference-covered-by-provider-zdr', 'understand-collection-and-storage',
'configure-your-factory', 'networking-for-byo-inference-endpoints', 'credential-boundaries',
'factory-roles-and-permissions', 'metering', 'deployment-checklist', 'related-pages']) {
assert.ok(security.getElementById(id), `lost original security fragment: ${id}`);
}
const infrastructure = documentAt('factories/infrastructure');
for (const id of ['choose-an-execution-model', 'warp-hosted-execution', 'what-it-looks-like',
'send-work-to-a-factory', 'managed-self-hosting', 'related-pages']) {
assert.ok(infrastructure.getElementById(id), `lost deployment fragment: ${id}`);
}
assert.ok(infrastructure.querySelector('main img[src*="cloud-agents-infra"]'), 'lost hosted diagram');
assert.ok(security.querySelector('main a[href="/factories/infrastructure/"]'));
assert.ok(infrastructure.querySelector('main a[href="/factories/infrastructure-and-security/"]'));
for (const prefix of ['/factories', '/platform', '/agent-platform/platform', '/agent-platform/cloud-agents']) {
for (const [suffix, destination] of [
['(/?)', '/factories/infrastructure/'], ['.md', '/factories/infrastructure.md'],
]) {
const source = `${prefix}/deployment-patterns${suffix}`;
const matches = redirects.filter((rule) => rule.source === source);
assert.equal(matches.length, 1, `missing or duplicate deployment redirect: ${source}`);
assert.equal(matches[0].destination, destination);
assert.equal(matches[0].statusCode, 308);
}
}
assert.ok(!redirects.some((rule) => rule.destination.replace(/\/$/, '') === '/factories/deployment-patterns'),
'legacy deployment redirect chain');
console.log(`Sidebar OK: ${entries.length} tabs, ${groups} groups, ${hiddenTerminal.length} retained Terminal URLs, Platform ownership, security fragments, and deployment redirects.`);
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Hybrid is right if:
## Related pages

* [Architecture reference](/platform/architecture/) - Diagrams of the stack, the run lifecycle, self-hosted execution, and data boundaries
* [Deployment patterns for Warp Factories](/factories/deployment-patterns/) - Compare Warp-hosted and managed self-hosted execution
* [Factory infrastructure](/factories/infrastructure/) - Compare Warp-hosted and managed self-hosted execution
* [Private networking](/enterprise/enterprise-features/private-networking/) - Connect private LLM gateways and MCP servers to Warp-hosted services
* [Security overview](/enterprise/security-and-compliance/security-overview/) - Data handling, encryption, and compliance details
* [Bring Your Own LLM](/enterprise/enterprise-features/bring-your-own-llm/) - Route inference through your own cloud infrastructure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ If the error persists after retries:
## Related pages

* [Cloud agents overview](/platform/) - How cloud agent execution works
* [Deployment patterns for Warp Factories](/factories/deployment-patterns/) - Execution models and infrastructure
* [Factory infrastructure](/factories/infrastructure/) - Compare execution models
58 changes: 0 additions & 58 deletions src/content/docs/factories/deployment-patterns.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion src/content/docs/factories/environments.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Linux container runs use a non-root user by default. See [configuring container
* [Troubleshooting cloud agent environments](/factories/environments/troubleshooting-environments/) - Fix setup, authorization, permissions, and image failures
* [Runners](/factories/runners/) - Configure the compute that hosts environments
* [Scheduled agents](/platform/triggers/scheduled-agents/) - Run cloud agents on a recurring cadence in a shared environment
* [Deployment patterns](/factories/deployment-patterns/) - Choose between Warp-hosted and self-hosted execution
* [Factory infrastructure](/factories/infrastructure/) - Choose between Warp-hosted and self-hosted execution
50 changes: 13 additions & 37 deletions src/content/docs/factories/infrastructure-and-security.mdx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
title: Factory infrastructure and security
title: Factory security
description: >-
Warp Factories separates execution, inference, and storage so you can choose
deployment boundaries while Warp coordinates each run.
Review execution, data, network, inference, and credential boundaries for
Warp Factories before configuring your factory.
sidebar:
label: "Infrastructure and security"
label: "Factory security"
---

Warp Factories lets you choose where code runs, which providers serve inference, where run data is stored, and which credentials each agent receives. Warp coordinates the work.
Warp Factories lets you choose where code runs, which providers serve inference, where run data is stored, and which credentials each agent receives. Review these boundaries separately: self-hosting execution doesn't automatically move inference or saved run data. For hosting comparisons and runner selection, see [Factory infrastructure](/factories/infrastructure/).

## Control plane and execution plane

Expand All @@ -22,7 +22,7 @@ The diagram shows managed self-hosting with customer-configured inference and ru

You can manage [factory and agent configuration as code](/factories/factory-as-code/) in a repository you control.

With managed self-hosting, repository checkouts, commands, and sandbox files stay on machines you control. Prompts, results, transcripts, attachments, artifacts, and telemetry still flow through Warp and can contain code context. The Warp Agent sends model requests through Warp to the configured inference provider. Claude Code and Codex call their providers directly from the execution environment. See [deployment patterns](/factories/deployment-patterns/), [execution security](/factories/self-hosting/security-and-networking/), and [data security and boundaries](/platform/architecture/#data-security-and-boundaries) for details.
With managed self-hosting, repository checkouts, commands, and sandbox files stay on machines you control. Prompts, results, transcripts, attachments, artifacts, and telemetry still flow through Warp and can contain code context. The Warp Agent sends model requests through Warp to the configured inference provider. Claude Code and Codex call their providers directly from the execution environment. See [Factory infrastructure](/factories/infrastructure/), [execution security](/factories/self-hosting/security-and-networking/), and [data security and boundaries](/platform/architecture/#data-security-and-boundaries) for details.

Self-hosting compute doesn't change storage automatically. Configure transcripts, artifacts, and prompt attachments independently through [self-hosted agent data storage](/factories/self-hosting/data-storage/); unmapped categories remain in Warp-managed storage. Warp still retains control-plane data, including configuration, lifecycle metadata, operational logs, and usage and billing records.

Expand All @@ -34,41 +34,17 @@ Restrict outbound access with [`networkPolicy` in the factory definition](/facto

For failed network requests, [fetch and interpret blocked-host diagnostics](/factories/troubleshooting/#network-requests-fail-during-a-run).

## Runners
For self-hosted outbound destinations and ports, see [network requirements](/factories/self-hosting/security-and-networking/#network-requirements).

A runner compute configuration selects the operating system, architecture, sandbox image, and vCPU and memory shape. The factory's [definition](/factories/factory-as-code/) supplies repositories, setup commands, and secrets. The factory definition sets the default runner with `agentDefaults.runner`. Individual agents and automations can override that default.
## Runners

The execution host determines how runner compute settings apply. These settings don't provision capacity for self-hosted execution. See [Runner settings by execution host](/factories/runners/#runner-settings-by-execution-host) for a settings comparison.
Runner configuration and execution hosting are separate choices. See [Runners in Factory infrastructure](/factories/infrastructure/#runners) for the compute settings and their relationship to the execution host.

## Choose an execution host

A factory runs its work on one of two execution hosts: Warp-hosted compute, or a self-hosted runner in the [managed self-hosting architecture](/factories/self-hosting/#managed-architecture).

| Decision area | Warp-hosted | Managed self-hosted |
| --- | --- | --- |
| **Compute** | Warp provisions the sandbox | Your team provisions the self-hosted runner |
| **Checkout and commands** | On Warp-managed compute | On your infrastructure |
| **Network** | Warp manages sandbox connectivity | The self-hosted runner connects outbound to Warp; no inbound firewall port |
| **Private services** | Must be reachable from the hosted sandbox | Reachable through the self-hosted runner's network access |
| **Operations** | Warp manages capacity and lifecycle | Your team manages capacity, isolation, updates, and availability |

Managed self-hosting requires an Enterprise plan. Task platforms depend on the backend: Docker uses a `linux/amd64` or `linux/arm64` daemon, Kubernetes uses Linux task nodes, and Direct uses the OS and architecture of the self-hosted runner's host. A native self-hosted runner on macOS or Windows can connect to a Linux Docker daemon; the task still runs on Linux. See [Runner settings by execution host](/factories/runners/#runner-settings-by-execution-host).

See the [managed prerequisites](/factories/self-hosting/#managed-prerequisites) for credentials, [network requirements](/factories/self-hosting/security-and-networking/#network-requirements) for outbound destinations and ports, and the [Self-hosting quickstart](/factories/self-hosting/quickstart/) to connect a self-hosted runner. The factory definition selects the connected self-hosted runner with [`workerHost`](/factories/factory-as-code/#agentdefaultsworkerhost). For a complete configuration with compatible compute settings, see [`self-hosted-worker`](https://github.com/warpdotdev/warp-factory-examples/tree/484a8b431d79407a4623b57503be1dd983080cf5/examples/self-hosted-worker).

Unmanaged self-hosted agents and other CLI agents can't serve as a factory's execution host, but they can exchange work with a factory through [Factory MCP](/factories/factory-mcp/).

### Managed self-hosting structures

The self-hosted runner's backend sets isolation and scheduling on your infrastructure:

| Backend | How factory runs execute |
| --- | --- |
| [Docker](/factories/self-hosting/managed-docker/) (default) | In a separate Docker container on the self-hosted runner's host |
| [Kubernetes](/factories/self-hosting/managed-kubernetes/) | As a Kubernetes Job in the self-hosted runner's namespace |
| [Direct](/factories/self-hosting/managed-direct/) | In a separate workspace on the self-hosted runner's host, sharing its OS and kernel |
<span id="managed-self-hosting-structures" />

For backend selection guidance, including Command and one-shot Direct options, see [Choosing a managed backend](/factories/self-hosting/#choosing-a-managed-backend).
Compare [Warp-hosted and managed self-hosted execution](/factories/infrastructure/#choose-an-execution-model), including responsibilities and backend isolation, before choosing an execution host. The data and credential boundaries on this page still apply; self-hosting compute alone does not move inference or stored run data.

## Choose inference independently

Expand Down Expand Up @@ -132,7 +108,7 @@ Factory roles don't control specification or pull request review. For factory de

## Metering

Warp meters hosted compute, Warp-provided inference, and [platform usage](/support-and-community/plans-and-billing/platform-credits/). Self-hosting removes Warp-hosted compute charges, and customer-supplied inference is billed directly by your provider. Platform charges still apply in both cases, and Warp's totals don't fully reflect external inference costs.
For how hosting and inference choices affect charges, see [Metering in Factory infrastructure](/factories/infrastructure/#metering) and the [platform usage reference](/support-and-community/plans-and-billing/platform-credits/).

## Deployment checklist

Expand All @@ -145,7 +121,7 @@ Warp meters hosted compute, Warp-provided inference, and [platform usage](/suppo
## Related pages

* [Zero data retention (ZDR) for factory inference](/factories/zero-data-retention/) - Review coverage, collection, and saved run data
* [Deployment patterns for Warp Factories](/factories/deployment-patterns/) - Compare execution models
* [Factory infrastructure](/factories/infrastructure/) - Compare execution models and choose runners
* [Runners for Warp Factories](/factories/runners/) - Configure compute and self-hosted runner compatibility
* [Self-hosting overview](/factories/self-hosting/) - Review managed backends and setup requirements
* [Security and networking](/factories/self-hosting/security-and-networking/) - Review data boundaries, outbound network access, and backend controls
Expand Down
Loading
Loading