---
title: "Gate a deployment with Weka"
description: "Send test, change-risk, and incident state to Weka, then apply your own deterministic threshold before shipping."
slug: "models/weka/use-cases/gate-a-deployment-with-weka"
sidebar:
  label: "Gate a deployment"
seo:
  canonical: "https://autohand.ai/use-cases/gate-a-deployment-with-weka/"
---
Gate a deployment with Weka is a Weka typed-decision workflow that send test, change-risk, and incident state to Weka, then apply your own deterministic threshold before shipping. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.

## At a glance

| Question | Answer |
| --- | --- |
| Best for | Turn build signals into a typed release lane |
| Input | Minimal JSON state built from observable evidence |
| Weka returns | A typed release lane with probabilities that your deployment policy can validate. Available through the Weka API, Autohand SDK, and Console Playground. |
| Policy boundary | Your code owns thresholds, permissions, retries, audit logs, and the final action |

Weka is a Public Preview System One Model for typed, calibrated decisions. It is available only through the Autohand API, SDK, and Console Playground. This workflow turns observable release facts into a choice your deployment code can enforce.

## Use Weka for the uncertain step

Send facts such as test status, changed systems, recent incidents, and rollout size. Ask one named choice question with explicit criteria for stable, canary, and blocked. Weka returns the selected value, confidence, and a probability for each option.

## Request shape

```json
{
  "model": "weka",
  "state": {
    "tests": "passed",
    "changed_systems": ["checkout"],
    "recent_incidents": 1
  },
  "questions": {
    "release_lane": {
      "type": "choice",
      "instructions": "Choose the safest release lane",
      "criteria": {
        "stable": "Low impact and healthy checks",
        "canary": "Healthy checks with elevated impact",
        "blocked": "A required check failed"
      }
    }
  }
}
```

## Keep policy in code

Your pipeline owns the final action. Require the selected lane to clear your confidence threshold, send uncertain results to review, and preserve the full state and answer for audit. Use the SDK for application code, the HTTP API in CI, or the Console Playground while designing the question.

## Review before accepting

Confirm that every criterion is mutually exclusive, the state contains current evidence, and low-confidence answers fail safely.

## Source and validation signals

Autohand AI maintains this page as first-party Weka product guidance. Verify the current request contract in the [Weka model guide](/models/weka) and build application flows with the [Autohand SDK](https://autohand.ai/code/sdk/). Community patterns from the [AY Automate Jev builds index](https://www.ayautomate.com/jev-builds) and [dabit3/jev-experiments](https://github.com/dabit3/jev-experiments) informed the use-case taxonomy. Their measurements describe their own Jev implementations and are not Weka benchmarks.

## Frequently asked questions

**What is Gate a deployment with Weka?**

Gate a deployment with Weka is a Weka typed-decision workflow that send test, change-risk, and incident state to Weka, then apply your own deterministic threshold before shipping. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.

**When should a team use Gate a deployment with Weka?**

Turn build signals into a typed release lane. Use it when the next software step needs one bounded decision and the application can preserve the evidence, probability, and policy outcome.

**What does Weka return for this workflow?**

A typed release lane with probabilities that your deployment policy can validate. Available through the Weka API, Autohand SDK, and Console Playground.

**Does Weka take the final action?**

No. Weka evaluates the state and returns a typed answer. Application code remains responsible for authorization, thresholds, deterministic safety rules, logging, retries, and the final action.

## Related resources

**[Guide: Weka model guide](/models/weka)**

Learn the typed request contract, question types, thresholds, and deployment patterns.

**[Playground: Console Playground](https://console.autohand.ai/playground/)**

Try the release state and choice question before adding it to a pipeline.

**[SDK: Autohand SDK](https://autohand.ai/code/sdk/)**

Call Weka from application and workflow code.

**[Samples: Weka samples on GitHub](https://github.com/autohandai/weka-samples)**

Run typed release, CI, patch, data, research, and Code Agent SDK examples.

## API request starter

```text
POST /v1/decisions with model "weka", release state, and a choice question for stable, canary, or blocked
```
