AI, Human Agency and the Digital Economy · Part 14 of 41
The demo always works. That is what a demo is for.
You have sat in that meeting. An agent does in a minute what a team does in a morning, and everyone agrees the remaining work is integration. A year later an auditor asks a plainer question: how do you know it is still right?
That question has no clever answer. It has a boring one, and the boring one is the argument. An agent factory is a repeatable way to deliver and maintain bounded capabilities, evaluated through completed work.
Bounded — the edge is written down. Maintain — it has a life after launch, with a name on it. Completed work — judged by what it finished, not by how convincing it sounded.
First, the objection
The serious objection is that agents are too unpredictable for any factory. If you cannot list the correct outputs in advance, what exactly are you manufacturing?
My answer is narrower than it sounds. Unpredictability does not excuse you from measurement; it obliges you to measure repeatedly. You cannot write acceptance criteria for every input. You can write a definition of a successfully completed task and test for it — on normal, ambiguous, hostile and half-arriving cases. The opposite objection, that this is only software engineering with a new name, I largely concede; the next piece takes it up, where the older sources do the work.
Three admissions before I use a single source. No study I found shows that any of these practices produces a reliable agent; the frameworks I quote are voluntary, and every line in them is a suggested action. Sri Lanka has no published evidence on agent delivery or reliability, and I will not borrow foreign figures and call them typical. And the reliability numbers below come from dated preprints in simulated environments. Read what follows as what serious bodies ask you to decide, never as proof that it works.
My example throughout is constructed: an agent that assembles a case file for officer review, checking each document against the current rule version and flagging what is missing. It does not decide.
Is an agent the right answer at all?
Start by comparing it with the simplest thing that would work — including not building an agent. That step is my proposal, not the standard’s; the guidance asks something narrower that still kills the demo as evidence. Its suggested action is to “avoid extrapolating GAI [generative AI] system performance or capabilities from narrow, non-systematic, and anecdotal assessments”. A demo is a narrow, anecdotal assessment. My company’s published engineering position says it shorter: “the first version was never the hard part.”
An older lesson sits underneath. A decade of production machine learning produced one picture every leader funding an agent should see: “Only a small fraction of real-world ML systems is composed of the ML code… The required surrounding infrastructure is vast and complex.” That is from 2015, before generative systems, and it describes machine-learning systems generally rather than agents. The shape has not changed. What you are being asked to fund is mostly not the clever part.
So the fit question is not can an agent do this. It is: what would a form, a rule engine, a trained clerk or a shorter queue do instead, at what cost, and what evidence says the agent beats them? If nobody has asked, nobody knows.
What it is given, and what it may refuse
Delegated machine action creates responsibilities for identity, permission, evidence, monitoring and correction. Assembly is where you buy them — in knowledge, tools, permissions, state (what it carries between steps) and evaluation requirements.
Knowledge. Record how the capability is grounded — retrieval, business rules, human domain knowledge, review — as a documented property of the system, not a claim about a supplier. Retrieval from approved documents can improve grounding; it does not guarantee correct interpretation. So make citation checking a standing task: “review and verify sources and citations”, before deployment and during monitoring, not once on launch day.
Permissions. Sri Lankan administration settled the shape of this long before machines: “the subjects so delegated as well as the limits of the delegation must be clearly and precisely set down”. Reading an agent’s permission set that way is my analogy, not the Code’s text — the Code says nothing about machines. But the discipline transfers exactly. Which systems may it read? Which may it write to? What may it never do, whatever the input asks? Use autonomous action only within explicit authority and tested operational limits: that is neither a demand that every harmless step be approved by a person, nor a licence to automate consequential decisions.
Refusals and endings. Two artefacts are always written too late. A refusal list — “criteria for the kinds of queries GAI applications should refuse to respond to” — because a capability that assembles for review needs a written set of things it hands straight back. And deactivation criteria, agreed before switch-on: “specific criteria that warrants the deactivation” of the system. Limits are cheap to agree in advance and nearly impossible later, when someone’s quarterly number depends on them.
What “done” means
Here is the artefact this piece turns on. My proposal, not a standard: a task is complete when each of these is true, and checkable by someone other than the agent.
- The end state matches a stated goal state, checked against the systems of record — not against the agent’s own account of what it did.
- A record exists, naming sources, the rule version applied, actions taken, approvals obtained and the resulting state. A model’s generated reasoning is not an authoritative audit trail.
- Every citation has been verified, not assumed.
- The result holds across repeated attempts. Right once and wrong on the third run is luck, not capability.
- The “not done” branch is defined: what the agent hands back untouched, and what the officer receives instead.
- Repeating the task does not repeat its effects. If the run is retried, the citizen does not get two letters.
- The work is producible later by someone who was not there — for a public authority in Sri Lanka this is also a duty in law, and the next piece sets out the period.
Write that down and the unpredictability argument changes character. My company’s published position again: “If tests define the intent, the machine can move fast inside a fence. Without that fence, speed is just a faster way to arrive somewhere wrong.”
Testing: normal, ambiguous, hostile, partial
Test the parts, not just the whole: a rule check, a prediction and a generated sentence fail in different ways, and one combined score hides which of them broke.
Normal cases are judged by outcome, not by how the transcript reads — and stopping there is the most common mistake I see. One research environment scored agents on the “functional correctness of task completions” and, more usefully, measured people on the same tasks. The best-performing agents in that study completed 14.41% of tasks end to end, against a human baseline of 78.24%. That is one simulated web environment and a preprint dated 2023–24; I would not apply the number to any system running today. Carry the method instead: have a person do the same work, and compare on the same tasks. A score with no human baseline beside it cannot tell you whether the capability is worth having.
Ambiguous and rule-bound cases decide whether you own a capability or a demonstration. A second study compares the state of the database at the end of a conversation with a goal state written down in advance, and scores reliability across repeated trials rather than one good run. In two simulated domains with simulated users, in mid-2024, the best-performing agents in that study succeeded on fewer than half the tasks, and over eight repetitions were consistent on under a quarter in one domain. Also a preprint, also dated. The instruction that transfers is not the percentage: run it eight times, not once.
Hostile inputs are a test obligation here, not a threat model. A community-maintained awareness list for language-model applications names prompt injection, improper output handling and excessive agency among its 2025 categories; a capability that has never been given a hostile input has been demonstrated, not tested. The threats themselves belong to a later article in this series.
Partial failure is architecture. Verify that the system can “handle, recover from, and repair errors”, and conduct “adversarial testing at a regular cadence” — a cadence, not a launch event.
The strongest objection to my own example lives in this section. A systematic review of clinical decision support, published in 2011 and covering pre-generative systems, described “the tendency to over-rely on automation”, with “workload, task complexity, and time constraint” among the conditions that mediate it. Different field, different decade — but that is the mechanism I would be installing on the officer’s desk. A tired officer holding a file that looks complete will sign it. Which is why a half-built file must look half-built, with the gap named.
The first three stages, written down
Short enough for the team that owns the capability to run, without a governance programme.
| Stage | The question the owner must answer |
|---|---|
| 1 · Fit | What is the simplest thing that would work, including not building an agent — and what evidence says the agent beats it? |
| 2 · Assembly | What knowledge, tools, permissions and state does it get, and where are the limits of that delegation written down? |
| 3 · Tests | What are the normal, ambiguous, hostile and partial-failure cases, who ran them last, and what did they find? |
What is still unsolved
Not every definition of done can be checked by a machine. Those research environments score outcomes programmatically because they are simulated and their goal states were written down in advance; a real case file has none. So the honest claim is narrower: a definition of done can always be written, and part of it will always be checked by a person. The UK government’s own guidance concedes the same limit — “There will never be a silver bullet for AI assurance.”
That is not a reason to skip the writing. It is the reason to do it now, while the capability is small.
What to do this week
Take one capability, ideally the one already running. Write down what a completed task looks like for it, in conditions someone other than the agent can check. Then run it against a normal case, an ambiguous one, a hostile one, and one where half the inputs never arrive — and count the questions you cannot answer.
The capability now works. What it costs to keep it working — release, how much failure you allow it, the day your supplier changes underneath you, and how the thing ends — is the next piece.
And the question I would leave with anyone who owns one: not can it do the task, but if it runs a thousand times next quarter, who finds out first when it stops being right?
This is the fourteenth essay in a series asking how people, organizations and nations can turn increasingly capable AI into greater human capability, better services and sustainable economic opportunity. Part III, on business and work, continues here.
Next in this series: A14b — An Agent Is Not Done When It Works
All essays in this series: AI, Human Agency and the Digital Economy
Sources
- Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) — NIST, July 2024 (PDF). The warning against extrapolating from narrow, non-systematic and anecdotal assessments; documenting how human domain knowledge grounds the system; verifying sources and citations; refusal criteria; deactivation criteria; error handling and recovery; adversarial testing at a regular cadence. A voluntary companion profile from a US federal agency; every line is a “suggested action”, not a requirement.
- WebArena: A Realistic Web Environment for Building Autonomous Agents — Zhou, Xu, Zhu, Zhou, Lo, Sridhar, Cheng, Ou, Bisk, Fried, Alon & Neubig, arXiv:2307.13854. Evaluation by “functional correctness of task completions”; a best end-to-end task success rate of 14.41% against a human baseline of 78.24% on the same tasks. One simulated web environment; a preprint, 2023–24. The human baseline is the transferable part; the number is dated.
- τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains — Yao, Shinn, Razavi & Narasimhan, arXiv:2406.12045, June 2024. Reliability scored across repeated trials; the state of the database at the end of a conversation compared with a goal state written down in advance; the best-performing agents in the study succeeded on under half the tasks and were consistent on under a quarter over eight repetitions in one domain. Two simulated domains with simulated users; a preprint.
- Hidden Technical Debt in Machine Learning Systems — Sculley et al., NeurIPS 2015 (PDF), Figure 1. “Only a small fraction of real-world ML systems is composed of the ML code… The required surrounding infrastructure is vast and complex.” Machine-learning systems generally, 2015, before generative systems — the shape transfers, the era does not.
- Establishments Code, Volume I — Ch. XXVII §3:8 (PDF). “The subjects so delegated as well as the limits of the delegation must be clearly and precisely set down.” A Code of Sri Lankan public administration, not a statute; it says nothing about machines, and the extension to an agent’s permissions is my analogy.
- Automation bias: a systematic review of frequency, effect mediators, and mitigators — Goddard, Roudsari & Wyatt, Journal of the American Medical Informatics Association, 2011. “The tendency to over-rely on automation”, with workload, task complexity and time constraint among its mediators. Clinical decision support; a review of pre-generative systems.
- OWASP Top 10 for LLM Applications, 2025 edition — prompt injection, improper output handling and excessive agency, as category names only. A community-maintained awareness list, not a standard and not a control set.
- Introduction to AI assurance — Department for Science, Innovation and Technology (UK), 12 February 2024. “There will never be a silver bullet for AI assurance.” Non-statutory guidance.

Leave a Reply