2.31 How We Work — The EstateAigents Production Workflow
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.
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 5 profiles, the deterministic Kanban dispatcher, the structural safeguards against hallucination and token loops, and the two-layer Graph Engineering methodology adopted in ADR-270.
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) | Kimi K3 | 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.
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(orblockedwhen 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
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
FookorEuginstay 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.
-
1Deterministic 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.
-
2Programmer commits direct to branch — no PR review loops
Default flow is build →
tsc --noEmitexit 0 → commit → report SHA. No agent-to-agent PR ping-pong burning tokens on review cycles that never converge. -
3PA verification gate — real output before "done"
PA checks actual file contents, real
git logSHAs, and live HTTP responses before reporting anything to Eugin. Agent claims of completion are never trusted at face value. -
4No quality / pm profiles — retired 2026-07-26
The quality and pm profiles were removed from the roster. Extra coordination layers produced more tokens than value. The 3-seat roster (PA + Programmer + Scribe) plus 2 on-demand reviewers is the whole team.
-
5Graph 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.
-
6SOUL.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.
-
7kanban_complete protocol — SHA or the task stays running
An agent must call
kanban_completewith 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.
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.
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 C Links
- Full graph engineering spec — the complete ADR-270 methodology page: graph-engineering-methodology (created as a follow-up to this page).
- Kanban dispatcher doc — autonomous_job_dispatch: the event-driven state machine and background job dispatch specification.
- System overview — raia-agent-system-overview: the full-stack master reference covering Kanban, dispatcher, profiles, memory, and STATE.md in one picture.
- ADR-271 detail — adr-271-roster-collapse-deterministic-dispatch: why the 8-profile org collapsed to 3 seats and why dispatch became a deterministic script.