chapter two
2 Agent architecture and the two-axis map
This chapter covers
- The seven cognitive modules and why agents need all seven
- The Perception-Reasoning-Action loop and its compound error problem
- Assembling General Agent Architecture from modules, runtime, and the external world
- The two-dimensional pattern map that organizes every pattern in this book
- Implementing Argus's PRA skeleton and running it against a real code diff
"Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over."
— Christopher Alexander, A Pattern Language (1977)
We’ve established why agent systems need new design patterns. Output, behavioral, and environmental uncertainties break the assumptions behind classical patterns. Every agent pattern traces its lineage to an engineering ancestor, and seven cognitive functions organize what agents do. This chapter establishes what those patterns operate on.
This chapter is also the geometric expansion of the premise we named before: bounded resource allocation under uncertainty. The seven cognitive modules name what gets allocated; the two axes, cognitive function and execution topology, name how the allocation is distributed. The 27 patterns ahead are 27 allocation strategies.