Safe for AI-written code
Coding agents write a lot of code quickly, and sometimes it is wrong. On a usual stack a wrong line can open a port, read a file it shouldn’t, log a secret or send data anywhere. On Calimero an app is a WebAssembly component that gets only what the node grants it, so most of those mistakes can’t happen, and the rest are refused at run time.
A small surface to get right
Section titled “A small surface to get right”- One world. An app imports only the
calimero:appinterface and a few WASI basics. There is no other way out. - Typed everything. State, methods and events are Rust types, and the interface is embedded in the component, so typed clients are generated rather than hand-written.
- A starting point for the agent.
meroctl app newwrites anAGENTS.md(and aCLAUDE.mdthat imports it) with the layout, the build, test and codegen loop, and what stays with the person. See Build with an AI agent. - Fast feedback.
meroctl local testandTestApprun the app on the real engine in seconds.
What the sandbox refuses
Section titled “What the sandbox refuses”| An agent’s mistake | What happens |
|---|---|
| Opens a socket | wasi:sockets isn’t offered: the package is refused at install (400 BAD_BUNDLE) |
| Reads a file or an environment variable | The environment is empty and filesystem calls fail; nothing reaches the node’s OS |
| Calls an API nobody approved | Outbound HTTPS goes only to declared prefixes the owner approved; anything else is NotApproved |
| Puts an API key in code or logs | Secrets are written as {{secret:NAME}}; the node fills them in and redacts them from the response |
| Loops forever or allocates without bound | Each call has 200M fuel and 64 MiB of memory, and at most 8 outbound requests |
| Lets anyone trigger a sensitive action | A method marked #[app::confirm] needs the caller’s passkey every time |
Numbers are in Limits; what an app may import is in Execution.
Gates before release
Section titled “Gates before release”meroctl app check --against last.mpk --fail-on egress fails a build that adds a destination, so a new data flow
never ships by accident. And whatever an agent ships, the people running the app see every new destination, sign-in
address and public method on the consent page before it applies.