---
title: "Comment by Mamad Mirza on \"Hexagonal Architecture and Agent Sandboxes\" | Hashnode"
description: "The gotcha about adapter selection being compiled in is the one I'd underline. A flag that can swap in a local adapter at runtime is a production incident waiti"
url: "https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b/comment/6b09bd78a161ef01a2a3872b"
---

[Discussion](https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b)

Comment [Hexagonal Architecture and Agent Sandboxes](https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b)

[Mamad Mirza](https://hashnode.com/@mamadmirza)

[1h ago](https://hashnode.com/posts/hexagonal-architecture-and-agent-sandboxes/6b0781c185b21d234991c87b/comment/6b09bd78a161ef01a2a3872b)

The gotcha about adapter selection being compiled in is the one I'd underline. A flag that can swap in a local adapter at runtime is a production incident waiting to happen — the sandbox only works if it physically cannot reach real resources. The same closed-loop point matters for reviewers too: an agent that runs its own tests in a faithful sandbox produces changes a human can actually trust.
