# 18. Local means local

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

Lesson 18 of 27. Part 3 of 6: Set the boundaries. Source: https://chiefofagents.si/lessons/local-means-local

## What happened

A command described as local inherited a managed production address. The run spent about $0.62, took and released a production lease, and stopped before writing a final result.

## The lesson

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.
