Skip to content

Ship / Pillar 4

Fleet campaigns and safe rollout

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.

Written by Osty EngineeringPublished Updated

Autonomy ladder: what Osty may do at each level
LevelWhat Osty may doEligible changesRequired gates
OBSERVEReport and plan without changing anything.NoneNone
VERIFIED_PROpen 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_SAFEMerge without a person.Deterministic changes only: lockfiles, @sha256 base-image pins and mechanical compiler AST codemods.Tier cap allows it, green CI.
CANARY_ROLLOUTDeploy 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
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.

Campaign kinds
CampaignUsed for
CVE_FAST_TRACKCritical and High fixes, and known-exploited (KEV) fixes with a CLEAN verdict that skip the cooldown.
MAINTENANCE_TRAINMedium and Low bumps coalesced into one weekly batch on a schedule you set.
BASE_IMAGE_CASCADEBase-image patches rolled out in topological waves from Plan.
SUPPLY_CHAIN_KILL_SWITCHContainment 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.

What the Policy Patch Verifier rejects
Rejected changeWhy
.github/workflows/**, .gitlab-ci.yml, .circleci/**CI definitions can exfiltrate secrets or deploy.
build.rs, .cargo/config.toml, .mvn/, Gradle build scripts, settings.xmlThese files change dependency resolution or execute code at build time.
Maven properties read by pluginsA 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 closureforbidUnlistedDependencies blocks a migration from adding packages.
New shell or network primitivesforbidNewShellOrNetworkPrimitives 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.

CI side-effect classes
ClassMeaningOsty triggers it?
PURE_VERIFYOnly known build, lint and test steps.Yes, within the CI budget.
SIDE_EFFECT_CONFIRMEDDeploy, publish, image push, release, Terraform apply or notification steps.Never.
SIDE_EFFECT_POSSIBLEOpaque 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?

Kill-switch actions and approvals
ActionApproval
Freeze the artifact in osty-proxy fleet-wideNone. Runs in under a second on a signed CONFIRMED_MALICIOUS verdict.
Contain affected workloads with network policy or quarantineNone. Reversible, so it runs at once.
Roll back one stateless, non-Tier-0 workloadAutomatic when autoRollbackStatelessWorkloads is on.
Roll back more than one workload, or any TIER_0 workloadTwo distinct operators sign Ed25519 approvals over the campaign, digest and targets.
Workload with a stateful database migrationNever 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.

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.

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.