Triage CI failures with Weka
Classify a failed job from its command, exit state, changed files, and error signature, then choose retry, owner review, infrastructure review, or code repair.
Triage CI failures with Weka is a Weka typed-decision workflow that classify a failed job from its command, exit state, changed files, and error signature, then choose retry, owner review, infrastructure review, or code repair. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.
At a glance
| Question | Answer |
|---|---|
| Best for | Route a failed build to the next useful action |
| Input | Minimal JSON state built from observable evidence |
| Weka returns | A typed next-action lane with probabilities and an auditable evidence payload. 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 turn normalized CI evidence into a bounded next-action choice. Weka is in Public Preview and is available only through the Autohand API, SDK, and Console Playground.
Normalize the failure before inference
Collect the command, exit code, runner image, changed files, first stable error signature, retry history, and whether the same job passed on the target branch. Remove secrets and trim repeated stack frames. Keep deterministic facts such as a missing binary or network timeout as explicit fields.
Ask for one next action
{
"model": "weka",
"state": {
"job": "integration-postgres",
"exit_code": 1,
"signature": "connection refused 127.0.0.1:5432",
"retry_count": 2,
"changed_areas": ["billing"]
},
"questions": {
"next_action": {
"type": "choice",
"instructions": "Choose the next useful owner or action",
"criteria": {
"retry": "Evidence points to a transient failure",
"code_owner": "The change likely caused the failure",
"platform_owner": "Runner or service infrastructure likely failed",
"needs_investigation": "Evidence is insufficient or contradictory"
}
}
}
}
Keep hard rules outside the model
Never retry indefinitely. CI still owns maximum attempts, required suites, protected branches, and escalation timeouts. This adapts the typed triage pattern used by public Jev routing projects; it does not reuse their performance claims for Weka.
Review before accepting
Replay known code regressions, flaky tests, runner outages, and ambiguous failures. The result should route evidence, never hide the original log or replace required tests.
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 Triage CI failures with Weka?
Triage CI failures with Weka is a Weka typed-decision workflow that classify a failed job from its command, exit state, changed files, and error signature, then choose retry, owner review, infrastructure review, or code repair. It returns a bounded answer and probabilities so application code can keep final policy enforcement deterministic.
When should a team use Triage CI failures with Weka?
Route a failed build to the next useful action. 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 next-action lane with probabilities and an auditable evidence payload. 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
Design typed choices from compact CI state.
Playground: Console Playground
Test failure evidence and routing criteria before adding them to CI.
SDK: Autohand SDK
Connect evidence collection and Weka decisions to an agent workflow.
Pattern: Commit Sentry
A public typed-decision example for pre-commit risk classification.
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", normalized CI evidence, and a choice question for retry, code_owner, platform_owner, or needs_investigation