Skip to content

Free tool

.osty/policy.yaml builder and validator

This builder writes a FleetPolicy for .osty/policy.yaml from a few controls and validates any policy with the same rules as Osty's parser: unknown fields, strict booleans, valid enums, ranges, and the VERIFIED_PR cap on LLM migrations. Copy or download the file, then run osty policy validate .osty/policy.yaml before you commit it.

Written by Osty EngineeringPublished Updated

Rules the validator enforces, taken from Osty's policy parser
RuleEffect
apiVersion and kindMust be osty.io/v1 and FleetPolicy, in exactly one YAML document.
Unknown fieldsRejected, so a misspelt key never silently loosens the policy.
Strict booleansOnly true or false; yes, on and quoted strings are rejected.
Autonomy levelsOBSERVE, VERIFIED_PR, AUTO_MERGE_SAFE, CANARY_ROLLOUT
LLM migrationspatchVerifier.agenticMigrationMaxAutonomy may never exceed VERIFIED_PR.
Automated rolloutA tier at CANARY_ROLLOUT, or AUTO_MERGE_SAFE with stale-main redeploy, must keep requireObservabilityGate: true and needs canary thresholds.
Proxy failure modesprodCI and devLaptop must each be FAIL_CLOSED or FAIL_OPEN_WITH_CACHE.
CadenceEvery severity must be either fast-tracked or coalesced into the maintenance train, never both.
RangesCooldown 0 to 8,760 hours, canary soak 1 to 43,200 minutes, error-rate delta at most 100 points, budgets 0 to 100 percent.
Forbidden pathsRelative, valid globs. Osty always adds .gitlab-ci.yml, .gitlab/ci/**, **/*.gitlab-ci.yml.
Organisation floorA repository policy may only tighten the organisation policy: lower autonomy, longer cooldowns, stricter canaries, more forbidden paths.
Validate before you commit
osty policy validate .osty/policy.yaml

Build and validate your policy

Change a control and the YAML and diagnostics update. Edit the YAML directly to validate your own file. All parsing and calculation runs locally in your browser. Nothing you paste or upload is sent to Osty servers.

Autonomy
Supply chain
Block these verdicts at the proxy
Canary floor
Patch verifier
Kill switch
Cadence
Fast-track these severities; the rest join the maintenance train

Valid FleetPolicy

Confirm with the Osty CLI before you commit
osty policy validate .osty/policy.yaml

See what this policy would do on your fleet.

Get a free X-Ray

How should I set the autonomy cap for each service tier?

OBSERVE reports only. VERIFIED_PR opens pull requests that people merge. AUTO_MERGE_SAFE lets deterministic fixes such as lockfile bumps and @sha256 pins merge on green CI. CANARY_ROLLOUT adds observability-gated canary deploys.

Start Tier-0 at VERIFIED_PR. Without a wired observability provider the edge degrades every automated rollout tier to VERIFIED_PR, so CANARY_ROLLOUT only takes effect once metrics are connected.

Should the proxy fail open or closed?

Production CI should be FAIL_CLOSED: when the proxy cannot reach a verdict, the install fails rather than pulling an unvetted package. Developer laptops can be FAIL_OPEN_WITH_CACHE, which serves cached verdicts and keeps people working during an outage.

Why are AI code migrations capped at VERIFIED_PR?

Model output is probabilistic and can be steered by text it reads. Adversarial scenario a10 plants instructions in a changelog to add a reverse shell to CI. The Policy Patch Verifier rejects that diff using forbiddenPaths, forbidUnlistedDependencies and forbidNewShellOrNetworkPrimitives, and the parser refuses any agenticMigrationMaxAutonomy above VERIFIED_PR, so a person always reviews an LLM edit.

Frequently asked questions

Is this validator the same as osty policy validate?

It applies the same structural rules and messages. The CLI is still the authority: it uses the full YAML grammar and prints the SHA-256 digest that osty-edge pins.

Can a repository loosen the organisation policy?

No. Paste the organisation floor and the validator flags any repository value that raises autonomy, shortens a cooldown, weakens a canary or turns off a protection.

Where does the file live?

In .osty/policy.yaml at the repository root, reviewed under your normal branch protection. It is declarative, with no scripts or shell hooks.

Is there a dual-control threshold to set?

No number to tune. killSwitch.requireDualControlForBroadRollback: true means any rollback across more than one workload needs two distinct operators with valid Ed25519 attestations.

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.