CitizenMate: Building a Voice-First AI Interview Simulator in Rails
How I co-founded and built CitizenMate, a voice-first practice platform for the U.S. citizenship interview, and the product and architecture decisions behind it.

How I co-founded and built CitizenMate, a voice-first practice platform for the U.S. citizenship interview, and the product and architecture decisions behind it.
I asked Claude whether a database index still made sense after the feature changed. Claude ran the query plans, said the index only half-fit now, recommended adding a covering column, ran it through — and then, after more digging, realized the original was fine all along. Two migrations for nothing.
Running a periodic eligibility check across thousands of members involves some interesting tradeoffs: batching API calls, building O(n) lookup maps, and handling failures without crashing the whole task.
A contract state decision that started as nested conditionals turned into something that looks a lot like Redux. Here's why that pattern works well beyond the frontend.
Building a Ruby client for the Mindbody API involves more quirks than their documentation suggests. Duplicate clients, phantom contract records, CamelCase everywhere, and a fake credit card to complete a $0 purchase.
Most Rack::Attack tutorials assume you have Redis. I didn't want Redis. Here's how I wired it up with Solid Cache instead, and the one boot-order gotcha that tripped me up.
A pattern for making background jobs observable: track each attempt as a DB record with status, payload, and email alerts — no external monitoring service required.
A gym's membership migration kept failing intermittently. Here's the three-layer approach that made the integration actually reliable.
A stored token is not the same thing as a live session. This React app restored auth state by reading a token from localStorage, verifying it against the Rails API, and rebuilding the UI from that response.
The harder part of a search UI is not rendering results. It is keeping search terms, filters, pagination, and list updates from drifting out of sync. This React app used Redux thunks to keep those pieces moving together.