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.
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.
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
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 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
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
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.
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
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.
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
-
1Evening — Eugin queues specs
Eugin tells PA what to build or document. PA creates Kanban tasks with
assignee_profile=programmerorscribeand moves them to Ready. -
2Hourly overnight — Dispatcher fires
Cron
ea794b0e7fc7runskanban-dispatch-tick.shevery hour. It reads the Kanban board, finds Ready tasks assigned toprogrammerorscribe, and spawns the matching Hermes profile. No LLM involved. -
3Morning — 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.
-
4Human-assigned tasks — stay in Ready
Tasks assigned to
FookorEuginstay in Ready indefinitely. The dispatcher skips them. They need human action: either complete them manually or reassign toprogrammerorscribe.
Memory — When Does Eugin Need to Think About It?
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:
"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.
"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
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 |
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:
-
1Read 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. -
2Do the work
Execute the task. Write code, docs, or analysis as specified. Do not modify STATE.md during the task.
-
3Append to §8 last
At the end of every session, append 1–3 lines to
STATE.mdsection 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 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 |
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.