RAIA™ Specification

The Pyramid

The Pyramid is the main operational control surface for estate agents within the RAIA™ (Real estate Artificial Intelligence Agent) platform. This overview document explains its architecture, four quadrant views, and how they relate to each other.

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

The Pyramid is the main operational control surface for estate agents within the RAIA™ (Real estate Artificial Intelligence Agent) platform. This overview document explains its architecture, four quadrant views, and how they relate to each other.

🧩 Section A: In Plain English

The Pyramid Overview

The Pyramid is the main dashboard for letting agents — four screens in one: a filter view to find properties, an audit trail for AI activity, a compliance checker, and a live feed of automated tasks.

🟢 ELI5 — Plain English Summary

The Pyramid is the main dashboard that letting agents use to manage their properties. Think of it like four screens in one: a filter view to find what you need, an audit trail to see what the AI has been doing, a compliance checker to spot problems, and a live feed of automated tasks running in the background. This page explains how all four fit together.

Platform Architecture
Overview Document
Live System

The Pyramid

RAIA™ (Real estate Artificial Intelligence Agent) Platform — Primary Operational Control Surface

The Pyramid is the main dashboard and control interface through which estate agents interact with the RAIA™ (Real estate Artificial Intelligence Agent) platform. It is named for two interlocking ideas: its hierarchical view structure — from high-level portfolio overview down to individual task level — and its nested agentic loops, a pyramid of autonomous processes running underneath every session. This page is the parent document for the four Pyramid specification sub-modules.

Canonical URL

https://docs.estateaigents.com/user-guide/pyramid-overview.html

Intended Audiences

Who This Is For

This document suite is written for three distinct reader types. Each audience interacts with the Pyramid differently — understanding this mapping prevents misreading the specifications.

🏠
Estate Agents · Ops

Operations Staff

The primary end-users. They interact with the Pyramid daily to manage properties, tenants, compliance tasks, and agentic outcomes. The Lenses UX and Compliance Dashboard specs are most relevant.

  • → Filter portfolios by role lens
  • → Monitor compliance status per tenancy
  • → Review and approve AI-raised actions
⚙️
Developers · UI

Frontend & Platform Engineers

Building and maintaining the Pyramid UI components. The Lenses UX and AI Audit UX specs define the component models, state machines, and data contracts expected from the API layer.

  • → Implement filter lens switching
  • → Render AI audit trails and HITL panels
  • → Connect to agentic loop status streams
🤖
Hermes Agents · AI

Autonomous AI Agents

Hermes agents querying pyramid state via the RAIA™ (Real estate Artificial Intelligence Agent) A2A protocol. The Agentic Loops and AI Audit specs define the canonical state model, loop invariants, and audit schema expected when agents read or write pyramid context.

  • → Query loop state via A2A protocol
  • → Emit audit-trail-compliant decisions
  • → Respect tier invariants before escalating

What Is The Pyramid?

Core Concept

The Hierarchy of Views

Every screen in the Pyramid UI sits at exactly one level of the rental hierarchy. From the broadest portfolio-level overview down to a single task on an individual tenancy, the Pyramid enforces a strict top-down dependency model: no lower-level action is valid unless its parent tier is in a satisfied state.

This hierarchy is not merely visual. It is operationally enforced — a tenancy cannot be marked live if its parent property has a failed compliance gate, and a property cannot be let if its parent landlord entity has a pending KYC block.

T0 · APEX Portfolio / Owner Entity View
T1 · PROPERTY Asset / Property View
T2 · TENANCY Active Tenancy & Tenant View
T3 · TASK Action / Compliance Task View

The Nested Agentic Loops

Beneath every human-facing view, RAIA™ (Real estate Artificial Intelligence Agent) operates a stack of autonomous background loops — one per pyramid tier. These loops run continuously, evaluating state, raising compliance flags, dispatching comms, and progressing tenancy workflows without waiting for human input.

Upper-tier loops cannot execute until lower-tier invariants are satisfied. This creates a natural dependency pyramid: the Ownership loop gates the Property loop, which gates the Tenancy loop, which gates the Task loop. Agents operate inside this constraint graph — not above it.

Key Principle

The Pyramid is not a dashboard over an autonomous system. It is the unified interface through which humans and agents share the same operational state — with agents operating asynchronously inside the same tier constraints that govern human decisions.

Diagram 1: The Pyramid — Hierarchy of Views

T0 APEX — Portfolio View All properties · Organisation-level overview · Global compliance health T0 APEX T1 PROPERTY — Single Property View Asset detail · Landlord KYC gate · Active tenancies per property T1 PROPERTY T2 TENANCY — Active Tenancy Detail Tenant record · Compliance certs · Rent schedule · Agent decisions T2 TENANCY T3 TASK — Individual Action Item Cert renewal · Comms dispatch · HITL approval · Loop output T3 TASK Drill down for detail → Broad → Narrow

The Pyramid narrows focus from portfolio overview down to individual task level. Each level inherits context from above.

🎬 Dynamic Video Explainer & Production Lab

Video Spec (ADR-136)

The Upside-Down Pyramid Paradigm is our core mental model: as you drill down into more specific property details, your operational volume decreases, but compliance stakes rise dramatically. To convey this mathematical shift clearly to investors and staff, we host a dynamic video explainer directly within this page.

"The Upside-Down Pyramid: Visualizing B2B Autonomy"

Watch our mathematically perfect motion graphics animation explaining the four quadrants of the Pyramid (4:12 mins).

CODEC: H.264/AAC · 1080p
Engine: Manim CE + NotebookLM Audio

🛡️ Red Team Production Recommendation: Manim CE vs AI Video Generators

Generic cinematic video generators (like Luma or Sora) suffer from severe **geometric hallucinations** and text-rendering errors when illustrating precise data flows, resulting in messy, distorted layouts.

The Solution: We recommend a hybrid production workflow. We use **Google NotebookLM's** unmatched, conversational dual-host Audio Overviews to generate the spoken track, and pair it with vector-sharp, mathematically perfect motion graphics generated via the open-source **Manim CE (3Blue1Brown's animation engine)**.

1. NotebookLM Audio Overview Prompt

"Generate a deep-dive, conversational B2B podcast between two tech-savvy hosts discussing the 'Upside-Down Pyramid' real estate software paradigm. Explain simply how Lenses UX controls the view, Compliance Dashboards act as the legal ledger, AI Auditing logs decisions, and Agentic Loops run autonomous pipelines in the background. Keep the tone punchy, smart, and highly technical."

2. Hyperframes (Haiper / Runway) Prompt

"A futuristic, dark-themed 3D motion graphics animation of a glowing translucent geometric pyramid floating in a clean server room. The pyramid rotates 180 degrees in 3D space to flip upside down. Neon lines in blue, purple, and green trace between 4 quadrants. Clean HUD labels read: 'LENSES', 'AUDIT', 'COMPLIANCE', and 'LOOPS'. Raytraced lighting, 8k resolution, cinematic."

Python Animation Code (Manim CE Script)

# pyramid_animation.py
# Execute locally: manim -pql pyramid_animation.py UpsideDownPyramid
from manim import *

class UpsideDownPyramid(Scene):
    def construct(self):
        # 1. Title
        title = Text("The Upside-Down Pyramid", font_size=36, color=WHITE).to_edge(UP)
        self.play(Write(title))

        # 2. Draw normal pyramid
        p1 = Polygon([-2, -1, 0], [2, -1, 0], [0, 2, 0], color=BLUE, stroke_width=2)
        label_normal = Text("Standard Hierarchy", font_size=20).next_to(p1, DOWN)
        self.play(Create(p1), FadeIn(label_normal))
        self.wait(1)

        # 3. Rotate and invert pyramid
        self.play(
            Rotate(p1, angle=PI),
            label_normal.animate.become(Text("The Inverted Paradigm", font_size=20).next_to(p1, DOWN)),
            run_time=2
        )
        self.wait(1)

        # 4. Highlight the 4 Quadrants
        q1_label = Text("Q1: Lenses UX", font_size=16, color=BLUE_B).move_to([-1.5, 0.5, 0])
        q2_label = Text("Q2: AI Audit", font_size=16, color=PURPLE).move_to([1.5, 0.5, 0])
        q3_label = Text("Q3: Compliance", font_size=16, color=GREEN).move_to([-0.5, -0.5, 0])
        q4_label = Text("Q4: Agentic Loops", font_size=16, color=RED).move_to([0.5, -0.5, 0])

        self.play(FadeIn(q1_label), FadeIn(q2_label), FadeIn(q3_label), FadeIn(q4_label))
        self.wait(2)

Pyramid Architecture Diagram

Four Quadrants · Four Layers

The Pyramid interface is divided into four functional quadrants. Together they cover the full operational surface: how you navigate (Lenses), how you audit (AI Audit), how you monitor (Compliance), and what the engine underneath is doing (Agentic Loops).

RAIA™ (Real estate Artificial Intelligence Agent) PLATFORM — THE PYRAMID ARCHITECTURE ───────────────────────────────────────────────────────────────────── ┌─────────────────────────────────┐ │ T0: APEX LAYER │ │ Portfolio / Owner Overview │ └──────────────┬──────────────────┘ │ ┌────────────────────┼────────────────────┐ │ │ │ ▼ ▼ ▼ ┌─────────────┐ ┌─────────────┐ ┌─────────────────┐ │ T1:Property │ │ T1:Property │ │ T1:Property │ └──────┬──────┘ └──────┬──────┘ └────────┬────────┘ │ │ │ ▼ ▼ ▼ ┌─────────────────────────────────────────────────────┐ │ T2: TENANCY LAYER │ │ Active Tenancy · KYC · Compliance Gate │ └──────────────────────┬──────────────────────────────┘ │ ▼ ┌─────────────────────────────────────────────────────┐ │ T3: TASK LAYER │ │ Actions · Certs · Comms · Agent Dispatches │ └─────────────────────────────────────────────────────┘ ═══════════════════════════════════════════════════════ THE FOUR PYRAMID QUADRANTS (Control Surface) ═══════════════════════════════════════════════════════ ┌──────────────────────────┬──────────────────────────┐ │ LENSES UX │ AI AUDIT UX │ │ Navigate by role lens │ Inspect agent decisions │ │ Portfolio ↔ Hierarchy │ Explainability + HITL │ │ Dual-Lens toggle │ Audit trail & overrides │ ├──────────────────────────┼──────────────────────────┤ │ COMPLIANCE DASHBOARD │ AGENTIC LOOPS │ │ Real-time cert status │ Autonomous background │ │ Per-tenancy RAG status │ loops per tier │ │ Cert expiry + gaps │ State machine engine │ └──────────────────────────┴──────────────────────────┘ ┌─────────────────────────────┐ │ RAIA™ (Real estate Artificial Intelligence Agent) AGENTIC ENGINE │ │ Polymorphic Comms Engine │ │ A2A Protocol · Supabase │ │ WhatsApp · Email · Voice │ └─────────────────────────────┘

The Four Pyramid Specification Documents

Child Docs · Click to Open

Each document below specifies one quadrant of the Pyramid. They are designed to be read independently — but together they form a complete operational model for the platform. Start with Lenses UX for the navigation model, then AI Audit for the decision layer, then Compliance Dashboard for monitoring, and finally Agentic Loops for the engine beneath it all.

an immutable audit event. This spec defines the animated audit trail UI, the Human-in-the-Loop (HITL) override panel, the decision confidence scoring display, and the structured schema by which audit records are stored, surfaced, and queried. It is the primary accountability interface for both operations staff and regulators.

Decision Audit Trail HITL Override Panel Confidence Scoring Animated Radar UX Regulatory Accountability
pyramid-ai-audit-ux.html →
📋
Quadrant III Real-Time Monitoring

Pyramid: Compliance Dashboard

→

The Compliance Dashboard provides real-time compliance status across every tenancy in the portfolio. Certificates — Gas Safety (CP12), Electrical (EICR), EPC, Fire Risk, Legionella — are tracked per property with RAG (Red/Amber/Green) status, expiry countdowns, and gap analysis. The dashboard is interactive: clicking a pyramid layer in the SVG diagram drills into the compliance record for that tier. This spec covers the data model for compliance records, the scoring algorithm for overall tenancy health, alert thresholds, and the automated agent behaviours triggered by expiry events.

RAG Status per Tenancy Cert Expiry Tracking Gas · EICR · EPC · Fire Interactive SVG Pyramid Health Scoring Algorithm
pyramid-compliance-dashboard.html →
⚡
Quadrant IV Autonomous Engine

Pyramid: Agentic Loops

→

The Agentic Loops spec describes the autonomous engine that runs beneath every human-facing Pyramid view. It defines the three-tier loop architecture — Owner Onboarding Loop (T1), Property Readiness Loop (T2), Tenancy Lifecycle Loop (T3) — each operating as a dedicated state machine that continuously evaluates its tier's invariants. The spec also covers the Polymorphic Comms Engine, which abstracts all outbound communications (WhatsApp, Email, Voice) into a single dispatch interface, and the loop-to-loop escalation protocol used when a lower tier blocks an upper tier from progressing.

3-Tier State Machines Polymorphic Comms Engine Loop Invariants Escalation Protocol WhatsApp · Email · Voice
pyramid-agentic-loops.html →

Diagram 2: Four Quadrant Control Surface

🔭 Lenses UX — Filter & Navigate QUADRANT I Role-based views, filter panels, saved searches → Dual-Lens toggle (Pyramid ↔ Flat) → Portfolio drill-down navigation → Risk heatmap surface LENSES 🧠 AI Audit UX — Inspect Decisions QUADRANT II Agent reasoning, decision trail, HITL overrides → Immutable audit event timeline → Confidence scoring display → Human governance override panel AI AUDIT 📋 Compliance Dashboard — Status QUADRANT III Real-time compliance per tenancy, gap flags → RAG cert status · Expiry countdowns → Gas · EICR · EPC · Fire · Legionella COMPLY ⚡ Agentic Loops — Autonomous Engine QUADRANT IV Background agent activity, loop status, triggers → T1/T2/T3 state machine loops → Polymorphic comms engine dispatch LOOPS PYRAMID CORE context state writes audit events HITL override

The four quadrants of the Pyramid. Lenses control what you see; Loops drive autonomous action; Audit and Compliance surface what agents did and what requires attention.

How the Four Quadrants Relate

Integration Model

The four quadrants are not independent modules — they are four lenses onto the same underlying operational state. A compliance breach visible in the Compliance Dashboard will simultaneously surface as an audit event in the AI Audit view, may be reachable via a Lenses UX filter, and will have been detected by an Agentic Loop running continuously in the background. The following diagram shows the information flow between quadrants.

🔭 → 🧠 Lenses → AI Audit

When a user drills into a tenancy via a Lens, the AI Audit panel surfaces contextually — showing the agent decisions that led to the current state of that tenancy. The Lens is the entry point; the Audit is the explanation.

⚡ → 📋 Loops → Compliance

Agentic Loops continuously scan certificate expiry dates and compliance gates. When a loop detects a breach or upcoming expiry, it writes directly to the compliance state consumed by the Compliance Dashboard — which updates in real time.

⚡ → 🧠 Loops → AI Audit

Every autonomous decision made by an Agentic Loop generates an immutable audit record consumed by the AI Audit view. Loops are the source of decisions; the Audit is the record of those decisions. Agents cannot act without emitting a traceable audit event.

📋 → 🔭 Compliance → Lenses

Compliance status scores feed directly into the Lenses UX risk heatmap. Properties with red compliance status are visually elevated in the Pyramid Lens — ensuring that operational risk is never invisible to the user navigating the portfolio.

🧠 → ⚡ AI Audit (HITL Override) → Loops

The AI Audit UX is the only surface through which humans can override or block an agent decision. When a HITL override is submitted, it is written as a priority instruction into the relevant Agentic Loop's input queue — effectively redirecting the autonomous engine. This makes the AI Audit not just a read-only inspection layer, but the authoritative human governance interface over the agentic system.

Related Platform Documentation

See Also
🔧 Section C: Developer Guide

Architecture Details

The security architecture implements a defence-in-depth model with perimeter authentication, internal authorisation, data encryption, and audit logging at every layer. Access is gated through two independent layers: Tailscale identity verification at the network level, followed by role-based access control within the application.

  • Core Component: Security gate guard and RBAC enforcement
  • Data Flow: Request → Tailscale Gate → Authentication → Authorisation → Audit Log → Response
  • Integration Points: Tailscale ACLs, Supabase Row-Level Security, session tokens, and audit log sinks

Configuration Reference

Key configuration parameters for this system:

Parameter Type Default Description
gate_enabled boolean true Enable Tailscale gate guard for all pages
allowed_hosts string[] docs.estateaigents.com, localhost Whitelist of permitted hostnames
session_ttl_minutes integer 60 Session token time-to-live
SECURITY ARCHITECTURE — DEFENCE IN DEPTH 1. NETWORK GATE Tailscale Identity Network-level Auth 🔐 Tailscale Gate 2. APPLICATION GATE RBAC Enforcement Session Validation 🛡️ Auth Layer 3. DATA GATE RLS & Encryption Audit Logging 🔒 Data Protection Defence-in-depth: network gate → application gate → data gate with audit logging at every layer Tailscale identity · Role-based access · Row-level security · Full audit trail Network / Identity Gate Application / Auth Layer Data / Encryption Layer Data flow →

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

Troubleshooting

Issue Cause Resolution
401 Unauthorized on tailnet Tailscale not running or wrong node Verify Tailscale is connected and node is authorised
Gate guard redirect loop Hostname not in allowed_hosts list Add hostname to the gate guard whitelist
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.