RAIA™ Specification

Documentation

This is how the Developer Guide is organised. First we explain the why, then how we build, then what is built, and finally how this is rolled out along with the success and testing criteria we use.

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

This is how the Developer Guide is organised. First we explain the why, then how we build, then what is built, and finally how this is rolled out along with the success and testing criteria we use.

🧩 Section A: In Plain English

Developer Guide Introduction

This introduction explains the 4-tier standard used across all EstateAigents specifications — mapping high-level business goals directly to development processes, code specs, and QA test criteria.

💡 ELI5 Summary

This introduction explains the 4-tier standard we use across all EstateAigents specifications—mapping high-level business goals (The Why) directly down to development processes (How), code repository specs (What), and QA test criteria (Success).

The Four-Tier Framework

Concept For Humans

To make this guide highly effective for both senior human engineers and autonomous AI coding agents (Vibe Coding), we employ a universal, 4-tier project management standard that maps directly from high-level business logic down to individual process SOPs:

A

1. The WHY (The Vibe)

The Strategy: Why we build. This covers anti-monopoly legal defenses, GTM positioning, and the market-economic forces driving the protocol.

B

2. The HOW (The Method)

The Method: How we build. This defines our coding patterns, automated gating compilers, and the core SJT state-machine execution flow.

C

3. The WHAT (The Code)

The Specs: What is built. This maps the filesystem directories, API routing, and the active specifications inside the repository.

D

4. VIBE CHECK (Success)

The Success: How we test. This covers verification criteria, manual scenario playbooks, and automated gating validation (SOP level).

Chronological Execution Pathway

Visual Standard Map

Repository Code

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

)" stroke="#ef4444" stroke-width="1" /> A 1. Why We Build Strategic Intent Legal Defenses The Sovereign Vibe B 2. How We Build SJT State Machine Coding Standards Automated Gating C 3. What is Built Agent Card Specs Database Schema Repository Map D 4. Vibe Check Rollout Metrics SOP Scenario Tests Verification Criteria
🔧 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 a two-gate system: 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[] dev.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.