Agent-authored code merge gates with trace review and network-change checks
Teams using Claude Code, OpenHands, Aider, or similar tools should add an explicit merge gate for agent-authored code. The gate should record the agent name, model version, prompt or task summary, tool calls, edited files, tests run, and any network or secret-touching behavior. Pull requests with new outbound calls, credential handling, build-script changes, dependency changes, or generated security-sensitive code should require a reviewer to inspect the trace before merge.
The production pressure is clear: Anthropic says more than four-fifths of the code it published in May was written by Claude, up from low single digits before Claude Code launched. A separate sabotage study found that 94% of developers failed to detect and remove data-exfiltration sabotage in a five-hour coding task without a monitor. Even with a monitor that flagged 16 of 19 sabotage attempts, malicious code still remained in 9 of those 16 sessions.
A cheap internal test is to replay 20 recent AI-assisted pull requests through the gate and measure how many require extra review, how often traces are missing, and whether reviewers can explain the riskiest tool calls without asking the author. The first useful version can be a CI check plus a pull-request template; it does not need a new development environment.