RAIA™ Specification

3.11a Federated Tenant & Landlord Risk Ledger (GDPR Guardrails)

This page explains how RAIA™ (Real estate Artificial Intelligence Agent) allows agents to securely share verified tenant arrears and landlord banning orders without creating illegal, central blacklists. By using court-verified records and secur

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

This page explains how RAIA™ (Real estate Artificial Intelligence Agent) allows agents to securely share verified tenant arrears and landlord banning orders without creating illegal, central blacklists. By using court-verified records and secur

🧩 Section A: In Plain English

3.11a Federated Tenant & Landlord Risk Ledger (GDPR Guardrails)

This page explains how RAIA (Real estate Artificial Intelligence Agent) allows agents to securely share verified tenant arrears and landlord banning orders without creating illegal blacklists, using court-verified records and secure access logs.

🧩 What this page is about

This page explains how RAIA™ (Real estate Artificial Intelligence Agent) allows agents to securely share verified tenant arrears and landlord banning orders without creating illegal, central blacklists. By using court-verified records and secure access logs, we protect landlords from financial risk while fully complying with GDPR and UK privacy laws.

SECURITY · SYSTEMATIC COMPLIANCE · SJT §3.11a

3.11a Federated Tenant & Landlord Risk Ledger (GDPR Guardrails)

Legally defensible cross-agency risk propagation and automated background lookup pipelines under the Renters' Rights Act 2025.

2. How it works — operational workflow

In UK property management, a shared private "blacklist" containing names of "bad tenants," unofficial records of arrears, or criminal histories is **highly illegal**. Operating such databases triggers immediate prosecution by the Information Commissioner's Office (ICO), multi-million pound GDPR fines, and catastrophic defamation/libel lawsuits from tenants.

RAIA™ (Real estate Artificial Intelligence Agent) solves this problem using a **Federated Risk Ledger**. Instead of relying on manual, subjective self-reporting by angry agents, RAIA™ (Real estate Artificial Intelligence Agent) automates risk verification by combining three statutory data channels under a strict **Human-In-The-Loop (HITL)** approval flow overseen by Darrel Kwong (Global Compliance HITL).

Strategic Decision Matrix: Blacklist vs. Federated Risk Ledger

Every strategic decision in the RAIA™ (Real estate Artificial Intelligence Agent) platform must clearly contrast naive pitfalls with compliant engineering solutions.

Risk Area Pitfall: Naive Private Blacklist Compliant: RAIA™ (Real estate Artificial Intelligence Agent) Federated Ledger Sovereign Legal Shield
Criminal Records Agents log "tenant has criminal record" in shared DB. Official, isolated Sumsub screening executed with explicit, one-time tenant consent. GDPR Article 10 compliance: private criminal records databases are strictly prohibited.
Arrears Claims Agents manually add tenants who "owe rent" with no audit trail. Immutable arrears logs backed by real-time bank transaction checksums from the automated bank reconciliation gateway feed. Defamation mitigation: every arrears record is mathematically proven via banking ledgers.
Subject Access (SAR) Tenants cannot see if they are listed; operators ignore GDPR access rights. Strict, single-enclave logging where tenants can request and instantly download their audit footprint. GDPR Article 15 compliance: full structural transparency with instant subject access logs.
Bad Landlords Agents maintain private list of landlords who "don't pay maintenance". Automated scraping of official government banning orders and licensing registers. Avoids libel liability by relying strictly on published public records databases.

A Day in the Life — Automated Risk Evaluation Loop

The 24-hour sequence of events executing a compliant risk check when a new applicant applies for a tenancy.

Time Event Which Agent What Agent Does What Staff / Operator Sees
09:00 Inquiry Ingestion Q-LLM Dispatcher Scans incoming inquiry from portals for tenant identifiers (name, phone, email). New inquiry card appears in unified team Sandbox with high-risk variables flagged.
09:15 Background Verification Compliance Agent Probes Trust Online API for active County Court Judgments (CCJs) or bankruptcy orders. Diagnostic ledger displays "CCJ Search: Pending" status. No PII is shared externally.
11:00 KYC & AML Trigger Sumsub Broker Triggers secure SMS link requesting applicant's biometric ID and passport scanning. Applicant receives automated SMS. Dashboard updates to "Awaiting Biometric Selfie".
13:30 Arrears Check Billing Agent Scans historical shared database hashes to see if the biometric signature matches past verified automated bank reconciliation gateway arrears records. Internal score matches past recorded tenancy event hash. Red flag triggered in background.
14:00 HITL Review Paperclip Orchestrator Pings Slack/Telegram channel requesting human override of the risk flag. Darrel Kwong receives Slack alert with anonymized transactional evidence of arrears.
14:30 Decision & Action Compliance Agent Darrel clicks "Confirm Risk" -> system generates a formal legal notice rejecting the application. Letting agent receives "Application Refused — Certified Legal Evidence Package Compiled."

Compliance Checklist & Operational Playbook

  • 1
    Obtain Legal Consent

    Before any risk query is initiated, the applicant must agree to the standardized Terms of Service containing explicit, opt-in consent for credit and background referencing.

  • 2
    Isolate Sensitive Data (Tier 2 Isolation)

    Ensure that all biometric keys and official search results live in the Tier 2 Secure Enclave, while only anonymous verification hashes are stored globally.

  • 3
    Verify Arrears with automated bank reconciliation gateway Ledgers

    Any record of bad debt MUST be backed by a SHA-256 transaction hash proving that the landlord requested the rent and the tenant's bank account failed to settle the automated bank reconciliation gateway virtual account.

  • 4
    Log Every Access (PII Audit Trail)

    Every single query executed by an agent against the Federated Ledger must write an immutable entry to the tbl_pii_access_log showing who searched, why, and which legal condition was met.

🎨 Operational Flow — Tenant & Landlord Dual Risk Referencing Pipeline
TRACK A: TENANT RISK PIPELINE TRACK B: LANDLORD COMPLIANCE PIPELINE A1. Applicant Inquiry Extracts Name & Phone tbl_persons_channels A2. Referencing Engine Sumsub AML / CCJ Check Verification Lookup A3. Financial Audit Scans automated bank reconciliation gateway Ledger tbl_tenancy_arrears B1. Landlord Onboard SJT Stage 0 Profile tbl_asset_ownership B2. Rogue Scraper DLUHC Banning Orders Automated Lookup B3. Licensing Check Selective Licensing match tbl_asset_licensing 🎯 Compliance HITL Darrel Kwong Review Slack/Telegram Approval tbl_pii_access_log
Figure 1: Federated Tenant and Landlord Risk Evaluation Pipeline, showing the dual-track background lookup channels and unified Compliance HITL gate.

Repository Code

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

3. Technical — how it works in code

Technically, we decouple the tenant's raw identity (which is highly restricted under GDPR) from their immutable, factual financial track record. By executing a mathematical one-way SHA-256 hash of the tenant's biometrics + DOB, we create a secure **Risk Signature Token**. This token can be looked up globally without transmitting raw names, addresses, or criminal records to other agent instances.

PostgreSQL Schema Definition

The core relational tables storing risk records, court judgments, and strict GDPR query auditing logs.

-- Immutable Tenancy Arrears & Dispute Events (Tier 1 Metadata)
CREATE TABLE public.tbl_tenancy_arrears_events (
    event_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    tenancy_id UUID NOT NULL REFERENCES public.tbl_tenancies(tenancy_id),
    verification_checksum VARCHAR(64) NOT NULL, -- SHA256 of automated bank reconciliation gateway banking ledger transactions
    amount_unpaid NUMERIC(10, 2) NOT NULL CHECK (amount_unpaid > 0),
    days_in_arrears INT NOT NULL CHECK (days_in_arrears >= 0),
    hitl_approved_by VARCHAR(100) NOT NULL, -- e.g., 'darrel.kwong@rentlondonflat.com'
    is_disputed BOOLEAN NOT NULL DEFAULT FALSE,
    dispute_notes TEXT,
    created_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL,
    updated_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);

-- Public Court Judgment Cache (CCJ & Banning Orders)
CREATE TABLE public.tbl_public_court_judgments (
    judgment_id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    person_id UUID NOT NULL REFERENCES public.tbl_persons(person_id),
    judgment_reference VARCHAR(100) NOT NULL UNIQUE, -- Court Reference
    court_name VARCHAR(150) NOT NULL,
    amount NUMERIC(10, 2) NOT NULL,
    judgment_date DATE NOT NULL,
    status VARCHAR(50) NOT NULL DEFAULT 'unsatisfied', -- satisfied, unsatisfied, canceled
    scraped_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);

-- Mandatory PII Access Log (Strict GDPR Article 15/30 Audit Trail)
CREATE TABLE public.tbl_pii_access_log (
    log_id BIGSERIAL PRIMARY KEY,
    operator_username VARCHAR(100) NOT NULL, -- The specific agent/staff login executing the query
    target_person_id UUID NOT NULL, -- Person whose records were queried
    query_reason VARCHAR(100) NOT NULL, -- e.g., 'referencing_verification'
    legal_basis VARCHAR(100) NOT NULL DEFAULT 'legitimate_interest', -- legitimate_interest, consent, contractual
    consent_token_id VARCHAR(100), -- Linked to client-side signed consent payload
    queried_at TIMESTAMP WITH TIME ZONE DEFAULT timezone('utc'::text, now()) NOT NULL
);

-- Add Index for Rapid Search & Audit Review
CREATE INDEX idx_pii_access_logs_person ON public.tbl_pii_access_log(target_person_id);
CREATE INDEX idx_arrears_events_tenancy ON public.tbl_tenancy_arrears_events(tenancy_id);

Python Compliance Pipeline

The following production-ready Python handler processes a secure risk audit, checks past arrears and CCJs, and records the access log in a single transactional session.

import hashlib
import psycopg2
from typing import Dict, Any

def generate_risk_signature(biometric_identifier: str, dob: str) -> str:
    \"\"\"Generates a secure, one-way SHA-256 hash representing a tenant's risk profile without storing raw PII.\"\"\"
    raw_payload = f"{biometric_identifier}:{dob}".strip().lower()
    return hashlib.sha256(raw_payload.encode('utf-8')).hexdigest()

def execute_compliant_risk_check(
    db_conn,
    operator: str,
    person_id: str,
    biometric_id: str,
    dob: str,
    consent_token: str
) -> Dict[str, Any]:
    \"\"\"
    Executes a GDPR-compliant risk check. Queries past transaction arrears
    and official court judgments while logging the lookup to the PII Access Log.
    \"\"\"
    with db_conn.cursor() as cursor:
        # 1. Write the GDPR Audit Log immediately (Tier 0 Immutable Record)
        cursor.execute(\"\"\"
            INSERT INTO public.tbl_pii_access_log 
            (operator_username, target_person_id, query_reason, legal_basis, consent_token_id)
            VALUES (%s, %s, %s, %s, %s)
            RETURNING log_id;
        \"\"\", (operator, person_id, 'referencing_verification', 'consent', consent_token))
        log_id = cursor.fetchone()[0]

        # 2. Query Locally-Stored Verified Arrears Records
        risk_sig = generate_risk_signature(biometric_id, dob)
        cursor.execute(\"\"\"
            SELECT amount_unpaid, days_in_arrears, is_disputed
            FROM public.tbl_tenancy_arrears_events e
            JOIN public.tbl_tenancies t ON e.tenancy_id = t.tenancy_id
            WHERE t.tenant_id = %s;
        \"\"\", (person_id,))
        arrears = cursor.fetchall()

        # 3. Query Public CCJ Cache
        cursor.execute(\"\"\"
            SELECT court_name, amount, judgment_date, status
            FROM public.tbl_public_court_judgments
            WHERE person_id = %s;
        \"\"\", (person_id,))
        ccjs = cursor.fetchall()

        db_conn.commit()

    return {
        "audit_log_id": log_id,
        "verified_arrears_count": len(arrears),
        "total_unpaid_rent": sum(float(item[0]) for item in arrears if not item[2]),
        "active_ccjs_count": len(ccjs),
        "active_ccjs": [{"court": item[0], "amount": float(item[1]), "date": str(item[2]), "status": item[3]} for item in ccjs]
    }
🎨 Technical Architecture — Zero-Trust Risk Referral Protocol
Operator Browser / API Agent Submits Query Consent payload RAIA™ (Real estate Artificial Intelligence Agent) API Route Runs query_tenant_risk.py Writes audit transaction Database Enclave tbl_pii_access_log tbl_tenancy_arrears_events External Registries Trust Online API (CCJs) Sumsub Verification
Figure 2: Cryptographic Zero-Trust data flow isolating tenant reference searches and auditing lookup patterns.

4. Structural Pitfalls & Regulatory Warnings

1
NEVER Build Unofficial Blacklists of Criminal Data

Keeping a database of criminal history records outside of official third-party integrations like Sumsub is a high-risk GDPR Article 10 infraction. All criminal background audits must stay in the vendor's secure silo; our database can only capture transient success/failure flags linked to formal referencing codes.

2
Verify All Rent Arrears Claims with Banking Ledger Hashes

Falsely reporting a tenant for rent arrears can trigger massive civil defamation actions. Agents must never be allowed to log arrears events manually unless they supply the exact transaction hashes from the automated bank reconciliation gateway banking ledger showing the unpaid obligations.

3
Maintain absolute Subject Access (SAR) Readiness

Under GDPR Article 15, any tenant can request to see all records we or our member agents hold on them. If our system cannot instantly export an audit log proving exactly who queried their profile and which consent was obtained, the ICO will issue severe penalty notices.

🔧 Section C: Developer Guide

Architecture Details

Payment architecture follows the flow-through (Airbnb/Stripe) model with a three-layer pipeline: authorisation → capture → settlement. The system integrates with Stripe Connect for payment processing, handles multi-currency transactions, and maintains a complete audit trail for every financial event.

  • Core Component: Payment processing engine and ledger system
  • Data Flow: Payment Initiation → Authorisation → Capture → Settlement → Reconciliation → Audit
  • Integration Points: Stripe Connect, bank accounts, accounting systems, reporting

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
stripe_mode string test Stripe API mode (test or live)
payout_schedule string daily Payout frequency (daily, weekly, monthly)
currency string GBP Default transaction currency
PAYMENT ARCHITECTURE — AUTHORISE → CAPTURE → SETTLE 1. AUTHORISATION Payment Initiation Stripe Auth Hold 🔒 Authorise 2. CAPTURE Payment Capture Fee Calculation 💰 Capture 3. SETTLEMENT Payout Distribution Reconciliation 📊 Settlement Flow-through payment model: authorisation hold → capture on completion → settlement with reconciliation Stripe Connect integration · Multi-currency · Idempotency · Full audit trail Auth / Hold Capture / Processing Settlement / Reconciliation Data flow →

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

Troubleshooting

Issue Cause Resolution
Payment capture timeout Stripe API latency or webhook delivery failure Enable idempotency keys and retry with exponential backoff
Settlement mismatch Rounding difference or fee calculation error Run reconciliation report and adjust with manual correction
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.