Lexsi Labs AI Safety & Alignment Hackathon · Track 3 · Self-healing agents

A 3B support agent that fixes its own mistakes

A 3.35B Tiny Aya support agent that heals itself: one command runs a whole round with no person in the loop for about $4, and it refused to ship itself 11 times until the fix was measured. Its first unattended promotion made its tool calls 7× more reliable (errors 44% → 6%), lifted tickets resolved from 10% to 15%, cut wasted tool calls from 69% to 21%, and serves retail tickets for $0.015 each, 2.5× less than the teacher API it learned from.

$0.015per resolved ticket2.5× cheaper than the teacher API
3.35Bparameters, one 24 GB GPUtickets solved 10% → 15%
7× fewertool calls that fail44% → 6% of calls
69% → 21%wasted tool callsbase → round 16; teacher 5%
0 peoplefrom launch to promotion2 h 24 min, $3.89
8 / 8gate checks passedafter 11 refusals

Watch the demo (3 minutes)

The control room replaying round 16 from the service's own run files: what changed, one on-policy correction, the 8-check gate, and every gate before it.
Tickets resolved: base Tiny Aya 10%, self-healed Tiny Aya 15%, teacher API 32%. Cost per resolved ticket: $0.015 self-healed vs $0.037 teacher API.
tau2-bench retail, 20 held-out tasks × 3 trials. Cost uses measured model calls per conversation: the student on one A10G, the teacher at API list price without caching.

Why the smallest model. We chose Tiny Aya on purpose: it fits the budget, serves on a $1.50-an-hour A10G, and is the model where self-healing matters most, because it fails most. Its 8,192-token window is the limit our gate kept catching, and Aya Expanse 32B is the first thing we would run with more credit.

Three models

RoleModelTickets solved
BaseTiny Aya Global 3.35B, unchanged10%
Student, what the loop deploysTiny Aya + a LoRA adapter (under 1% of the model)15%
Teacher, never deployedDeepSeek V4.1 Flash (API)32%

The benchmark is tau2-bench retail: a simulated customer, 16 shop tools, a written policy, and a grader that checks whether the shop database ends up right, not whether the reply sounded right.

The loop

The self-healing loop: run, detect, classify, route by root cause (tool fix, weight fix, or no fix for environment faults), correct, train, gate, then promote or refuse and run again. Round 16: 2 h 24 min, $3.89, no person in the loop.
Round 16, the first unattended promotion. Badges show which kit runs each step.
  1. Run the student on training tasks; every turn's raw output is logged.
  2. Detect failures with tau2's grader and AgentTune's FailureDetector.
  3. Classify and route with AgentTune's FailureClassifier: tool fault → tool fix, model fault → weight fix, environment fault → no fix, never trained on.
  4. Correct: at every turn where the student went wrong, the teacher answers from the student's exact context.
  5. Train a fresh adapter with AgentTune's create_distill_trainer.
  6. Gate on 8 checks: AuditKIT pass^1 and pass^k, targeted failures down, no new failure kind, BFCL (no forgetting) and AgentTune's DeploymentGate.
  7. Promote or keep the old one, recorded in a ledger with rollback.

A gate that can say no

It refused 11 times before it said yes, each time for a reason we could trace: forgetting general tool use, new failure kinds, conversations overflowing the 8K window. AgentTune's own DeploymentGate would have approved ten of the eleven candidates ours refused.

Candidate task success per gate: eleven refusals between 7% and 23%, then gate 16 promoted at 15% against a 10% base.

What the student stopped doing

Per 60 conversationsBaseSelf-healed
Invented an order or item id400
Handed off to a human too early110
Made up an answer80
Tool-call error rate44%6%
BFCL, general tool calling4573

Round 16's biggest jump: it uses tools like the teacher

Pass rates on 20 tasks are noisy, so we also measure how the agent works. tau2 stores the calls an expert makes for every task; we compare each conversation with that path and count the wasted calls (repeats with nothing changed in between, calls the shop rejected, calls our guards had to block) and the expert's steps the agent also took.

Base Tiny Aya vs round 16, teacher as reference: wasted tool calls 69% to 21% (teacher 4.9%), calls the shop rejected 44% to 6% (teacher 4.5%), exact repeats by AuditKIT 6.8% to 0.3% (teacher 0.4%), expert steps taken 8% to 47% (teacher 52%).

Across every round, from the base model to round 16, wasted calls fell from 69% to 21% (the teacher wastes 5%):

Wasted tool calls: base 69%, round 7 + guards 46%, round 13 26%, round 13 + guards 29%, round 16 21%, teacher 5%.

For a business

Running the self-healed student instead of the teacher's API costs about $22 instead of $117 per 10,000 conversations, with every conversation on hardware the shop controls. It resolves 15% of tickets end to end against the teacher's 32%, so today it is a first-line agent that never invents an order id and hands the rest to people. Each unattended healing round costs about $4.

Honest limits

Links