Judge a generated patch with Weka
Send the task, diff summary, tests, and policy signals to Weka, then choose accept, revise, security review, or human review.
Judge a generated patch with Weka is a Weka typed-decision workflow that send the task, diff summary, tests, and policy signals to Weka, then choose accept, revise, security review, or human review. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.
At a glance
| Question | Answer |
|---|---|
| Best for | Score a patch before an agent proposes it for merge |
| Input | Minimal JSON state built from observable evidence |
| Weka returns | A typed review lane and calibrated risk signals that the agent host can enforce. 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 judge a generated patch against the task and repository evidence before an agent proposes it for merge. Weka is in Public Preview and is available only through the Autohand API, SDK, and Console Playground.
Send evidence, not an unbounded repository
Include the task, a normalized diff summary, changed public contracts, test results, migration status, secret-scan findings, and whether the patch touched auth, billing, or destructive operations. Keep line-level evidence linked so a reviewer can inspect it.
Ask for independent risk signals
{
"model": "weka",
"state": {
"task": "Add a retry limit to invoice delivery",
"changed_files": ["src/invoices/send.ts", "tests/invoices.test.ts"],
"tests": "passed",
"public_api_changed": false,
"destructive_change": false
},
"questions": {
"task_match": { "type": "noul", "instructions": "Does this patch satisfy the stated task?" },
"regression_risk": { "type": "score", "instructions": "Rate the evidence-backed regression risk", "legend": ["low", "moderate", "high", "critical"] },
"review_lane": { "type": "choice", "instructions": "Choose the next review lane", "criteria": { "accept": "Evidence supports merge", "revise": "Patch needs a concrete change", "security_review": "Security specialist required", "human_review": "Evidence is incomplete or ambiguous" } }
}
}
Keep merge authority outside Weka
Branch protection, required tests, reviewer ownership, and permission checks remain deterministic. The bounded-check approach is informed by Commit Sentry, but Weka does not inherit that project's measurements.
Review before accepting
Evaluate clean patches, task drift, skipped tests, schema changes, secrets, and ambiguous diffs. A model result can request more review; it cannot grant missing authority.
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 and build application flows with the Autohand SDK. Community patterns from the AY Automate Jev builds index and 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 Judge a generated patch with Weka?
Judge a generated patch with Weka is a Weka typed-decision workflow that send the task, diff summary, tests, and policy signals to Weka, then choose accept, revise, security review, or human review. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.
When should a team use Judge a generated patch with Weka?
Score a patch before an agent proposes it for merge. 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 review lane and calibrated risk signals that the agent host can enforce. 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
Build calibrated review choices from patch evidence.
Playground: Console Playground
Test clean, risky, and ambiguous patch states.
SDK: Autohand SDK
Combine an Autohand agent run with a Weka review gate.
Pattern: Commit Sentry
A public example of bounded semantic checks over code changes.
Samples: Weka samples on GitHub
Run typed release, CI, patch, data, research, and Code Agent SDK examples.
API request starter
POST /v1/decisions with model "weka", task and patch evidence, and questions for task_match, regression_risk, security_risk, and review_lane