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