Appearance
12. The Control Loop: A Universal Principle, from Harness to Management
The problem. In our lives as in organizations, we sometimes correct the same mistakes endlessly. Why? Because a control loop is missing: decide, act, observe, correct.
Example 10: migrating from C to Rust or Go. This migration illustrates two levels of control loop. First level: fixing bugs one by one. In C, memory management is manual, and the same errors keep coming back: buffer overflow, use-after-free, double free. You can fix them one at a time, like patching leaks: this is the first-level loop, the debugging loop. Second level: questioning the language itself. C is error-prone for memory: as long as you keep that language, this whole class of errors comes back. Adopting Rust or Go eliminates the entire class at the root: Rust's borrow checker or Go's garbage collector make these errors impossible at compile time. This is the second-level loop: instead of correcting endlessly, you change the tool to eliminate the source of the problem. Key takeaway: AI agents will first be deployed on first-level loops (fix, debug), while humans move up a level to act on the outer loop: changing the language, the tool, or the process.
Example 11: the hospital. A ward that holds a monthly mortality and morbidity review: every death or complication is analyzed, classified, and a correction is decided, then verified the following month, it learns from its errors. A ward without this loop repeats them.
The concept. The agent's loop (layer 4: build context → call model → parse output → validate → execute → observe → update → check stop) and the management loop are the same schema:
| System | Loop | What is checked at each turn |
|---|---|---|
| Agent (harness, layer 4) | build context → call model → parse output → validate → execute → observe → update → check stop | no action without validation; every observation is logged (layer 7); budgets (tokens, cost, iterations) only decrease; the stop condition is checked at each turn |
| Team, process | PDCA (Shewhart, then Deming): Plan → Do → Check → Act | the gap between planned and actual is measured, corrected, then standardized |
What changes from one scale to the other is who holds the loop (the harness, a human, or a collective) and the speed of the loop: an agent loop runs in a few seconds per iteration; a team loop runs in days or weeks. The same failure modes appear everywhere, at different speeds:
| Failure mode | In the agent (layer 4) | In a human team |
|---|---|---|
| Infinite loop / oscillation | same action repeated | same mistake made every quarter |
| Resource exhaustion | context or token budget exhausted | team burnout, overtime |
| Silent failure | tool broken, "success" claimed | false indicator, "green" dashboard |
| Premature stop | answer before the task is done | decision made before having all the information |
Consequence for design. Introducing a resident agent (Part II) means adding one more control loop to the organization: you must know where it plugs in, who watches it (layer 7: observability), and what its stop conditions are. In a hybrid team, loops are nested: the agent's fast loop runs inside the slower loop of the human who supervises it. The human does not watch every iteration of the agent (that would be unmanageable), but the traces and exception reports, exactly like a manager follows a team through indicators rather than by reading every email. Example 12: the emergency-room assistance agent (A1). In a hospital, an agent runs on a tablet, used optionally by nurses and doctors at triage. The agent proposes the procedure: it asks the questions, checks that no step is forgotten, and prepares the summary for the doctor. But the decision stays human: it is the caregiver who decides the urgency level. This dual register is essential. On one side, the agent assists (A1): it proposes, the human decides. On the other, it collects data: each triage feeds a quantitative and qualitative analysis that advances care. The canonical example is the introduction of soap as a mandatory step of hand hygiene (Semmelweis, then the campaigns for alcohol-based hand rub): an observation-and-learning loop reduced infections long before any agent existed.
In this organization, the fast loop of the triage agent (which checks the procedure for each patient) nests inside the slow loop of the medical staff (weekly review of cases and errors): two loops, two speeds, a single human accountability.