Do AI coding agents follow company policy?
What happens when coding agents meet company rules nobody told them about.
59% vs 12%, policy outside the repo
same 36 tasks, separate runs
$1.31 → $0.33, policy outside the repo
two codebases, hidden tests
Coding agents build what the ticket asks. The company rules nobody mentioned get missed. AVCEL hands the agent those rules.
One ticket, two runs
A real insurance ticket: let reviewers fix a typo in a claim line's justification.
edit_line_justification(line, text, user) to claim/services.py…edit_line_justification(line, text, user) … It raises ValidationError before changing anything if the line's validity_to is set.”edit_line_justification(line, text, user) to claim/services.py…Claude Code (Sonnet 5.5), replayed at 10× speed from the recorded steps. Policy in a folder outside the repo; tests hidden from the agent. Both repeats of each setup ended the same way.
Both said “done”. Only one followed the rules.
This AVCEL run took longer and cost 2 cents more, because it did the work the other run skipped. Across the experiments, AVCEL's cost per compliant change was lower, because far fewer of its attempts failed.
How the rules reach the agent
Built once per codebase and resolved locally. AVCEL's server does not need to receive the developer's task, conversation or working code. The coding agent still talks to its configured model provider.
What happened across the experiments?
16 policy-risk tickets × 2 attempts per setup, policy in a folder outside the repo.
Compliant: 4/32 with no pointer, 16/32 with manual instructions, 19/32 with AVCEL (banking and insurance, 16 each). Manual instructions: the repo's CLAUDE.md and AGENTS.md point to the policy. AVCEL vs no pointer +47 points (95% CI +25 to +69); vs manual instructions +9 (95% CI −12 to +28), not established as significant.
Of course rules help. But does AVCEL beat a careful team's instruction file?
28 policy-risk tasks from a 49-task cohort, 3 attempts each: 63/84 vs 53/84 compliant, +12 points (95% CI +4 to +20). The tasks were built after the design was fixed and never used to shape it; some ran in earlier evaluations. Banking 72% vs 61%, insurance 77% vs 65%. Cost per compliant change $0.26 vs $0.37.
What we learned
Rules can be followed too well. The bank's handbook: “A fee or penalty waiver made under an active hardship plan needs no checker, but it must reference the plan.”
Three exception tasks (one banking, two insurance), 4 attempts each, policy in the repo.
AVCEL doesn't win everywhere yet. On one set of insurance tasks, a repo holding the full handbook still did better (78% vs 53%). Some rules depend on a definition or a related rule the agent also needs. What we are researching:
AVCEL Engineering. The institutions and policies in this benchmark are fictional, written for research and reviewed by AI, not by a domain expert.