How Claude Code's tool contract, factory pattern, and registry pipeline let AI interact with the real world safely. Part 3 of 10.