# Tested on a fleet, published as numbers.

> On every push, 6 real agents on the CI machine run the end-to-end flows and the chaos set; the nightly run on six Hetzner servers (amd64 and arm64) is being brought up and has not finished a run yet; every release measures what Unrent costs an idle server and stops if it grew more than 20 %.

URL: https://unrent.dev/security/fleet/

## The latest run

Run f9ce on 2026-11-20 (local, commit 85615e5): 17 passed, 0 failed, 10 covered by other jobs, in 647 s.

Flows (F1–F19) and chaos

| # | Kind | What | Result | Seconds |
| --- | --- | --- | --- | --- |
| F1 | Flow | Sign up with a passkey, create an org, invite a member who accepts; roles enforced; audit rows | Pass | 0.8 |
| F2 | Flow | Add BYO servers: enroll every server, connect, baseline plan | Pass | 2.1 |
| F3 | Flow | Provision on Hetzner from the console | Pass | 13.5 |
| F4 | Flow | Adopt in observe mode: the scan reports and changes nothing | Pass | 1.8 |
| F5 | Flow | Connect GitHub, bind safely, pick a repository | Covered by another job |  |
| F6 | Flow | Deploy an app, default route, custom domain, zero-downtime redeploy | Pass | 45.2 |
| F7 | Flow | Postgres, backups to a storage target, first drill | Covered by another job |  |
| F8 | Flow | Restore to scratch at time T, promote with a passkey, undo | Covered by another job |  |
| F10 | Flow | Staging and production; production moved to a second server; same digest | Covered by another job |  |
| F11 | Flow | Secrets: sealed in the browser, deployed, never in clear in the control plane | Pass | 3.2 |
| F13 | Flow | Coding agent through MCP; a destructive request waits for a passkey | Covered by another job |  |
| F14 | Flow | Explain this failure | Covered by another job |  |
| F15 | Flow | Agent update rollout with a bad version: auto-revert, rollout halted | Covered by another job |  |
| F17 | Flow | Open sign-up: wrong code, reused sign-up and a registered address never create an account | Pass | 0.9 |
| F18 | Flow | Staff: suspend and unsuspend an org | Covered by another job |  |
| F19 | Flow | Abuse report on a default URL, takedown, restore | Covered by another job |  |
| F20 | Flow | Public TCP and UDP ports over IPv6: answered from the listed server only, reported, closed | Covered by another job |  |
| do-restart | Chaos | DO restart: the Worker and every Durable Object restart while jobs are in flight | Pass | 44.9 |
| agent-kill | Chaos | Agent kill: SIGKILL both processes; queued work runs once after the restart; disconnected alert | Pass | 116.4 |
| disk-full | Chaos | Disk full: the agent keeps its connection, jobs end cleanly, the disk alert fires and resolves | Pass | 19.3 |
| clock-skew | Chaos | Clock skew: more than 2 minutes off, only observe jobs run; fixed, everything runs again | Pass | 10 |
| clone | Chaos | Cloned agent: both copies quarantined, no work delivered, re-enrollment works | Pass | 16.7 |
| docker-upgrade | Chaos | Docker upgrade: the daemon restarts under the agent; apps come back and are served; deploys work after | Pass | 2.8 |
| reconnect-storm | Chaos | Partition and reconnect storm: every link cut at once (shown stale, then recovered); every agent restarted at once (3 rounds) | Pass | 96.1 |
| F9 | Flow | Cron: create, run now, a scheduled run while the control plane is down | Pass | 131.4 |
| F12 | Flow | Alerts: disk, server disconnected, service down; email and signed webhook | Pass | 18.5 |
| F16 | Flow | Control plane outage during jobs: workloads unaffected, jobs resume, no duplicate execution | Pass | 0 |

## What Unrent costs an idle server

The agent (unrentd and unrent-exec), the ingress (Caddy) and the local registry, idle, with a 2G memory limit, sampled for 121 s.

Resident memory and CPU

| Component | RSS MiB | Max MiB | CPU % of one core |
| --- | --- | --- | --- |
| unrentd | 48.4 | 49.4 | 0.025 |
| unrent-exec | 92.7 | 97.8 | 0.182 |
| caddy | 49.6 | 51.3 | 0 |
| registry | 46.8 | 48.2 | 0.008 |
| Total | 237.5 | 246.7 | 0.215 |

A release that uses more than 20 % more than the committed baseline does not ship.

## The chaos set

- **Control plane restart:** every agent reconnects, every job finishes exactly once, apps keep serving.
- **Agent killed:** work queued meanwhile runs once after it comes back; the disconnected alert fires and resolves.
- **Disk full:** the agent stays connected, jobs end cleanly, the disk alert fires and resolves.
- **Clock skew:** more than 2 minutes off, only read-only jobs run.
- **Cloned server:** both copies are quarantined and get no work until the server is enrolled again.
- **Docker upgrade, reconnect storm:** apps come back, every agent reconnects.

- [How the fleet runs (docs)](https://unrent.dev/docs/)
- [Security model](https://unrent.dev/security/)

## Questions

### How is Unrent tested before a release?

On every push, 6 real agents on the CI machine run the end-to-end flows and the chaos set: a control plane restart, a killed agent, a full disk, clock skew, a cloned server, a Docker upgrade and a reconnect storm.

### What stops a release that makes the agent heavier?

Every release measures what Unrent costs an idle server. A release that uses more than 20 % more than the committed baseline does not ship.
