A4 — Force a Self-Correction
Action: Give it a goal that will fail first, so you can watch it recover.
agy -i "run the script start.js"
(There is no start.js yet — that's intentional.)
-i (--prompt-interactive) keeps the session open so you watch the recovery happen live — the right mode for A4. Give it a moment to investigate, then exit with Ctrl-C. (Scripted one-shot alternative: agy -p "…", which runs silently then prints a summary — handy, but you don't see the loop.)
🔎 Observe: the agent hits an error, reads the error, and decides what to do (often: tells you the file is missing, or offers to create it — it may even write start.js and run it).
🧠 Map it: reading the error = Perception of the result of its own Action. That feedback is the loop closing. This is exactly the "self-correction = the loop running more than once" idea from this morning.
✅ Checkpoint A4: You witnessed the agent react to a failure rather than crash blindly.