A loop specification needs observations, decisions, and stopping conditions. This final lesson combines a paper control calculation with a bounded AI workflow.
Exercise A: reproduce the toy control model
Use target 10, initial y=0, u=K(10−y), and y_next=y+0.5u. The abstract model has no disturbance or delay and permits negative output. Do not operate a real heater or vehicle.
For K=1, four actions produce 0→5→7.5→8.75→9.375. Absolute errors are 10→5→2.5→1.25→0.625. With a passing condition of absolute error at most 1 and a six-action limit, the fourth action passes. Reaching a finite stopping condition differs from proving model stability.

For K=5, the first values are 0→25→−12.5. A teaching rule that halts after two consecutive increases in absolute error would stop after the second action. That rule is not a stability proof.
Exercise B: specify an AI fact-checking workflow
Use a fictional source: deadline November 20, free participation, capacity 30. Limit the target to one announcement.
Goal: make three facts match the source
Input: source, announcement, artifact version
Action: edit and save the announcement locally
Observation: three comparisons and unsupported additions
Pass: all three match; no unsupported additions
Continue: a source-grounded correction is available
Hold: source unavailable, contradictory, or undecidable
Limits: three revisions or ten minutes; choose a cost cap first
Record: target, version, action, evidence, unresolved work, next decision
External publication and sending: out of scope
Pasting this into a chat does not implement time limits, cost enforcement, or durable state. Initially, a person can track attempts and elapsed time. “Capacity 30” also cannot become “30 places remaining”: those claims have different meanings.

Test four situations
Success: the three facts match and nothing unsupported was added; complete. Mismatch: the draft says capacity 50; correct from the available source and recheck the whole announcement.
Unavailable evidence: the source cannot be opened; hold rather than accepting a remembered answer. Unknown write: a save response is missing; inspect the destination and version before another save. These are specification and manual-check exercises, not evidence that an integration has been tested.
Extend the design to real work
For physical control, use material covering sampling, plant response, and output constraints. The University of Michigan's CTMS provides design tutorials, including cruise control. Toy gains cannot configure real equipment. Next study resource: CTMS
For coding, substitute target files, reproduction steps, tests, authorized actions, and stop conditions. For research, specify the question, sources, unresolved claims, and when additional searching should end. Anthropic's generation-and-evaluation pattern is a useful reference. Source: Anthropic
Could another person resume?
Ask what counts as complete, which evidence supports it, what uncertainty requires a hold, and which artifact version should be read on resumption. Ambiguous answers identify the next part of the design to improve. Physical control requires understanding dynamics and stability; AI work additionally requires evaluating meaning and evidence quality. Start with a small target whose results you can explain.
Read the five-part series
- Loop Engineering 1: Feedback, from Temperature Control to AI
- Loop Engineering 2: Error, PID, Delay, and Oscillation
- Loop Engineering 3: Design an AI Action–Evaluation Loop
- Loop Engineering 4: Failure, Budgets, and Safe Resumption
- Loop Engineering 5: Design and Test Your First Small Loop (this lesson)











