All Metrics
Agentic Workflow Health · Layer 5

Agent Governance
Bypass Rate

The fraction of agent-generated code that entered the main branch without any design governance review.

Target metric — not yet computed

This page describes the intended design. It requires correlating merge events with audit completion timing, which isn't built yet. It doesn't appear on your dashboard yet, and no org currently has a live value for it.

Formula
AGVR = (agent-authored PRs merged
with no completed
CDA audit
÷ total agent-authored
PRs merged)
× 100
Range: 0 – 100·Lower is better·Target: 0
Thresholds
0No bypass — governedTarget state
> 0Bypass detectedAlert — investigate immediately
> 2Systematic bypassRed — enforce branch protection
01

What it signals

AGVR is not about code quality — it is about process integrity. A non-zero AGVR means the CDA enforcement layer can be circumvented, intentionally or accidentally, by agent workflows. The audit gate that every agent-authored PR is supposed to pass through was bypassed: the PR merged without a completed CDA audit event ever being recorded.

This metric is especially critical because agents merge PRs at high velocity. A process gap that would be rare at human scale — one missed review in a quarter — becomes frequent at agent scale, where dozens of PRs may merge per day. A 5% bypass rate that seems minor in isolation translates to hundreds of unreviewed agent PRs per year entering the main branch.

AGVR should be structurally zero in a well-configured repository. The target is not near-zero — it is zero. Any non-zero value is a signal that the enforcement layer has a gap: a misconfigured webhook, a missing branch protection rule, or a repository that was connected to rkito after agent workflows were already active. Each gap is diagnosable and fixable. The metric exists to surface them before they become a pattern.

02

How rkito produces it

AGVR is detected by correlating merge events with CDA pipeline completion events. Agent authorship is identified from commit signatures and MCP logs. A merge with no associated COMPLETED audit record increments AGVR. Every such PR is individually flagged for retroactive review.

1
01
PR merge event received via GitHub webhook
rkito records the merge timestamp, branch, and commit metadata
2
02
Agent authorship determined
Commit signatures (Co-Authored-By: Claude Code, Copilot metadata, Devin session ID) and MCP server access logs are checked
3
03
CDA audit completion event looked up for the PR
rkito checks whether a COMPLETED CDA audit event was recorded before or at merge time
4
04AGVR++
Agent-authored + no COMPLETED audit event found
AGVR increments — governance bypass confirmed, PR flagged for retroactive review
5
05GOVERNED
Agent-authored + COMPLETED audit event present
Governed merge — not counted in AGVR
6
06
AGVR computed as percentage of bypassed agent merges
Updated on each merge event and surfaced on the org dashboard
03

Who this metric is for

CTO
Executive
A structural risk signal

Any non-zero AGVR means AI-generated code is entering production without architectural review. This is not a code quality finding — it is a structural risk signal. The governance process that is supposed to gate every agent PR was bypassed. At high agent velocity, even a small bypass rate compounds into a significant unreviewed change surface.

CSO
Security
An audit finding

AGVR > 0 means security-relevant agent code may have merged without Lens evaluation. This is an audit finding, not just a metric alert. Each bypassed PR is a potential unreviewed security-relevant structural change. In a regulated environment, a non-zero AGVR requires documented retroactive review of every flagged PR.

04

Watch

Gap vs bypass — investigate before escalating

AGVR can be non-zero due to configuration gaps rather than intentional bypass. The most common causes are infrastructure, not bad actors: a repository connected to rkito after agent workflows were already running will show historical bypasses for every agent merge that predates the connection. A GitHub webhook temporarily unavailable during a merge window will produce a bypass event even though the pipeline was functioning correctly.

Always investigate whether a non-zero AGVR is a gap or a bypass before escalating. The investigation path is deterministic: check the webhook delivery log for the flagged merge timestamp, check whether the repository was connected before or after the merge, and check whether the branch protection rule requiring the rkito/cda status check was active at merge time. Each root cause has a different remediation.

05

What to do at each threshold

Step-by-step response playbook for each signal state.

Green0Monitor integrations

The correct state. Every agent-authored PR that merged had a completed CDA audit on record.

01

Monitor that webhook delivery remains healthy at /settings/integrations. A healthy AGVR of zero is contingent on reliable webhook delivery — a silent webhook failure is the most common path from zero to non-zero.

02

Confirm branch protection rules are enforced on all repositories with active agent workflows — not just the ones you know about. A repository added to an agent workflow without a corresponding rkito connection will not appear in AGVR at all; it will appear as a coverage gap in ABR instead.

Yellow> 0Investigate immediately

At least one agent-authored PR merged without a completed CDA audit. Determine the root cause before the next merge window.

01

For each bypassed PR, determine the root cause from three possibilities: webhook failure (configuration issue — fix webhook and verify delivery), force-merge (process gap — enforce branch protection rules to prevent future force-merges), or repository not connected (coverage gap — connect the repository to rkito immediately).

02

Every bypassed PR requires a retroactive CDA review regardless of root cause. The review determines whether ungoverned architectural changes were introduced. Do not close the bypass finding without a completed retroactive audit on record.

Red> 2Enforce branch protection

Systematic bypass in progress. More than two percent of agent merges are reaching main without governance review.

01

Audit all recent agent-authored merges — not just the flagged ones. A systematic bypass pattern often indicates a configuration problem that has been active longer than the current AGVR window reflects.

02

Enforce branch protection rules requiring the rkito/cda status check to pass before merge. Review GitHub repository settings to confirm the status check is required, not optional — an optional status check can be bypassed by merging while the check is pending or not yet triggered.

Start measuring yours

What is your org's AGVR?

rkito detects governance bypasses automatically by correlating merge events with CDA audit completion records. Connect your repo and see your bypass rate within minutes.