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
| Rule | Effect |
|---|---|
apiVersion and kind | Must be osty.io/v1 and FleetPolicy, in exactly one YAML document. |
| Unknown fields | Rejected, so a misspelt key never silently loosens the policy. |
| Strict booleans | Only true or false; yes, on and quoted strings are rejected. |
| Autonomy levels | OBSERVE, VERIFIED_PR, AUTO_MERGE_SAFE, CANARY_ROLLOUT |
| LLM migrations | patchVerifier.agenticMigrationMaxAutonomy may never exceed VERIFIED_PR. |
| Automated rollout | A tier at CANARY_ROLLOUT, or AUTO_MERGE_SAFE with stale-main redeploy, must keep requireObservabilityGate: true and needs canary thresholds. |
| Proxy failure modes | prodCI and devLaptop must each be FAIL_CLOSED or FAIL_OPEN_WITH_CACHE. |
| Cadence | Every severity must be either fast-tracked or coalesced into the maintenance train, never both. |
| Ranges | Cooldown 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 paths | Relative, valid globs. Osty always adds .gitlab-ci.yml, .gitlab/ci/**, **/*.gitlab-ci.yml. |
| Organisation floor | A repository policy may only tighten the organisation policy: lower autonomy, longer cooldowns, stricter canaries, more forbidden paths. |
osty policy validate .osty/policy.yamlBuild 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.
Valid FleetPolicy
osty policy validate .osty/policy.yamlSee what this policy would do on your fleet.
Get a free X-RayHow 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.