RAIA™ Specification

Workspace Navigation & Security Segmentation Architecture

This guide defines the 5-tiered navigation bar system (Messages, Property, Portfolio, Data, Developer) and details how the Tailscale network and gated domain access are managed visually.

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

This guide defines the 5-tiered navigation bar system (Messages, Property, Portfolio, Data, Developer) and details how the Tailscale network and gated domain access are managed visually.

🧩 Section A: In Plain English

Workspace Navigation & Security Segmentation Architecture

This guide defines the 5-tiered navigation bar system — Messages, Property, Portfolio, Data, Developer — and details how the Tailscale network and gated domain access are managed visually.

📐 System Specifications & Design Spec

Workspace Navigation & Security Segmentation Architecture

This document details the layout, behavioral heuristics, and technical implementation of the five main workspace menus in the RAIA (Real estate Artificial Intelligence Agent) OS platform. It covers the dual-role client data exposure and the strict Tailscale network domain-verification gating for engineering-only access.

RAIA™ (Real estate Artificial Intelligence Agent) OS Top Navigation Topology

💬
Messages Universal Inbox
🏠
Property Asset Level Control
📊
Portfolio Strategic Overview
⛓️
Data ETL & Ingestions
🖥️
Developer Gate Verified VPN

Chapter 1 — User Guide: Operational Menu Layout

The workspace top navigation is designed to partition high-frequency communications, estate audits, portfolio health analysis, customer data integrity, and local system administration into logical buckets. Each tab is customized according to the operator's current database state and credential credentials:

1️⃣

Messages (Universal Inbox)

The operational desk standard. This button maps to `/portfolio/inbox` and aggregates multi-channel conversations (WhatsApp, SMS, Telegram, and Email) into a real-time responsive dashboard. It incorporates proactive AI draft generators and a 0% AI raw agentic fallback to guarantee high-integrity dialogue with tenants and landlords.

2️⃣

Property (Individual Property Menu)

Focuses on physical and transactional assets. The dropdown features a responsive **Map View** powered by sovereign BigQuery GIS calculations, an **Active Jobs & HITL** center for tracking task assignments and maintenance requests, and the **Compliance Guard** (managing EPC ratings, gas certificates, and deposit schemes) with live auto-healing notifications.

3️⃣

Portfolio (Property Portfolio Menu)

Aggregated strategic metrics. This is the command cockpit for executive analysis. Includes the **Overview Cockpit**, the **The Human League** leaderboard (ranking properties based on vetting performance, yield quality, and tenancy stability), and the interactive **RAIA (Real estate Artificial Intelligence Agent) Spatial Canvas** explorer.

4️⃣

Data (Data Analysis & Ingestion Tools)

Customer data integrity center. This menu allows B2B agency clients to inspect real-time data flow from their legacy CRM or accounting systems (e.g., automated bank reconciliation gateway, AppSheet, or local databases). Includes **Documents & Triage** (3-pane parsing engine) and the **ETL Pipelines** panel (displaying background synchronization statuses, run intervals, and database consistency sweeps).

5️⃣

Developer (Engineering & Security Tools)

Platform engineering center. This menu is visible strictly to users authenticated via an

Repository Code

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

official `@estateaigents.com` account. It links directly to the **Developer Workspace** (the secure Tailscale documentation archive), **Triage Sandbox** (AI alignment testing and prompt validation), **Cost Management** (token spend analytics), and **Hermes Kanban** (agent swarm lifecycle and state control logs).

Chapter 2 — Developer Guide: Technical Gating & Routing

The workspace top navigation is written as a modular, responsive layout divided across two primary components: `DashboardNav.tsx` (the server-to-client hybrid wrapper for the private operator cockpit) and `AppNav.tsx` (the standard consumer-and-operator bridge layout).

1. Domain Filtering Implementation

Security gating relies on reading the authenticated user's email address and verifying the engineering perimeter. In `layout.tsx`, the Supabase auth context yields the current `user` details, which are then passed down to `DashboardNav`:

// src/app/dashboard/layout.tsx
const supabase = await createSupabaseServer();
const { data: { user } } = await supabase.auth.getUser();

return (
  <DashboardNav
    role={staff.role}
    email={user.email ?? null}
    /* other props */
  >
    {children}
  </DashboardNav>
);

2. React Client Gating Block

Inside the navigation render loop (both in `DashboardNav.tsx` and `AppNav.tsx`), the `Developer` tab is conditionally exposed using a clean domain check on the destructured email string:

// Gated rendering check in AppNav.tsx / DashboardNav.tsx
{email?.toLowerCase().endsWith('@estateaigents.com') && (
  <>
    <div className="relative group">
      <button className="...">Developer</button>
      <div className="absolute font-sans dropdown-menu ...">
        <a href="https://dev.estateaigents.com/docs/developer/index.html" target="_blank" ...>
          🖥️ Developer Workspace
        </a>
        {/* Sandbox, Cost Management, and Kanban links */}
      </div>
    </div>
    <div className="w-px h-4 bg-gray-200 mx-1" />
  </>
)}

3. Active State Pathname Intercepts

To prevent multi-tab lighting anomalies, the parent `Portfolio` tab's active route logic excludes sub-paths moved to the `Data` and `Developer` menus:

const isPortfolioActive = pathname?.startsWith('/portfolio') && 
  !['/portfolio/inbox', 
    '/portfolio/tasks', 
    '/portfolio/compliance', 
    '/portfolio/reports/documents', 
    '/portfolio/reports/pipelines', 
    '/portfolio/reports/sandbox', 
    '/portfolio/reports/token-burn'].some(p => pathname.startsWith(p));
🔒 Sovereign Network Bounds: Accessing tools like the Developer Workspace, Hermes Kanban board, or active database dashboards requires a secure and verified Tailscale connection to IP 100.120.31.7. Public domains (app.estateaigents.com) are configured with HTTP locks preventing document routing outside the secure perimeter.

Repository Code

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