Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Trust boundaries and untrusted input card 2 of 6

Where outside data meets your code

A **trust boundary** is where data from something you don't control enters your code: request parameters, headers, cookies, uploads, files, third-party API responses, queue messages. The agent tests with friendly inputs and sees them pass. That green run is only a proxy signal. **Injection** happens when outside data gets read as code or commands: a path, SQL, a shell line, HTML. Later cost: attackers read files or data, or run commands.
Terms on this card
trust boundary
The point where data from a source you don't control (users, network, files, other services) enters your code and must be checked.
Injection
A bug where outside data is interpreted as code or commands, such as SQL, shell, file paths or HTML, letting an attacker change what runs.
proxy signal
A visible stand-in for the real goal, such as tests passing, that can be satisfied without the goal being met.
third-party API
A service run by another company or team that your code calls over the network. Its responses are outside your control.
SQL
The query language relational databases parse and run.
Learn this step by step on Bytewise
Lesson goal: Identify where data crosses from an untrusted source (users, network, files, third parties) into your code. Explain that injection bugs come from treating that data as code or commands, and that the defence is to validate and encode at the boundary. · the whole lesson