RAIA™ Specification

2.27 The TCA Framework: Ng × Kopadze × RAIA (Real estate Artificial Intelligence Agent) — Unified Workflow Model

THREE LOOPS OF RAIA (Real estate Artificial Intelligence Agent) AGENTIC DESIGN 1. Loop 1 Execution Agent-task pipeline 2. Loop 2 Orchestration Multi-agent routing 3. Loop 3 Metacognition Self-improvement THREE LOOPS OF RAIA (Real estate Artificial Intelligence Agent) AGENTIC DESIGN Figure 1: THREE LOOPS OF RAIA (Real estate Artificial Intelligence Agent) AGENTIC DESIGN pipeline diagram.

← Back to Developer Hub TEXTBOOK SPECIFICATION
THREE LOOPS OF RAIA (Real estate Artificial Intelligence Agent) AGENTIC DESIGN 1. Loop 1 Execution Agent-task pipeline 2. Loop 2 Orchestration Multi-agent routing 3. Loop 3 Metacognition Self-improvement THREE LOOPS OF RAIA (Real estate Artificial Intelligence Agent) AGENTIC DESIGN

Figure 1: THREE LOOPS OF RAIA (Real estate Artificial Intelligence Agent) AGENTIC DESIGN pipeline diagram.

In Plain English

RAIA (Real estate Artificial Intelligence Agent) runs on four feedback loops, not three. The fastest loop (minutes) is where agents do the work — Programmer writes code, Scribe writes docs, and a script either passes or fails the output before it leaves the agent. The steering loop (hours) is where Eugin is — he reads the morning summary, queues tonight's specs, and that is his entire interface to the system. A third loop (nightly) runs without anyone watching — it compares the documentation against the live system and queues corrections when something drifts out of sync. The slowest loop (weeks) is the market. What connects the loops is a rule about topology: simple tasks run in a straight chain; parallel tasks fan out and merge. RAIA (Real estate Artificial Intelligence Agent) today operates in chains and simple nodes. Fan-out and diamond patterns are designed but not yet built.

How Ng's clock frequencies and Kopadze's graph topology shapes combine with RAIA's determinism doctrine to form the TCA (Topology–Clock–Anchor) framework. Updated 2026-07-26 per gap analysis.

TCA Framework Graph Topology Kopadze Four Loops Andrew Ng
4
Feedback loops: Inner / Steering / Integrity / External
3
Loops active or designed: Inner + Steering active; Integrity pipeline designed, not built
1
Loop uninstrumented — External loop has no live signal pipeline yet
1h
Kanban dispatch cadence — deterministic, zero-LLM

Section A What Is the TCA Framework?

The TCA Framework is RAIA's unified mental model for agentic workflow design. It draws from two external frameworks — Ng's loop frequencies and Kopadze's graph topology — and adds a third axis that neither covers: determinism vs. inference.

T — Topology (Kopadze)

What graph shape does this task require? Chain (A→B→C), Simple Node (one bounded job), Fan-out (parallel workers), or Diamond (fan-out → verify → merge). Shape follows from whether steps actually depend on each other.

C — Clock (Ng)

Which feedback loop does this task belong to? Inner loop (minutes), Steering loop (hours), Integrity loop (nightly), or External loop (weeks). Confusing clocks is the failure mode Ng warns against.

A — Anchor (RAIA (Real estate Artificial Intelligence Agent) doctrine)

Is the completion criterion deterministic and verifiable, or inference-dependent? Deterministic anchors: tsc --noEmit exit 0, curl -sI HTTP 200. Inference-dependent: PA judgment, Eugin review.

Core Claim

Every agentic task in RAIA (Real estate Artificial Intelligence Agent) can be described by three properties: Topology (dependency structure), Clock (feedback loop frequency), and Anchor (completion verifiability). The right profile, graph shape, and dispatch mechanism follow from where a task sits in that 3D space.

TCA Pictogram

The full visual diagram of the TCA Framework — four concentric loops, topology shapes, and anchor markers — is available on the internal dev environment. The core topology shapes and loop interactions are illustrated in the diagrams below.


Section A The Four Feedback Loops in RAIA (Real estate Artificial Intelligence Agent) (TCA × Ng)

Ng originally described three loops. RAIA (Real estate Artificial Intelligence Agent) adds a fourth: the Integrity Loop (nightly, automated, self-correcting). This loop is designed but not yet built.

Loop Clock Topology Who Acts Anchor Type Status
Inner Minutes Chain / Simple node Programmer, Scribe, PA verify Code gate (tsc, SQL, deploy.sh) Active
Steering Hours PA hub node Eugin reviews, queues specs Human judgment Active
Integrity Daily (3am) Pipeline (scripts → Scribe chain) doc-watchdog + Scribe String comparison vs live state Designed — not built
External Days / Weeks TBD (currently thin) Market signal → Eugin None yet instrumented Uninstrumented
Integrity Loop: Designed, Not Yet Built

The nightly doc-watchdog (4efc19328579) is the predecessor — keyword pattern matching only. The full 5-stage integrity pipeline (SNAPSHOT → SCAN → GATE → CORRECT → VERIFY) requires three scripts not yet written. See §C.4 below for the stage-by-stage design.


Section A The 4 Topology Shapes (Kopadze)

Kopadze's key test: "Does this step actually need the result of the one before it?" If not, the edge is fake — the jobs can run in parallel. The correct topology follows from the dependency structure, not from preference.

Topology Pattern Present in RAIA? Real Example
Chain A → B → C sequential Yes — dominant PA spec → Programmer execute → PA verify (every coding task)
Simple Node Single bounded job, defined IO Yes doc-watchdog.sh, kanban-dispatch-tick.sh, deploy.sh
Fan-out One → N parallel (no merge) Partial / informal --max 2 dispatch fires two tasks per tick; no merge step
Diamond Fan-out → reduce → synthesise Not built Hypothetical: compliance scan across legal (Architect), codebase (Programmer), docs (Scribe) → PA synthesises
Topology Decision Rule

Use a chain when steps have real data dependencies. Use a simple node when a single script or agent can complete the job with defined inputs/outputs. Fan-out and diamond patterns earn their coordination cost only when independent work exceeds what a single agent can hold in context.


Section B Eugin's Role Per Loop

Loop Eugin's Role Eugin's Action
Inner (minutes) None — automated See results in morning summary
Steering (hours) Central — the only decision point Evening: queue specs. Morning: review PA summary. Escalate blockers only.
Integrity (nightly) None — automated. Exception if page fails 2 requeues PA notifies on persistent failures
External (weeks) Signal intake When a client complaint or competitor move arrives, pull it into steering loop by queuing a new spec
!
The Clock-Separation Rule

Eugin should never be pulled into inner-loop churn. If PA escalates to Eugin on non-blocker items, the steering loop is being used as an inner loop — the failure mode Ng warns against. The steering loop is Eugin's only touchpoint. The kanban board is the interface.

Section B Eugin's Daily Rhythm

  1. 1
    Evening: Queue specs for the night

    Write or approve kanban tasks for the next overnight run. Specs should be atomic, clear, and include acceptance criteria. The deterministic dispatcher picks them up hourly from cron ea794b0e7fc7.

  2. 2
    Overnight: Dispatcher runs (zero-LLM)

    kanban-dispatch-tick.sh polls the board hourly, silently if nothing to dispatch, Telegram alert if action is taken. No human intervention needed unless something escalates.

  3. 3
    Morning: Review PA output

    PA has verified Programmer output. Eugin reviews the summary. Escalate only on blockers — not on every task. The PA should resolve non-blockers autonomously.

  4. 4
    Repeat: Adjust spec queue based on what shipped

    Update priorities in the kanban board. If the external loop produces a signal (client complaint, competitor move), pull it into the steering loop by queuing a new spec.

How to Trigger Scribe (Documentation)

Trigger Word: "document [topic]"

Say "document [topic]" to PA. PA checks if a docs page for that topic already exists:

  • If the page exists → PA dispatches Scribe to enrich the existing page with new content
  • If the page does not exist → PA dispatches Scribe to create a new page from template

Scribe never touches backend code. Docs-only. The Scribe seat runs Kimi K3 and writes to /root/projects/raia/docs/raw/.

How to Trigger Programmer (Code / SQL)

Trigger: PA writes spec → kanban task with assignee_profile=programmer

PA writes a precise implementation spec → creates a kanban task with assignee_profile=programmer → the deterministic dispatcher picks it up on the next hourly tick → Programmer executes → PA verifies.

  • Never assign directly to "Programmer" by name in informal chat — go through the kanban board for traceability
  • PA must write the spec before dispatching — Programmer should not self-spec
  • PA must verify the output — never skip the verify step

THREE-LOOP ARCHITECTURE Input Layer Loop 1 — Agent Tool use + RAG Task automation Per-task execution Processing Layer Loop 2 — Orchestrator Profile selection Sonnet/Kimi routing Model-per-seat Output Layer Loop 3 — Meta Self-evaluation Skill evolution Pattern discovery Three nested loops: execution → orchestration → metacognitive refinement

Figure 2: THREE-LOOP ARCHITECTURE architecture diagram.

🔒 Developer-Only Section — TCA Technical Detail

Section C Kanban Dispatch Flow (TCA Inner Loop, Chain Topology)

Source of Truth: ADR-238

The dispatch flow and the 3-seat roster documented on this page are governed by ADR-238 — Agent Roster Collapse to 3-Seat Pipeline + Deterministic Kanban Dispatch (Accepted, 2026-07-25; renumbered from ADR-271 in the 2026-08-17 Wave 1 full reindex — see LEGACY-INDEX.md). Read the full decision record at 03_technology/architecture/decisions/ADR-238-roster-collapse-deterministic-dispatch.md.

Eugin (steering loop)
  ↓ spec
PA (hub node)
  ↓ kanban task (assignee_profile=programmer|scribe)
kanban-dispatch-tick.sh [ea794b0e7fc7, every 60m, no-agent]
  ↓ hermes kanban dispatch --max 2 --json
Programmer / Scribe (execution node)
  ↓ output
PA (verify node) — must pass completion gate before kanban_complete
  ↓ summary
Eugin (steering loop — morning review)
Anchor Rule

Programmer output must pass tsc / SQL gate before PA verifies. Scribe output must pass deploy.sh broken-link gate. These are deterministic anchors — they cannot be argued away by prose.

Profile Routing Table (C.1 — Live as of 2026-07-26)

Profile Slug Model Dispatchable? Role in TCA Topology Used
default (PA) claude-sonnet-4-6 Yes (user-initiated) Hub node — all loops connect through PA Chain coordinator
programmer claude-sonnet-4-6 Yes (kanban) Inner loop execution node Chain member (receives spec, returns output)
scribe moonshotai/kimi-k3 Yes (kanban) Inner loop execution node + integrity loop stage 4 Chain member (receives brief, returns HTML)
architect moonshotai/kimi-k3 On-demand only Steering loop — design phase Simple node (scoped ADR task → spec output)
redteam claude-opus-4-6-thinking On-demand only Steering loop — challenge phase Simple node (challenge brief → verdict)
researcher moonshotai/kimi-k3 Cron (independent) Outer loop proxy — market signal ingestion Simple node (runs independently, no merge step)

Cron Registry (C.2 — Key Crons in TCA Model)

Cron ID Name Schedule Loop Mode Topology Role
ea794b0e7fc7 Kanban Deterministic Dispatcher Every 60m Inner no-agent Simple node — reads board, fires dispatch
4efc19328579 doc-watchdog 0 3 * * * (3am) Integrity no-agent Pipeline stage 1–3 initiator
3e0aaffcab3f scribe-task-rate-monitor 0 9 * * * (9am) Integrity — Circuit-breaker node

TCA Framework Decision Table (C.5)

Using the Kopadze fake-edge test and the Ng clock model together to select the right dispatch pattern:

If the task… Correct Topology Clock Dispatch Pattern
Has sequential real dependencies (B needs A's output) Chain Inner (minutes) Single kanban task, PA → agent → PA
Can be expressed as a single script with defined IO Simple node Inner / Integrity Cron or kanban, no-agent mode if possible
Has 2+ independent sub-tasks that could run in parallel Fan-out Inner (informal) PA creates multiple kanban tasks; --max 2 per tick (currently informal, no merge step)
Requires breadth across N independent angles → synthesise one output Diamond Steering / Integrity Not implemented — requires PA merge step + coordinated dispatch

STATE.md Section 8 Protocol

Step 1: Read STATE.md First

Before executing any task, read STATE.md in full. Section 8 contains the chronological session log — it tells you what happened in prior sessions so you don't repeat work or contradict decisions already made.

Step 2: Append to Section 8 Last

After completing the session, append 1-3 lines to STATE.md section 8. Format: date, agent, what was done. Be terse. This is an operational log, not a narrative.

Integrity Loop — 5-Stage Design (C.4) NOT YET BUILT

Designed Only — Not Implemented

The full integrity loop (doc-self-improvement-architecture.md design) requires three scripts that do not yet exist: raia-system-snapshot.sh, raia-doc-contradictions.sh, raia-doc-gate.sh. The current doc-watchdog is a keyword-only predecessor, not the full pipeline.

Stage 1: SNAPSHOT   [no-agent script]  → /tmp/raia-system-snapshot.json
Stage 2: SCAN       [no-agent script]  → /tmp/raia-doc-contradictions.json
Stage 3: GATE       [no-agent script]  → Kanban tasks (Fact Correction Briefs) | silence
Stage 4: CORRECT    [scribe profile]   → updated doc page + commit SHA
Stage 5: VERIFY     [no-agent script]  → pass/fail; requeue on fail (max 2x); escalate to PA

What "Non-Spawnable Assignee" Means

!
Non-Spawnable Assignee in Dispatch Output

If the dispatch output shows non-spawnable assignee for a task, it means the task is assigned to a human name (e.g., "Fook", "Eugin") or a name that doesn't map to a Hermes profile slug. These tasks cannot be auto-dispatched. Two options:

  • Human pickup: The named human must pick up the task manually from the kanban board
  • Re-assign: Edit the task to set assignee_profile to a valid profile slug (programmer, scribe, etc.) and the dispatcher will pick it up on the next tick

ADR Status Relevant to This Page (C.6)

ADR Status Relevance
ADR-238 Accepted (2026-07-25) Governs the 3-seat roster and deterministic dispatch (renumbered from ADR-271 in the 2026-08-17 Wave 1 reindex)
ADR-237 Proposed (2026-07-24) Completion-verifier plugin — a harness-level git push gate. Not yet built. Does not implement a dual-graph architecture. (Renumbered from ADR-270 in the 2026-08-17 reindex.)
doc-self-improvement-architecture.md Design only — no ADR yet Integrity loop stages 1–5 — not yet built

Conceptual Note: Ng's Three Loops as Strategy Mental Model

Ng's Framework Is a Strategy Mental Model, Not a Deployable Architecture

Andrew Ng's three-loop framework is a conceptual lens for thinking about feedback frequencies in 0-to-1 AI products. It is not a deployment specification — Ng does not prescribe which agents to use, what topology to employ, or how to verify completions. RAIA (Real estate Artificial Intelligence Agent) uses Ng's clock-frequency insight as one axis of the TCA framework, but the deployable architecture (what nodes run, how they connect, what gates they pass) comes from Kopadze's graph vocabulary, RAIA's ADR decisions, and the determinism doctrine.

The main structure of this page is Kopadze topology shapes, not Ng's loops. Ng's loops appear in the TCA framework's Clock dimension and in Eugin's daily rhythm — nowhere else.

Kopadze's Five Contributions to RAIA's Architecture

Kopadze Contribution RAIA (Real estate Artificial Intelligence Agent) Has Implemented? Notes
Graph vocabulary (nodes, edges, fake-edge test) Yes Used in TCA Framework topology axis and task triage
Chain topology (A→B→C) Yes — dominant PA → Programmer → PA verify on every coding task
Diamond pattern (fan-out → reduce → synthesise) Not built Hypothetical only — requires coordinated fan-out dispatch + PA merge step
Independent verifier on clean context Partial RedTeam profile exists but is on-demand only, not in standing kanban queue
Anchors doctrine (deterministic completion criteria) Yes tsc --noEmit exit 0, curl -sI HTTP 200, deploy.sh broken-link gate
Dual-graph approach (knowledge graph + workflow graph) Not implemented RAIA (Real estate Artificial Intelligence Agent) has a relational database (Supabase) and a kanban queue — no knowledge graph. The dual-graph claim was removed from this page as inaccurate.
Kopadze's Framework: Where RAIA (Real estate Artificial Intelligence Agent) Is Going

Kopadze's framework describes the target architecture. RAIA (Real estate Artificial Intelligence Agent) today operates in chains and simple nodes. Fan-out and diamond patterns are the next evolution. The dual-graph (knowledge + workflow) is an aspirational capability, not a current implementation. ADR-237 (Proposed, not Accepted) describes a completion-verifier plugin — not a dual-graph implementation.


References External Sources

This page references the following external sources, ordered by relevance to RAIA's architecture:

Source Author Link Relevance to RAIA
Three Loops of 0-to-1 AI Products Andrew Ng Referenced throughout RAIA (Real estate Artificial Intelligence Agent) docs Foundational clock-frequency framework — RAIA's Clock axis in TCA, Eugin's daily rhythm, and the steering/inner loop separation doctrine all derive from Ng's three-loop model.
Graph Engineering explained: what it is, when to use it and when not to @AnatoliKopadze x.com/AnatoliKopadze/status/2080668775796314331 Provides the foundational vocabulary (nodes, edges, fake-edge test, chain, diamond, independent verifier, anchors doctrine) that shapes RAIA's TCA Topology axis and task triage decisions.
Graph Engineering is really just systems design @wandermist x.com/wandermist/status/2080974834851340400 Validates RAIA's framing: three pillars (one node one responsibility, fake-edge test, independent verification) map directly to RAIA's profile roster design and the TCA Anchor axis.
6-node graph formula @leopardracer x.com/leopardracer/status/2080980071813177629 The Task→Researcher→Planner→Writer+Code→Reviewer→Deploy formula maps directly to RAIA's 6-profile roster; "reviewer kicks back to the exact node that broke" matches RAIA's chain retry mechanism.