WhoBuilt

AI Investigations Are a Distributed System Problem

Sep 22, 2026· 16 min· 303 views·Watch on YouTube

Speaker

Christopher Burns of Inth explains how to investigate privacy compliance issues across large codebases at Agent Conf 2026, in a talk on Callstack’s channel.

Investigations span the whole codebase

Burns describes asking codebases where personal data is collected and whether it reaches logs or other systems. A pull request may fit in a model’s context window, but a monorepo or connected repositories can contain hundreds of thousands of files, so full-codebase investigations need a different workflow.

Separate deterministic rules from model judgment

The process pins each investigation to a commit, branch, or pull request, then uses deterministic matches such as regexes and AST graphs to identify starting points. A plan makes the work traceable: code handles scanning, permissions, limits, validation, and allowed actions, while the model decides what to inspect and how to interpret it.

Orchestrate bounded, parallel work

Burns uses Versa Workflows to split investigations into durable tasks and dispatch them as capacity becomes available. Versa Sandboxes and OpenCode run workers with limited tools; application code enforces permissions and timeouts. Workers receive only the files they are allowed to read next, helping preserve room in the context window for reasoning and structured results.

Recover, verify, and report findings

Large scans need chunk-level debugging and durable records of commits, plans, attempts, and accepted outcomes, stored in Postgres and checked with XState. A second model reviews the evidence after a run completes. Similar findings are grouped so reports do not overwhelm developers with hundreds of duplicates, then sorted into P0 through P3 priorities.

Treat repository scans as their own workflow

Burns distinguishes whole-codebase scans from pull request reviews, which have different scale and workflow requirements. He expects more cleanup tools to run across existing codebases, where many issues may remain beyond the changes surfaced in individual pull requests.

Takeaways

  • Pin each investigation to a specific commit so its evidence can be traced.
  • Use deterministic scans to find candidate code, then let models investigate those leads.
  • Enforce tool permissions, file access, and timeouts in application code rather than relying on prompts.
  • Record workflow state durably so failed callbacks and interrupted tasks can be recovered.
  • Group related findings and verify evidence before sending developers a prioritized report.

Mentioned in this talk

Search inside this talk

What was claimed 12

Show all 12 facts

Related talks