RAIA™ Specification

GDPR PII Access Architecture

When a letting agent needs to check a tenant identity document — like a passport — RAIA (Real estate Artificial Intelligence Agent) does not show it by default. You have to say why you need to see it, we log that reason, then show you the docum

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

When a letting agent needs to check a tenant identity document — like a passport — RAIA (Real estate Artificial Intelligence Agent) does not show it by default. You have to say why you need to see it, we log that reason, then show you the docum

🧩 Section A: In Plain English

GDPR PII Access Architecture

When a letting agent needs to check a tenant identity document, RAIA (Real estate Artificial Intelligence Agent) does not show it by default. You must state your reason, we log it, then show the document for 15 minutes before it auto-disappears — protecting privacy and maintaining an audit trail.

🟢 In Plain English

When a letting agent needs to check a tenant identity document — like a passport — RAIA (Real estate Artificial Intelligence Agent) does not show it by default. You have to say why you need to see it, we log that reason, then show you the document for 15 minutes before it disappears. This protects tenant privacy and means we always have a record of who looked at what and why.

GDPR PII Access Architecture

Justified access on demand, session-scoped PII retrieval, append-only access audit log, legacy GCS migration path, Sumsub integration, and modular jurisdiction retention design.

⚖ UK GDPR Article 25 — Privacy by Design ▲ HITL Gate — Access Justification ✓ Append-Only Audit Trail
0
Passport scans stored on RAIA (Real estate Artificial Intelligence Agent) servers by default — status only in UI
1 yr
ICO-mandated minimum Right to Rent retention post-tenancy end
6
Access purpose categories — controlled vocabulary, no free-text browsing
100%
Access log coverage — append-only, tamper-evident, DSAR-ready
🔐

TL;DR. Legacy CRMs expose passport scans to every credentialed user with no logging. RAIA's architecture shows only compliance status in the default UI. Identity documents live in a private GCS bucket. Access requires a justified purpose, creates an immutable log entry, and grants a 15-minute scoped signed URL — never a download. Every access is auditable for DSAR responses and ICO enquiries.


Chapter 1 Why — The GDPR Reality

What Legacy CRMs Do (and Why It's Wrong)

Research conducted June 2026 across five major proptech platforms — Goodlord, RentProfile, HomeLet, Canopy, and Arthur Online — reveals a systematic GDPR compliance gap:

Industry Status Quo — Failures Found
  • All platforms store passport scans & referencing reports accessible to any credentialed user in the default portal UI
  • None implement per-record PII access logging publicly
  • Arthur Online: all users with account access can see all documents — zero RBAC on document sensitivity
  • Canopy explicitly acknowledges biometric data (Article 9 special category) — only platform to do so; none act on it
  • None implement "access on request only" gating
Regulatory Trajectory — ICO Enforcement
  • No specific ICO enforcement yet against proptech — but trajectory is clear
  • Advanced Computer Software — £1.48M fine (2024) for inadequate access controls
  • CNIL €120K fine for no defined retention periods
  • ICO DSAR enforcement focus intensifying 2024–2026
  • When enforcement arrives in proptech, unprepared platforms will pay significant fines

ICO Position on Right to Rent Documents

UK GDPR + Home Office Combined Guidance
  • Minimum retention: 1 year post-tenancy end (not start) — per Home Office + ICO combined guidance
  • Biometric selfies from IDVT liveness checks = Article 9 special category data — hold only for duration of check, then retain outcome only
  • Storage limitation principle: Automated deletion triggers are legally required, not optional
  • Data minimisation: The compliance status (pass/fail + date) is all that needs to be visible in the default UI — not the document itself
💡

The key insight. You don't need to show a passport scan to prove a check passed. The outcome is the operationally relevant fact. The document is only needed in two scenarios: (1) a compliance audit, (2) identity verification at a physical touchpoint (viewing, video call). Both are rare, both are justifiable, neither requires the document to be visible in the normal workflow.

Red Team: Should We Hold Documents Ourselves?

The question was put to the red team: should RAIA (Real estate Artificial Intelligence Agent) hold documents in its own GCS with systematic GDPR enforcement rather than relying on on-demand retrieval from Sumsub/RentProfile?

✅

Answer: YES. Hold documents in RAIA's own GCS private bucket. Apply systematic access controls. The "on-demand from 3rd party" pattern is elegant but fragile. Here's the reasoning:

  • Screenshot risk is manageable at the policy/audit layer. Any screen can be photographed. The legal protection is the audit log proving authorised access, the recorded purpose, and the user's contractual obligation. A GDPR regulator asks "did you have appropriate technical and organisational measures?" — a justified access system answers yes.
  • ICO requires accountability, not perfect containment. The ICO does not require you to make data inaccessible to authorised staff — it requires appropriate access controls and accountability. GCS with RLS + access logging + justified access = appropriate controls.
  • Third-party storage creates liability exposure. Sumsub or RentProfile's breach is your problem as data controller. Their closure, API changes, or rate limits could destroy your ability to fulfil legal retention obligations.
  • Practical retention risk. If a 3rd party becomes unavailable, you lose access to data you have a legal obligation to retain for 1 year post-tenancy.

On the Screenshot Argument

The screenshot risk does not invalidate the access control system. GDPR compliance is about demonstrating accountability and appropriate technical/organisational measures — not achieving perfect information containment (which is impossible). The justified access system:

  • ✓ Creates legal record of who accessed what, when, and why
  • ✓ Deters casual browsing of sensitive data (friction has real value)
  • ✓ Enables precise DSAR responses — you can tell a tenant exactly who accessed their data
  • ✓ Creates disciplinary and contractual enforcement basis when misuse occurs
  • ✓ Satisfies ICO Article 30 Records of Processing Activity requirement

System-Level Enforcement vs. Training

Training Alone — Insufficient

Training relies on memory, consistency, and individual discretion. It cannot guarantee compliance at the moment of access. It produces no audit trail. It cannot scale across multiple agent accounts and agencies.

System Enforcement — The Correct Answer

The access request modal enforces justified access at the exact moment of need — no training required, no memory required, no individual discretion. This is "privacy by design" under UK GDPR Article 25 — a legal obligation, not a nice-to-have. RAIA (Real estate Artificial Intelligence Agent) should do this precisely because it differentiates from legacy systems and protects the business.


Chapter 2 How — The Architecture

Diagram 1: Three-Tier Document Access Model

TIER 0 — COMPLIANCE STATUS TIER 1 — FACE PORTRAIT TIER 2 — IDENTITY DOCUMENTS ALWAYS VISIBLE IN DEFAULT UI identity_verified: true/false r2r_passed: true/false + date id_document_type (metadata) referencing_outcome: pass/fail tbl_persons + compliance_json No PII — outcome only OPS USERS — NORMAL WORKFLOW Cropped face image only No document / number / DOB Purpose: viewings, video calls No access log required gs://rcf_public/avatar/{id}.jpg Public GCS — via avatar_url JUSTIFIED ACCESS ONLY Passport, driving licence, BRP Right to Rent certificate PDF Referencing report PDF Purpose required + logged gs://raia-gb-private/id/{id}/… Signed URL · 15 min · no download 🔒
Three document tiers — Tier 0 shows status only (no PII), Tier 1 shows face portrait for operational identity confirmation, Tier 2 requires justified access request with full audit logging
Tier 0

Compliance Status

Always visible in default UI. Zero PII.

  • identity_verified true/false
  • r2r_passed true/false + date
  • id_document_type (passport/dl/brp — metadata only)
  • referencing_outcome pass/fail/referred

Stored in: tbl_persons + compliance_json. No access log required.

Tier 1

Face Portrait

Visible to ops users in normal workflow.

  • Cropped face image only — no document, no number, no DOB
  • Purpose: identity confirmation on viewings and video calls
  • No access log required (face already known at viewing)

Stored in: gs://rcf_public/avatar/{person_id}.jpg. Accessible via avatar_url.

Tier 2

Identity Documents

Justified access only. Full audit trail.

  • Passport scan, driving licence, BRP, visa
  • Right to Rent certificate PDF
  • Referencing report PDF
  • 15-minute signed URL — no download permitted

Stored in: gs://raia-gb-private/id/{person_id}/{doc_type}/{document_id}.pdf

Diagram 2: Justified Access Request Flow

User clicks "View Identity Doc" HITL Purpose? Log Entry tbl_pii_access_log GCS Signed URL 15 min · doc-scoped Sandboxed Viewer No download · CSP block · Watermark user + timestamp + purpose overlay URL Expires (15 min) Session token invalidated · access closed 2nd access = new request + new log entry No purpose selected Access blocked — no log entry approved ✓ rejected ✗ Portal API / GCS Expiry
Justified access request flow — HITL gate (red diamond) requires purpose selection before any document access; every path through the gate creates an immutable log entry

Access Request Flow — Step by Step

  • 1
    User clicks "View Identity Document" in portal

    Available only to users with the correct RBAC role. Button is not rendered for roles without document access permission.

  • 2
    Modal: select purpose from controlled vocabulary

    No free-text browsing. One of 6 defined purposes must be selected. "Other" requires a written explanation — empty "other" is rejected at the API layer.

  • 3
    System logs: user_id, person_id, document_type, purpose, timestamp, IP → tbl_pii_access_log

    Append-only. Row INSERT is the only permitted DML. No UPDATE, no DELETE. Log entry is created before the signed URL is generated.

  • 4
    Generate GCS signed URL — 15-minute expiry, scoped to single document

    URL is generated via service account with minimal IAM permissions. Scoped to specific object path only — not a broad bucket grant.

  • 5
    Document served in sandboxed iframe — no download, watermark overlay

    CSP header blocks file save. Watermark SVG renders user name + timestamp + purpose over the document view. No right-click save.

  • 6
    After 15 minutes: signed URL expires automatically, session token invalidated

    GCS signed URL expiry is enforced server-side. No client-side timer required. Access is automatically closed.

  • 7
    Second access to same document requires a new request (new log entry)

    There is no "keep open" state. Each access creates a fresh audit trail entry. Frequency of access is therefore fully auditable.

Access Purpose Controlled Vocabulary

Purpose Code
When to use
Free text req?
viewing_verification
Confirming identity at a physical property viewing
No
video_call_verification
Identity check during remote video call viewing or sign-up
No
arrears_enforcement
Confirming identity for formal arrears correspondence or court proceedings
No
compliance_audit
Internal or external compliance review of Right to Rent records
No
right_to_rent_recheck
Periodic R2R recheck required for time-limited visas
No
other
Any other legitimate business purpose not listed above
Required

The tbl_pii_access_log Schema

CREATE TABLE tbl_pii_access_log (
  log_id              UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  organisation_id     UUID NOT NULL,
  requested_by        UUID NOT NULL REFERENCES auth.users(id),
  person_id           UUID NOT NULL,
  document_id         UUID REFERENCES tbl_documents(document_id),
  document_type       TEXT NOT NULL,
  access_purpose      TEXT NOT NULL CHECK (access_purpose IN (
    'viewing_verification',
    'video_call_verification',
    'arrears_enforcement',
    'compliance_audit',
    'right_to_rent_recheck',
    'other'
  )),
  access_purpose_detail TEXT,          -- required when purpose = 'other'
  ip_address          INET,
  user_agent          TEXT,
  signed_url_expires_at TIMESTAMPTZ NOT NULL,
  accessed_at         TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

-- RLS policies:
-- INSERT: allowed for authenticated org members (creates access record)
-- UPDATE: DENIED — no modification of access records permitted
-- DELETE: DENIED — deleting access log = GDPR audit trail breach
-- SELECT: scoped to organisation_id = requesting user's org

-- DSAR support: SELECT * WHERE person_id = $tenant_id
--   returns complete access history for any data subject access request

-- CHECK constraint: 'other' requires access_purpose_detail IS NOT NULL
-- (enforced at API layer — empty 'other' defeats the audit trail)

Diagram 3: Document Lifecycle

Creation Sumsub / GCS upload Storage raia-gb-private encrypted GCS Access Event Justified request → log entry + URL Retention Check Nightly cron tenancy_end + days Deletion GCS delete + soft-delete tbl_docs Onboarding Active tenancy Retention period (min 1yr GB) Expired ICO minimum (GB: 1yr post-end)
Document lifecycle from creation through active tenancy to mandatory deletion — ICO minimum retention for GB is 1 year post-tenancy end, not post-start

Document Storage Path Convention

GCS Path Standards
  • Legacy (existing ~189 docs): gs://raia-gb-private/{original_path} — grandfathered in, no migration needed immediately
  • New standard path: gs://raia-gb-private/id/{person_id}/{document_type}/{document_id}.{ext}
  • Sumsub documents: Fetched live via Sumsub API using applicant_id — never stored in RAIA (Real estate Artificial Intelligence Agent) GCS during onboarding
  • RentProfile reports: Download to standard path on first access (lazy migration)

Legacy GCS Migration Strategy — Lazy Migration

No bulk refile operation is required for the existing ~189 documents. Migration is on-demand:

  • 1
    First access via justified access system

    Document is accessed via signed URL from its existing legacy path. No disruption to existing records.

  • 2
    Background job: rename to standard path convention

    Rename to {person_id}/{doc_type}/{doc_i

    Repository Code

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

d} format in GCS after confirmed successful access.

  • 3
    Update tbl_documents.gcs_object_name to new path

    Single column update — no cascade required.

  • 4
    Delete old path from GCS

    After confirming tbl_documents row points to new path. Old path is no longer referenced.

  • Modular Jurisdiction Retention Policy

    Document retention periods are jurisdiction-specific. RAIA (Real estate Artificial Intelligence Agent) implements a tbl_pii_retention_policy table to define per-jurisdiction rules:

    Jurisdiction Document Type Retention (days post-end) Legal Basis Status
    GBright_to_rent365Home Office / ICO combined guidanceDefined
    GBid_document365UK GDPR storage limitationDefined
    GBreferencing_report2190Limitation Act 1980 (6yr contract)Defined
    THallTBDPending legal review⚠ Flag
    MYallTBDFook to confirm⚠ Flag
    VNallTBDMi to confirm⚠ Flag
    DEFAULTcontract-related2190Safe default until jurisdiction definedFallback

    Diagram 4: Sumsub vs Legacy Document Source

    Tenancy source? Legacy Legacy Tenancy Docs in raia-gb-private Signed URL from RAIA (Real estate Artificial Intelligence Agent) GCS Auto-Delete at retention period New (Sumsub) Sumsub Tenancy Outcome only in tbl_persons Sumsub API fetch on justified request Tenancy End Trigger Download → GCS → retain → delete sumsub_applicant_id stored — docs fetched live, not cached
    Legacy tenancies: documents already in RAIA (Real estate Artificial Intelligence Agent) GCS, served directly via signed URL. New (Sumsub) tenancies: outcome stored only; documents fetched live from Sumsub API on justified request; downloaded to GCS only at tenancy end for retention compliance
    Legacy Tenancies (Pre-Sumsub)
    • Documents already in gs://raia-gb-private/
    • Served via signed URL from RAIA's own store
    • Lazy migration to standard path on first access
    • Automated deletion at retention period end
    New Tenancies (Sumsub Onboarding)
    • Identity verification outcome stored in tbl_persons
    • sumsub_applicant_id stored for later retrieval
    • Documents fetched live from Sumsub API on justified access request
    • At tenancy end: download verification report to RAIA (Real estate Artificial Intelligence Agent) GCS for retention period, then delete at expiry

    Chapter 3 What — Implementation Plan

    ✅ Phase 1 — Schema Only (Do Now) No UI Required
    1. Migration: create tbl_pii_access_log — schema as defined above. RLS: INSERT for org members, no UPDATE/DELETE, SELECT scoped to org.
    2. Migration: create tbl_pii_retention_policy — columns: jurisdiction_code, document_type, retention_days_after_tenancy_end, legal_basis, notes. Seed with GB values.
    3. Migration: add is_test_record BOOLEAN DEFAULT FALSE + test_record_note TEXT to tbl_persons and tbl_tenancies. DONE 2026-06-03
    4. RLS on tbl_pii_access_log: INSERT allowed for authenticated org members. No UPDATE policy. No DELETE policy.
    5. All compliance reports: add WHERE is_test_record = FALSE filter to every query touching tbl_persons and tbl_tenancies.
    🚧 Phase 2 — Access System (Next Sprint) Frontend Required
    1. GCS signed URL generator — Next.js API route /api/pii/request-access (POST). Validates purpose, writes log entry, generates signed URL, returns to client.
    2. Access request modal component — PurposeSelector → confirm → fetch signed URL → render sandboxed viewer. Blocks proceed until purpose selected. "Other" requires text field > 20 chars.
    3. Watermark overlay component (React) — renders user name + timestamp + purpose as SVG over the document iframe. Cannot be removed by user.
    4. tbl_pii_access_log write on every access — write occurs server-side, before URL generation. Client cannot bypass.
    5. Admin view: access log per person — data table showing all access events for a given person_id. DSAR-ready export to CSV.
    🔮 Phase 3 — Automated Retention (Future) Cron + GCS
    1. Nightly cron — find documents where tenancy_end + retention_days < today → delete from GCS → soft-delete tbl_documents row → log deletion event in tbl_pii_access_log (purpose: compliance_audit, detail: "automated_retention_delete").
    2. Sumsub end-of-tenancy download job — triggered on tenancy status change to "ended". Downloads verification report from Sumsub API to gs://raia-gb-private/id/{person_id}/sumsub_report/{applicant_id}.pdf.
    3. Jurisdiction policy editor in admin UI — allows non-technical ops to configure retention periods per jurisdiction once legal review is complete for TH, MY, VN.

    Chapter 4 Test Record Management — Red Team Design

    ⚠️

    The problem with test records in production systems. Every system that handles real data eventually acquires synthetic test records — demos, protocol tests, sandbox tenancies. Without a systematic tagging and exclusion pattern: test records appear in compliance reports inflating gaps, test persons receive operational outreach, test records contaminate financial reporting, and scrubbing before data export becomes manual and error-prone.

    The RAIA (Real estate Artificial Intelligence Agent) Test Record Pattern

    Schema & Index
    • is_test_record BOOLEAN DEFAULT FALSE on tbl_persons AND tbl_tenancies
    • test_record_note TEXT — who created it, when, why, expected deletion date
    • Partial index: CREATE INDEX WHERE is_test_record = TRUE (tiny, fast, doesn't slow production queries)
    • Scrub: DELETE FROM tbl_persons WHERE is_test_record = TRUE — hard delete, safe, these are synthetic
    Query Convention
    • All operational reports: WHERE is_test_record = FALSE
    • All compliance pages: exclude is_test_record = TRUE
    • RBAC audits: exclude guarantors on test tenancies (they are also test entities)
    • Convention: source = 'a2a_test' | 'sandbox_demo' | 'load_test' | 'manual_test'
    • Never soft-delete test records — hard delete is appropriate for synthetic data

    Current Tagged Test Records (as of 2026-06-03)

    Tagged Test Entities
    • Alice (A2A Tenant) Sovereign Agent — person_id: 8f7f0bbe-…
    • Tenancies: T-A2A-2026130257 and T-A2A-2026164025
    • Both tbl_persons and tbl_tenancies rows tagged is_test_record = TRUE

    Future Test Record Creation SOP

    • 1
      Use T-TEST-, T-A2A-, or T-DEMO- tenancy_ref prefix

      Never use the real TN- prefix. This allows grep-based identification independently of the boolean flag.

    • 2
      Set is_test_record = TRUE and test_record_note at creation time

      Never tag retroactively — by the time someone notices, the record may have already appeared in reports.

    • 3
      Use @test.raia.internal email domain and synthetic phone numbers

      Never use real contact details. test.raia.internal is non-routable — emails cannot be accidentally delivered.

    • 4
      Document in test_record_note: creator, date, purpose, expected deletion date

      Enables safe scrubbing without needing to investigate each record individually.


    Pitfalls

    1
    CRITICAL — Never migrate Sumsub documents to RAIA (Real estate Artificial Intelligence Agent) GCS during onboarding

    Sumsub documents must only be downloaded to RAIA (Real estate Artificial Intelligence Agent) GCS at tenancy end for ICO retention compliance. Storing them during onboarding creates redundant copies, increases liability surface, and violates data minimisation principle. Store the outcome only; fetch the document on demand.

    2
    CRITICAL — tbl_pii_access_log must have no DELETE RLS policy

    A deleted access log entry is a GDPR audit trail breach. The RLS policy must explicitly deny DELETE for all roles including admin. If ICO investigates an incident and access log entries are missing, this is considered evidence of attempted concealment. The append-only nature of the log is its legal value.

    3
    CRITICAL — GCS signed URLs must scope to single document + single IP

    Never generate a broad bucket read grant. Each signed URL must be scoped to the specific object_name of the requested document. Where possible, bind to requester IP address. A URL leaked from an authorised session must not be usable from another IP.

    4
    CAUTION — 'other' purpose must require a text explanation

    Empty other entries defeat the audit trail entirely. Enforce at the API layer: if access_purpose = 'other' and access_purpose_detail is NULL or blank, reject the request with HTTP 422. A minimum character count (e.g. 20 chars) prevents trivial bypass.

    5
    CAUTION — Test records must be excluded from tbl_tenancies_persons role audits

    Guarantors on test tenancies are also test entities. The WHERE is_test_record = FALSE filter must be applied to all role membership queries, not just the top-level tenancy query. Join traversal can bring test entities into production reports if the filter is only applied at the tenancy level.

    6
    CAUTION — The face portrait (Tier 1) is NOT the same as the passport scan (Tier 2)

    Tier 1 avatar is a cropped face JPEG already stored in gs://rcf_public — publicly accessible, no access log required. The passport scan is a Tier 2 identity document in gs://raia-gb-private — requires justified access. Do not confuse these in UI copy, permissions, or documentation. Conflating them either over-protects (blocking legitimate face display) or under-protects (exposing passport data without access controls).

    7
    INFO — ICO minimum retention for R2R is 1 year post-tenancy END, not start

    End date = vacated_date OR end_date, whichever is later. A tenancy that was supposed to end on the contractual end date but the tenant stayed on requires using the actual vacated date. Using tenancy start date as the baseline produces systematically short retention periods and ICO non-compliance.

    8
    INFO — Biometric IDVT data (selfie + liveness) is Article 9 special category

    Biometric data from IDVT liveness checks = Article 9 special category data. Requires: (a) explicit consent as legal basis, (b) higher security obligations than standard identity data, (c) shorter retention than standard identity documents — retain outcome only, delete biometric input after check completion. Canopy is currently the only proptech platform to acknowledge this publicly. RAIA (Real estate Artificial Intelligence Agent) must handle this correctly from the start.


    File References

    🗄️
    tbl_pii_access_log (Supabase migration)
    Phase 1 migration — create append-only access log table with CHECK constraints on access_purpose. RLS: INSERT for org members, no UPDATE/DELETE.
    🗄️
    tbl_pii_retention_policy (Supabase migration)
    Phase 1 migration — jurisdiction-specific retention periods. Seed with GB values (R2R 365d, id_doc 365d, referencing_report 2190d). Flag TH/MY/VN for legal review.
    ⚡
    /api/pii/request-access (Next.js POST route)
    Phase 2 API route — validates purpose, writes tbl_pii_access_log row, generates GCS signed URL (15 min, single-doc scope), returns URL to client. Lives in 03_technology/11_frontend/
    ⚛️
    PurposeSelector modal component (React)
    Phase 2 UI component — renders purpose dropdown, "other" text field (enforced >20 chars), confirmation button. Blocks proceed until valid purpose selected. Watermark overlay as sibling component.
    🔄
    retention-cron.ts (nightly job)
    Phase 3 cron — queries documents where tenancy_end + retention_days < today, deletes from GCS, soft-deletes tbl_documents row, writes deletion log entry. Jurisdiction policy loaded from tbl_pii_retention_policy.

    Related Documentation

    🔒
    3.5 Security Architecture Guide
    Tailscale network security, IP-level access control, and OpenRouter API content isolation — parent security layer for this PII architecture.
    🆔
    Sumsub Identity Verification
    Sumsub onboarding integration — how sumsub_applicant_id is stored and used to fetch identity verification documents on justified access request.
    Document metadata: §3.5a · Classification: Internal Developer Guide · Last updated: June 2026 · Author: RAIA (Real estate Artificial Intelligence Agent) Platform Engineering · Legal review pending for TH/MY/VN jurisdiction retention periods · Next review: Q4 2026
    🔧 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.