RAIA™ Specification

Photo ID & Identity Verification SOP

We require a facial photograph of every tenant on file to check their identity on move-in day, blocking rental fraud, subletting loops, and legal Right to Rent fines.

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

We require a facial photograph of every tenant on file to check their identity on move-in day, blocking rental fraud, subletting loops, and legal Right to Rent fines.

🧩 Section A: In Plain English

Photo ID & Identity Verification SOP

We require a facial photograph of every tenant on file to check their identity on move-in day — blocking rental fraud, subletting loops, and legal Right to Rent fines.

CHAPTER 3.10

Photo ID & Identity Verification SOP

Why every RAIA (Real estate Artificial Intelligence Agent) tenant must have a face photo on file before any tenancy proceeds — legally, operationally, and ethically.

Right to Rent GDPR AML / KYC Active SOP Last reviewed: June 2025
📋 Synopsis

A tenant referencing check answers one question: "Can this person afford to pay rent?" It does not answer: "Is this the same person who will actually move in?" Without a photo on file, RAIA (Real estate Artificial Intelligence Agent) — and the landlord — have no way to verify that the financially-vetted applicant and the physical person turning up on move-in day are the same human being.

This is not paranoia. Subletting fraud, cuckooing, identity impersonation, and Right to Rent violations all exploit precisely this gap. UK law imposes a civil penalty of up to £20,000 per illegal occupier on landlords who fail to verify identity. GDPR provides clear lawful basis. ICO guidance confirms it's proportionate.

This chapter documents RAIA's mandatory Photo ID SOP: the four-stage checkpoint protocol, the technical implementation, the backfill plan for existing tenants without photos, and a frank analysis of why our referencing partner RentProfile leaves this step optional — and why that is a deliberate weakness we close ourselves.

Contents

1 — The Legal Mandate for Photo ID
2 — The RentProfile Gap: Financially Verified ≠ Visually Verified
3 — Risk Landscape: What Can Go Wrong
4 — The RAIA (Real estate Artificial Intelligence Agent) SOP: Four-Stage Protocol
5 — Technical Implementation
6 — Backfill Plan: The 41-Tenant Gap
7 — GDPR & Data Retention
8 — Reference Diagrams
Chapter 1

Why identity verification is not optional — it's a statutory obligation with real financial teeth.

Let's put the bottom line up front: photo identity verification for tenants is not a "nice to have." It is a legal requirement under English and Welsh law, grounded in three distinct legal frameworks simultaneously. Any agent or property management system that skips it is not just being careless — they are exposed to five-figure civil penalties and potential criminal liability.

1.1 Right to Rent (Immigration Acts 2014 & 2016)

The Immigration Act 2014 (as strengthened by the 2016 Act) created a duty on landlords — and their agents acting on their behalf — to check that every adult occupant has the legal right to reside in the UK before a tenancy begins. This is called a "Right to Rent" check.

⚠️ Civil Penalty: A landlord who permits occupation without conducting a Right to Rent check, or who fails to keep evidence of the check, faces a civil penalty of up to £20,000 per illegal occupier (Residential Tenancies Act 2014, s.23). Under the 2016 Act, knowingly renting to a disqualified person became a criminal offence with up to 5 years' imprisonment.

The Home Office Code of Practice (updated 2022) specifies that Right to Rent checks must be conducted by:

  1. Seeing the original document AND the person holding it in the same physical or video call session, OR
  2. Using a Government-certified Identity Service Provider (IDSP) for digital checks, OR
  3. Requesting a check via the Home Office Landlord Checking Service for those with online status only.

The critical word above is seeing the person. A financial reference check conducted entirely online — such as via RentProfile — does not constitute a Right to Rent check. Photo ID is the bridge between the financial reference and the Right to Rent obligation.

💡 ELI5: Imagine you lend your car to a friend, but you've never actually met the friend — you've only seen their bank statement proving they can pay for fuel. Right to Rent law says: you need to see the actual human before they drive away. A face photo on file is your proof you did that.

1.2 Anti-Money Laundering (AML) & Know Your Customer (KYC)

The Money Laundering, Terrorist Financing and Transfer of Funds (Information on the Payer) Regulations 2017 (MLR 2017) require estate agents — including letting agents — to conduct Customer Due Diligence (CDD) on their clients. This is enforced by HMRC as the supervisory body for the property sector.

AML CDD includes:
  • Verifying the identity of the customer (tenant) using reliable, independent source documents
  • Verifying the identity of any Beneficial Owner
  • Understanding the nature and intended purpose of the business relationship (tenancy)

"Reliable, independent source documents" in the context of residential lettings means: a photo ID document (passport, driving licence) plus a photo of the person holding it, or a live verification step. A referencing report alone — which relies on data provided by the applicant and verified against credit databases — is not CDD. It is a creditworthiness check.

HMRC's guidance for letting agents explicitly states that agents must perform CDD on both landlords and tenants for all tenancies, not just high-value transactions. The penalty for AML non-compliance: unlimited fine and up to 14 years' imprisonment in serious cases.

1.3 GDPR Lawful Basis for Processing

A common misconception: "collecting a face photo means we need special consent." This conflates two separate GDPR questions. Here is the correct analysis:

ICO Guidance (2023): The Information Commissioner's Office has confirmed that collecting identity documents — including face photos — for the purpose of property access and legal compliance is proportionate and necessary. The privacy impact is mitigated by limiting access to the minimum number of staff and storing the data securely. RAIA (Real estate Artificial Intelligence Agent) stores all avatars in a private GCS bucket with access logged and scoped to RAIA (Real estate Artificial Intelligence Agent) internal systems only.

Crucially: because we rely on Art. 6(1)(c) (legal obligation) as primary lawful basis, the tenant cannot withdraw "consent" to having their photo collected. There is no consent to withdraw. It is a statutory requirement. If a tenant refuses to provide a face photo, the tenancy cannot legally proceed under Right to Rent.

1.4 The Identity Bridge Problem

This is the operational heart of the issue, and it's worth spelling out in plain terms:

The Identity Bridge Problem: A referencing check verifies a data identity (name + date of birth + address history + financial profile). Move-in day requires verifying a physical identity (is this the human in front of me the same one whose data we checked?). Without a face photo, there is NO BRIDGE between these two identities. None. The gap is complete.

The referencing report could be entirely genuine — real income, real employment, real credit history — and a different person could show up on move-in day. This is not a hypothetical: subletting fraud, identity lending, and cuckooing all work precisely because this bridge is missing in most referencing workflows.

Chapter 2

The RentProfile Gap: Financially Verified ≠ Visually Verified

Why our referencing partner's design choices create a compliance hole that RAIA (Real estate Artificial Intelligence Agent) is obligated to close.

RAIA (Real estate Artificial Intelligence Agent) uses RentProfile as its tenant referencing platform. RentProfile is an excellent product for what it is designed to do: rapidly verify employment, income, credit history, and previous landlord references. RAIA (Real estate Artificial Intelligence Agent) has no complaints about the quality of that financial verification. The problem is a different one: RentProfile was built to serve the mass market of small landlords and independent letting agents — an audience that prioritises speed and minimal friction over compliance depth.

2.1 RentProfile's Design Philosophy

RentProfile is a volume business. Their revenue model depends on completing as many reference checks as possible. Every step they make optional increases the completion rate. Every step they make mandatory risks a drop-off that costs them money. This is not a criticism — it is simply the reality of B2B SaaS unit economics in a commoditised market.

The optional photo: a business decision, not a compliance decision.
RentProfile allows a tenant to complete their referencing application and generate a "pass" report with no face photo uploaded. The profile picture field is optional. The report PDF is generated without any facial image. The financially-vetted applicant is entirely visually anonymous.

This makes complete sense for a platform whose primary customers are landlords renting one or two properties, who know their tenants personally, who are focused on getting the tenancy started fast. For that customer segment, the face photo is indeed unnecessary friction.

2.2 RAIA's Position: We Are Not That Customer

RAIA (Real estate Artificial Intelligence Agent) is a professional property management OS operating at scale, handling properties on behalf of landlords who rely on us to conduct due diligence they cannot do themselves. Our obligations are those of a letting agent, not an individual landlord. The legal standard is higher. The reputational stakes are higher. The liability is ours to carry.

RAIA's compliance policy: We treat RentProfile as a financial verification tool only. The face photo requirement is a separate RAIA-specific gate that must be satisfied independently, using the four-stage SOP described in Chapter 4. A RentProfile "pass" with no avatar is a half-pass. It does not unlock offer stage.

2.3 The Exact Gap: What RentProfile's Report Cannot Tell You

A RentProfile reference report, at its best, tells you:

  • ✅ This person earns what they claim to earn
  • ✅ Their employer confirms their employment
  • ✅ Their credit history shows no CCJs or significant arrears
  • ✅ Their previous landlord gave a positive reference
  • ✅ Their address history is consistent

A RentProfile reference report, even at its best, cannot tell you:

  • ❌ What this person looks like
  • ❌ Whether the person who shows up on move-in day is the same person who submitted the application
  • ❌ Whether the documents submitted were actually the applicant's own documents
  • ❌ Whether the "employer" who confirmed employment was a genuine HR department or a WhatsApp contact
Scenario: The Perfect Fraud
Person A has excellent credit, stable employment, clean history. They complete a RentProfile application. Person B — who couldn't pass referencing — pays Person A to use their identity. Person A submits all the documents. The report passes. On move-in day, Person B turns up. Without a face photo cross-check, the property manager has no way to detect this. Person B is now a tenant in a property. The landlord has violated Right to Rent (wrong person), potentially AML obligations, and the tenancy agreement (tenant substitution). RAIA (Real estate Artificial Intelligence Agent) is liable as the managing agent.

2.4 Why We Don't Just Switch to an IDSP

Identity Service Providers (IDSPs) certified by the government (e.g. Yoti, Credas, Thirdfort) provide digital Right to Rent checks that satisfy the Home Office Code of Practice directly. They are excellent products. RAIA (Real estate Artificial Intelligence Agent) evaluates IDSP integration as a future enhancement.

However: even with a full IDSP flow in place, a face photo in tbl_persons.avatar_url remains essential for ongoing operational use — property managers need to be able to visually identify their tenants for inspections, maintenance visits, and emergency situations. The photo is not just a compliance artefact. It is an operational tool.

Chapter 3

Risk Landscape: What Can Go Wrong

A taxonomy of threats that the identity gap enables.

Before we define the SOP, it's important to understand why the SOP exists — what specific threat models it mitigates. Below is the full threat taxonomy.

No Face Photo = Identity Gap Subletting Fraud Tenant passes check, stranger moves in and sublets without consent Identity Lending Good-credit person lends identity to unqualified applicant (for money) Right to Rent Violation Illegal occupant bypasses check. Landlord faces £20k civil penalty Insurance Void Unauthorised occupant voids landlord building & contents cover Cuckooing Criminals take over a vulnerable tenant's property for drug activity AML Non-Compliance Failure to conduct CDD = potential HMRC enforcement action & fine Eviction Complexity Unknown occupant = harder S21/S8. Solicitor fees spiral without ID proof Reputational Damage News story: "PropTech firm let fraudster move into flat" Risk Mind Map — All threats enabled by the absence of a face photo in tbl_persons.avatar_url
Figure 3.1 — Risk landscape when photo ID is absent. Each node represents a distinct threat vector.

3.1 Threat Analysis

Subletting Fraud

The named tenant moves someone else into the property — a friend, a family member, or a paying subtenant — without the landlord's consent and without that person being checked. Because no face photo exists, the property manager cannot detect that the person living there is not the person in the tenancy agreement. This is the most common fraud type in UK residential lettings.

Identity Lending

A person with a strong credit profile (good income, no CCJs, positive landlord references) agrees — often for payment — to submit a referencing application using their genuine details, while a third party (the actual intended occupant, who could not pass referencing themselves) plans to actually live there. Without a face photo, this fraud is invisible in the referencing report.

Right to Rent Violations & The £20,000 Penalty

The person who shows up on move-in day may have no right to reside in the UK. If no face-to-document check was performed, the landlord and agent have no defence. The civil penalty of up to £20,000 per illegal occupier applies. Multiple occupants multiply the penalty. RAIA (Real estate Artificial Intelligence Agent) as managing agent carries the liability because we are conducting tenancy management on behalf of the landlord.

Cuckooing

Cuckooing is a form of county lines drug operation in which organised criminals take over a vulnerable person's home — often a social housing tenant with mental health issues, addiction problems, or learning disabilities — and use it as a base for drug distribution. Because RAIA (Real estate Artificial Intelligence Agent) manages residential properties across a range of tenant profiles, recognising that a legitimate tenant's face no longer matches who is actually opening the door is a genuine operational concern. A photo on file enables early detection.

Insurance Voidance

Most landlord insurance policies require that the property is occupied by the named tenant(s) on the tenancy agreement. An undisclosed occupant — or a situation where the named tenant is not actually living there — can void the policy in the event of a claim. This leaves the landlord exposed to the full cost of fire, flood, or theft with no recourse.

Chapter 4

The RAIA (Real estate Artificial Intelligence Agent) SOP — Four-Stage Photo ID Protocol

The mandatory checkpoint protocol that closes the RentProfile identity gap at every stage of onboarding.

RAIA's Photo ID SOP operates across four distinct stages of the tenant onboarding lifecycle. Each stage has a clear gate: no photo = no progression. The stages are not sequential alternatives — they are layered checkpoints. Passing Stage 1 does not eliminate Stage 3. All four must be satisfied.

1

Stage 1 — Referencing Invite (Parallel WhatsApp/Email Trigger)

Automated Trigger: RentProfile invite sent

When the RAIA (Real estate Artificial Intelligence Agent) system sends a tenant their RentProfile referencing invitation, a parallel communication is simultaneously sent via WhatsApp and email. This message is not optional — it fires as part of the same automated workflow that sends the RentProfile invite link.

Message template (WhatsApp / Email):
"Your referencing has started via RentProfile. You MUST upload a clear face photo to your RentProfile profile. This is required by your prospective landlord under Right to Rent compliance. Tenancies cannot proceed without this. Please upload your photo now: [link]. If you have any questions, reply to this message."

The system also establishes a webhook listener on the RentProfile Status API. When a reference report reaches status: completed, the system automatically checks whether a profile thumbnail exists:

// webhook handler: rentprofile status update
if (report.status === 'completed') {
  const hasThumbnail = !!report.applicant.profile_image_url;
  if (!hasThumbnail) {
    await flagTenantBlocked(report.applicant.person_id, 'NO_FACE_PHOTO');
    await sendReminder(report.applicant.person_id, 'photo_required');
  }
}

If the report completes with no thumbnail: the tenant's status in RAIA (Real estate Artificial Intelligence Agent) is flagged as BLOCKED: NO_FACE_PHOTO. An automated follow-up message is sent. The report is marked as a half-pass. The offer stage is not unlocked.

2

Stage 2 — Offer Gate (Avatar URL Check)

Automated Gate Trigger: Offer issuance requested

Before RAIA (Real estate Artificial Intelligence Agent) issues a tenancy offer to any applicant, the system performs a pre-offer check against tbl_persons. The check is simple but hard:

-- Pre-offer photo check
SELECT
  p.person_id,
  p.full_name,
  p.avatar_url,
  CASE
    WHEN p.avatar_url IS NULL THEN 'BLOCKED: no avatar'
    WHEN p.avatar_url LIKE '%silhouette%' THEN 'BLOCKED: silhouette placeholder'
    WHEN p.avatar_url LIKE '%placeholder%' THEN 'BLOCKED: placeholder image'
    WHEN p.avatar_url LIKE '%default%' THEN 'BLOCKED: default avatar'
    ELSE 'OK: real photo on file'
  END AS photo_status
FROM tbl_persons p
WHERE p.person_id = :applicant_person_id;

If photo_status is anything other than OK, the offer is withheld. The property manager cannot issue a tenancy agreement until this gate is cleared. An automated message is sent to the tenant:

Automated message (offer withheld):
"We're ready to move forward with your tenancy application, but we need your photo ID before we can issue your tenancy offer. Please upload a clear face photo to your RAIA (Real estate Artificial Intelligence Agent) portal: [link]. Your tenancy cannot proceed without this step."

When the tenant uploads their photo, it is stored in Google Cloud Storage under the private bucket:

gs://raia-gb-private/avatars/{person_id}.png

On upload, the tbl_persons record is updated:

UPDATE tbl_persons
SET avatar_url = 'https://storage.raia.internal/avatars/{person_id}.png',
    avatar_verified_at = NOW(),
    avatar_source = 'tenant_upload'
WHERE person_id = :person_id;
3

Stage 3 — Move-In / Key Handover (Live Face Match)

Manual Step Trigger: Move-in day

Stage 2 confirms a photo exists. Stage 3 confirms the right person is at the property. The property manager (PM) is required to conduct one of the following before handing over keys or access codes:

  • Option A (preferred): Live video call with the tenant. PM opens the photo from tbl_persons.avatar_url on their device and visually confirms the face matches the person on the call.
  • Option B: In-person check at key handover. PM requests the tenant present their photo ID document (passport or driving licence) and compares to face.
  • Option C (exceptional): Remote handover via key safe code. PM must have completed a prior video verification call before issuing the key safe code.

The outcome of Stage 3 is logged as a compliance event. This logging is mandatory — it is the PM's evidence that a Right to Rent-aligned identity check was performed:

-- Log move-in identity verification
UPDATE tbl_tenancies
SET compliance_json = jsonb_set(
  COALESCE(compliance_json, '{}'),
  '{identity_verification}',
  '{
    "method": "video_call",
    "verified_by_pm_id": 42,
    "verified_at": "2025-06-01T14:30:00Z",
    "photo_match_confirmed": true,
    "notes": "Face matched avatar on file. Passport also sighted."
  }'
)
WHERE tenancy_id = :tenancy_id;
Without Stage 3, Stages 1 and 2 are insufficient. A photo on file only proves we collected a photo. Stage 3 proves we confirmed the photo matches the person. Without Stage 3 logged, our Right to Rent defence is incomplete. It takes 3 minutes. It must happen.
4

Stage 4 — Backfill for Existing Tenants (Current Gap)

Active Gap 41 tenants affected 30-day deadline

The new-tenant SOP in Stages 1–3 closes the gap for future onboardings. However, a gap exists for existing active tenants whose tenancies started before this SOP was implemented. A forensic backfill query reveals:

SELECT COUNT(*) FROM tbl_persons p
JOIN tbl_tenancies t ON t.tenant_person_id = p.person_id
WHERE t.status = 'active'
  AND (
    p.avatar_url IS NULL
    OR p.avatar_url LIKE '%silhouette%'
    OR p.avatar_url LIKE '%placeholder%'
  );
-- Result: 41 rows

41 active tenants currently have no face photo on file. This is an active compliance gap. The remediation plan:

  1. Week 1: Run the automated WhatsApp outreach script (backfill-tenant-landlord-avatars.cjs). Each tenant receives a personalised message requesting they upload a photo to their RAIA (Real estate Artificial Intelligence Agent) portal. Message includes a direct upload link and explains the Right to Rent legal basis.
  2. Week 2: Follow-up message to non-responders. Property manager flagged to follow up by phone.
  3. Week 3–4: For any remaining non-responders: photo is captured at the next scheduled property inspection. PM uses the RAIA (Real estate Artificial Intelligence Agent) mobile app to photograph the tenant and upload directly to their profile.
  4. Day 30: Target: zero tenants with avatar_url IS NULL or silhouette placeholder. Any tenant still without a photo after 30 days triggers a formal review of their tenancy status.
Tracking: The backfill script generates a daily progress report. The compliance dashboard shows a real-time count of unresolved gaps. See referencing-report-avatar-backfill.html for full technical documentation of the backfill process.

Flow Diagrams

Diagram 1 — Full Onboarding Flow with Photo ID Gates

Tenant Enquiry Stage 1: Referencing Invite RentProfile invite + parallel WhatsApp/email Photo uploaded to RentProfile? NO 🚫 BLOCKED Reminder sent. No offer. YES

Repository Code

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

RentProfile Complete --> RentProfile Report Complete Financially verified ✅ | Avatar present ✅ Stage 2: avatar_url is real face photo? NO 🚫 Offer Withheld Upload request sent YES Tenancy Offer Issued AST signed. Deposit lodged. Move-in scheduled. Stage 3: Live face match confirmed? NO 🚫 Keys Withheld Escalate to manager YES Compliance Event Logged tbl_tenancies.compliance_json updated ✅ Tenancy Active — Compliant Decision gate Pass / proceed Block / hold
Figure 4.1 — RAIA (Real estate Artificial Intelligence Agent) tenant onboarding flow with mandatory photo ID checkpoint gates at Stages 1, 2, and 3.

Diagram 2 — The Blocked Flow (Missing Photo)

WHAT HAPPENS WHEN PHOTO IS MISSING RentProfile Report Completes — No Photo ❌ avatar_url IS NULL RAIA (Real estate Artificial Intelligence Agent) Webhook Fires status: completed + no thumb → flagTenantBlocked() Person Status: BLOCKED NO_FACE_PHOTO Automated Reminder WhatsApp + Email sent Upload link included Offer Gate Blocked PM cannot issue tenancy offer System enforces hard stop ▼ RESOLUTION PATHS ▼ Tenant Uploads Photo avatar_url updated in tbl_persons Status cleared → offer unlocked OR Inspection Fallback PM photos tenant at inspection Uploads to RAIA (Real estate Artificial Intelligence Agent) portal ✅ Block Cleared — Onboarding Resumes
Figure 4.2 — The blocked flow when a tenant has no face photo. System gates are automatic; resolution paths are manual or automated outreach.
Chapter 5

Technical Implementation

Schema, storage, validation logic, and API integration details.

5.1 Database Schema

The photo ID SOP touches three tables: tbl_persons (stores the avatar), tbl_tenancies (stores compliance events), and tbl_onboarding_status (tracks gate progression).

-- tbl_persons: avatar fields
ALTER TABLE tbl_persons ADD COLUMN IF NOT EXISTS
  avatar_url TEXT DEFAULT NULL;           -- GCS signed URL or null

ALTER TABLE tbl_persons ADD COLUMN IF NOT EXISTS
  avatar_source TEXT DEFAULT NULL;        -- 'tenant_upload' | 'pm_capture' | 'backfill_inspection'

ALTER TABLE tbl_persons ADD COLUMN IF NOT EXISTS
  avatar_verified_at TIMESTAMPTZ DEFAULT NULL;  -- when PM confirmed face match

ALTER TABLE tbl_persons ADD COLUMN IF NOT EXISTS
  avatar_blocked_reason TEXT DEFAULT NULL;      -- 'NO_FACE_PHOTO' | 'SILHOUETTE' | 'PLACEHOLDER'


-- tbl_tenancies: compliance_json structure
-- compliance_json JSONB column, example value:
{
  "identity_verification": {
    "stage_1_completed": true,
    "stage_1_at": "2025-05-20T10:00:00Z",
    "stage_2_completed": true,
    "stage_2_at": "2025-05-25T14:22:00Z",
    "stage_3_completed": true,
    "stage_3_at": "2025-06-01T14:30:00Z",
    "method": "video_call",
    "verified_by_pm_id": 42,
    "photo_match_confirmed": true,
    "right_to_rent_check_type": "manual_video",
    "notes": "Passport sighted. Face matched avatar."
  }
}

5.2 GCS Storage Pattern

Bucket: gs://raia-gb-private (private, no public access)
Path:   avatars/{person_id}.png

Access: Via signed URLs generated on-demand (15 min TTL)
URL format stored in DB: https://storage.raia.internal/avatars/{person_id}.png

IAM: Only raia-app-service-account@raia-gb.iam.gserviceaccount.com
     has roles/storage.objectAdmin on the avatars/ prefix.
     Property managers access via RAIA (Real estate Artificial Intelligence Agent) app, not directly.
     All access is logged to Cloud Audit Logs.

5.3 Avatar Validation Logic

// lib/avatar-validation.js
const BLOCKED_PATTERNS = [
  /silhouette/i,
  /placeholder/i,
  /default[-_]?(avatar|user|person)/i,
  /anonymous/i,
  /no[-_]?photo/i,
  /missing/i,
];

function isRealFacePhoto(avatarUrl) {
  if (!avatarUrl) return false;
  if (typeof avatarUrl !== 'string') return false;
  for (const pattern of BLOCKED_PATTERNS) {
    if (pattern.test(avatarUrl)) return false;
  }
  // Must be a raia.internal GCS URL or a RentProfile CDN URL
  const isGCS = avatarUrl.startsWith('https://storage.raia.internal/avatars/');
  const isRentProfile = avatarUrl.includes('rentprofile.co.uk') &&
                        avatarUrl.includes('/photos/');
  return isGCS || isRentProfile;
}

// Used in pre-offer gate check
async function checkOfferGate(personId) {
  const person = await db.one(
    'SELECT avatar_url FROM tbl_persons WHERE person_id = $1',
    [personId]
  );
  if (!isRealFacePhoto(person.avatar_url)) {
    throw new OfferGateError('NO_FACE_PHOTO', personId);
  }
  return true;
}

5.4 RentProfile Webhook Integration

// api/webhooks/rentprofile.js
router.post('/rentprofile/status', async (req, res) => {
  const { event, report } = req.body;

  if (event !== 'report.completed') return res.status(200).send('ok');

  const personId = await resolvePersonId(report.applicant.email);
  const hasThumbnail = !!(
    report.applicant.profile_image_url &&
    isRealFacePhoto(report.applicant.profile_image_url)
  );

  if (hasThumbnail) {
    // Mirror the photo to GCS and update tbl_persons
    await mirrorAvatarToGCS(personId, report.applicant.profile_image_url);
    await db.none(
      `UPDATE tbl_persons SET
         avatar_url = $1,
         avatar_source = 'rentprofile_sync',
         avatar_verified_at = NOW()
       WHERE person_id = $2`,
      [`https://storage.raia.internal/avatars/${personId}.png`, personId]
    );
  } else {
    // Block the tenant
    await db.none(
      `UPDATE tbl_persons SET
         avatar_blocked_reason = 'NO_FACE_PHOTO'
       WHERE person_id = $1`,
      [personId]
    );
    await sendPhotoReminder(personId, 'rentprofile_complete_no_photo');
  }

  res.status(200).send('ok');
});
Chapter 6

Backfill Plan: The 41-Tenant Gap

How we remediate existing active tenancies that predate the photo ID SOP.

Current status (June 2025): 41 active tenants have avatar_url IS NULL or a silhouette/placeholder. This represents an active Right to Rent compliance gap. The 30-day remediation plan below is in progress.

6.1 Identification Query

-- Find all active tenants missing a real face photo
SELECT
  p.person_id,
  p.full_name,
  p.phone_whatsapp,
  p.email,
  p.avatar_url,
  t.tenancy_id,
  t.property_id,
  t.pm_user_id,
  u.full_name AS pm_name
FROM tbl_persons p
JOIN tbl_tenancies t ON t.tenant_person_id = p.person_id
JOIN tbl_users u ON u.user_id = t.pm_user_id
WHERE t.status = 'active'
  AND (
    p.avatar_url IS NULL
    OR p.avatar_url LIKE '%silhouette%'
    OR p.avatar_url LIKE '%placeholder%'
    OR p.avatar_url LIKE '%default%'
  )
ORDER BY p.full_name;
-- 41 rows returned

6.2 Remediation Timeline

6.3 Backfill Script Reference

The automated outreach is handled by backfill-tenant-landlord-avatars.cjs. See referencing-report-avatar-backfill.html for full documentation. Key behaviour:

  • Queries the 41-tenant list from the DB
  • For each tenant: sends a personalised WhatsApp message with a direct upload link
  • Message includes the Right to Rent legal basis (plain English)
  • Tracks send status in tbl_comms_log
  • Generates a daily progress CSV: backfill-progress-{date}.csv
  • Does NOT send duplicate messages (checks tbl_comms_log before sending)
Chapter 7

GDPR & Data Retention

How we handle photo ID data lawfully, proportionately, and with respect for tenant rights.

7.1 Privacy Notice Obligation

RAIA's Privacy Notice (Article 13 GDPR) must explicitly state:

  • That we collect a face photo as part of the tenancy application process
  • The lawful basis: Art. 6(1)(c) (Right to Rent legal obligation) and Art. 6(1)(f) (legitimate interest)
  • How long the photo is retained
  • Who has access (RAIA (Real estate Artificial Intelligence Agent) staff; property manager; not shared with third parties except as required by law)

7.2 Retention Schedule

7.3 Tenant Rights

Tenants have the following rights regarding their face photo under GDPR:

  • Right of access (Art. 15): They can request a copy. RAIA (Real estate Artificial Intelligence Agent) fulfils this via the tenant portal.
  • Right to rectification (Art. 16): They can request their photo be updated. Standard portal upload flow handles this.
  • Right to erasure (Art. 17): This right is restricted while a tenancy is active, because processing is required for a legal obligation (Right to Rent) and legitimate interest. After the retention period expires, data is automatically deleted by the GCS lifecycle policy.
  • Right to object (Art. 21): For processing under Art. 6(1)(f) (legitimate interest), the tenant may object. However, our Right to Rent obligation (Art. 6(1)(c)) overrides this — we cannot waive a statutory requirement.
Key point for PMs: If a tenant demands their photo be deleted while they are an active tenant, explain that this is not possible under Right to Rent law. Escalate to Compliance if they persist. Do NOT delete the photo without a formal compliance sign-off. The £20,000 penalty is not hypothetical.
Chapter 8

Summary & Key Decisions

The opinionated positions RAIA (Real estate Artificial Intelligence Agent) has taken and why.

Final word: A property management platform that does not have photos of its tenants is not a property management platform — it is a spreadsheet. RAIA's position is that professional agency means knowing who is in your properties at all times. Photo ID is not friction. It is the minimum standard of care.
Chapter 3.10 · Photo ID & Identity Verification SOP
Last reviewed: June 2025 · Status: Active
🔧 Section C: Developer Guide

Architecture Details

Compliance architecture implements a rule-based enforcement engine with automated audit trails, document generation, and evidence collection. The system tracks regulatory requirements across multiple jurisdictions (UK, Thailand) and automates compliance checks throughout the tenancy lifecycle.

  • Core Component: Compliance engine and audit trail system
  • Data Flow: Event → Rule Evaluation → Compliance Check → Document Generation → Evidence Storage → Audit Log
  • Integration Points: Document templates, jurisdiction rules, evidence store, audit log

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
jurisdiction string uk-england Applicable jurisdiction for compliance rules
auto_evidence boolean true Enable automatic evidence collection
retention_years integer 6 Compliance record retention period
COMPLIANCE ARCHITECTURE — EVENT → RULE → AUDIT 1. EVENT LAYER Lifecycle Events Trigger Processing 📡 Events 2. RULE ENGINE Jurisdiction Rules Compliance Checks ⚖️ Rules 3. AUDIT & EVIDENCE Document Generation Evidence Storage 📋 Audit Trail Compliance lifecycle: events trigger rule evaluation, compliance checks generate documents, and evidence is stored with full audit trails Jurisdiction-aware rules · Automated evidence · Document generation · Retention policies Events / Triggers Rules / Compliance Engine Audit / Evidence Store Data flow →

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

Troubleshooting

Issue Cause Resolution
Rule mismatch by jurisdiction Incorrect jurisdiction configuration Verify jurisdiction code matches the tenant's location
Missing evidence artifact Automated collection not triggered Check auto_evidence setting and retry collection
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.