RAIA™ Specification

Sovereign Social Sourcing

A Developer's Architectural Blueprint for Dual-Flow Forensic Tenant Sourcing & Private Video Storage Architecture.

← Back to Developer Hub TEXTBOOK SPECIFICATION
RAIA™ (Real estate Artificial Intelligence Agent) Specification

Sovereign Social Sourcing parses professional and public profiles to verify identity and compliance signals, using a secure multi-model consensus to avoid single-model bias.

🧩 Section A: In Plain English

Sovereign Social Sourcing

Sovereign Social Sourcing parses professional and public profiles to verify identity and compliance signals, using a secure multi-model consensus to avoid single-model bias.

💡 ELI5 Summary

Sovereign Social Sourcing parses professional and public profiles to verify identity and compliance signals, using a secure multi-model consensus to avoid single-model bias.

Sovereign Social Sourcing

Philosophy

Deep Digital Sourcing

Traditional referencing agencies are fundamentally blind. They rely on landlord references and static credit histories. RAIA (Real estate Artificial Intelligence Agent) out-maneuvers this paradigm by executing Forensic Social Sourcing. We capture public LinkedIn profiles, company registries, and open social footprints to reconstruct the tenant's real income stability and behavioral posture.

Data Compliance

Ephemeral Score-and-Burn

In strict compliance with GDPR Article 5 (Data Minimization) and Singapore's PDPA, we enforce an ephemeral storage model. Raw social media scrape payloads (LinkedIn posts, Instagram feeds) are read into local runtime memory, analyzed by AI models, translated into static numerical scores, and instantly burned from disk.

Dual-Flow Operational Lifecycle

Rather than treating tenant data as a flat, static text string (e.g. dumping initial lead inquiries directly into the biography field), the RAIA (Real estate Artificial Intelligence Agent) platform implements a **Dual-Flow Operational Architecture**. This decouples the transactional pre-tenancy vetting process from the ongoing behavioral profile enrichment once the lease is active.

Flow A: Pre-Tenancy

Forensic Vetting & Risk Prevention

Initiated at the moment of initial inquiry and during the offer sequence. The sole objective is **fraud mitigation and landlord protection** by screening for scammers, professional sublet syndicates, and unqualified applicants.

  • Employment Validation: Cross-checks Companies House to confirm director registrations and evaluates the employer's domain authority.
  • Affordability Verification: Strictly checks declared salary against a 30x monthly rent multiplier (e.g. requiring £48,000/yr for a £1,600/mo flat).
  • Digital Footprint Scoping: Scours public social graphs for high-risk flags, behavioral posturing, lifestyle indicators (excessive partying, noise complaints), and scammer aliases.
  • Guarantor Gating: Automatically redirects self-employed or non-standard income profiles through a mandatory guarantor check.
Flow B: In-Tenancy

Behavioral Profile Enrichment

Activated the moment the tenancy contract begins. This flow tracks **how well the tenant performs over time** in the property. It continuously replaces legacy biography texts with dynamic, live behavioral data.

  • Rent Payment Integrity: Tracks payment timeliness. Calculates cumulative arrears frequency, average payment delay days, and rent sincerity score.
  • Communication Telemetry: Evaluates the tenant's noise-to-signal ratio, sentiment across WhatsApp/Email threads, and frequency of contact.
  • Maintenance Posture: Differentiates between legitimate structural issues and vexatious, spurious claims. Flags "low-friction" vs "high-maintenance" behavior.
  • Inspection & Compliance: Tracks adherence to scheduled inspection calendars, tenant-caused damage observations, and lease adherence.

🛡️ Red Team Posture: Mandatory Private Video Architecture

A key architectural vulnerability of multi-tenant CRM systems is the accidental exposure of private tenant videos (such as maintenance walkthroughs, appliance damage, or check-in inventories) on open public CDNs. Under **GDPR Article 25 (Privacy-by-Design)**, the RAIA (Real estate Artificial Intelligence Agent) platform enforces a strict, binary division of concerns for video assets:

1. Public Marketing Videos

YouTube Pipeline

Property walk-throughs, sales virtual tours, advertising trailers, and corporate promotional clips are strictly classified as public. These are stored on **YouTube**, which acts as our sole public delivery node.

  • CDN Routing: Standard public embedded players on consumer portals and public-facing marketing websites.
  • Encryption/Auth: None (unauthenticated public access is desired to maximize listing leads).
2. Private Operational Videos

Cloudinary Private Pipeline

All operational, tenancy-specific videos (maintenance claims, check-in/out inventory, damage audits, appliance diagnostics, tenant walkthroughs) **must strictly be private**. These are stored in **Cloudinary with private delivery type**.

  • Security Rule: Open CDN access (type `'upload'`) is completely disabled. Uploads strictly require `type: 'private'`.
  • Ephemeral Access: Served strictly via short-lived, signed URLs generated using the Cloudinary API Key & Secret, expiring after 1 hour.
  • Leak Prevention: Eliminates the risk of public URL harvesting or exposing private tenant living spaces.

Systematic Sourcing Pipelines

Flow A: Pre-Tenancy Pipeline

1
Intent Capture & Identity Check

AI collects full legal name, employment status, and target rent. Initialization fails if aliases or initials are provided.

2
Forensic Web Scraping

Fallback headless scrapers search LinkedIn, social platforms, and company registries using Proxycurl/Playwright with Stealth.

3
Risk Scoring Consensus

DeepSeek-R1 and Claude-Sonnet parse raw biographical details. Risk ratings (DQS) are written to the DB, and raw profiles are instantly burned.

Repository Code

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

Flow B: In-Tenancy Pipeline

1
Continuous Payment Audits

automated bank reconciliation gateway night sync pipes transactional payment events to tbl_rents. System recalculates arrears frequency and timeliness.

2
Conversational Telemetry Logs

Every WhatsApp or Email interaction is logged into tbl_conversations. AI extracts sentiment, thread counts, and complaints.

3
Dynamic Profile Narrative

A background process transforms flat inquiries into a structured biography node summarizing their actual tenancy performance.

Forensic Database Profile Schema Comparison

Here is how tenant "About" profile records are forensically updated to avoid the "raw inquiry" dump:

Data Category Flow A: Pre-Tenancy Profile Flow B: In-Tenancy Profile
Core Objective Fraud Screening & Risk Assessment Operational Ledger & Lifetime Score
Income Audit Verified Salary vs 30x Rent, Employer domain authority check Continuous rent payment performance, Arrears frequency, automated bank reconciliation gateway logs
Digital Footprint LinkedIn matches, Social graph behavior (partying vs stable) Interaction telemetry, sentiment history of WhatsApp/Emails
Identity Check Bilateral passport match, Companies House director verification Active Sovereign Node Tenant Profile with secure GCS private bucket image mapping
Tenant Classification Lead / Applicant Active Tenant / Resident

Technical Implementation Pseudo-code

// api/cron/update-profiles/route.ts
import { createSupabaseAdmin } from "@/lib/supabase-server";

export async function POST(req: NextRequest) {
  const supabase = createSupabaseAdmin();
  
  // 1. Fetch active tenancies with payment and conversation telemetry
  const { data: activeTenants } = await supabase
    .from("tbl_persons")
    .select(`
      person_id, full_name, occupation, employment, about,
      tbl_tenancies_persons(role, tbl_tenancies(tenancy_status, asset_id, tbl_rents(*))),
      tbl_conversations(message_count, conversation_type)
    `)
    .eq("status", "active");

  for (const tenant of activeTenants) {
    // 2. Compute dynamic metrics
    const rents = tenant.tbl_tenancies_persons?.flatMap(tp => tp.tbl_tenancies?.tbl_rents) || [];
    const totalPayments = rents.length;
    const paidLate = rents.filter(r => new Date(r.received_date) > new Date(r.due_date)).length;
    const paymentPunctuality = totalPayments > 0 ? ((totalPayments - paidLate) / totalPayments) * 100 : 100;
    
    // 3. Compile a rich biographical summary node
    const biography = `[ACTIVE TENANT PROFILE - FLOW B]
Occupational Profile: ${tenant.occupation} (${tenant.employment}).
Rent Payment Integrity: ${paymentPunctuality.toFixed(0)}% on-time payment track-record across ${totalPayments} payment cycles.
Operational Posture: Low-friction communicator with ${tenant.tbl_conversations?.length || 0} maintenance/comms threads logged.
Tenancy Status: Compliant resident in excellent standing.`;

    // 4. Update tbl_persons.about
    await supabase
      .from("tbl_persons")
      .update({ about: biography })
      .eq("person_id", tenant.person_id);
  }
  
  return NextResponse.json({ success: true });
}

6. Deployed Pipeline Resources

🛡️ Deployed Multi-Model Red Team Analysis Report

Consensus audit by Claude-Sonnet, DeepSeek-R1, Gemini 1.5 Pro, LLaMA-405B, and Claude-Opus.

Read Report →

⚙️ Deployed Portable A2A Profile Spec

Portable Google Spark Handshake Profile Spec (W3C DID/Verifiable Credentials).

⚠️ Deployed Late Rent Credit Warning Notice

Rent payment payment integrity explainer for warning letters on arrears.

🔧 Section C: Developer Guide

Architecture Details

Component-based UI architecture built on React/Next.js with Tailwind CSS. The system uses a design token system for consistent theming, a component library for reusable UI elements, and server-side rendering for performance. State management follows a unidirectional data flow pattern.

  • Core Component: UI component system and design token engine
  • Data Flow: User Input → Component State → Action Dispatch → Data Fetch → Re-render → Display
  • Integration Points: Next.js, Tailwind CSS, React context, REST API layer

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
theme_mode string light UI theme mode (light, dark, system)
animation_enabled boolean true Enable/disable UI animations
grid_columns integer 12 Layout grid column count
UI ARCHITECTURE — COMPONENT → STATE → RENDER 1. COMPONENT LAYER Reusable UI Components Design Token System 🧩 Components 2. STATE LAYER State Management Action Dispatch ⚛️ State 3. RENDER LAYER SSR / Client Render Responsive Layout 🖥️ Render Component-based UI: design tokens → reusable components → state management → server-side rendering Design tokens · Component library · SSR · Responsive grid · Theme system Components / UI Layer State / Data Flow Render / Presentation Data flow →

Figure 2: UI component architecture — component interaction and data flow.

Troubleshooting

Issue Cause Resolution
Layout shift on page load Missing dimensions on dynamic content Add explicit width/height or aspect-ratio CSS
Theme mismatch CSS variable not defined in current theme Ensure all CSS variables are defined in both light and dark themes
Repo Reference RAIA

This component is part of the RAIA (Real estate Artificial Intelligence Agent) platform mono-repo. Implementation details, API contracts, and integration tests are available in the repository.