Constraint Decay: Why LLM Agents Fail at Structured Backend Code

A new paper from Francesco Dente, Dario Satriani, and Paolo Papotti (arXiv:2605.06445) introduces constraint decay — a measurable drop in LLM agent performance as structural requirements accumulate in backend code generation. The authors evaluate agents across 80 greenfield tasks and 20 feature-implementation tasks spanning eight web frameworks, using a fixed API contract to isolate structural complexity.
Key findings
- Capable configurations lose 30 points on average in assertion pass rates from baseline (loose specs) to fully specified tasks. Weaker configurations approach zero pass rate.
- Framework sensitivity is extreme: agents succeed in minimal, explicit frameworks like Flask but perform substantially worse on convention-heavy environments like FastAPI and Django.
- Leading error class: data-layer defects — incorrect query composition and ORM runtime violations account for the majority of failures.
Why this matters
Existing benchmarks reward functionally correct but structurally arbitrary solutions. Production code demands strict adherence to architectural patterns, database schemas, and ORM conventions. The paper demonstrates that jointly satisfying functional and structural requirements is still an open challenge for coding agents — a reality any developer using AI agents in production will recognize.
If you're using LLM agents for backend work, watch for constraint decay: as you add constraints (e.g., data models, migrations, middleware), the agent's output quality can degrade dramatically. The data suggests you should explicitly specify structural rules and run static verifiers alongside end-to-end behavioral tests.
📖 Read the full source: HN AI Agents
👀 See Also

AI Data Centers Increase Local Temperatures Up to 9.1°C, Study Finds
A University of Cambridge study found AI data centers raise land surface temperatures by an average of 2°C after operations begin, with extreme cases reaching 9.1°C increases affecting areas up to 10 kilometers away.

Reddit discussion highlights 68% token reduction for AI agents through infrastructure changes
A Reddit user reports cutting AI agent token usage by 68.5% by switching from standard infrastructure to an agent-native OS with JSON-native state access, reducing state checks from ~9 shell commands to 1 structured call.

TabFM: Google's Zero-Shot Foundation Model for Tabular Data Classification and Regression
TabFM applies in-context learning to tabular data, eliminating hyperparameter tuning and feature engineering for classification and regression. Available on Hugging Face and GitHub.

Meta Pauses Internal AI Training Program After Employee Keystroke Data Leak
Meta pauses MCI program tracking employee keystrokes after SEV 2 leak exposed private conversations, performance data, and transcriptions company-wide.