Decision-compliance checks for coding-agent pull requests
Product and engineering teams should add a decision-compliance check to agent-authored PRs when required behavior lives outside the repository. The check can turn product decisions into task-level acceptance criteria covering approved UI components, auth wrappers, feature flags, audit logging, ORM choices, and deprecated patterns. A lightweight scorer can inspect git diffs with regex checks, then route uncertain cases to human review.
The reason to test this now is practical: codebase access alone can miss decisions stored in specs, wikis, product tools, or audit documents. In Context-Augmented Code Generation, Claude Code with codebase access reached 46% weighted decision compliance on 8 Next.js tasks. Adding Brief, which retrieved recorded decisions and guided spec generation and mid-build consultation, raised compliance to 95%, eliminated blocking violations, and produced merge-ready results on all 8 tasks in the study.
A local pilot could use 10 recent tickets with known cross-document requirements. Run the same agent once with repository access only and once with retrieved decisions plus acceptance criteria. Compare blocking violations, deprecated pattern use, tests added, and reviewer rework. The published result is small and clean-room, so the local test should focus on whether the team’s own hidden rules are being followed.