Architecture Note · Security & Compliance

Deterministic Support QA & Automated Compliance Call Auditing

Why prompt-only LLM transcript graders leak regulated tokens and average away critical breaches—and the deterministic redaction, Auto-Zero gate, and human-sign-off architecture that replaces manual sampling.

The Operational Problem: High-Volume Queues Audited by Tiny Samples

Support organizations across card operations, regulated SaaS billing, and travel or telecom handle hundreds of thousands of inbound voice calls, live chats, and Official WhatsApp Business Cloud threads every month across regional queues such as New York, London, Frankfurt, Tokyo, Sydney, Toronto, and Zurich. Manual QA teams can audit only a tiny fraction of those interactions. As a result, verbal credit-card collection, skipped two-factor identity verification before account disclosures, omitted call-recording notices, unauthorized fee waivers, and off-script statutory statements often go undetected until a customer dispute or regulatory exam.

Why Naive AI Wrappers Fail in Compliance QA

Dropping an external LLM prompt on top of raw contact-center transcripts creates four operational hazards:

  • Unredacted PCI/PII egress and database persistence: Forwarding raw transcripts to hosted model endpoints or storing unmasked text in QA tables leaks primary account numbers, CVVs, IBANs, and national tax or social-insurance identifiers outside the cardholder-data boundary.
  • Weighted averages hiding zero-tolerance breaches: A generic grader rewards polite tone and accurate troubleshooting with a passing composite score even when an agent solicited a 16-digit PAN verbally or disclosed account limits prior to 2FA verification.
  • Silent calibration drift and unverified overrides: Prompt-only scoring shifts across model revisions without chance-corrected agreement tracking against human reviewers, and ad-hoc score changes lack cryptographic audit trails or mandatory QA-lead accountability.
  • Lingering raw uploads and unsafe spreadsheet exports: Uploaded transcripts left on disk expand breach blast radius, while unescaped agent appeal notes exported to CSV can trigger spreadsheet formula execution when opened by compliance staff.

The Deterministic Architecture That Fixes It

Our Support QA & Automated Compliance Call Auditing system confines automated scoring inside deterministic redaction, policy gates, ephemeral storage, and human-sign-off boundaries across inbound-only voice, live chat, and Official WhatsApp Business Cloud channels:

  1. Pre-persistence PCI/PII redaction: Before any record is written to SQLite or returned in an API response, app/redactor.py masks Luhn-validated payment card PANs, CVV/CVC security codes, mod-97 validated IBANs, SSN/SIN/NIN/TFN identifiers, email addresses, and phone numbers. Raw PAN and CVV strings never touch persistent tables.
  2. Weighted rubrics with hard Auto-Zero compliance gates: POST /api/rubrics/define versions weighted criteria—Empathy & Tone (20), Troubleshooting Accuracy (30), Mandatory Compliance Disclosures (25), and PCI / PII Hygiene (25)—alongside explicit auto_zero_gates. Any detected PCI exposure, missing identity verification prior to account action, or off-script regulatory statement overrides the weighted sum directly to 0 / 100.
  3. Offline-first evaluation and 1-hour upload auto-wipe: POST /api/qa/evaluate defaults to QA_OFFLINE_MODE=1 (OfflineDeterministicAdapter) with zero external API keys required, running inside SQLite WAL mode behind SHA-256-hashed scoped invite tokens (qa:evaluate, qa:dispute, rubrics:write, qa:read, admin) and sliding-window rate limits. Uploaded transcript files receive 0600 permissions and a 3,600-second TTL, wiped automatically or via POST /api/cleanup/run while retaining only SHA-256 digest metadata.
  4. Calibration analytics and mandatory human sign-off gates: GET /api/qa/calibration tracks disposition-tier agreement (Pass ≥ 80, Flagged < 80, Auto-Zero = 0), Cohen’s kappa (κ), and mean absolute AI-vs-human variance. Appeals filed via POST /api/qa/disputes cannot commit re-grades without human_signoff: true and a QA-lead identifier, logging every decision into a SHA-256 hash-chained audit_logs table (GET /api/audit/logs).
  5. Formula-safe CSV and attested manifest exports: Coaching and calibration CSV exports neutralize leading =, +, -, @, tab, and carriage-return characters, while JSON compliance audit packets require explicit QA-lead attestation.

Operational Takeaway

Automated QA earns compliance trust only when redaction runs before storage, policy breaches override weighted averages deterministically, raw uploads expire on a strict clock, and every appeal or breach escalation clears a mandatory human sign-off gate.

Test automated compliance QA on your own transcripts

Bring 10–20 anonymized call or chat transcripts and your current QA rubric for a free 30-minute workflow check—leave with a concrete technical recommendation in writing within one business day.