Skip to main content

Policy

Policies define guardrails for model deployments across your fleet. Set quality gates, auto-rollback thresholds, and deployment constraints at the org level.

Set a policy

octomil team set-policy \
--auto-rollback \
--error-threshold 5% \
--latency-p95-max 500ms \
--min-rollout-duration 1h \
--require-eval

Available policies

Auto-rollback

Automatically revert a deployment when error metrics exceed thresholds:

SettingDescriptionDefault
--auto-rollbackEnable automatic rollbackOff
--error-thresholdMax error rate before rollback triggers5%
--latency-p95-maxMax p95 latency before rollback triggersNo limit
--crash-thresholdMax crash rate before rollback triggers1%
octomil team set-policy --auto-rollback --error-threshold 3% --crash-threshold 0.5%

When triggered, auto-rollback reverts all affected devices to the previous stable version and sends an alert. See Rollback for manual rollback procedures.

Quality gates

Require evaluation benchmarks to pass before a deployment can proceed:

octomil team set-policy --require-eval --min-accuracy 0.70 --max-quality-delta 0.10
SettingDescriptionDefault
--require-evalBlock deploys until eval passesOff
--min-accuracyMinimum accuracy score requiredNone
--max-quality-deltaMax allowed quality drop vs. baselineNone

With quality gates enabled, octomil deploy runs the eval suite automatically and blocks the deployment if thresholds are not met.

Rollout constraints

Control how fast deployments can roll out:

octomil team set-policy --min-rollout-duration 2h --max-rollout-step 25%
SettingDescriptionDefault
--min-rollout-durationMinimum time between rollout advancesNone
--max-rollout-stepMaximum percentage increase per advance100%
--require-approvalRequire manual approval at each stepOff

Device constraints

Restrict which devices can receive deployments:

octomil team set-policy --min-os-version ios:16 android:10 --min-memory 4GB
SettingDescriptionDefault
--min-os-versionMinimum OS version per platformNone
--min-memoryMinimum device RAMNone
--allowed-groupsOnly deploy to specified device groupsAll groups

View current policy

octomil team get-policy
Auto-rollback:       enabled
Error threshold: 5%
Crash threshold: 1%
Latency p95 max: 500ms
Quality gates: enabled
Require eval: yes
Min accuracy: 0.70
Rollout constraints:
Min duration: 1h
Max step: 25%

Policy scope

Policies apply at the org level. All deployments in the org must satisfy the active policy. Override per-deployment with --skip-policy (requires admin role).