Autonomous code review at scale
Robinhood's hybrid PR reviewer auto-merges 60% of data pipeline changes, cuts incidents 30% AI EngineerTL;DW
- 60% of data pipeline PRs merge without human review using hybrid system of scripts, agents, and people; 75% less manual review effort and 30% fewer incidents.
- Layer 1: Deterministic scripts check facts against sources of truth (schema registry, catalog, lineage, performance); failed checks block PR automatically like any failing CI test.
- Layer 2: Agent searches repository code for unregistered downstream consumers, anti-patterns, and sensitive data risks that scripts cannot detect; escalates findings with reasoning to humans.
- Protected decisions stay with people by design: sensitive data grants, migration intent changes, and low-confidence verdicts never auto-approve regardless of agent verdict.
- Agent found unregistered consumer of widened column that would break on overflow—lineage miss caught by code walk—enabling fix before merge prevented production incident.
- Miss rate ~2%; false escalations driven by missing context. Corrections become new rules weekly; encrypted columns example shows how feedback improves judgment.
- Architecture limitation: Layer 1 and 2 run independently with no shared runtime visibility. Proposal: unified system where agent can call live checks as tools, not just read repository code.
- Every fact a script proves is review work AI never needs to do—keeping costs down. Don't spend judgment capacity on yes/no questions with authoritative answers.
- Registered lineage incomplete across enterprise—some query engines don't publish lineage, dashboards invisible to repo search. Agent honest about limits: found none ≠ none exist.
- 132 engineering hours saved monthly. Hybrid approach preserves accountability while reducing review workload—goal is less work, not removing human decisions from safety-critical changes.
TL;DW
- 60% of data pipeline PRs merge without human review using hybrid system of scripts, agents, and people; 75% less manual review effort and 30% fewer incidents.
- Layer 1: Deterministic scripts check facts against sources of truth (schema registry, catalog, lineage, performance); failed checks block PR automatically like any failing CI test.
- Layer 2: Agent searches repository code for unregistered downstream consumers, anti-patterns, and sensitive data risks that scripts cannot detect; escalates findings with reasoning to humans.
- Protected decisions stay with people by design: sensitive data grants, migration intent changes, and low-confidence verdicts never auto-approve regardless of agent verdict.
- Agent found unregistered consumer of widened column that would break on overflow—lineage miss caught by code walk—enabling fix before merge prevented production incident.
- Miss rate ~2%; false escalations driven by missing context. Corrections become new rules weekly; encrypted columns example shows how feedback improves judgment.
- Architecture limitation: Layer 1 and 2 run independently with no shared runtime visibility. Proposal: unified system where agent can call live checks as tools, not just read repository code.
- Every fact a script proves is review work AI never needs to do—keeping costs down. Don't spend judgment capacity on yes/no questions with authoritative answers.
- Registered lineage incomplete across enterprise—some query engines don't publish lineage, dashboards invisible to repo search. Agent honest about limits: found none ≠ none exist.
- 132 engineering hours saved monthly. Hybrid approach preserves accountability while reducing review workload—goal is less work, not removing human decisions from safety-critical changes.
Robinhood layered deterministic scripts (schema registry, lineage, performance checks), an AI agent scanning for unregistered consumers and anti-patterns, and human review only for sensitive data grants or low-confidence verdicts. Weekly feedback loops refine the rules; 75% less manual review effort with no loss of accountability.
