You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
continue iterating in a loop on researching about agents and gaps we may have
tier
STANDARD
909 - ZAO Agent-Stack Gaps + Hardening Roadmap
Goal: Honest gap analysis of the ZAO agent fleet vs 2026 best practice, ranked, with concrete fixes scoped to the stack (Next.js/Supabase/VPS/Pi/Bonfire/Telegram). ~65% production-ready: strong fundamentals, three blind spots.
Key decisions (fix order)
Gap
State
Fix (scoped)
Effort
1. Observability (CRITICAL)
logs show status, not why
structured JSON logging -> Supabase logs table + correlation IDs through every dispatch; error-rate view
2-3d, reusable
2. Reliability (CRITICAL)
no timeouts/circuit-breakers; silent memory degrade
withTimeout() on Claude calls; per-researcher consecutive-failure breaker -> Telegram alert + 1h backoff; Bonfire-read guard (escalate, don't silently use stale)
3-4d
3. Evaluation (HIGH)
only Hermes code is scored
comms-critic + research-critic + task-goal-critic (0-100, reuse Hermes rubric); eval_results table; alert on >15% week-over-week drop
1-2wk
4. Coordination (HIGH)
agents run blind; dup work; Hermes/researcher races
Supabase work registry (scope+status); ZOE checks before dispatch; escalations table for researcher->Hermes handoffs
3-4d
5. Security (MED-HIGH)
untrusted scrapes unvalidated -> Bonfire
Zod .strict() at scrape boundary; injection-pattern scan before Bonfire write; (later) container isolation
2-3d
6. Memory quality (MED)
Bonfire write-heavy, read-light; manual dedup
mandatory recall (escalate on fail); semantic dedup (>0.85 merge); decay (purge 0-retrieval >60d); learning loop ingests social metrics too
1wk
7. Human-in-loop (MED)
concierge output ships unapproved; cost invisible at decision
Timeout guards on Claude calls - stops forever-hangs (one slot blocking the loop).
Zod validation on researcher scrapes - blocks prompt-injection from social/web.
Work registry - stops Hermes + researchers racing the same repo.
Correlation IDs in logging - the spine of observability.
(Already shipped 2026-06-26: cite-or-drop + verify on the 3 Pi researchers - directly addresses the reliability/eval "research slop" sub-gap. Farscout's grounded engine is the model.)
Where ZAO is AHEAD of a typical 2026 fleet
Cost-cap discipline (daily fleet cap) - most teams track nothing.
Letta 4-block memory (persona/human/working/tasks) - most use flat RAG.
Hermes critic loop (0-100 code rubric) - most have no eval at all.
It partly conflates the bash Pi researchers (yt/seo/repo loops) with the TS bot (bot/src/zoe); fixes citing bot/src/researchers/*.ts are illustrative - adapt per surface (TS bot vs bash loop).
File paths + the "65% / 85% by week 8" numbers are directional, not measured.
Several sources (OpenAI Swarm, LangChain/LangSmith URLs) are pattern references, treat as directional.
Also See
Doc 907 - the dashboard observability/approvals plug into