The Six Layers of GenAI Engineering
Prompt, context, harness, loop, graph, and runtime engineering solve different problems in agent systems. Here is what each layer owns.
Millrace blog
Historical essays and current technical notes on graph engineering, long-running agents, and operational authority.
Prompt, context, harness, loop, graph, and runtime engineering solve different problems in agent systems. Here is what each layer owns.
Better memory helps an agent reason. Authoritative execution state determines what happened, what is legal, and what the system must do next.
No single paper reproduces Millrace, but recent research independently supports nearly every major decision in its architecture.
Loop engineering is real, but once loops become infrastructure, the missing layer is runtime engineering.
Naive agent loops are useful, but reliable long-running agent work needs deterministic runtime judgment.