Skip to content

Migrate voice assessments to Cloudflare Agents - #65

Merged
zxcodes merged 7 commits into
stagingfrom
migrate/elevenlabs-to-cloudflare
Aug 13, 2026
Merged

zxcodes merged 7 commits into
stagingfrom
migrate/elevenlabs-to-cloudflare

Conversation

@zxcodes

@zxcodes zxcodes commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the ElevenLabs realtime/webhook path with a Cloudflare Voice Agent backed by Workers AI
  • add scoped WebSocket capability authorization, server-owned transcript finalization, reconnect history, and account-erasure cleanup
  • make assessment start transactional, establish seven-day Agent-history retention before transcription, and prevent duplicate duration-limit farewells
  • update the candidate voice UI, Worker bindings, deployment configuration, architecture/privacy documentation, and migration plan

Why

The previous provider flow depended on browser/provider session state and webhook delivery. This migration keeps authorization, conversation history, lifecycle transitions, and finalization server-owned while consolidating voice infrastructure on Cloudflare.

Reliability and security

  • serializes call start against cancellation, withdrawal, rejection, and finalization
  • rejects alternate/default Agent routes and scopes short-lived capabilities to the candidate and interview
  • never accepts browser transcript data for persistence
  • purges secondary Agent SQLite history after seven days and supports immediate account-erasure cleanup
  • keeps prompt context and candidate summaries server-side

Validation

  • bun run check
  • commit hooks: Oxfmt, Oxlint, TypeScript, and Knip
  • voice-focused tests: 36 passed across 5 files
  • full test suite: 739 passed across 79 files
  • git diff --check

@zxcodes
zxcodes marked this pull request as ready for review August 10, 2026 08:42
@zxcodes
zxcodes merged commit 0959273 into staging Aug 13, 2026
3 checks passed
zxcodes added a commit that referenced this pull request Sep 17, 2026
Migrate voice assessments to Cloudflare Agents
@zxcodes
zxcodes deleted the migrate/elevenlabs-to-cloudflare branch September 17, 2026 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant