Home / Lessons / Set the boundaries / 18 of 27
Local means local
A tool called local reached production, and spent money doing it.
- A local tool should only ever talk to this machine.
- Once, a default quietly pointed it at production.
- It spent about $0.62 and took a production lease before it stopped.
- Now the tool checks its target before it makes any call.
- 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.
Rule 18. Check where a tool is pointing before it speaks, and fail loudly if the answer is not what its name promises. (Local means local, https://chiefofagents.si/one-page#rule-18)
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.