Skip to main content

Regression testing for voice agents: turn timing scored from two-channel calls, exit 0/1 in CI; plus say-do verification from your traces and content-addressed failure records that reproduce byte-for-byte. Self-hosted, MIT.

Project description

hotato

PyPI version Python versions CI status

hotato: regression testing for voice agents

hotato.dev

Your voice agent talked over the caller, and the transcript looks clean. It also told the caller "you're all set" on a booking the backend never wrote. You find out when a customer complains, not in the pull request that shipped it, because the failure lives in the timing and the say-do gap, not in the words.

Hotato is self-hosted conversation QA for voice agents: it scores those failures from your own two-channel recording and turns each catch into a CI gate that runs offline. First catch in minutes, no account:

$ uvx hotato start --demo
...
Conversation failed: Agent did not yield; measured talk-over was 0.25 s.
    talk-over     0.25s  seconds the agent kept talking while the caller held the floor
    response gap  2.18s  seconds of dead air from the caller's turn end to the reply

It measures turn timing and say-do, not intent.

See the loop catch a regression

One recording in. The pinned failure becomes a CI gate:

$ hotato investigate ./call.wav
  most likely failure: [1] t=7.63s agent_stop_no_caller
  next: hotato investigate label '.hotato/investigate-state.json#1' --expect yield

$ hotato investigate label '.hotato/investigate-state.json#1' --expect yield
created hotato contract: call-8s-yield  passed: False

$ hotato contract verify contracts
  [FAIL] call-8s-yield (expect yield): did_yield=False talk_over=0.00s
  0/1 contracts pass; exit_code=1

A committed contract is a pinned bad call: it is meant to stay exit 1 until you fix the agent and recapture, the same way a snapshot test stays red until you update the snapshot.

Quickstart

The five commands are the whole path, first touch to a CI gate that guards every pull request:

# 1. see it catch a failure on two bundled calls (no account; this step exits 0)
uvx hotato start --demo
# 2. score your own two-channel recording
hotato investigate ./call.wav
# 3. commit the caught moment as a regression contract
hotato investigate label '.hotato/investigate-state.json#1' --expect yield
# 4. open the pull request that adds the CI gate
hotato pr create --fixtures contracts/<id>.hotato --repo OWNER/REPO --title 'Add hotato contract <id>'
# 5. the gate re-runs the stored evidence (exits 1 while the pinned call stays red)
hotato contract verify contracts/

Install with pipx install hotato, drive it over MCP with uvx --from "hotato[mcp]" hotato-mcp, or walk the path step by step in docs/GETTING-STARTED.md.

How it works

two-channel recording
  ->  measure turn timing + verify say-do from the trace
  ->  content-addressed contract
  ->  CI verdict: exit 0 pass / exit 1 fail

A catch becomes a contract addressed by its own content, so the exact failure reproduces on any machine.

What it scores

Each dimension scores on its own, then rolls up into one pass/fail verdict.

Dimension What it scores
⏱️ Speech Response latency and turn timing, measured from the two channels.
💬 Conversation Did the agent yield when the caller took the floor, and how fast.
🎯 Outcome Was the job done, judged on tool-call and state evidence.
📋 Policy Required disclosures and PII handling.
📈 Reliability pass@1 / pass@k / pass^k with a Wilson interval.

Timing comes straight from the two channels; say-do reads your voice_trace.v1 spans, so what the agent told the caller is checked against what the backend did.

Other ways to feed it

Every onramp feeds the same offline scoring and the same 0 / 1 / 2 exit contract.

Traces you already log (no audio needed). Wire the OTel spans you already emit into the same say-do check:

hotato trace ingest --otel traces.jsonl --out voice_trace.jsonl
hotato assert run --trace voice_trace.jsonl --transcript call.transcript.json --assertions assertions.yaml

Details: docs/ASSERTIONS.md · docs/TRACE.md · ground truth: examples/reference-agent, a 375-run offline suite.

Your stack's recorded calls. Vapi, Twilio, and Retell fetch a separated two-channel file; everything scores offline afterwards.

hotato pull --stack vapi --limit 10

Details: docs/CONNECT.md · drive a call against your live agent: docs/DRIVE-A-CALL.md

Scripted fixtures (no production audio). A deterministic scripted caller renders a scenario.v1 labelled origin=simulated; a seeded replay is byte-identical.

hotato simulate --init demo.scenario.json && hotato simulate demo.scenario.json --out ./sim

Details: docs/SIMULATE.md

Point your agent at it

Point Claude Code, Cursor, or any coding agent at this repo: it reads AGENTS.md and runs the spine itself, offline, no key.

"Try hotato on the calls in ./recordings and add a CI gate that fails the build on a talk-over regression."

Wire it into CI

The step's exit code is hotato's verdict:

# .github/workflows/voice-qa.yml
name: voice qa
on: [pull_request]
permissions:
  contents: read          # read-only; runs fully offline
jobs:
  hotato:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: attenlabs/hotato@v1.10.1
        with:
          contracts: contracts/          # the catches you committed
          hotato-version: 1.10.1          # exact pin, never a range
Exit-code contract (gate on this, do not parse stdout)
Exit Meaning
0 every scorable event passed
1 a scorable event regressed
2 usage error or unusable input (bad flags, corrupt file, mono recording, or no scorable event)

Copy-paste workflow with commit-SHA pin: docs/CI.md · docs/CONTRACTS.md.

Drive it over MCP

The MCP server from Quickstart exposes the voice_eval_run scorer plus read/verify/propose tools to any MCP client over local stdio. Setup: docs/MCP.md.

Specifications

Property Value
Footprint ~10 MiB installed
Core dependencies 0 (stdlib-only)
Reproducibility byte-for-byte, content-addressed contract
Exit contract 0 pass · 1 fail · 2 refuse
Release integrity OIDC Trusted Publishing + build-provenance attested
Runtime offline, off the production audio path

Verify the measurement yourself

Re-run the measurement benchmark
# re-run the measurement-error benchmark on the recorded AMI clips
PYTHONPATH=src python3 -m hotato.benchmark \
  --scenarios corpus/real/scenarios --audio corpus/real/audio

On 13 recorded AMI Meeting Corpus clips, the median error between measured caller-onset and the human word-alignment label is 20 ms. Provenance and caveats: corpus/real/README.md · method: METHODOLOGY.md has the details.

Two channels, one party each

Timing between two voices is measurable only when they arrive on separate channels; a mono or mixed export is marked NOT SCORABLE and refused. It measures timing, not intent: a person labels each candidate moment yield or hold.

hotato trust --stereo call.wav        # per-channel activity, swap flag, scorability

Contribute

Issues and PRs are welcome: CONTRIBUTING.md · SECURITY.md · CHANGELOG

Docs: docs/GETTING-STARTED.md · AGENTS.md · METHODOLOGY.md · docs/START.md · docs/CI.md · docs/CONTRACTS.md · docs/MCP.md

License

MIT (LICENSE)

mcp-name: io.github.attenlabs/hotato

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hotato-1.10.1.tar.gz (11.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hotato-1.10.1-py3-none-any.whl (5.8 MB view details)

Uploaded Python 3

File details

Details for the file hotato-1.10.1.tar.gz.

File metadata

  • Download URL: hotato-1.10.1.tar.gz
  • Upload date:
  • Size: 11.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hotato-1.10.1.tar.gz
Algorithm Hash digest
SHA256 e5e5b8704eb5b16f827f318787f5e416e6b86c8c23c5368cae41a64743d02683
MD5 182e560035d11ff53e7264ff19b4939a
BLAKE2b-256 52497449f31cb7747a1b27be9052ec694956e6c8331c87e49931ef62e205bd0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotato-1.10.1.tar.gz:

Publisher: publish-pypi-oidc.yml on attenlabs/hotato

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hotato-1.10.1-py3-none-any.whl.

File metadata

  • Download URL: hotato-1.10.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for hotato-1.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41bd03a7adaf18edf16e1019416777d6b1922720a671b51030e7fc924e4db76e
MD5 3f87d659a3c9a0eb8c51b0e8ab67b947
BLAKE2b-256 397d76641d65288922cae3acd603d3aebc28b7254aef2d282be9b605be94e5d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotato-1.10.1-py3-none-any.whl:

Publisher: publish-pypi-oidc.yml on attenlabs/hotato

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page