Summary
Sophos engineers Andrew Yang and Igor Gamella describe how the Case Investigation Agent in the company's managed detection and response service copes with tool outputs too large for its model. Some queries returned payloads of several million tokens, beyond the one-million-token limit of GPT-4.1. An early approach that split results into pieces and summarised each proved costly, noisy and prone to silent failure. The shipped design lets a reasoning model, GPT-5.2, write its own Python inside Pydantic's Monty sandbox to filter raw rows and surface only the evidence. On a benchmark of 25 hard production cases, the authors report roughly 77% recall of key indicators, 92.6% fewer tokens than chunking, and steady run times of about 80 to 115 seconds.
Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

SecSIG