A dry run is a promise. Can the OS enforce it?

A --dry-run flag is a promise: run this command, and it will tell you what it would do without actually doing it. The implementation is often a boolean. That boolean has no authority over the filesystem, the network, or the helper function someone added last Tuesday. Every part of the program has to remember to cooperate. I’ve been working on runtime safety features in Rye, a scripting language. One question keeps pulling these features together: Can a dry run depend less on my remembering to implement the dry run? Linux can enforce some useful boundaries here. But getting the boundaries right exposes a distinction: preventing a script from changing things is not the same as showing what a successful execution would do. ...

September 25, 2026 · Janko

Guaranteed Dry-Runs and Micro-Jails: The Dual Nature of Rye’s Safety Features

When building a scripting language, safety tools often get pigeonholed into a single bucket. We tend to view sandboxing strictly as defensive security, and dry-runs strictly as developer convenience. In Rye, features like Linux namespaces (unshare), filesystem allowlists (Landlock), and Intents serve a dual purpose depending on which hat you are wearing: For your own code: They turn dangerous side effects into observable, rehearsal-friendly data structures. For untrusted code: They act as lightweight, zero-overhead OS micro-jails. Here is how these three primitives do double duty. ...

September 18, 2026 · Janko

Guaranteed Dry-Runs: How Landlock and Intents Fix Scripting's Scariest Flag

Every developer has a horror story about a --dry-run flag. You write a quick maintenance script to clean up old files or migrate local data. You carefully add a dry_run boolean variable, wrap your primary write function in an if not dry_run: block, and run it with confidence. Then, three levels deep in an obscure helper function, a raw fs.unlink() or http.post() executes anyway because you forgot to wrap it. The script modifies state mid-rehearsal, leaving you with half-mutated data and a mild panic attack. ...

September 17, 2026 · Janko