RAIA™ Specification

2.6.5 Agentic Autonomous Compliance & HITL Gating

RAIA™ (Real estate Artificial Intelligence Agent) operates the entire compliance lifecycle autonomously as a continuous loop:

← Back to Developer Hub TEXTBOOK SPECIFICATION

1. The 100% Autonomous Compliance Engine

System Architecture

RAIA™ (Real estate Artificial Intelligence Agent) operates the entire compliance lifecycle autonomously as a continuous loop:

1. Daily Cron Audit Runs 04:00 Nightly 2. Landlord Outreach WhatsApp Consent 3. Booking & Pay Charges automated bank reconciliation gateway 4. Tenant Slot Auto-Coordinates 5. PDF File & Pay Vision AI Verifies

📅 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 properties
  • check_type → 'epc', 'eicr', 'gas', etc
  • next_due_date → When next check is required
  • last_verified_at → When last verified
  • status → 'valid', 'expired', 'missing'

tbl_compliance_jobs

  • check_id → Reference to compliance_checks
  • landlord_consent → True/False
  • tenant_access_arranged → True/False
  • contractor_booked → True/False
  • certificate_uploaded → True/False
← Previous Spec A.2 RAIA™ Red-Team Roadmap Next Spec → 3.9a Agentic Code Quality (Sub-Gates, SJT-First)

Repository Code

The live codebase implementation for this textbook logic sits within the following repository folder: