Skip to main content

Conversation QA for voice agents. Catch the calls that pass every text check but talk over the caller, skip a required disclosure, or claim a task that never happened. Self-hosted, offline, MIT.

Project description

hotato

hotato

Open-source, self-hosted conversation QA for voice agents.

Runs offline · MIT · zero dependencies.

PyPI version PyPI monthly downloads License: MIT Python 3.9 to 3.13 offline: yes runtime deps: zero tests

Your voice agent passes every text assertion and still loses the call. It talks over the caller. It skips a required disclosure. It confirms a refund that never posted. hotato scores the call from the two-channel audio, shows the timing evidence behind every flag, and turns each caught bug into a CI contract that re-checks it on every push.

See a real bug in one command

uvx hotato start --demo

Runs with uv, no install. Or keep it in a project with pipx or pip:

pipx install hotato && hotato start --demo
# or: python -m venv .venv && . .venv/bin/activate && pip install hotato && hotato start --demo

Offline, it sweeps two failing demo calls and verifies one missed interruption on the spot:

[start] demo: swept 2 bundled calls, 5 candidate moments;
  wrote hotato-sweep.json, hotato-sweep.html,
  hotato-no-single-threshold.svg,
  contracts/demo-missed-interruption.hotato/contract.json
hotato start: swept the 2 bundled demo calls offline.
  sweep dashboard: hotato-sweep.html
  demo contract:   contracts/demo-missed-interruption.hotato
  verified contract: FAIL as expected -- the demo call
    missed the interruption
  [ ... then the exact next commands: promote a candidate,
    gate it in CI, re-check it ... ]

hotato-sweep.html ranks the moments by how far the timing missed, each with a hear-the-bug playhead to screenshot into a PR.

hotato candidate dashboard: 5 moments ranked by salience, each with a caller/agent timeline and a hear-the-bug playhead.

hotato-sweep.html · candidates ranked by salience. You label them into your verdict.

Run the same loop on your own recording:

# trust -> scan -> review -> label -> contract
hotato start --stereo my-call.wav

Every command takes a two-channel recording (caller on one channel, agent on the other). A mono or bad export is marked NOT SCORABLE, so every verdict rests on inputs that carry the timing evidence.

Score a call: five dimensions, kept apart

hotato scorecard: one call graded across outcome, policy, conversation, speech, and reliability, deterministic checks kept apart from the model-judged rubric.

hotato test run grades one call against a conversation-test file, one count per dimension:

  • Outcome · did the job get done, on tool-call and state evidence, not the transcript.
  • Policy · required disclosures, PII handling, and your team's compliance phrases.
  • Conversation · the deterministic turn-taking core: did the agent yield when the caller took the floor, and how fast.
  • Speech · response latency and the timing around each turn.
  • Reliability · pass@1 / pass@k / pass^k over repeated runs with a Wilson interval, so a flaky check reads as flaky.

Deterministic and model-judged results stay in separate columns. The deterministic checks set the gate; a rubric verdict is deterministic: false and advisory. Every dimension keeps its own line, even under --format json, and the scored schemas reject an overall_score key.

# a starter you edit for your own call
hotato scenario init refund-check --out conversation-test.yaml
hotato test run conversation-test.yaml --agent support-bot
success: FAIL
  (required: all_deterministic_assertions_pass, no_rubric_failure)
per-dimension (grouped view; never blended):
  outcome       0 pass / 0 fail / 1 inconclusive
  policy        0 pass / 0 fail / 1 inconclusive
  conversation  0 pass / 0 fail / 1 inconclusive
  speech        0 pass / 0 fail / 1 inconclusive
  reliability   0 pass / 0 fail / 0 inconclusive

Feed the call as --transcript, --trace, --state, and/or --audio. A check with no evidence stays INCONCLUSIVE. Walkthrough: docs/CONVERSATION-TEST.md.

The scored HTML report below is the receipt, reproducible from the same audio and config.

Scored hotato report: 0 of 1 events pass, a REGRESSION verdict, an analytics panel, and a per-event caller/agent timeline with the measured metrics.

The pinned scorer, a FAIL against the labeled yield expectation. Share it with hotato card hotato-sweep.json#1 --out finding.svg.

The loop: catch, confirm, gate, prove

1. Catch. sweep ranks the talk-over and false-stop moments in your recent calls by how far the timing missed:

Level 1 candidate card: 0.32s of overlap while the agent was talking, at t=2s.

Level 1 candidate card: 0.46s of silence after the agent stopped, at t=1.28s.

Level 1: candidate. A timing moment worth review, measured not judged: 0.32s of overlap, 0.46s of trailing silence.

2. Confirm. You label the expected behavior: yield (stop for the caller) or hold (talk through a backchannel). Intent stays yours. One dial trades a missed interruption against a false stop, so when both fail in a run, diagnose surfaces the tradeoff instead of naming one threshold:

One dial trades a missed interruption against a false stop on a backchannel; hotato surfaces the tradeoff, fix class engagement-control.

Level 2: human-labeled failure. A reviewer confirms a broken yield-or-hold expectation; the fix lives in the engagement-control class.

3. Gate. fixture promote saves the labeled call as a permanent regression test; hotato speaks CI natively:

  • A deterministic fail exits non-zero, a pass exits zero: a red build is a caught regression.
  • hotato contract verify contracts/ --junit contracts-junit.xml writes JUnit XML your runner already renders.
  • --format json carries an exit_code field, so an agent reads the verdict without parsing prose.
  • The model-judged rubric is advisory by default, blocking a build only with --gate.

Drop-in GitHub Action and pytest plugin: docs/CI.md · docs/PYTEST.md. One bad call to a CI gate, step by step: docs/BAD-CALL-TO-CI.md · examples/bad-call-to-ci/.

4. Prove. The frozen recording catches evidence, threshold, or scorer drift. To re-check today's agent, recapture the scenario as a new contract under the same policy:

# place the same call against today's agent, capture
# dual-channel, then:
hotato contract create --stereo fresh-call.wav --onset 41.90 --expect yield \
    --id refund-cutoff-001-recapture --out contracts
hotato contract verify contracts/refund-cutoff-001-recapture.hotato

Level 4: fresh-recapture comparison. A newly captured call meets the same labeled policy and every submitted paired guard held. Walkthrough: docs/RECAPTURE.md.

Five levels of evidence, each on its own lane

Every card, report, and CLI result names its evidence level. The public tier is the weakest one its inputs support.

Level Name What it means
1 Candidate A candidate timing moment worth human review.
2 Human-labeled failure A reviewer confirmed this recording broke an explicit yield-or-hold expectation.
3 Stored-evidence check The historical audio still produces the expected result under the pinned policy and scorer.
4 Fresh-recapture comparison A newly captured call passed the same contract, and no submitted paired guard regressed.
5 External proof An independent team confirms a caught regression or a fresh recapture.

A before/after experiment (hotato fix trial, and the fleet loop) re-derives every verdict from the on-disk audio under one pinned manifest.

Scale one call into a release gate

  • hotato suite run suite.yaml --agent support-bot · a suite.v1 offline through the scripted-caller simulator.
  • hotato simulate --matrix scenario.yaml --out ./conv · expand a scenario.v1 matrix into hundreds of seeded, byte-identical runs.
  • hotato rubric run --rubrics rubrics.yaml --transcript call.json · the model-judged lane on a pinned local model, advisory unless --gate. docs/RUBRIC.md.
  • hotato release compare BASELINE CANDIDATE · diff two recorded releases per dimension and scenario, digest-exact.
  • hotato serve · a read-only, token-authenticated web app over the local registry on 127.0.0.1. docs/WORKSPACE.md.

The bundled reference agent runs 375 offline, byte-reproducible runs (25 jobs x 5 caller behaviours x 3 audio environments): make reference (examples/reference-agent/, docs/SUITE-RUN.md); measurement-error harness docs/BENCHMARK.md.

Point it at production, sweep on a schedule

Connect a live stack once, then sweep on cron or in CI:

# credentials stored 0600, local only
hotato connect vapi
# cron, CI, wherever
hotato sweep --stack vapi --since 7d --out hotato-sweep.html

Your audio stays on your machine. Full guide: docs/SET-AND-FORGET.md · examples/set-and-forget/.

Opt in to a metadata-only webhook summary with --notify (repeatable):

hotato sweep --stack vapi --since 7d \
    --notify https://hooks.slack.com/services/...

Counts, top candidate moments, artifact paths, and a Slack-ready text field. Egress: docs/EGRESS.md.

Run every agent's loop from one private workspace

One local workspace across every agent: ingest, label, and run a before/after experiment that recomputes both sides from audio, then recommends a change and leaves the deploy to you.

hotato fleet init -w acme
hotato fleet agent add -w acme --name support-bot \
    --stack vapi --assistant-id asst_123
hotato fleet ingest -w acme --agent support-bot call.wav
hotato fleet discover -w acme --agent support-bot call.wav
hotato fleet review -w acme

hotato fleet trend -w acme writes a self-contained per-agent trend page. Full guide: docs/GUARDIAN-FLEET.md.

Self-host in your own cloud or VPC

The team workspace ships as a container: one command stands up the read-only, token-authenticated hotato serve on host loopback.

# workspace on 127.0.0.1:8321
docker compose up -d
# optional: seed example data
docker compose run --rm hotato-init
# optional: a local Ollama model judge
docker compose --profile judge up -d

Air-gap, backup, a local judge, and one set of schemas for self-host and cloud: docs/SELF-HOST.md. Verify the offline posture yourself with deploy/verify-zero-egress.sh.

Built for coding agents

hotato is built for agents to drive: machine JSON on every command, meaningful exit codes, a capability manifest, llms.txt, JSON-LD, and an MCP server.

# the voice_eval_run scorer + eleven fleet tools
uvx --from "hotato[mcp]" hotato-mcp

Configs and the tool contract: docs/MCP.md · AGENTS.md · llms-full.txt.

Choose your path

You want to Run this
Try the full loop, no credentials hotato start --demo
Sweep the bundled demo calls hotato sweep --demo
Sweep recent calls from your stack hotato connect vapi then hotato sweep --stack vapi --since 7d
Add hotato to an existing repo, CI gate included hotato init starter --stack vapi --out . (docs/STARTER.md)
Turn a confirmed failure into a portable contract hotato contract create --from-candidate hotato-sweep.json#1 --expect yield --id refund-cutoff-001 --out contracts (docs/CONTRACTS.md)
Verify contracts in CI hotato contract verify contracts/ --junit contracts-junit.xml
Attach observability traces to a contract hotato trace attach contracts/refund-cutoff-001.hotato --trace voice_trace.jsonl (docs/TRACE.md)
Test a candidate fix, before/after, fail-closed hotato fix trial patch.json --name staging-x --before before/ --after after/ (docs/FIX-TRIAL.md)
Reduce a scripted deterministic failure to a verified repro hotato counterexample compile --scenario case.json --test test.json --target assertion-id --out case.hotato-repro (docs/COUNTEREXAMPLES.md)
Share a finding in a PR or slide hotato card hotato-sweep.json#1 --out finding.svg
Drive it from a coding agent uvx --from "hotato[mcp]" hotato-mcp (docs/MCP.md)

contract verify and a promoted fixture are two guarantees, set by which recording goes in:

On the frozen recording (every push)

  • Proves: the evidence, policy, and scorer are intact.
  • Does not prove: that the deployed agent has not changed.

On a fresh recapture (by hand, see docs/RECAPTURE.md)

  • Proves: today's agent behavior still matches the label.

A contract bundle contains call audio, so keep raw customer contracts out of public repos; use sanitized fixtures. See docs/CONTRACTS.md.

Install

Run any command zero-install with uvx, or add hotato to a project with pipx or pip in a virtualenv:

# zero-install, any command:
uvx hotato start --demo
# keep it in a project:
pipx install hotato
# extras (Silero VAD cross-check / ASR transcript / LiveKit / Pipecat capture):
pipx install 'hotato[neural]'
pipx install 'hotato[transcribe]'
pipx install 'hotato[livekit]'
pipx install 'hotato[pipecat]'
# run an extra zero-install:
uvx --from 'hotato[neural]' hotato start --demo

Contribute a labeled call

The highest-value PR is one labeled dual-channel call: the corpus compounds, every labeled moment sharpening every scorer. Add a clip: docs/SUBMITTING.md · corpus and schema in corpus/, recorded battery in corpus/vapi-defaults/README.md. Contributor guide: CONTRIBUTING.md.

Where hotato fits

  • Conversation QA that shows its work, sitting next to your runtime voice layers: docs/COMPARE.md.
  • Audio-timing scoring. The opt-in --transcribe flag adds an ASR transcript beside the verdict, the score still grounded in the audio: docs/TRANSCRIBE.md.
  • Offline, out-of-band, anonymous. It reads recordings after the call over two channels, so your live audio path and running agent stay in your hands.

Docs

Why "hotato": good turn-taking is a game of hot potato. Speak, then pass the turn the moment the caller wants it. MIT licensed (LICENSE); the open core stays open.

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.6.2.tar.gz (11.5 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.6.2-py3-none-any.whl (5.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hotato-1.6.2.tar.gz
  • Upload date:
  • Size: 11.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hotato-1.6.2.tar.gz
Algorithm Hash digest
SHA256 6c659826ef33fe72e27baa81ec2af7386410960a676a81b70a73fd0b610eede8
MD5 b4d92bb23ae2b171d9352455f61138b1
BLAKE2b-256 587e38a734ec0e1f9e798848b931286b313e9e1b21a0c62b162b98ebb3eae450

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hotato-1.6.2-py3-none-any.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for hotato-1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3bdec872ac598cfc7e2734defd239f44b24ccc47844c897a0b842df64b9b600
MD5 55ccd72c6622e0424fb97472b17f260a
BLAKE2b-256 2444739a7e19336805d35acb35b3db9f2ed26f3cceb422661c3543fbbe622a83

See more details on using hashes here.

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