Regression testing for voice agents: turn timing scored from two-channel calls, exit 0/1 in CI. Self-hosted, MIT.
Project description
Regression testing for voice agents
Quickstart · Point an agent at it · How it works · Five dimensions · CI gate · MCP
Hotato is self-hosted regression testing for voice agents: give it a two-channel call recording, it scores the turn timing between caller and agent, and it returns the same exit 0 or 1 verdict in CI on every machine.
The transcript passed. The call failed. Your transcript tests are green, and the call still went wrong: the agent talked over the caller, ran straight through the interruption, and took a beat too long to hand the floor back. None of it is in the words. hotato gives that failure a number, then locks each catch into a CI contract.
Key properties
- 📐 Conversation QA for voice agents: scores five dimensions (outcome, policy, conversation, speech, reliability) into one pass/fail verdict.
- ⏱️ Scores talk-over, ignored interruptions, and floor-yield latency, measured from two channels.
- 🔒 Each catch is a content-addressed contract that reproduces byte-for-byte across machines and releases.
- 🪶 Stdlib-only core: zero required dependencies, ~10 MiB installed, no network calls.
- 🤖 Reads
AGENTS.md; a coding agent runs the whole loop. - 🌐 MIT-licensed, self-hosted, off the production audio path.
Quickstart
Zero setup. Scores the bundled demo calls and prints each caught moment, credential-less.
uvx hotato start --demo # scores bundled recorded calls, no account
That sweeps the two bundled demo calls, scores the timing between the voices, and exits 1 on the one where the agent ran through the caller.
Keep it in a project, or drive it over MCP on local stdio:
pipx install hotato # add it to your repo
uvx --from "hotato[mcp]" hotato-mcp # drive it over MCP, local stdio
Point your agent at it
Point Claude Code, Cursor, or any coding agent at this repo. It reads AGENTS.md and runs the loop itself: score the demo calls, ingest a recording, wire a CI gate, re-check the numbers. Every step is offline and needs no key.
"Try hotato on the calls in ./recordings and add a CI gate that fails the build on a talk-over regression."
Capabilities
|
⏱️ Timing measurement |
🎯 Five scored dimensions |
|
🔌 Importers |
🧪 CI gate |
|
🤖 Agent surfaces |
🧩 MCP-ready |
|
🗂️ Committable evidence |
🛰️ Self-hosted |
How it works
flowchart TD
A["Two-channel recording"] --> B["Measure the timing<br/>between the two voices"]
B --> C["Content-addressed contract"]
C --> D{"CI verdict"}
D -->|exit 0| E["pass"]
D -->|exit 1| F["fail"]
classDef ember fill:#c23c07,stroke:#8f2b04,color:#ffffff;
classDef teal fill:#2a5f52,stroke:#1c4034,color:#ffffff;
class F ember;
class E teal;
A catch becomes a contract addressed by its own content, so the exact failure that shipped once reproduces on any machine that runs the suite. Same input, same verdict, every time.
Five dimensions, one verdict
| Dimension | What it scores |
|---|---|
| 🎯 Outcome | Was the job done, judged on tool-call and state evidence. |
| 📋 Policy | Required disclosures and PII handling. |
| 💬 Conversation | Did the agent yield when the caller took the floor, and how fast. |
| 🗣️ Speech | Response latency and turn timing. |
| 📈 Reliability | pass@1 / pass@k / pass^k with a Wilson interval. |
Two channels, one party each. A mono or bad export is marked NOT SCORABLE, so a verdict measures timing, not intent.
See a scored call
Scoring a real recorded call: the exact command and hotato's real scorecard.
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 |
Wire it into CI
The step's exit code is hotato's exit code: 0 pass, 1 fail, 2 refuse. Drop the Action into a workflow and the build goes red on a regression:
# .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.8.1
with:
contracts: contracts/ # the catches you committed
hotato-version: 1.8.1 # exact pin, never a range
The catch you committed once now guards every pull request and reproduces the same verdict on the reviewer's machine.
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
uvx --from "hotato[mcp]" hotato-mcp # local stdio, no key
Point Claude Code, Cursor, or any MCP client at it to score calls, verify contracts, and read verdicts over the protocol. It exposes the voice_eval_run scorer plus read/verify/propose tools. Setup: docs/MCP.md.
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. Output: a per-signal error table and a yield/hold confusion matrix. Provenance (CC BY 4.0 source, sha256-pinned, human word alignments as ground truth) and caveats: corpus/real/README.md. Method: METHODOLOGY.md.
Two channels, one party each
Timing between two voices is measurable only when they arrive on separate channels. A mono or mixed export can't be split back apart, so hotato marks it NOT SCORABLE and refuses. Check scorability first:
hotato trust --stereo call.wav # per-channel activity, swap flag, scorability
It reads audio energy over time and surfaces candidate moments; a person labels each one yield (should have stopped) or hold (backchannel to talk through). It measures timing, not intent.
Contribute
Issues and PRs are welcome. Start with CONTRIBUTING.md, SECURITY.md, and the CHANGELOG.
Docs: 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hotato-1.8.1.tar.gz.
File metadata
- Download URL: hotato-1.8.1.tar.gz
- Upload date:
- Size: 11.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18f24735ed6c1504b1e62e35d8341469f3e69f777822c4bf2e99ae2120a95008
|
|
| MD5 |
3bdd0c78787aec33490e94b9165c0bf5
|
|
| BLAKE2b-256 |
baf465c4367172736d821a9baf7b9b0c5c9bd93448098ab957bd23e8c3a66d1c
|
Provenance
The following attestation bundles were made for hotato-1.8.1.tar.gz:
Publisher:
publish-pypi-oidc.yml on attenlabs/hotato
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hotato-1.8.1.tar.gz -
Subject digest:
18f24735ed6c1504b1e62e35d8341469f3e69f777822c4bf2e99ae2120a95008 - Sigstore transparency entry: 2188099264
- Sigstore integration time:
-
Permalink:
attenlabs/hotato@3714a7c0e2707c707688e9ef00db2e1a73326488 -
Branch / Tag:
refs/tags/v1.8.1 - Owner: https://github.com/attenlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-oidc.yml@3714a7c0e2707c707688e9ef00db2e1a73326488 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hotato-1.8.1-py3-none-any.whl.
File metadata
- Download URL: hotato-1.8.1-py3-none-any.whl
- Upload date:
- Size: 5.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d674be6ee362b542d837d136c6da4068b985cc78b7c37c5893bcb252dff6f20
|
|
| MD5 |
abefaa6ee321455f87da2ff4e32b9383
|
|
| BLAKE2b-256 |
7c6b5699630bc3bd2e353f795da6666babe2dde86f7801dc46b9fba4ffc512dc
|
Provenance
The following attestation bundles were made for hotato-1.8.1-py3-none-any.whl:
Publisher:
publish-pypi-oidc.yml on attenlabs/hotato
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hotato-1.8.1-py3-none-any.whl -
Subject digest:
5d674be6ee362b542d837d136c6da4068b985cc78b7c37c5893bcb252dff6f20 - Sigstore transparency entry: 2188099273
- Sigstore integration time:
-
Permalink:
attenlabs/hotato@3714a7c0e2707c707688e9ef00db2e1a73326488 -
Branch / Tag:
refs/tags/v1.8.1 - Owner: https://github.com/attenlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi-oidc.yml@3714a7c0e2707c707688e9ef00db2e1a73326488 -
Trigger Event:
workflow_dispatch
-
Statement type: