This article compares two distinct architectural governance models for AI coding agents: the 'city-state' (dgov) and the 'federation' (author's stack). It highlights their contrasting metaphors (legal vs. scientific audit), how they approach plan definition and execution, and their respective strengths in areas like claim-versus-reality settlement and multi-repository policy enforcement. The comparison reveals convergent evolution in mechanisms like declarative task units, fail-closed validation, and forwarded failure memory, pointing to core architectural principles for agent systems.
Read original on Dev.to #architectureThe article delves into two distinct governance architectures for AI coding agents, developed independently by different teams: dgov and the author's own stack. Both systems aim to orchestrate AI agents for code generation and review but employ different fundamental metaphors and architectural philosophies, leading to complementary strengths and weaknesses. dgov uses a legal metaphor, focusing on a 'constitution' with strict enforcement, while the author's stack uses a scientific audit metaphor, emphasizing claims, refutation, and evidence.
dgov, described as a 'deterministic kernel for multi-agent orchestration via git worktrees,' embodies a 'city-state' model. Its architecture centers around a single repository with a local governor. Key architectural features include:
The author's stack adopts a 'federation' model, designed for broader, multi-repository governance. Its philosophy is rooted in scientific audit and refutation. Key architectural distinctions include:
Despite their differences, both systems independently arrived at several core mechanisms, suggesting these are fundamental architectural components for AI agent governance:
Architectural Lesson
The article highlights that when independent builders converge on similar mechanisms, these mechanisms likely represent essential solutions to inherent problems in the domain. For AI coding agent governance, features like file claims, fail-closed gates, and forwarded failure memory appear to be critical architectural pillars.