It's abundantly clear that agents work better when provided feedback. Otherwise, they can misinterpret requirements, implement bad code, and stop prematurely (e.g. give up). In a Ralph loop, success is determined by a feedback signal. Formal verification of outputs was a key lever in OpenAI's landmark mathematical results.

If an agent can only be as good as the signal it receives, then a big part of agentic engineering is choosing (and building) the right signal for the job.

Note: this is about feedback for the agent. Feedback for the human, i.e.how an agent reports back to its user, I wrote about in Evolving AI agent UX.

A ladder of signals

When I was building my Pokémon bot, the agent's main operating constraint was that it couldn't actually see the game graphics; it had to get all of its information from programmatic reads of the game's internal memory state. Video games are good examples of situations where agents are trying to complete tasks without a full map of the territory they're in or the effects they're causing: "the AI can't really 'see' the screen, so it's playing mostly blind and relying on memory address reads to know what's going on".

An agent who polls available memory is getting some kind of representation of the world by which to orient; without this each output is a blind guess. Memory reads are one rung on a ladder of signals, which range from cheap and automatic to expensive and slow:

On the Pokémon bot the agent needed verbose logging on everything it was doing so that it could debug and iterate, which is best set as a project-level principle (e.g. in CLAUDE.md). If it got stuck I'd ask it to take a screenshot, and if it got really stuck the best thing to do was stream the run over VNC so I could watch what happened.

What I'm gesturing at here is the importance of verification to a Software Factory. There's lots of chat about how to scale CI/CD in this context. But here I wanted to write more about a project-level, what kind of tricks would I encourage an agent to think about when building up a verification capability.

What happens without one

When I used spec-driven development to build a music tool, I found that quantisation wasn't working exactly as intended, but Claude hadn't picked up on it because it could only see that the code was functioning without errors (and I hadn't added much by way of rich feedback signals at that point). It couldn't actually listen to the music.

The Pokémon bot showed the same thing in a different form: early in development, when it had limited knowledge of the different tile types, the agent insisted that its navigation route should be passable and couldn't understand why it kept getting blocked. It also misread logs (it especially struggled to detect timing and race conditions) or persistently read the wrong memory address.

A signal can be gamed

When I gave an agent a timer and asked it to make my Pokémon bot faster, its first idea was to speed up the emulator, which would have improved the number without improving the bot. I spotted it in its thinking logs and told it to avoid emulator-level optimisations. This is reward hacking, or goal hacking: the agent meets the goal as it was written (a lower time on the timer) instead of the goal as it was meant (a faster bot). It's Goodhart's law in miniature: when a measure becomes a target, it ceases to be a good measure.

Feedback loops which are too short for the overall system make people (and presumably agents) focus on inappropriate intermediate goals. In a Pokémon game, for example, the intermediate goal might be winning the next battle: training Pikachu to level 99 guarantees that win, but stopping at level 20 (and risking a short-term defeat and a retry) might actually get through the whole game faster.

"Beat FireRed" is a long-horizon task, which is what makes this hard to avoid: the real signal (did the bot finish the game, and how quickly?) is sparse, only arriving at the end of a full playthrough. It is not easy or quick to verify that particular choices of party composition, and where and how long to train, lead to the best performance in the long run. So an agent working towards a long-horizon goal needs intermediate goals (like the next battle) to get any feedback at all.

Short test runs get feedback sooner, but focusing on tight feedback also leads to getting stuck in local maxima: the short turnaround pushes towards incremental improvements to one approach, whereas more sporadic feedback leaves room to explore and try different approaches.

Letting the agent build its own signals

An agent can figure out its own way to get feedback. On the Pokémon bot I typically asked the agent to write "probe scripts" which looked at memory addresses to deduce things like location waypoints and NPC positions, and to make them re-usable so that its knowledge accumulates. Having a probed baseline unlocked the ability to develop new Mission/Goal handlers in a Ralph loop, with live testing until the objective is met.

I've applied a similar workflow to 2009scape (an open-source RSPS) - I briefed some work to port in a new boss fight, and made the verification loop the first deliverable: "you must verify your server changes in-game without me clicking anything", "Do NOT start with the boss - prove you can observe world changes first". The coding agent therefore started with tooling, including a scenario runner, a headless game client, and a video recordings exporter. It's a small prompting habit that pays off a lot.

In my scenarios, the dev loop launches the gameplay loop. But feedback tooling can be developed in an online context like in Continual Harness: it's "a reset-free self-improving harness for embodied agents", where the agent alternates between acting and refining its own prompt, sub-agents, skills and memory, without restarting the run.

When the signal is taste

In music, the signal is hard to codify. I've been making an agent skill for arranging songs to perform, and the outputs are partially verifiable (is each part playable, does the arrangement have gaps) but mostly based on qualitative taste (does it sound good, essentially). The skill tags each criterion based on whether it can be verified by a script, a human eye (i.e. the quality is visible in a written score) or the ear (i.e. it must be heard to be assessed).

Only about half of the rubric can be checked programmatically, and a 50% pass doesn't guarantee a good output. One arrangement scored well on every metric but the trombone had three times as many notes and was mostly just playing in unison with the saxophone. Basically it sounded terrible but the agent couldn't tell.

Some of what the ear finds can be turned into a check afterwards, A complaint that the sax wasn't fully playing the vocal turned out to be an issue with octave jumping, which got turned into a guardrail. Other feedback was codified into guidance of who plays what in the band (e.g. the sax plays the vocal, the trombone plays the keys line, and so on). But it's still very hard to codify overall taste.

With the human-led verification crucial, the best thing I could do was prompt an artifact to make inspecting the outputs more efficient. Claude made me a webpage where I can see and listen to the outputs and easily provide feedback.

Anything you can verify you can automate

LLMs "spike" in capability around verifiable domains. Coding is always first. Maths can be formalised in Lean and the quick feedback loop between the AI's prose and Lean's errors and warnings keeps the system going. As AI comes for more knowledge work domains, I would expect a strong correlation between 'domains where it is possible to define "what good looks like"' and 'domains where agentic automation increases'. A few thoughts: professional service firms who can capture relevant data (deliverable versions, reviews and best practice playbooks) will have an advantage in what remains a fairly fuzzy domain; and the focus on measurable business outcomes may sharpen.