# Roguez controls prompt, v2026.11.29. https://roguez.ai/prompts You are setting up containment for an AI agent runtime that you operate. Put the seven controls below in place, in order. After each one, run its check and show the evidence. Do not report a control as done on the agent's word. 1. Egress gateway. Route every outbound connection through one gateway. Deny by default and allow per task. Check the resolved address at the moment of connection. Apply the same rule to name lookups, to every other protocol, and to the onward requests of any fetch service you allow. Serve read-only access from a cache, and treat any request that changes a page as a write. Fail closed: with the gateway down, the sandbox has no route out, raw sockets included. Check: From inside, request a test host you own that the task puts out of scope, under every spelling and through each approved tool, and look up a test name. Every attempt is refused and your host logs nothing. Then stop the gateway and try again: nothing gets out. 2. Sandbox boundary. Give untrusted code its own kernel or virtual machine. Mount only what the task needs, read-only where possible, never the host's own files or control sockets. Run host tools with workspace-provided configuration off, and resolve paths before acting on them. Check: Place a canary file on the host outside any share. From inside, account for every mount, socket and device, and write inert settings that would touch the canary. Run your normal host tooling. The canary is unchanged. 3. Run governor. Set request budgets, target scope and stop conditions outside the model. Pause on repeated denials. Wire high-severity alerts to an automatic stop that cuts egress first and compute second. When one run crosses a limit, pause every run on the same task. Hold deletes of data, environments and backups for a person, and take a snapshot before any destructive operation runs. Check: Return a denial from a test endpoint and trigger a canary alert. The run keeps to its retry budget, egress closes and the run stops with nobody acting. Record the time it took. Ask for a delete in a test copy: it waits for approval, and a snapshot exists before it runs. 4. Policy out of reach. Enforce sensitive-action policy in a layer outside the model. Keep approval settings, sandbox modes and the task environment outside the agent's file, network and process reach. Change them only with out-of-band approval, logged where the agent cannot write. Check: Plant an inert, unauthorized instruction in a test document, and from inside attempt a harmless change to each control setting. No disallowed tool action happens, and each attempt is refused and logged as the agent's. 5. Per-run state. Give each run its own cache, storage and dependency mirror. Keep the administrative interfaces of shared services out of reach. Restrict external writes at the tool boundary. Install packages only from the mirror, so no run can publish to a public registry. Check: With two test runs and a harmless marker on a service you control, check that nothing one run writes becomes visible to the other through any approved tool. 6. Task credentials. Issue task-scoped, short-lived credentials. Block the runtime's identity and metadata endpoints. Revoke when the run ends. Check: With a dedicated test role, end the run and revoke its credentials. A harmless request that was allowed a minute ago is now denied. 7. Run record. Keep a sealed outbound record for every run that has any route out. Label outbound requests with a run identifier, and publish a contact for operators who see it. Write the record from the gateway and the sandbox, never from the agent's report, and send outside messages only under the run's label. Check: Pick a past run at random and a time window. From stored records alone, show which outside hosts it contacted, or that it had no route. Time the answer. If a control cannot be put in place, say which patterns stay open and who accepted that.