---
type: "article"
title: "Taking a Closer Look at GRAIL"
summary: "Over the last several months, I’ve been writing about GRAIL — an experimental runtime for building autonomous systems through environmental composition.\n\n\n\n\n\n\n\n\n\n\n\nFor 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.\nSubscribe now\nGRAIL makes local decisions about what needs attention and which available action might address it.\nI sometimes describe this as making decisions about needs and means.\nThe 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.\nThat’s the idea I’ve been exploring.\nLooking more closely\nAs 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.\nI 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.\nMany 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.\nCould that arrangement support useful autonomous behavior without requiring a general-purpose planning agent? And where would it run into trouble?\nLearning from the experiments\nThe resulting study covers six groups of experiments and eleven recorded scenarios. Some of the results were encouraging.\nThe 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.\nOther 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.\nThese experiments don’t answer every question about the approach, but they help identify where the design works and where more attention is needed.\nPublishing the results\nI’ve now collected this work into a reference paper:\nBounded Autonomy Through Environmental Composition: An Experimental Study of the GRAIL Runtime\nAlong with the paper, I’ve published the experimental evidence, configurations, execution records, and supporting documentation.\nThe 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.\nBeyond GRAIL\nOne of the things I find most interesting about this work is that it points beyond the runtime itself.\nGRAIL 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?\nMy 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.\nNot 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.\nThat’s the conversation I’d like to encourage.\nSubscribe now"
newsletter: "Signals from Our Futures Past"
newsletter_handle: "mamund"
newsletter_url: "https://usecommune.com/n/mamund"
author: "Mike Amundsen (@mamund)"
published: "2026-10-28T18:57:45.000Z"
canonical_url: "https://usecommune.com/n/mamund/a/taking-a-closer-look-at-grail"
markdown_url: "https://usecommune.com/n/mamund/a/taking-a-closer-look-at-grail.md"
chat_url: "https://usecommune.com/n/mamund/a/taking-a-closer-look-at-grail/chat"
source_url: "https://mamund.substack.com/p/taking-a-closer-look-at-grail"
body_source: "imported"
likes: 0
replies: 0
body_words: 682
---

# Taking a Closer Look at GRAIL

Over the last several months, I’ve been writing about [GRAIL](https://www.npmjs.com/package/@mamund/grail) — an experimental runtime for building autonomous systems through environmental composition.

[![](https://substackcdn.com/image/fetch/$s_!CG0S!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff8528c6b-398b-4df9-ad3b-cc2fd1a72c05_2048x1143.jpeg)](https://substackcdn.com/image/fetch/$s_!CG0S!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff8528c6b-398b-4df9-ad3b-cc2fd1a72c05_2048x1143.jpeg)

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](https://mamund.substack.com/subscribe?)

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](https://github.com/mamund/grail-worlds) 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](https://doi.org/10.5281/zenodo.23740177)**

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](https://mamund.substack.com/subscribe?)

***

## Discussion

No replies yet.
