RAIA™ Specification

2.31 How We Work — ADR-271 Three-Seat Pipeline

In Plain EnglishOne front-of-house (PA) takes every order from Eugin and never enters the kitchen. Specialist cooks (Programmer, Scribe, Architect, RedTeam) work only when a ticket arrives. A deterministic dispatcher — a script, not an AI — hands tickets to cooks every hour. No cook decides what to cook; they only execute what is on the ticket. This page is the single source of truth for how work gets done in the EstateAigents Hermes agent system.

← Back to Developer Hub TEXTBOOK SPECIFICATION
In Plain English

One front-of-house (PA) takes every order from Eugin and never enters the kitchen. Specialist cooks (Programmer, Scribe, Architect, RedTeam) work only when a ticket arrives. A deterministic dispatcher — a script, not an AI — hands tickets to cooks every hour. No cook decides what to cook; they only execute what is on the ticket. This page is the single source of truth for how work gets done in the EstateAigents Hermes agent system.

The single source of truth for how work moves from Eugin's idea to deployed output: the 3-seat pipeline (ADR-271), the deterministic Kanban dispatcher, structural safeguards against hallucination and token loops, and the DONE definition.

ADR-271 2026-07-25 Deterministic Dispatch 3-Seat Roster Single Source of Truth
5
Profiles — PA, Programmer, Scribe, Architect, RedTeam
3
Active dispatch seats (PA, Programmer, Scribe) — ADR-271
0
LLMs in the dispatch path — deterministic script only
7
Structural safeguards against hallucination and token loops

Section A The Kitchen Analogy

There is one front-of-house — the PA (Personal Assistant, the default profile) — who takes all orders from Eugin and never goes near the kitchen. Eugin talks to PA and only to PA. PA listens, asks two or three clarifying questions, checks whether the work is already tracked, and only then writes a ticket. PA never writes code, never touches a database, never deploys a page.

There are specialist cooks — Programmer, Scribe, Architect, RedTeam — who only work when given a ticket. A deterministic dispatcher (the Kanban cron, a plain shell script with zero AI in it) reads the board every hour and hands each ready ticket to the matching cook. No cook decides what to cook. No cook wakes itself up. They execute exactly what is on the ticket, commit their work to git, and report back with a SHA — then PA verifies the result before Eugin ever hears about it.

Section A The 5 Profiles — Who They Are and What They Do

Profile Model Does Never does How activated
default (PA) Sonnet 4.6 Receives every request from Eugin, interviews for gaps, checks history, creates Kanban tasks, verifies all output before reporting done. Writes code, SQL, migrations, HTML docs, or deploys anything. Never bypasses delegation. Always running — the only profile Eugin talks to.
programmer Sonnet 4.6 Writes all production code and SQL, builds vertical slices (TSX + API route together), runs tsc --noEmit before every commit, commits directly to the branch, reports the SHA. Opens pull requests unless explicitly told. Touches database schema. Claims done without a real compile and a real SHA. Dispatched hourly by the Kanban cron when a Ready task is assigned to it.
scribe Kimi K3 Owns every page on docs.estateaigents.com — writes raw sources, compiles, deploys to nginx, verifies live HTTP 200, draws every inline SVG diagram. Touches backend code, API routes, or migrations. Reports file paths instead of live URLs. Dispatched hourly by the Kanban cron when a Ready task is assigned to it.
architect Kimi K3 Writes plans, specs, and ADRs before complex builds. Runs the mandatory ADR preamble (find highest number, search for conflicts, update ADR-000 registry in the same commit). Writes code, TSX, SQL, or config edits. Invents an ADR number. Skips the ADR-000 update. On-demand only — queued by PA for ADR-class decisions.
redteam Opus 4.6 (thinking) Weekly adversarial sweep (Supabase advisors, RLS drift, port/firewall diff, secrets scan, PII leak check) plus high-risk PR audits on migrations, auth, and new routes. Fixes the holes it finds. Uses the access it discovers. Politely ignores a CRITICAL finding. Weekly cron + on-demand by PA for ADR-class security review.

Section A How a Task Moves from Idea to Deployed

Every piece of work follows the same nine-step path. No step is optional and no step involves an agent deciding what to do next — the dispatcher moves the work, the agents execute it.

Figure 1 — From Eugin's Idea to Deployed Output
1. EUGIN has an idea 2. PA CLARIFIES asks 2–3 questions, checks history 3. KANBAN TASK assignee + brief, status: ready 4. DISPATCHER hourly cron, zero AI 5. PROFILE RUNS programmer / scribe / architect / redteam 6. GIT COMMIT direct to branch, SHA reported 7. AUTO-DEPLOY Vercel / nginx ships on commit 8. PA VERIFIES checks real output, never trust claims 9. DONE Eugin hears summary CRON ea794b0e7fc7 fires every 60 min NO LLM DECIDES what runs next
The dispatcher is a deterministic shell script. Steps 4 and 5 contain zero model calls — an agent only wakes when the cron hands it a ticket.

Section B The Kanban — How It Works

The Kanban board at hermes.estateaigents.com/kanban is the single queue every task flows through. It is backed by a SQLite database and driven by a deterministic dispatcher — not by any agent's judgment.

Task anatomy

  • Status — one of triage → todo → ready → running → done (or blocked when waiting on a human or another task).
  • Assignee — a profile name (programmer, scribe, architect, redteam) or a human name. Only live profile names auto-dispatch.
  • Body — the brief: what to build, why, acceptance criteria, links to source material.

The dispatcher — deterministic, hourly, zero AI

Cron ea794b0e7fc7 — a script, not a model

Every 60 minutes a shell script reads the board, finds tasks in ready with a live profile as assignee, and spawns that profile. No LLM decides what runs next — this was fixed on 2026-07-25 under ADR-271 after the roster collapse. The dispatch decision is pure pattern matching on assignee name and status.

Routing rules that matter

  • Human names never dispatch. Tasks assigned to Fook or Eugin stay in Ready forever — the dispatcher silently skips them. They need a human to act or to be reassigned to a live profile.
  • One task at a time per profile. A profile that is already running a task is not spawned again until it finishes.
  • Concurrency cap is 3. Across all profiles, at most three agent processes run at once.
  • Queueing a task is one sentence. Tell PA what you want. PA clarifies, creates the task, and it runs at the next hourly tick. That is the entire onboarding flow.

Section B What Prevents Hallucination and Token Loops

These are the structural safeguards actually in place today — not aspirations. Each one exists because something broke without it.

  1. 1
    Deterministic dispatcher — no LLM picks the next task

    The old night-watch pattern let a model decide what to run. It hallucinated priorities and looped. Fixed 2026-07-25 under ADR-271: dispatch is now a shell script with pattern matching only.

  2. 2
    Programmer commits direct to branch — no PR review loops

    Default flow is build → tsc --noEmit exit 0 → commit → report SHA. No agent-to-agent PR ping-pong burning tokens on review cycles that never converge.

  3. 3
    PA verification gate — real output before "done"

    PA checks actual file contents, real git log SHAs, and live HTTP responses before reporting anything to Eugin. Agent claims of completion are never trusted at face value.

  4. 4
    5 profiles retired under ADR-271 — pm, quality, devops, data, researcher

    ADR-271 (2026-07-25) deleted five profiles: pm (ticket bureaucracy, no build value), quality (overlapped with PA verification gate), devops (infra work folded into Programmer tasks), data (ad-hoc queries answered by PA directly), and researcher (web research folded into Scribe and PA). Extra coordination layers produced more tokens than value. The 3-seat roster (PA + Programmer + Scribe) plus 2 on-demand reviewers (Architect + RedTeam) is the whole team.

  5. 5
    Graph engineering methodology (ADR-270) — retrieval by index scoring, not model guessing

    Agents find knowledge by scoring an index, not by free-text searching the whole repo. The model reads 3 files instead of 5,000. Hallucination surface shrinks to what's actually retrieved.

  6. 6
    SOUL.md per profile — each agent knows its lane and never crosses it

    PA never codes. Programmer never writes docs. Scribe never touches the database. Architect never lays bricks. RedTeam never fixes what it finds. The lanes are written down and enforced by the profile system prompt.

  7. 7
    kanban_complete protocol — SHA or the task stays running

    An agent must call kanban_complete with a real commit SHA (or a documented blocker) to close its task. If the process crashes mid-run, the dispatcher auto-reclaims the stale lock and requeues the task — no silent zombie work.


Section C Graph Engineering — The Two-Layer Methodology

ADR-270 adopted graph engineering as the foundational methodology for both knowledge retrieval and workflow execution. The paradigm has two layers, each sourced from a different author, each solving a different problem.

Layer 1 — Knowledge Graph (@kingwilliam_)

How agents FIND information. Router → Index → Nodes → Edges → retrieval-as-code. The model never scans the repo: it strips the query to keywords, scores INDEX.md without opening files, opens only the top node, reads only the relevant section, follows at most one edge, then runs the model once. Result: 3 files read per answer instead of ~800,000 tokens of flat-pile context. Phase 0 (auto-index, 4-property headers, edge backfill) is complete.

Layer 2 — Workflow Graph (@AnatoliKopadze)

How agents EXECUTE work. Nodes are jobs (one agent, one task, one input, one output). Edges are real dependencies — an arrow only counts when something real passes along it. The Fake Edge Test: for every step, ask "does this step actually need the result of the one before it?" If no, run it in parallel. The Verifier Node pattern maps directly onto PA's verification gate: never let a worker verify its own work. The Fan-In Guard: never synthesize a report from partial results — check the count before merging.

Both layers were adopted in ADR-270 on 2026-07-25. Phase 0 (instrumentation: auto-index script, 4-property node headers, skill edge backfill) is complete. Phase 1 (the scorer that ranks retrieval failures from real session data) is pending Phase 0 exit criteria.


Section D What "Done" Actually Means

The only definition of done that counts

Done = live on dev.estateaigents.com or app.estateaigents.com and PA has confirmed it with a real curl -sI returning HTTP 200.

Not done: committed to a branch. Not done: subagent reported success. Not done: file exists on disk. Not done: it compiled. Not done: it's in a pull request. Done means the URL is live and PA has curled it.

The PA verification gate — mandatory, no exceptions

PA always verifies output before reporting to Eugin. The protocol:

  1. 1
    Agent commits and reports a SHA

    The profile (Programmer, Scribe, etc.) commits its work, reports the commit SHA to PA. PA does not trust this claim at face value.

  2. 2
    PA runs curl -sI <live-URL> | grep HTTP

    For code changes: PA checks the Vercel/nginx deployment URL. For docs: PA checks docs.estateaigents.com/developer-guide/<slug>.html. The response must be HTTP/2 200. A 404, 502, or redirect is not done.

  3. 3
    PA reports to Eugin only after curl confirms 200

    If curl returns anything other than 200, PA re-dispatches or escalates to Eugin — it does not report done. Eugin's word for the session is always the real live URL, never a file path.

Why this rule exists

Before ADR-271, agents reported success based on local tool output. Three separate incidents in July 2026 involved subagents reporting "done" when the deployment had silently failed (nginx rsync missed a file; Vercel build queued but not yet live; commit SHA real but wrong branch). The PA verification gate was made mandatory after the third incident.


Section E Retired Profiles — ADR-271 Deletions

ADR-271 (accepted 2026-07-25) deleted five profiles from the Hermes roster. They are permanently gone — not paused, not dormant. Any kanban task assigned to these names will sit in Ready forever; the dispatcher skips them silently.

Profile Why retired Successor
pm Ticket bureaucracy without build value. Sprint planning and prioritisation produced no code and duplicated PA's triage function. PA handles triage and prioritisation directly.
quality Overlapped entirely with PA's verification gate. Running a second agent to re-check what PA already checks doubled token cost for zero additional coverage. PA verification gate (Section D above).
devops Infrastructure work is rare and deterministic. Folding it into Programmer tasks when needed proved cheaper than maintaining a resident devops profile. Programmer handles infra-adjacent tasks on demand.
data Ad-hoc database queries were answered faster by PA reading STATE.md or delegating a targeted Programmer task. A resident data profile was idle 98% of the time. PA for data reads; Programmer for migrations/queries.
researcher Web research was folded into Scribe (for docs sourcing) and PA (for architecture decisions). An independent researcher profile created duplicate tool calls and context-window overhead. Scribe owns external source research; PA directs it.
The 3 + 2 roster post-ADR-271

3 dispatch seats: PA (default, Sonnet 4.6) — Programmer (Sonnet 4.6) — Scribe (Kimi K3)

2 on-demand reviewers: Architect (Kimi K3, ADR-class plans) — RedTeam (Opus 4.6, adversarial audits)


Section F GitHub Enterprise Cloud & Merge Queue

ELI5 — The Airport Boarding Analogy

In Plain English

Before the upgrade, every parallel PR was like a passenger who queues at the gate — but every time the plane boards one group, everyone still standing is told "your ticket is now out of date, go to the back of the line." That was the rebase conga line: every merge to main made every other open PR stale, so the slowest PR got stuck rebasing forever. GitHub Enterprise Cloud + the native Merge Queue replaced that queue with an orderly jet bridge: PRs join the queue in arrival order, GitHub tests each one against the latest main plus everything already queued ahead of it, and merges them serially — no passenger ever has to re-check their own ticket. Parallel agent PRs land without a single manual rebase.

User Guide — What Changed and Why It Matters

Three things changed in the EstateAigents GitHub estate in September 2026:

  1. 1
    Organisation upgraded to GitHub Enterprise Cloud

    The estateaigents GitHub organisation now sits under the enterprise account at github.com/enterprises/estateaigents. The structure is three nested tiers: Enterprise (billing, policy, identity) → Organization (estateaigents) → Repository (raia and others). Enterprise-level policies (e.g. required two-factor, allowed actions runners, IP allow lists) cascade down to every repo in the org.

  2. 2
    The serial merge bottleneck is gone

    Before the upgrade, when multiple agent PRs were open against main, every merge set all remaining PRs to BEHIND. Each agent then had to rebase, wait for CI, and hope nothing else merged first — the rebase conga line. With Merge Queue enabled on the main branch ruleset, PRs enter a queue. GitHub creates a temporary gh-readonly-queue/main/pr-<N>-<sha> branch for each entry, runs required checks against that combined branch, and squash-merges in queue order. A PR that fails its queued run is evicted; the PRs behind it are retested automatically.

  3. 3
    Required checks still gate every merge

    Merge Queue does not weaken CI. The same required status checks (build, lint, tests) must pass — they just run on the queue's preview branch instead of on the PR head directly. This guarantees main is always green: every commit on main has passed the full required-checks suite in the exact state it landed.

Before (classic branch protection)After (Merge Queue)
Every merge to main makes all other open PRs BEHINDPRs join a first-in queue; order is preserved
Agents must rebase manually, re-run CI, race to merge before the next PR landsGitHub rebases each queued PR onto the latest queue state automatically
CI runs on the PR head only — two green PRs can still conflict when merged back-to-backCI runs on a temporary merge branch = main + all queued PRs ahead + this PR — semantic conflicts are caught before they reach main
Serial merge throughput collapses as PR count grows (the conga line)Merge throughput stays linear; agents open PRs in parallel and never touch a rebase

Developer Guide — How It Is Configured

The architecture has three nested scopes. Understanding which scope owns a setting tells you where to change it.

Enterprise tier — github.com/enterprises/estateaigents

Top-level account boundary. Owns: billing & seats, SSO/SAML, org membership policy, actions runner policy (self-hosted runner groups), IP allow lists, audit log streaming, and enterprise-wide 2FA enforcement. Settings here apply to every org inside the enterprise.

Organization tier — github.com/estateaigents

The working org all repos live in. Owns: repo creation, team permissions, org-level secrets/variables, default branch protection policy, and member roles. The raia repository lives here.

Repository tier — github.com/estateaigents/raia

Owns: the main branch ruleset (Settings → Rules → Rulesets) where Merge Queue is switched on, required status checks, required reviews, and the squash-merge-only strategy. This is the tier an agent or developer touches day to day.

Merge Queue mechanics on estateaigents/raia

The main ruleset has Require merge queue enabled with the squash merge method. The flow for any PR (human or agent-authored):

  1. 1
    PR opened + reviewed + approved

    Author (agent or human) opens the PR against main. Required checks and review approval must be satisfied exactly as before.

  2. 2
    "Merge when ready" enqueues the PR

    Instead of a Merge button, the PR shows Merge when ready. Clicking it (or an agent calling the GraphQL enqueuePullRequest mutation) adds the PR to the queue for main.

  3. 3
    GitHub builds a preview branch

    GitHub creates gh-readonly-queue/main/pr-<number>-<base_sha> containing the current queue tip plus this PR's changes. Required checks run against this preview branch.

  4. 4
    Checks pass → squash merge to main; checks fail → evict

    On pass, the PR is squash-merged to main in queue order and the queue entry closes. On fail, the PR is removed from the queue with a failure note; entries behind it are re-based onto the new queue tip and their checks re-run automatically.

What agents must know

Operational rules for agent-authored PRs
  • Never rebase a queued PR manually. Pushing to the PR branch while it is in the queue evicts it. Open → enqueue → walk away.
  • CI must pass on the queue preview branch, not just the PR head. If a PR is evicted, check the gh-readonly-queue check run — the failure may be a semantic conflict with a PR that merged ahead of it, not a bug in the PR itself.
  • Queue order is merge order. A PR that depends on another PR must be enqueued after its dependency — or the dependency must land first.
  • The merge is always a squash. The commit on main is a single squashed commit; PR-branch history is discarded.
# Enqueue a PR from the CLI (gh ≥ 2.40)
gh pr merge <PR-number> --squash --auto        # sets auto-merge → queue

# Inspect the current queue via GraphQL
gh api graphql -f query='
  query($owner:String!, $repo:String!, $branch:String!) {
    repository(owner:$owner, name:$repo) {
      mergeQueue(branch:$branch) { entries(first:20) { nodes { position pullRequest { number title } } } }
    }
  }' -F owner=estateaigents -F repo=raia -F branch=main
Where to configure it

Repo → Settings → Rules → Rulesets → main ruleset → enable Require merge queue, choose merge method Squash, and list the required checks that must pass on the queue preview branch. Enterprise-level rulesets (Settings → Rules in the enterprise account) can enforce the same pattern across every repo in the org.


References External Sources

This page references the following external sources, ordered by relevance to the ADR-271 pipeline architecture:

Source Author Link Relevance to RAIA
ADR-271 — Roster Collapse & Deterministic Dispatch EstateAigents (internal) ADR-271 detail page Primary ADR for the 3-seat roster, cron replacement, and dispatcher architecture described on this page.
Andrew Ng — Three Loops Andrew Ng x.com/AndrewYNg Conceptual framing for agentic loops (inner/steering/integrity/external) — informing the PA verification gate design.
Anatoli Kopadze — Graph Engineering @AnatoliKopadze x.com/AnatoliKopadze Workflow graph topology (One Node One Job, Fake-Edge Test, Verifier Node) that informed the 6-node pipeline design.
wandermist — "systems design with a new label" @wandermist x.com/wandermist Critique that graph engineering is established systems design — grounding the ADR-270/271 scope.
leopardracer — 6-node formula @leopardracer x.com/leopardracer Concrete 6-node workflow template (Task → Researcher → Planner → Writer+Code → Reviewer → Deploy) adopted by RAIA.

Sessions Session hygiene (2026-08-04)

Rule

Almost one task or one product track per Hermes session. Ship or switch topic → /new. Close the session when the track is verified.

Why: Long multi-topic chats re-send full context every turn. Week of 29 Jul–4 Aug 2026: xAI ~$477 cached prompt tokens alone (~$708 total).

DoDon't
Clarify → delegate → verify → closeLandlord + billing + routing in one mega-chat
PA frames on Gemini Flash; build on programmer/architectPA implements or runs flagship all day
Flagship (Grok 4.5 / Opus) only when you askDefault everything to Grok 4.5