# Fleet campaigns and safe rollout

Ship / Pillar 4. Breadcrumb: [Home](https://osty.dev/) / Ship

Osty Ship turns a verified fix into merged, deployed code across hundreds of repositories under your `.osty/policy.yaml` limits. Temporal campaigns run fast-track and weekly maintenance trains, AI migrations stay capped at `VERIFIED_PR`, canaries need live metrics and a traffic floor, and the kill switch never blindly rolls back a database migration.

Table: Autonomy ladder: what Osty may do at each level

| Level | What Osty may do | Eligible changes | Required gates |
| --- | --- | --- | --- |
| `OBSERVE` | Report and plan without changing anything. | None | None |
| `VERIFIED_PR` | Open pull requests for people to merge. | Any change, including AI-written migrations, which can never go higher. | Policy Patch Verifier and side-effect-free CI. |
| `AUTO_MERGE_SAFE` | Merge without a person. | Deterministic changes only: lockfiles, `@sha256` base-image pins and mechanical compiler AST codemods. | Tier cap allows it, green CI. |
| `CANARY_ROLLOUT` | Deploy behind a canary and roll back on a breach. | Deterministic changes only. | Live metrics provider and at least 50 canary requests before rate and latency are judged. |

Validate the policy that caps every campaign:

```bash
osty policy validate .osty/policy.yaml
```

## How does Osty patch a CVE across hundreds of repositories at once?

Each fix runs as a durable Temporal campaign that survives restarts and pauses for approvals without losing state. Campaign workflows are covered by deterministic replay tests so a code change cannot silently alter an in-flight campaign.

Table: Campaign kinds

| Campaign | Used for |
| --- | --- |
| `CVE_FAST_TRACK` | Critical and High fixes, and known-exploited (KEV) fixes with a `CLEAN` verdict that skip the cooldown. |
| `MAINTENANCE_TRAIN` | Medium and Low bumps coalesced into one weekly batch on a schedule you set. |
| `BASE_IMAGE_CASCADE` | Base-image patches rolled out in topological waves from [Plan](https://osty.dev/plan). |
| `SUPPLY_CHAIN_KILL_SWITCH` | Containment and rollback after a `CONFIRMED_MALICIOUS` verdict. |

## How does Osty stop an AI migration agent from being prompt-injected by a changelog?

Upstream changelogs, READMEs and release notes never reach an agent that has write tools or network access. Breaking-change claims are extracted into a fixed schema by a tool-less step and must match a compiler API diff before they can drive a migration.

The migration agent runs in a sandbox with no network and no secrets and returns a unified diff. The deterministic Policy Patch Verifier then checks that diff before it reaches a branch or CI. Any model can be swapped in, because the safety boundary is the verifier, not the model.

Table: What the Policy Patch Verifier rejects

| Rejected change | Why |
| --- | --- |
| `.github/workflows/**`, `.gitlab-ci.yml`, `.circleci/**` | CI definitions can exfiltrate secrets or deploy. |
| `build.rs`, `.cargo/config.toml`, `.mvn/`, Gradle build scripts, `settings.xml` | These files change dependency resolution or execute code at build time. |
| Maven properties read by plugins | A property bump can change plugin behavior even when it looks like a version. |
| Paths in `forbiddenPaths`, such as `**/auth/**` | Your policy marks them off-limits. |
| Dependencies not in the authorized closure | `forbidUnlistedDependencies` blocks a migration from adding packages. |
| New shell or network primitives | `forbidNewShellOrNetworkPrimitives` blocks new process or socket calls. |

## Which CI jobs can Osty trigger for speculative verification?

Every job in GitHub Actions, CircleCI and `.gitlab-ci.yml` pipelines, including `include:`, `extends:` and `!reference` composition, is classified before Osty pushes a speculative branch.

Table: CI side-effect classes

| Class | Meaning | Osty triggers it? |
| --- | --- | --- |
| `PURE_VERIFY` | Only known build, lint and test steps. | Yes, within the CI budget. |
| `SIDE_EFFECT_CONFIRMED` | Deploy, publish, image push, release, Terraform apply or notification steps. | Never. |
| `SIDE_EFFECT_POSSIBLE` | Opaque scripts or unrecognized actions. | Only inside the edge's isolated test container, or when listed in `ciGovernor.safeVerifyWorkflows`. |

Failures are classified as `NEW_FAILURE_FROM_BUMP`, `PREEXISTING_BROKEN_MAIN`, `KNOWN_FLAKE` or `INFRA_ERROR`, with a control rerun when `flakeControlRerun` is on, so a flaky test does not block a fix and a real regression is not merged.

## How do canary gates decide to promote, roll back or hold?

- Baseline: Prometheus, Datadog or CloudWatch metrics over `max(canarySoakMinutes, 15)` minutes before the deploy, capped at 60.
- OOM kills: any OOM kill during the soak rolls back at once when `zeroOOMKills` is set.
- Traffic floor: error rate and p99 latency deltas are judged only after 50 canary requests.
- Quiet services: a canary that ends its soak below the floor pauses in `INSUFFICIENT_TRAFFIC_HOLD` instead of promoting or rolling back.
- No metrics provider: the workload is capped at `VERIFIED_PR`.

## What happens when the kill switch fires on a confirmed malicious package?

Table: Kill-switch actions and approvals

| Action | Approval |
| --- | --- |
| Freeze the artifact in `osty-proxy` fleet-wide | None. Runs in under a second on a signed `CONFIRMED_MALICIOUS` verdict. |
| Contain affected workloads with network policy or quarantine | None. Reversible, so it runs at once. |
| Roll back one stateless, non-Tier-0 workload | Automatic when `autoRollbackStatelessWorkloads` is on. |
| Roll back more than one workload, or any `TIER_0` workload | Two distinct operators sign Ed25519 approvals over the campaign, digest and targets. |
| Workload with a stateful database migration | Never rolled back. `CONTAIN_AND_FORWARD_REBUILD` isolates it and ships a clean rebuild. |

The kill switch lists every build, workload and credential the malicious version could reach. Every step is recorded in the [Evidence Ledger](https://osty.dev/policy-ledger).

## Frequently asked questions

### Can Osty auto-merge LLM-generated code?

No. Probabilistic edits are hard-capped at `VERIFIED_PR`, and the edge rejects a merge of an agentic migration whatever the policy says. Only deterministic changes can reach `AUTO_MERGE_SAFE`.

### Do change freezes block the kill switch?

No. Freeze windows apply to opening pull requests, merging and redeploying. Kill switches, artifact freezes and containment always run.

### What if my services have no reliable canary metrics?

They stay at `VERIFIED_PR`. Triage, stale-deploy detection, ABI and license checks and flake-classified CI are still available.

## Related pages

- [Policy and Ledger](https://osty.dev/policy-ledger): Git-pinned, non-executable `.osty/policy.yaml` enforced by `osty-edge` on every mutating command, tighten-only overlays, release gates and the hash-chained Ed25519 Evidence Ledger.
- [Plan](https://osty.dev/plan): Upgrade intelligence: distro backport normalization, ELF and glibc ABI floors, SPDX license shifts, breaking call sites and topological rollout waves.
- [Guard](https://osty.dev/guard): Pre-install supply-chain firewall: Firecracker honey-secret detonation, artifact-vs-Git diffs, behavior baselines, dependency-confusion defense and `osty-proxy`.
- [Security](https://osty.dev/security): Public Brain, Private Execution trust boundaries, outbound-only mTLS, the three-tier licensing map, TLA+ models, adversarial benchmarks and what Osty is not.

## See your fleet in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories, and the report shows false positives, stale deploys and unowned workloads.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/ship
