RAIA™ Specification

2.28 RAIA (Real estate Artificial Intelligence Agent) Agent System Overview — The Full Stack in One Picture

Five components run the RAIA (Real estate Artificial Intelligence Agent) agent operation. Here is what each one does and how they talk to each other. No jargon — this page is the one place where the whole machine is visible at once.

← Back to Developer Hub TEXTBOOK SPECIFICATION
🟢 In Plain English

Five components run the RAIA (Real estate Artificial Intelligence Agent) agent operation. Here is what each one does and how they talk to each other. No jargon — this page is the one place where the whole machine is visible at once.

The single master reference for how all five components of the RAIA (Real estate Artificial Intelligence Agent) agent operation fit together: Kanban board, deterministic dispatcher, Hermes profiles, two-layer memory, and STATE.md. Includes the full-stack Mermaid diagram, a PA decision table, the overnight autonomous loop, and the complete developer reference.

ADR-271 3-Seat Roster Deterministic Dispatch Full Stack Master Reference
5
Components — Kanban, Dispatcher, Profiles, Memory, STATE.md
3
Active dispatch seats — PA, Programmer, Scribe (ADR-271)
0
LLMs in the dispatch path — deterministic script only
1h
Dispatch cadence — cron ea794b0e7fc7 fires every hour

Section A The Five Components

Five components run the RAIA (Real estate Artificial Intelligence Agent) agent operation. Here is what each one does and how they talk to each other.

1. Kanban Board — hermes.estateaigents.com/kanban

The To-Do List

Tasks live in columns: Triage → Todo → Ready → In Progress → Blocked → Done. A task only moves to Ready when it has a profile assigned (programmer, scribe, etc.). Human tasks (Fook, Eugin) stay in Ready waiting for a human — the dispatcher skips them silently. Nothing autonomous happens until a task is Ready and assigned to a live Hermes profile.

2. Deterministic Dispatcher — cron, runs hourly

A Script, Not an AI

A shell script — not an LLM — reads the Kanban board and starts the right agent for each Ready task. If a task is assigned to programmer, it spawns the Programmer profile. If the assignee is a human name, it skips it silently. No LLM is involved in the dispatch decision. Zero hallucination risk. This is the deterministic-first doctrine: if a behaviour can be expressed as a script, it must be a script.

3. Hermes Profiles — PA · Programmer · Scribe · Architect · RedTeam

The Agents

PA is the gatekeeper — the only profile that talks to Eugin directly. Programmer writes all code and SQL and is dispatched from Kanban. Scribe writes all documentation and deploys to docs.estateaigents.com. Architect and RedTeam are called on-demand by PA for ADR-class decisions only — they hold no standing queue. Each profile has its own model, toolset, and memory context.

4. Memory System — two layers, both always active

Hermes SQLite (Built-In)

Short permanent facts injected into every session header automatically. Eugin never needs to ask — it is always there. Character-limited (~3,000 chars) so only high-signal facts go here. Written by the memory tool; read by the session runtime on every turn.

TencentDB Plugin (Long-Term)

Long-term structured memories extracted automatically from conversations. Searched on demand. Stores episodic (what happened), instruction (rules Eugin set), and persona (who Eugin is) records. Growing continuously through a 4-layer pipeline: L0 raw transcript → L1 atomic facts → L2 scenario clusters → L3 persona synthesis.

5. STATE.md — /root/projects/raia/STATE.md

The Project's Shared Brain

Every agent reads it first, appends to Section 8 last. It holds: current sprint, ADR baseline, open blockers, and the compounding session log (§8) — a chronological record of what every agent tried, what worked, what died. It prevents agents from re-deriving decisions already made. Section 8 is append-only; never overwritten. This is the primary mechanism for cross-session continuity without re-explanation overhead.


Figure 1 — The RAIA (Real estate Artificial Intelligence Agent) Agent Operation: Full Stack Pictogram
👤 EUGIN Founder · speaks only to PA 🛡 PA — Personal Assistant spec · verify · gate · only profile Eugin talks to Two-hop rule: PA → Programmer → PA (verify) → Eugin speaks to verifies + reports 📋 Kanban Board hermes.estateaigents.com Triage→Todo→Ready→InProgress→Done 📄 STATE.md shared project brain · §8 session log every agent reads first · appends last queues task reads + appends ⚙️ Deterministic Dispatcher cron ea794b0e7fc7 · hourly · ZERO LLM · zero hallucination script reads Kanban → spawns profile · silent when idle reads 💻 Programmer Sonnet 4.6 · all code + SQL output → PA for verification ✍️ Scribe Kimi K3 · docs only deploys → docs.estateaigents.com 🏛 Architect / RedTeam on-demand only · ADR-class decisions no standing queue · PA invokes directly spawns spawns on-demand only 🧠 Hermes SQLite auto-injected every session · 3,000 char · permanent facts 🗄 TencentDB long-term · auto-captured · searchable Memory Layer (always on — both layers run automatically)
Solid lines = active data flow  ·  Dashed lines = on-demand or passive  ·  Dashed box = no standing queue

Diagram The Full Stack in One Picture

The Mermaid diagram below shows every component and every data flow. Follow the arrows: Eugin speaks to PA → PA queues tasks → Dispatcher reads and spawns → agents execute → PA verifies → Eugin hears the result.

flowchart TD
    E([Eugin]) -->|speaks to| PA[PA Agent\nspec · verify · gate]
    PA -->|queues task| KB[(Kanban Board\nhermes.estateaigents.com)]
    CRON[Deterministic Dispatcher\ncron ea794b0e7fc7 · hourly · zero-LLM] -->|reads Ready tasks| KB
    CRON -->|spawns| PRG[Programmer\nSonnet 4.6 · all code + SQL]
    CRON -->|spawns| SCR[Scribe\nKimi K3 · docs only]
    PRG -->|output| PA
    SCR -->|deploys to| DOCS[docs.estateaigents.com]
    PA -->|verifies then reports| E
    PA -.->|on-demand only| ARC[Architect / RedTeam\nADR-class decisions]

    subgraph Memory ["Memory Layer (always on)"]
        SQL[(Hermes SQLite\nauto-injected every turn)]
        TDB[(TencentDB Plugin\nlong-term · searchable)]
    end

    PA <-->|reads + writes| SQL
    PA <-->|searches| TDB
    PRG <-->|reads + writes| STATE[STATE.md\nshared project brain]
    PA <-->|reads + writes| STATE
    SCR <-->|reads + writes| STATE

Figure 1: Full-stack component diagram. Solid arrows = synchronous data flow. Dashed arrow = on-demand invocation only.


Section B What Do I Say to PA?

PA is the only agent Eugin ever needs to address. The table below maps your intent to the exact phrase and what the system does next.

You want You say What happens
Something built "Build X" or "Fix X" PA specs it → Kanban task with assignee_profile=programmer → Dispatcher spawns Programmer at next hourly tick
Documentation "Document X" PA checks if page exists → enriches OR creates new Kanban task → Dispatcher spawns Scribe
Architecture decision "Should we redesign X" PA queues Architect on-demand for ADR-class analysis
Security review "Red-team X" PA queues RedTeam on-demand for security and threat modelling
Status check "What's the status of X" PA checks Kanban board columns + STATE.md §8 session log
Research "What is X" PA answers directly using web search — no Kanban task created

The Overnight Autonomous Loop

  1. 1
    Evening — Eugin queues specs

    Eugin tells PA what to build or document. PA creates Kanban tasks with assignee_profile=programmer or scribe and moves them to Ready.

  2. 2
    Hourly overnight — Dispatcher fires

    Cron ea794b0e7fc7 runs kanban-dispatch-tick.sh every hour. It reads the Kanban board, finds Ready tasks assigned to programmer or scribe, and spawns the matching Hermes profile. No LLM involved.

  3. 3
    Morning — PA verifies and reports

    PA reviews the output from overnight agent runs. It escalates only on genuine blockers. Eugin hears a clean summary — not raw agent logs.

  4. 4
    Human-assigned tasks — stay in Ready

    Tasks assigned to Fook or Eugin stay in Ready indefinitely. The dispatcher skips them. They need human action: either complete them manually or reassign to programmer or scribe.

Memory — When Does Eugin Need to Think About It?

Never.

Both memory layers run automatically. You never manually call them. If you say "remember X", PA writes it to Hermes SQLite. If you ask about something from a past session, PA searches TencentDB. You just talk normally — the system handles recall and persistence behind the scenes.

The Two Questions That Unlock STATE.md

Before starting any new work, every agent asks two questions against STATE.md:

Question 1

"What does STATE.md §8 say about this?" — avoids re-doing settled decisions. Section 8 is the compounding session log. If the decision was already made and documented, §8 will say so.

Question 2

"Is there an ADR for this?" — avoids re-debating architecture. STATE.md header lists the current ADR baseline. Never scan the ADR folder directly — use the header.


Section C Memory Architecture — Technical Detail

🔒 Developer-Only Section — Implementation Details

Complete Memory Layer Reference

Layer Store Size limit Populated by Queried by
Hermes SQLite ~/.hermes/kanban.db ~3,000 chars memory tool (manual write) Auto-injected into every session turn header
TencentDB L0 Raw conversation Unlimited Auto-capture every message (every 5 turns) memory_tencentdb_conversation_search
TencentDB L1 Extracted atomic facts Unlimited Plugin auto-extracts after L0 capture memory_tencentdb_memory_search
TencentDB L2 Scenario clusters Unlimited Plugin synthesises after 10+ memories memory_tencentdb_memory_search
TencentDB L3 Persona synthesis Unlimited Plugin builds user model after 50+ memories memory_tencentdb_memory_search

Dispatcher Internals

Field Value
Script path /root/.hermes/scripts/kanban-dispatch-tick.sh
Cron ID ea794b0e7fc7 (hourly, active)
Command hermes kanban dispatch --max 2 --failure-limit 2 --json
Idle behaviour Silent — no output when nothing to dispatch
Active behaviour Telegram alert when a task is spawned, crashed, or blocked
LLM in dispatch path Zero — board state is read by code, not narrated by a model
!
Non-Spawnable Assignees

Tasks assigned to Fook, Eugin, raia-developer, or any name that is not a live Hermes profile stay in Ready permanently. The dispatcher skips them silently. To unblock: reassign the task to programmer, scribe, or another active profile.

STATE.md §8 Protocol

Every agent session follows this exact sequence:

  1. 1
    Read STATE.md at boot

    Before doing anything, read STATE.md — especially §8. This provides the full operational narrative from prior sessions: sprint state, last task, next ADR number, open blockers.

  2. 2
    Do the work

    Execute the task. Write code, docs, or analysis as specified. Do not modify STATE.md during the task.

  3. 3
    Append to §8 last

    At the end of every session, append 1–3 lines to STATE.md section 8: what was tried, what worked, what died. Never overwrite §8 — append only. The log is chronological and accumulates across all agents.

ADR Numbering

Current Baseline (July 2026)

Current highest ADR: ADR-271 (3-seat roster collapse + deterministic dispatch). Next free number: 272.

All ADRs are at /root/projects/raia/03_technology/architecture/decisions/. Never scan the ADR folder to find the next number — use STATE.md header, which lists the current ADR baseline explicitly.

Profile Routing Table

Profile Model Toolset Triggered by
pa (session model) All tools — web, kanban, memory, git, terminal Eugin directly, via Telegram or CLI
programmer Claude Sonnet 4.6 code, terminal, git, file ops Dispatcher from Kanban (assignee_profile=programmer)
scribe Kimi K3 file, terminal, browser, deploy Dispatcher from Kanban (assignee_profile=scribe)
architect Kimi K3 read-only analysis, codebase inspection PA on-demand — ADR-class design decisions only
redteam Opus (thinking) read-only analysis, threat modelling PA on-demand — security review only
i
ADR-271 Compliance Verification

The 3-seat roster can be verified at any time: hermes profile list should show only pa, programmer, and scribe as active dispatch targets. Architect and RedTeam appear in the profile list but hold no standing Kanban queue. Dispatch cron is verified by inspecting cron ea794b0e7fc7 output logs hourly.

Retired profiles: pm and legacy quality/data/devops profiles are stopped and pending removal. They hold no queue and are skipped by the dispatcher. Do not assign tasks to them.

Figure 2 — Andrew Ng's 4 Agentic Patterns: Where RAIA (Real estate Artificial Intelligence Agent) Implements Each One
Ng's Pattern What it means How RAIA (Real estate Artificial Intelligence Agent) does it 🔁 Reflection AI critiques its own output and iterates to improve it Agent generates output, then re-reads it as a critic, finds flaws, rewrites, repeats PA verifies Programmer output tsc + SQL gate before marking done Programmer fixes, PA re-checks 🔧 Tool Use AI calls external APIs, databases, search, code Agent uses real tools — web search, terminal, database, file read/write — not just text generation PA: web_search, kanban, memory Programmer: terminal, git, Supabase Scribe: file write, deploy.sh, nginx 🗺 Planning AI breaks a goal into steps before executing Agent doesn't jump straight to code. It reads STATE.md, checks ADRs, writes spec, then executes PA writes spec → Kanban task Programmer reads spec, plans, builds STATE.md §8 prevents re-derivation 🤝 Multi-Agent Specialised agents collaborate, each with its own role Not one mega-agent doing everything. Separate agents for separate jobs, coordinated by a gatekeeper PA (gate) + Programmer + Scribe + Architect/RedTeam on-demand ADR-271: 3 active + 2 on-demand
Andrew Ng named 4 patterns (not 12). The "12 steps" you saw was a viral repackaging. RAIA (Real estate Artificial Intelligence Agent) implements all 4.

Repository Code

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