Engineering decisions
One accountable owner per contact, taken atomically
Problem: Concurrent AI executors racing on a contact table will double-dial
leads if ownership checks use read-then-write queries, while crashed workers can lock leads
indefinitely.
Approach: Allocation assigns deterministic splits upfront; execution claims a
lease using a conditional write with scheduled renewal, expiry, and reaping. Launch, claim,
provider webhooks, and outcome finalization are idempotent, backed by a
dialer:reconcile invariant checker.
Tradeoff: More explicit state transitions than a simple queue, requiring real
concurrency load tests rather than hand-waved reasoning.
The model recommends; the server authorizes
Problem: Anything an LLM can be convinced to output, a caller on the phone can
persuade it to output, including arbitrary transfer phone numbers or unauthorized prices.
Approach: Enforce an autonomy matrix and non-disableable compliance floor
(Art. 50 AI disclosure, DNC, consent, calling hours, spend caps, kill switch) at the server tool
boundary. For transfers, the LLM emits only a reason; TransferResolver maps
it to a typed destination registry.
Tradeoff: Adding a new transfer target or pricing rule requires a code change
rather than a prompt tweak, which is the right safety posture for systems that dial strangers.
Count verified sales, not claimed ones
Problem: If a scoreboard measures what the AI agent claims happened on a call,
the dashboard rewards model optimism and specification gaming.
Approach: Store canonical outcomes in an append-only ledger, route claims through
a QC review queue, keep transcript-only sentiment (-1 to +1) separate from purchase interest (0
to 1), and enforce a static build scanner that fails CI if model scores touch ranked or paid
surfaces.
Tradeoff: Verified metrics trail call completion until QC reviews complete,
avoiding flattering but false telemetry.