Recent articles

Imagine a future of “Fast AI”; a future where artificial intelligence products and services transform society much as the rise of the fast-food industry did in the United States during the 1950s and 1960s. In this future, once-specialized, highly technical services have been redesigned to be inexpensive, convenient, accessible, and habit-forming.
What’s New
Over time, Fast AI fills the world with new products, industries, jobs, and consumer habits. This leads to unintended social, economic, and health consequences. Instead of selling empty calories, as the fast-food industry did, companies of the future get rich selling “empty cognition”: instant answers, shallow reasoning, personalized media, and synthetic relationships.
Consequences
New companies emerge to manage the consequences, often financed by the same investors who profit from widespread, unhealthy AI consumption. New chronic ailments appear. Over-the-counter patent cures and meme-based therapies compete with a digital healthcare system offering researched treatments and programs built upon the same AI technologies implicated in these emerging conditions.
The Year 2056
By 2056, the benefits and harms of Fast AI have become so deeply intermingled with everyday life that separating them is nearly impossible. What began as a revolution in convenience and access has reshaped society, creating an economic ecosystem that both benefits from and depends upon widespread Fast AI consumption.
Let’s explore this future together
Subscribe now
Over the next several weeks, I’ll release a series of short vignettes exploring a possible future where AI is as easy to acquire as a diet soft drink or a bag of potato chips. What does daily life look like? How have work and school been transformed? Would we recognize the world of healthcare? What about sports and entertainment? And how will we interact with each other in a world of Fast AI?
I think it’s possible we’ll see our present in a new light by exploring this imagined future. Come with me while I ask my handy text generator to help me explore a future world of Fast AI.
Mike Amundsen2 weeks ago

Three Questions for Every User Story
One of the challenges of software testing is deciding what to test. We spend considerable time developing testing frameworks and writing test scripts. But before that work begins, someone needs to decide which behaviors matter and what evidence would convince us that those behaviors work as expected.
User stories offer a good starting point. They describe what people expect software to do, but rarely capture everything necessary to satisfy those expectations. How do we move from a short statement of intent to a useful collection of behavioral expectations?
I’ve been working with a simple approach I call ERI: Explicit, Required, and Implied. The idea is to examine each user story from three perspectives, looking for hidden and implied behaviors that deserve further attention via test cases.
Subscribe now
Start with a user story
Consider this example from an imaginary task management application:
As a task manager, I want to mark a task completed so that I can distinguish completed work from active work.
We could immediately design an API operation such as PUT /tasks/{id}/status and write a test that sends a request and checks for a successful HTTP response. But what have we learned? A successful response tells us something about the interaction, but it doesn’t necessarily establish that the system satisfied the original expectation. There is more here than we might see upon first glance. In fact, I think there are several tests “hidden” in this simple user story.
Three questions
Before writing tests, I find it useful to examine the story itself with a more critical or curious view. To do that, I ask three questions:
Explicit: What behaviors does the story directly describe?
Required: What additional behaviors must exist for the stated outcome to be satisfied?
Implied: What other behaviors might reasonably be expected, given the story and its context?
Each question offers a different perspective on the behavior of the system. Let’s apply them to our task management example.
Explicit behaviors
Explicit behaviors appear directly in the story. For example, our user story gives us this behavioral claim:
A task manager can mark a task completed.
Notice that, for now, we’ve avoided mentioning HTTP methods, resource paths, or implementation details. We’re interested in understanding what the story claims about the system before deciding how that claim will be implemented or verified.
Required behaviors
Next, we look for behaviors or conditions necessary to satisfy the explicit expectation. For example, the system needs to identify the task being completed.
The system can identify the task targeted for completion.
We also need some way to determine whether the operation succeeded.
The completed state can be observed after the operation.
These expectations carry consequences for API design and testing. What happens when the requested task doesn’t exist? How does the system represent successful completion? Can a client retrieve the resulting record and validate its state? The required category helps identify dependencies and supporting behaviors that deserve attention.
Implied behaviors
The third question explores expectations suggested by the story and its context. For example, marking a task completed raises questions about how long that completed state should remain in effect.
A completed task remains completed until another authorized action changes its state.
We might also wonder whether completed tasks can be reopened or whether unsupported status changes should be rejected. These are reasonable questions, but the original user story doesn’t establish their answers.
An implied behavior is a candidate for investigation. It may reflect a domain rule, a common convention, or an assumption requiring confirmation. Applying ERI to a user story helps expose these questions before they become hidden assumptions in the implementation.
From ERI to behavioral claims
Our examination of the user story has produced several candidate behaviors worth considering for testing.
Here we’ve expanded a short user story into behavioral claims for review with domain experts, developers, and testers. Some of these may become formal requirements. Others may be rejected or deferred. The important point is that we’ve made these expectations visible.
The distinction between required and implied matters. Required behaviors follow from the stated expectation, while implied behaviors represent plausible expectations that still need confirmation.
Choosing what to test
Discovering candidate behaviors is only part of the work. We still need to decide which claims deserve verification and what evidence would support them.
Consider our central claim: A task manager can mark a task completed. What observations would convince us that this behavior works?
We might want evidence that:
The target task exists and begins in an active state.
The completion operation succeeds.
A subsequent retrieval confirms the completed state.
These observations provide stronger evidence than checking the HTTP response code alone. They also illustrate the distinction between behavioral claims and test assertions. A behavioral claim describes an expectation about the system. An assertion describes an observation that helps establish whether the expectation has been satisfied.
A useful habit
One of the things I like about ERI is how little machinery it requires. You can apply it during a design conversation, while reviewing a user story, or before writing an automated test.
The process begins with identifying the behaviors stated in the story (explicit). From there, we examine the conditions necessary to support those behaviors (required) and explore additional expectations suggested by the surrounding context (implied). The resulting collection of behavioral claims provides a starting point for deciding what evidence to collect and which tests to write.
Some assumptions will require further investigation before we’re ready to write tests. ERI won’t eliminate ambiguity or guarantee complete coverage, but it provides a repeatable way to expose behavioral expectations and decide which ones deserve verification.
Every user story has more to tell us. ERI helps us find it.
Subscribe now
Mike Amundsen3 weeks ago

Over the last several months, I’ve been writing about GRAIL — an experimental runtime for building autonomous systems through environmental composition.
For those just joining the conversation, the basic idea behind GRAIL is pretty simple: instead of prescribing a sequence of steps for a system to follow, I describe an environment in which the system can operate. I identify the conditions that matter, the actions available, and the capabilities that carry out those actions.
Subscribe now
GRAIL makes local decisions about what needs attention and which available action might address it.
I sometimes describe this as making decisions about needs and means.
The interesting thing about this approach is that the runtime doesn’t need to know much about what happens inside the capabilities (the parts that do the real work). It doesn’t need to understand payment processing, customer onboarding, document classification, or any other domain-specific activity. It just needs to understand the environment I’ve described.
That’s the idea I’ve been exploring.
Looking more closely
As the number of GRAIL experiments grew (more than a dozen now), I started wondering whether I could learn something more from them. That led me to take a more formal research approach.
I went back through the experiments, reviewed the recorded results, and examined the implementation details. I also spent time looking at earlier work on bounded rationality, affordances, reactive systems, planning, and related approaches to autonomous behavior.
Many of the individual ideas behind GRAIL have been around for a long time. That’s not especially surprising. Most interesting software architectures build on ideas that came before them. What interested me was the particular arrangement of those ideas: a bounded environment, two local decision points, and a collection of independent capabilities responsible for carrying out the work.
Could that arrangement support useful autonomous behavior without requiring a general-purpose planning agent? And where would it run into trouble?
Learning from the experiments
The resulting study covers six groups of experiments and eleven recorded scenarios. Some of the results were encouraging.
The experiments demonstrated that GRAIL could select alternative actions after failures, coordinate work across nested environments, and work with capabilities implemented using Node, HTTP, and interactive command-line programs.
Other experiments were more revealing. One experiment exposed a cyclic dependency that the runtime couldn’t resolve within the observation window. Another demonstrated that a capability could report success without actually producing the expected external result. And a third explored how remembering failed actions could affect later decisions.
These experiments don’t answer every question about the approach, but they help identify where the design works and where more attention is needed.
Publishing the results
I’ve now collected this work into a reference paper:
Bounded Autonomy Through Environmental Composition: An Experimental Study of the GRAIL Runtime
Along with the paper, I’ve published the experimental evidence, configurations, execution records, and supporting documentation.
The paper includes a discussion of earlier work, a description of GRAIL’s operational model, the experiments themselves, and the limitations I’ve identified. It’s an attempt to describe the approach clearly enough that others can examine it, question it, and perhaps build on it.
Beyond GRAIL
One of the things I find most interesting about this work is that it points beyond the runtime itself.
GRAIL is one implementation of a larger idea. What happens when an autonomous system operates within a carefully bounded environment instead of inventing a plan? What happens when decisions about what needs to be done are separated from the capabilities that actually do the work? How much autonomy can emerge from that arrangement? And how much responsibility can safely remain with the environment and its capabilities?
My hope is that publishing this work will encourage others to explore GRAIL-type designs and, more broadly, the possibilities of bounded composition for autonomous systems.
Not every autonomous system needs to operate in an open-ended world. In many cases, the environment, available actions, and boundaries within which decisions should be made are already reasonably well understood. Maybe there’s more to accomplish with that knowledge than is immediately apparent.
That’s the conversation I’d like to encourage.
Subscribe now
Mike Amundsen1 month ago

While I work to complete my new book “AI-Driven API Design”, I’m keeping my posts here sparse (see below) and light (see my “Approved by Management” comic series). I’ll return to my story-telling posts later this year once the book is off my plate. -- mamund
For some time I’ve been working on creating self-driven, autonomous systems. I started GRAIL to understand what it takes to build software that can pursue goals without relying on a human to continually decide what happens next.
Subscribe now
As a result, I have settled on a couple useful axioms. They are very compact but I find them helpful.
Designing Autonomous Systems
Designing autonomous systems means making enough of an environment explicit for programs to situate themselves within it, use a goal to determine what is relevant, decide what to do next, recognize success, and determine when progress is no longer possible.
Programming for Autonomy
Programming for autonomy means turning assumptions about an environment into explicit facts, relations, and capabilities so that programs can pursue goals within it without human intervention.
What Does This Change?
This has helped me move from asking, “What does the program need to do next?” to asking, “What does the program need in order to decide what it will do next?”
That shift has helped me focus on ways to implement autonomous solutions that work.
Subscribe now
Mike Amundsen1 month ago

I have recently been traveling more than usual and it allows me some private “thinking time”. On a recent trip, I took down some thoughts and decided to share an expanded version of them here. -- @mamund
Subscribe now
The future is not a place to which we are inevitably marching. It is what emerges from the transformations we make in the here and now.
We sometimes talk about the future as though it already exists somewhere ahead of us on some distant shore. But, in reality, the future is formed in the present. Every action we take, every capability we acquire, every condition we change alters what may happen next. We do not simply arrive at the future with the passage of time. We constantly create it through the myriad choices we all make in the here and now.
The opportunity for our success exists in the here and now. Progress is the concerted effort of transforming our present conditions until that opportunity is realized.
Some of what we need is already here within reach. Other conditions may need to be created, modified, or removed. The work of transformation starts with seeing the present clearly enough to recognize what is possible, what prevents that possibility from being realized, and what we have within us to change conditions around us.
We don’t need to travel a path in order to arrive at success. We need only look around us, recognize the opportunity already present, and understand what must change to realize it.
Terms like path and journey lead us to think in terms of sequence, distance, and direction. More useful questions are about the conditions in which we find ourselves here. What is true? What is missing? What can we change? Progress comes from acting on the answers to those simple questions.
Success is not a destination. It is a possibility in the present waiting to be recognized and realized.
We may need to learn something new, acquire a new skill, remove an existing constraint, or change the conditions around us before that possibility becomes real. The way to measure progress is to focus on what is newly possible. Success itself is recognizable when the conditions of the present are sufficient to support it.
We are always trapped in the here and now. The future depends, in part, on what we see and how we choose to transform it.
Subscribe now
Mike Amundsen1 month ago

I’ve been spending time on my GRAIL project on and off for the last several months, and I think it has reached an important milestone. One that deserves a full-on beta-release for others to see and play with.
GRAIL started with a simple idea
A year ago I asked myself a question that flips agentic architecture on its side.
What if, instead of giving an agent a predefined workflow, we describe a bounded environment of capabilities, conditions, inputs, and effects and then simply give our agent a goal.
My first working experiment was posted a little over a year ago and ran just over 150 lines. It was a tiny offering, but it showed me my basic idea was sound. The experiments since then have taken that idea much further than I originally expected.
GRAIL can now pursue goals through different routes, choose among alternative capabilities, recover when a capability fails, recognize when a goal can no longer be resolved, and invoke capabilities implemented as local modules, HTTP services, or independent processes (e.g. stdio).
Subscribe now
Bounded Autonomy
GRAIL is an experiment in bounded autonomy and it asks the question: how much autonomous behavior can emerge when we carefully design the environment rather than continually adding intelligence to the agent? AS it turns out, the answer is quite a bit when you create guardrails for the agent. And, in the case of GRAIL, everything is accomplished without the use of an LLM.
That doesn’t mean you cannot use an LLM to make decisions, it means LLMs are not a requirement for creating self-driven agents. In fact, the agent I created is quite simple. It hosts a single algorithm and has just a few key points in engineered as “decision-points” where judgment can be implemented. More on that for another time.
Agents and Environments
As I wrap up a year of experimenting (24 posted in all), the basic lesson I have learned so far is this:
What is not in the agent must be in the environment.
Much of the agentic work I see today is focused on creating “smart” agents. I chose to do it another way. I’m pleased with how it is going and invite you to check it out. The repo is a bit rangey but, with some effort, I think you can figure out what’s going on.
Beta Release Coming Soon
The experiments are winding down now. I’m moving into stabilization and preparing the first public beta. This will be an installable CLI that you can use to create your own custom environments and launch your own experiments.
When you do, I’d love to hear about it.
More soon.
Subscribe now
Mike Amundsen1 month ago

Mike Amundsen2 months ago

Mike Amundsen2 months ago

Mike Amundsen2 months ago

