Deployment Spec

2.18 RAIA™ Portal Deployment Specification — Running Sovereign Real Estate Agencies

How we integrate, deploy, and scale the self-hosted Hermes Studio interface as our core portal, mapping widgets and pipelines directly to our 6-Tier architecture.

TEXTBOOK SPECIFICATION

1. Executive Summary: The Sovereign Agency Dashboard

To achieve complete operational independence and run modern real estate agencies at near-zero marginal cost, we must establish a self-improving, highly observable interface. This specification defines the deployment of RAIA™ (Real estate Artificial Intelligence Agent) Portal (powered by Hermes Studio / Hermes WebUI).

Instead of acting as a passive CRM, RAIA™ (Real estate Artificial Intelligence Agent) Portal serves as an active agentic dashboard. It provides property managers, directors, and developers with real-time session tracking, multi-platform communication logs, automated cron job orchestration, secure in-browser sandboxed terminals, and instant interactive charts detailing token spend and cost allocation across all workflows.

2. System Architecture

The deployment architecture decouples the high-performance user interface from the isolated agent process spaces. The diagram below illustrates the flow from the administrator's secure session to the underlying database and execution runtimes.

User Session Nginx Proxy Next.js Portal Local SQLite DB state.db / kanban.db Hermes Runtime Execution Core Supabase DB Remote Live Storage Secure Shell/PTY

3. Six-Tier UX & Widget Mapping

RAIA™ (Real estate Artificial Intelligence Agent) Portal's dashboard layout aligns strictly with our six-tier real estate operational hierarchy. Each tier represents a specific domain of auditability, execution, and coordination:

Tier Hierarchy Domain Scope Portal UI Component & Widget
Tier 1 Jurisdiction (Regulatory) Regulatory Compliance Tracker: Displays Right to Rent (R2R) statuses, anti-money laundering (AML) checks, and automatic alerts for statutory safety certificates (EPC, gas safety, electrical checks).
Tier 2 Organisation (Enterprise) Multi-Brand Channels & Analytics Panel: Houses unified API credentials, manages message channels (Telegram, WhatsApp, Slack), and charts token usage metrics alongside cost indicators to maintain budget controls.
Tier 3 Landlords (Ownership) Client Money Ledger & Scorecards: Visualizes landlord portfolios, tracks instructions, compiles landlord behavioral metrics, and audits client-account stubs and payment reconciliation.
Tier 4 Properties (Physical Assets) Property Snapshots & Viewings Map: Geocodes properties on an interactive map, displays unit health (e.g., active structural issues), and coordinates dynamic viewings schedules.
Tier 5 Tenancies (Transacting) Staged Referencing & Rent Registers: Integrates staged tenant referencing (light checks for viewing, deep referencing on offer) to eliminate token bleed, lists active rent ledgers, and compiles checkout reconciliations.
Tier 6 Operations (Onsite Visits) Key Custody & Onsite Inspector Log: Tracks physical key locations, schedules onsite inspections, and streams active maintenance logs to engineers via automated messaging channels.

4. Step-by-Step Deployment Guide

Deploying the unified RAIA™ (Real estate Artificial Intelligence Agent) Portal requires a structured five-step lifecycle to guarantee zero downtime and secure sandbox isolation:

1

Codebase Integration & Monorepo Wiring

Unpack and clone the self-hosted Hermes-Studio package directly into our monorepo path under 03_technology/11_frontend/portal/. Configure the frontend as an independent workspace in the primary package.json file to unify build-chains and bundle all required Tailwind assets without overriding global CSS overrides.

2

Database Layer & Audit Event Binding

Wire the dashboard APIs to the read-only local SQLite state.db and kanban.db endpoints located at ~/.hermes/. Establish active Supabase connections using the `service_role` key to populate the tbl_alignment_audit_runs table, enabling live audit progress charting without exposing raw database credentials to the client.

3

Web Terminal & Secure Shell Sandboxing

Configure the node-pty wrapper to spawn shells within an isolated Docker container or SSH-restricted user workspace rather than executing commands directly on the host machine. Ensure the websocket stream is routed through our Nginx reverse proxy using secure WebSocket tunnels (wss://dev.estateaigents.com/terminal/ws) with active TLS termination.

4

Multi-Platform Gateway Authentication

Enable the Channels Configuration manager in the Web UI. Input the verified Telegram bot token, WhatsApp Baileys keys, and Slack Socket tokens. Upon submit, the UI writes these credentials into the protected ~/.hermes/.env file, triggering a gateway hot-reload to establish concurrent long-polling streams without requiring service restarts.

5

Background Cron Audit Loop Orchestration

Deploy the raia-continuous-self-alignment-checker cron job through the Cron Manager tab. Copy the continuous-alignment-checker.py script into the scheduler-enforced path (~/.hermes/scripts/) to verify that nightly audits execute without relative-path resolution errors. This maintains continuous alignment audits and generates the daily unblocking digest on schedule.

5. Security, Gating, & Profile Isolation

Sovereign agency operation requires absolute data security. We enforce a 3-layer security boundary to guard the host and prevent data cross-contamination:

  • Absolute Profile Isolation: Multiple branches of the same real estate agency run in isolated Hermes profiles (e.g., ~/.hermes/profiles/london-flat/). This ensures that memory files, active conversations, and credentials never bleed across different agency branches.
  • JWT Session Gating: All API requests originating from the dashboard undergo strict JWT token verification. Only authenticated users with verified @estateaigents.com email domains can read execution logs or write files.
  • Read-Only Audit Policies: Live schema-drift checks are restricted to read-only access. Alignment agents can propose migrations via Kanban cards but are blocked from executing DDL statements directly in the database.

Repository Code

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