---
title: "Validate data contracts with Weka"
description: "Combine deterministic schema checks with Weka judgments for renamed meanings, unit changes, suspicious null patterns, and values that are valid in shape but wrong in context."
slug: "models/weka/use-cases/validate-data-contracts-with-weka"
sidebar:
  label: "Validate data contracts"
seo:
  canonical: "https://autohand.ai/use-cases/validate-data-contracts-with-weka/"
---
Validate data contracts with Weka is a Weka typed-decision workflow that combine deterministic schema checks with Weka judgments for renamed meanings, unit changes, suspicious null patterns, and values that are valid in shape but wrong in context. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.

## At a glance

| Question | Answer |
| --- | --- |
| Best for | Classify semantic schema drift before ingestion |
| Input | Minimal JSON state built from observable evidence |
| Weka returns | A typed compatibility lane with probabilities and the original deterministic validation evidence. 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 can add a semantic review lane after deterministic data-contract checks. Weka is in Public Preview and is available only through the Autohand API, SDK, and Console Playground.

## Run strict validation first

Validate types, required fields, enum membership, ranges, uniqueness, and schema version in code. Send Weka only the remaining semantic evidence: profile changes, field descriptions, units, provenance, representative redacted values, and the previous accepted contract.

## Ask for a compatibility lane

```json
{
  "model": "weka",
  "state": {
    "field": "revenue",
    "declared_unit": "USD",
    "previous_unit": "USD cents",
    "type_check": "passed",
    "distribution_shift": 100
  },
  "questions": {
    "compatibility": {
      "type": "choice",
      "instructions": "Choose the safest ingestion lane",
      "criteria": {
        "compatible": "Meaning and unit remain compatible",
        "review": "Change may be valid but needs an owner",
        "quarantine": "Hold this batch while evidence is checked",
        "reject": "Evidence shows a broken contract"
      }
    }
  }
}
```

## Keep the schema validator authoritative

Weka supplements semantic checks and must not repair invalid rows or rewrite contracts automatically. The column-judgment pattern is informed by [Judge Sheets](https://github.com/dabit3/jev-experiments/tree/main/judge-sheets).

## Review before accepting

Replay compatible changes, valid unit migrations, mislabeled fields, silent scale changes, and insufficient samples. Preserve the raw profile and contract version beside every decision.

## 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 Validate data contracts with Weka?**

Validate data contracts with Weka is a Weka typed-decision workflow that combine deterministic schema checks with Weka judgments for renamed meanings, unit changes, suspicious null patterns, and values that are valid in shape but wrong in context. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.

**When should a team use Validate data contracts with Weka?**

Classify semantic schema drift before ingestion. 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 compatibility lane with probabilities and the original deterministic validation evidence. 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)**

Add semantic review after deterministic validation.

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

Test compatibility lanes against profile changes.

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

Connect contract inspection and Weka routing to a data workflow.

**[Pattern: Judge Sheets](https://github.com/dabit3/jev-experiments/tree/main/judge-sheets)**

A public example of semantic judgments over structured rows.

**[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", contract metadata and observed profile changes, then ask for compatible, review, quarantine, or reject
```
