<!-- llms-explorer concept facts · https://llms-explorer.com/tree/defensive-code-and-over-engineering-signatures/ · pack 2026-09-23 · ~636 tokens -->

# Defensive-code and over-engineering signatures

> Source-anchored research for Defensive-code and over-engineering signatures. Run status: COMPLETED.

Parent: [LLM tells in code, commit messages, comments and READMEs](https://llms-explorer.com/tree/ai-isms-code-and-commit-tells/) · 5 facets · 6 facts · page: https://llms-explorer.com/tree/defensive-code-and-over-engineering-signatures/

## Structure and components

- Practitioner signature list of AI-grown bloat: verbose scaffolding layers, partial fixes, ceremonial state layers mirroring other layers, non-functional placeholder subsystems left wired in, debug harness code in shipping source, and defensive abstractions that accumulate each agent turn; one Flutter app shrank 31.7% with tests passing. (low confidence) (verified as of 2026-06-01) — [source](https://dev.to/maximsaplin/debloating-the-ai-grown-codebase-2om)

## Measurements and reference values

- Across four LLMs, generated code had on average 63.34% more code smells than reference solutions (73.35% implementation smells, 21.42% design smells), with larger increases on more complex tasks. (low confidence) — [source](https://arxiv.org/abs/2510.03029)

## Problems, failure modes and limitations

- Search-result snippets (not fetched) report opposite security-study findings: LLM code lacking defensive constructs, and one model with error handling in only 3.3% of scripts. Excess defensiveness is not established as a general LLM tell. (low confidence) — [source](https://arxiv.org/abs/2409.19182)

## Comparisons and alternatives

- GitClear's analysis of 211M changed lines (2020-2024) reports copy/pasted lines rising from 8.3% to 12.3% of changed lines while moved (refactored) lines fell from 25% to under 10%, read as assistants adding new code rather than reusing existing functions. (low confidence) (verified as of 2026-01-01) — [source](https://www.gitclear.com/ai_assistant_code_quality_2025_research)

## Facts and statements

- Agent-generated code shows procedural bloat (Long Method dominant) on simple tasks and architectural decay (God Class, superficial file separation) in complex systems; total lines of code correlates with architectural degradation at rho=0.94. (medium confidence) — [source](https://arxiv.org/html/2605.02741v1)
- More capable models can produce messier code as they try to handle every edge case, yielding excessively long methods; detailed prompts and few-shot examples did not reduce defects in that study. (low confidence) — [source](https://arxiv.org/html/2605.02741v1)
