RAIA™ Specification

Sovereign Pyramids vs. Flat Resources

Lenses are organization-scoped filter perspectives allowing operators to toggle instantly between Landlord, Tenant, Building, Suppliers, and Tenancy viewpoints across the exact same database.

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

Lenses are organization-scoped filter perspectives allowing operators to toggle instantly between Landlord, Tenant, Building, Suppliers, and Tenancy viewpoints across the exact same database.

🧩 Section A: In Plain English

Sovereign Pyramids vs. Flat Resources

Lenses are organization-scoped filter perspectives that let operators toggle instantly between Landlord, Tenant, Building, Suppliers, and Tenancy viewpoints across the exact same database.

UX Architecture & Design Spec

Sovereign Pyramids vs. Flat Resources

How do we reconcile a strict, hierarchical dependency stack (The Rental Pyramid) with a flat, navigation-first sidebar (Documents, Contacts, Assets)? Our Dual-Lens UX Pattern harmonizes both presentation modes, allowing the human operations team to instantly pivot between task-focused lists and relationship-first risk heatmaps.

1. Red Team UX Audit: Flat vs. Hierarchical

Security & Usability Guard

Lens A: The Flat Side-Nav Lens (Organized by Resource)

Traditional side navigations segment the system by database tables: /documents, /contacts, /assets.

  • The Benefit: Extremely fast for mechanical, high-frequency actions. (e.g. "I want to upload a contractor invoice", "I need to look up a tenant's phone number", "Search all active documents").
  • The Core Flaw: Bypasses operational safety gates. A document (like an EICR or Gas Safety CP12) sits as a flat list item without visual awareness of whether its parent asset is occupied, or whether the beneficial landlord has passed KYC checks.

Lens B: The Sovereign Pyramid Lens (Organized by Relationship)

Structures the dashboard strictly into the 3-Tier dependency stack (T1 Onboarding ➔ T2 Safety/Compliance ➔ T3 Lettings/Tenancies).

  • The Benefit: Enforces perfect regulatory health. It answers the critical compliance questions: "Is this property legally safe to let?" and "Is there an unvetted landlord or missing certificate blocking our legal eviction rights?"
  • The Core Flaw: Hard to navigate for day-to-day actions. Requiring staff to click through Landlord Profiles (T1) and Assets (T2) just to find a tenancy invoice (T3) increases click paths by 300% and slows down operational speed.

The Harmonization Verdict: We must not force staff to choose. The interface must support **both lenses**. We implement the Flat Resource structure in the side navigation, but inject the interactive **3-Tier Compliance Pyramid** as a visual layer and progressive drawer on every list.

2. Interactive UX Prototype: Dual-Lens Cockpit

Navigation
📊 Dashboard 🏠 Assets 1.4k 👤 Contacts 36k 📜 Tenancies 249 📄 Documents 95k
Active Filters
🔴 134 EICRs Missing (Tier 2)
🟡 63 Deposits Unprotected

📄 Flat Document Vault

Showing all documents sorted by upload time. Hover over the safety badge to view relationship tiers.

95,155 total files
File Name Document Type Linked Asset/Ref Pyramid Tier Action
AST_Agreement_TE191565.pdf tenancy_agreement PR191565 (W2 4AH) View
EICR_Certificate_Satisfactory_W1T.pdf eicr PR222484 (W1T 3BF) View
Gas_Safety_Certificate_2026.pdf gas_safety PR201053 (N1 0NU) View

3. Document-Category Mapping Schema (Sovereign Blueprint)

To make automated checks work seamlessly, our database documents are strictly categorized into the three corresponding tiers of the Rental Pyramid:

Tier 1: Owner AML & KYC

Verifies the corporate or personal owner identity before any contract is served:

  • id_document (Passport/Driving license)
  • utility_bill (Proof of address)
  • land_registry_title (Proof of title deed)
  • company_incorporation (UBO verification)

Tier 2: Property Core Safety

Verifies that the physical asset meets statutory safety compliance guidelines:

  • eicr (Electrical installation safety)
  • gas_safety (Annual CP12 gas check)
  • epc (Energy Performance Certificate)
  • selective_licence / hmo_licence

Tier 3: Tenancy Lifecycle

Verifies that the individual tenancy is executed and managed successfully:

  • tenancy_agreement (Signed contract)
  • deposit_certificate (MyDeposits protection)
  • how_to_rent_guide (Government guide)
  • inventory_report (Check-in/Check-out state)

4. Consensus Panel Red Team UX Critique

We stress-tested this Dual-Lens front-end layout across five elite model personas:

🤖 Claude 3.5 Sonnet (The UX Purist)

Approved

"The Flat vs. Pyramid layout addresses a classic dashboard tension: **efficiency versus structure**. Separating files by resource type is critical for rapid search/uploads, but the pyramid mini-badges on flat tables bridge the gap perfectly. It allows the user to immediately see if a document has broken downstream relationships, preventing silent compliance failures without adding navigational friction."

🤖 GPT-4o (The Operations Director)

Approved

"In daily property management, speed is everything. Staff hate digging through deep folder trees. Keeping flat resource lists as the master navigation maintains high operational speed. But grouping them hierarchically under the 'Sovereign Pyramid' tab gives directors an immediate audit checkpoint during critical events like evictions or property inspections."

🤖 DeepSeek-V3 (The Efficiency Engineer)

Audit Note

"To prevent API rendering lags, we must cache the results of the 3-Tier pyramid. Rendering 100 individual mini-SVG pyramids on `/dashboard/documents` will cause DOM lag if compiled on the fly. We should denormalize the `pyramid_tier_status` into the document record, allowing fast flat reads with pre-computed SVGs."

🔧 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.