New Research: AI Involvement and Code Drift: Comparison of Drift Density and Severity by Provenance

Backer ●1 ●8 ●16
calendar_today • schedule2 min read

We just posted the write-up of our most recent research. Here's the abstract:

AI Involvement and Code Drift: A Provenance-labeled Comparison of Drift Density and Severity Across Nine Production-readiness Dimensions

Abstract
BACKGROUND: Prior work on drift in AI-generated code has largely measured freshly generated components in isolation, leaving open the question of what AI involvement does to real, shipping codebases. Because fresh generation (greenfield) and mature production (brownfield) code differ in age, review history, and accumulated debt, a like-for-like comparison requires real code on both sides of the ledger. This study samples repositories labeled by degree of AI involvement in advance, and scans them on identical instrumentation, so that drift is compared across provenance groups on real code, rather than between freshly generated and mature corpora.

METHODS: Twenty-one open-source repositories, selected by GitHub search rules with six added by hand, were labeled by authorship provenance before scanning into three groups: human-led (n=6), AI-assisted (human + AI; n=10), or AI-led (n=5). Inclusion in an AI group means that AI was used. Full or partial authorship could not be guaranteed. Using ReWeaver, a multi-dimensional deterministic code drift scanning engine, we scanned repositories at the application root (a full walk of up to 2,000 files per scan root). Analysis included whole-repository Production Drift Ratio (PDR; a measure of drift frequency weighted by remediation time) scores, and line-level drift density, as well as breakdowns on nine dimensions of production readiness: user experience, design consistency, accessibility, security & privacy, reliability, architecture, maintainability, testability, and AI code governance.

RESULTS: Both PDR and drift density rose monotonically with the degree of AI involvement (M PDR: human-led = 0.773; AI-assisted = 0.830; AI-led = 0.835). Drift density followed a similar pattern (human-led = 4.42%; AI-assisted = 6.39%; AI-led = 10.15%). Added drift in AI-led code concentrated in design-facing dimensions: User Experience (+0.34 PDR), Accessibility (+0.17), and Design Consistency (+0.10). Maintainability, the largest single source of drift in the human-led baseline, was roughly equivalent in PDR between tiers.

CONCLUSION: On real code compared on identical instrumentation, drift was found to grow with AI involvement, specifically where design intent lives.

Takeaways:

Drift was present in every repository at every provenance tier. No authorship category, including mature, human-led production code, produced drift-free software. Both drift metrics increased
monotonically with AI involvement.

Whole-repository PDR (max score=1.0) rose from 0.773 to 0.835, and drift density from 4.42% to 10.15% moving from human-led to AI-led repositories.

AI-led repositories carried roughly 2.3× the drift density of the human-led baseline.

Added drift concentrated in design-facing dimensions: User Experience (+0.34 PDR, 6.1× human density), Accessibility (+0.17, 2.3×), and Design Consistency (+0.10, 2.6×).

It should be noted that provenance labels are not guaranteed. While the independent authorship detector agreed with all of the human-led designations, it disagreed with 14 of the 15 AI group labels and was inconclusive on the fifteenth.

Results should be interpreted as a signal for future research.

Find more about the study and download the paper here: http://www.reweaver.ai/provenance-study

Want more #technical-debt & #code-quality deep dives?

Join 6,176+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

3 Comments

1 vote
0 votes
0

More Posts

The Audit Trail of Things: Using Hashgraph as a Digital Caliper for Provenance

Ken W. Algerverified - Apr 28

The Outward Turn: When Literary Scholars Teach Us About Code Quality and Technical Debt

nevmenandr - Oct 4

3.5 best practices on how to prevent debugging

Codeac.io - Dec 18, 2025

How to save time while debugging

Codeac.io - Dec 11, 2025

Dozens of email accounts: learning AI coding tools as a student

rahuldk1105 - Oct 27
chevron_left
1.3k Points • 25 Badges
Seattle, WA • reweaver.ai
5Posts
3Comments
41Connections
Founder & CEO of ReWeaver AI, a platform that detects design-code drift at the point of generation i... Show more

Commenters (This Week)

5 comments
5 comments
2 comments

Contribute meaningful comments to climb the leaderboard and earn badges!