Architecture Note · Security & Compliance

Deterministic Vendor Risk & DDQ Automation: Evidence-Cited Matching, Risk Scoring, and Mandatory Sign-Off Gates

Why unguarded LLM questionnaire tools fail third-party risk teams—and the deterministic FastAPI and SQLite architecture that keeps buyer DDQs, SOC 2 gap triage, and Critical-tier approvals auditable.

The Operational Problem: Manual DDQs and Unchecked Third-Party Exposure

Enterprise security teams and Third-Party Risk Managers (TPRMs) fight a two-front bottleneck. Inbound, enterprise buyers send sprawling SIG, CSA CAIQ v4, and VSA spreadsheets demanding attested answers on FIDO2 MFA, KMS encryption, CVE remediation SLAs, and EU DORA Art. 28 subcontractors. Outbound, procurement teams onboard SaaS tools faster than analysts can inspect SOC 2 Type II opinions, expired bridge letters, subservice carve-outs, and unresolved penetration-test findings across global hubs.

Why Naive AI Wrappers Fail in Third-Party Risk

Drop-in AI questionnaire wrappers fail CISOs and enterprise security leads along four predictable lines:

  • Fabricated attestations and unanchored answers: Generic LLMs routinely overstate compliance posture—claiming zero-retention AI policies, SCIM deprovisioning, or clean pen-tests without binding each claim to a verified Trust Center control badge.
  • Nondeterministic risk scoring: Letting a prompt estimate vendor tiering produces inconsistent scores across identical intakes, breaking repeatable governance for high-PII, HIPAA, GDPR, and DORA ICT third-party reviews.
  • Silent egress and lingering uploads: Shipping raw buyer spreadsheets or vendor SOC 2 artifacts to external endpoints creates fourth-party data leakage and leaves sensitive uploads sitting indefinitely on disk.
  • Missing release and onboarding gates: Auto-sending drafted questionnaires or clearing Critical-tier vendors without named analyst review turns automation into an unverified liability.

The Deterministic Architecture That Fixes It

A production TPRM and DDQ workbench separates deterministic policy enforcement from optional language synthesis behind explicit SQLite state machines and human sign-off gates.

  1. Evidence-cited KB matching with offline-first fallback: POST /api/ddq/autofill parses CSV and XLSX questionnaires (via openpyxl) or JSON payloads and routes items to OfflineKBAdapter (deterministic-offline-kb-v1) by default. Each match pairs buyer questions against verified Trust Center entries carrying explicit control citations (such as SOC2-CC6.1, ISO27001-A.8.24, DORA-Art.28, and GDPR-Art.32) and flags low-confidence rows with needs_review. An optional OpenAICompatibleAdapter refines phrasing at low temperature while preserving citations and falling back cleanly to the offline KB on error.
  2. 1-hour ephemeral upload auto-wipe and scoped auth: Raw questionnaire files are stored with 0600 permissions under a 3,600-second TTL. A background cleanup_loop and POST /api/wipe unlink expired files and null out raw_content in temp_uploads while retaining SHA-256 digests. API access uses SHA-256-hashed invite tokens with per-token sliding-window rate limits (429) and scope checks.
  3. Deterministic inherent and residual risk scoring: POST /api/vendors/assess computes 0–100 inherent and residual scores and tiers (Critical, High, Medium, Low) using fixed weights for data classification, PII volume, SSO/SCIM support, subprocessor regions outside standard adequacy jurisdictions, DORA/GDPR scope, SOC 2 opinion (including +24 residual penalties for qualified or adverse opinions), bridge-letter expiry, unresolved critical CVEs, MFA enforcement, and compensating controls.
  4. Assurance expiry tracking and immutable sign-off gates: GET /api/vendors/expiring ranks upcoming and expired reassessments, SOC 2 bridge letters, and certification renewals by urgency (expired, critical_window within 30 days, upcoming). Drafted DDQ packages and Critical-tier vendors start in pending_signoff: GET /api/ddq/{id}/export returns 403/409 until an analyst signs off via POST /api/ddq/{id}/signoff or POST /api/vendors/{id}/signoff. Every decision writes an immutable record with record_sha256 into signoff_audit_log, guarded by SQLite BEFORE UPDATE and BEFORE DELETE abort triggers.

Operational Takeaway

Automating security questionnaires and vendor intake does not mean surrendering judgment to a probabilistic prompt. When Trust Center answers stay bound to control citations, scoring follows transparent deterministic weights, raw uploads auto-wipe after one hour, and DDQ exports plus Critical-tier approvals block until a named analyst signs an immutable audit log, security teams cut triage turnaround while preserving full auditability.

Test deterministic TPRM & DDQ automation on your own workflows

Start with a free 30-minute workflow check. Bring one inbound SIG/CAIQ questionnaire or vendor SOC 2 packet and leave with one concrete architectural recommendation in writing within one business day.