2.6.5 Agentic Autonomous Compliance & HITL Gating
Specification, workflow, and technical reference for the agentic autonomous compliance module.
1. The 100% Autonomous Compliance Engine
System ArchitectureRAIA™ (Real estate Artificial Intelligence Agent) operates the entire compliance lifecycle autonomously as a continuous loop:
📅 Stage 1: The Daily Audit Cron (04:00 Nightly)
Our headless cron system executes a complete 3-Tier dependency check across all managed assets. If an EPC, EICR, or CP12 is found to be missing, unlinked, or expiring in less than 30 days, RAIA (Real estate Artificial Intelligence Agent) automatically triggers the healing loop.
💬 Stage 2: Sourcing unlinked files & Landlord Outreach
RAIA (Real estate Artificial Intelligence Agent) first dispatches a subagent to search our unlinked GCS files. If missing on disk, RAIA (Real estate Artificial Intelligence Agent) automatically initiates a conversational flow with the Beneficial Owner (vetted at Tier 1) via WhatsApp.
💰 Stage 3: Autonomous Consent, Payment, & Job Dispatch
When the Landlord replies "YES" on WhatsApp, RAIA's natural language processor (via paperclip-triage) parses the intent and charges the landlord's account ledger balance via our automated bank reconciliation gateway bank gateway (or triggers a card charge if balance is insufficient).
📅 Stage 4: Tenant Slot Coordination Swarm
RAIA (Real estate Artificial Intelligence Agent) automatically initiates a conversational flow with the occupant of the property (Lead Tenant in `tbl_tenancies_persons`) on WhatsApp to arrange access.
🏆 Stage 5: Certificate Validation, Payment, & Golden Record Filing
Following the contractor visit, RAIA (Real estate Artificial Intelligence Agent) dispatches a Vision AI subagent to scan the document, verify its authenticity, read the expiry date, and extract the energy rating. If valid, RAIA (Real estate Artificial Intelligence Agent) sets `deleted_at = NULL` and files the document under document_type = 'epc'.
2. The True Role of HITL (Gated Exception Handling)
Under the Agentic Model, the human team does not push buttons to run audits. The dashboard and visuals are designed purely to assist the human team in understanding what is already happening in the background.
Exception A: Landlord Declines Consent
The landlord replies "NO" on WhatsApp or refuses the renewal fee.
The HITL Job: RAIA (Real estate Artificial Intelligence Agent) alerts the director with a critical compliance exception ticket.
Exception B: Tenant Access Blocks
The tenant refuses entry or ignores 3 consecutive scheduling attempts by the AI.
The HITL Job: RAIA (Real estate Artificial Intelligence Agent) alerts the maintenance manager to manually call the tenant.
Exception C: Document Verification Fail
The contractor uploads a blurry, unreadable, or expired PDF. RAIA's Vision AI flags a mismatch.
The HITL Job: RAIA (Real estate Artificial Intelligence Agent) raises a quality review block for human confirmation.
Repository Code
The live codebase implementation for this textbook logic sits within the following repository folder:
Database Schema & Compliance Triggers
The compliance system relies on several key database tables with automatic triggers:
tbl_compliance_checks
property_id→ Foreign key to propertiescheck_type→ 'epc', 'eicr', 'gas', etcnext_due_date→ When next check is requiredlast_verified_at→ When last verifiedstatus→ 'valid', 'expired', 'missing'
tbl_compliance_jobs
check_id→ Reference to compliance_checkslandlord_consent→ True/Falsetenant_access_arranged→ True/Falsecontractor_booked→ True/Falsecertificate_uploaded→ True/False