Home / Lessons / Set the boundaries / 18 of 27

Local means local

A tool called local reached production, and spent money doing it.

  1. A local tool should only ever talk to this machine.
  2. Once, a default quietly pointed it at production.
  3. It spent about $0.62 and took a production lease before it stopped.
  4. Now the tool checks its target before it makes any call.
  5. Local passes. Anything else stops at the edge.

The fix is a check at the boundary. A local tool accepts only a loopback address such as localhost or 127.0.0.1. A remote address is a hard failure before the first network call.

Environment defaults never get to choose the target silently.

How I do it

Every local tool now asserts its target before it makes any network call.

The rule

Check where a tool is pointing before it speaks, and fail loudly if the answer is not what its name promises.

The skill I use for this: /principle-fix-root-causes. Made by Lauren Tan.

Read next

This lesson as plain text, for your agent. Or all 27 on one page.

Try “secrets”, “merge”, “handover” or “database”.