If AI Is Producing Slop, Your Team Has an Architecture Problem.
Architecture Is the Missing Knowledge AI Cannot Invent
Related Articles
AI Doesn't Evolve Architecture. It Reveals Its Absence
Engineering managers are treating AI coding agents as extra developers, when they should treat them as implementation engines that need explicit architectural knowledge from the team.
The research paper, SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks, studies a problem that normal coding-agent benchmarks often hide: software development is iterative. Agents are not asked to solve one complete task once. They must repeatedly extend their own previous code as the specification changes. The benchmark deliberately leaves internal structure open, hides the test suite, and forces the agent to make architectural decisions that later checkpoints will either reward or punish.
That setup matters because architecture is not decoration around code. Architecture is the knowledge of how a system should absorb future change. The paper's running example makes this concrete: an agent that hardcodes Python-specific search logic early faces cascading rewrites when later checkpoints add more languages and AST-based matching; an agent that creates an extensible parser interface has a better foundation. The difference is not coding ability. The difference is whether the right evolutionary knowledge was present before the code was written.
From a knowledge-centric perspective, AI agents are a source of code implementation knowledge. They can often answer the question, "How do I produce code for this current request?" But the paper shows that this is not enough for long-horizon software work. The missing knowledge is architectural: what is likely to change, what should stay stable, where variation should be isolated, and which constraints should guide implementation. Without that knowledge, the agent does what many weak teams also do: it patches the present and mortgages the future.
This is the management problem. Engineering managers who treat agents as extra developers will miss the real risk. The agent is not only producing code; it is operating inside the team's architecture culture. If that culture does not make architectural intent explicit through design constraints, extension points, ADRs, and review standards, the agent has little to work with beyond the immediate prompt and the current code structure.
AI agents do not remove the need for architecture. They punish teams that never made architecture explicit.
Slop Is What Happens When Architecture Is Missing
The damage is not that AI agents fail to produce code; the damage is that they can produce code that looks useful while quietly making the system harder to change.
The paper's results separate short-term correctness from long-term code health. No evaluated coding agent fully solved any problem end-to-end, and the best agent passed only 14.8% of checkpoints. More importantly, structural erosion increased in 77% of trajectories, and verbosity increased in 75.5%. Compared with 473 open-source Python repositories, agent code was 2.0x more structurally eroded and 2.3x more verbose.
For engineering managers, this should change how AI-assisted software development is judged. A passing checkpoint does not mean the team made progress. A working feature does not mean the system becomes healthier. A pull request can pass tests and still concentrate complexity in already-complex functions, duplicate logic across the codebase, and make the next change more expensive. The paper makes that failure mode visible: present-day success can coexist with architectural decay.
This creates a dangerous management illusion. The team appears faster because more code is being generated. The backlog appears to move because features appear sooner. But the hidden cost is paid later through rework, slower modification, harder reviews, brittle extension points, and loss of confidence in the codebase. AI does not merely accelerate implementation; it can accelerate the accumulation of technical debt due to poorly organized executable knowledge.
From a knowledge-centric perspective, the impact is clear: the agent is closing the wrong knowledge gap. It discovers how to satisfy the immediate specification, but it does not reliably discover how the system should remain changeable across future specifications. If humans do not provide that missing architectural knowledge, every iteration becomes a gamble that the next requirement will not punish today's shortcut.
Passing tests can hide architectural decay.
Manage Architecture as Shared Team Knowledge
Engineering managers must manage architecture as team knowledge before they scale AI-assisted software development.
The paper does not claim that AI agents are useless. It shows that agents degrade when they must extend their own prior design decisions without enough architectural guidance. That points to the real solution: do not ask agents to invent the architecture implicitly while they are generating code. Give them the missing knowledge first. Humans must supply the evolutionary context: what is likely to change, what must remain stable, where variation belongs, and which shortcuts are forbidden.
Architecture-First Prompting
Every AI-assisted change starts with architectural intent, design constraints, and expected extension points.
- Benefit: The agent receives the missing system-evolution knowledge before implementation begins.
- Risk: Weak teams will turn this into prompt theater: impressive words, no real constraints.
Lightweight Architecture Practice
Teams maintain short ADRs, design constraints, extension-point notes, and review standards as living artifacts.
- Benefit: Architecture stops living only inside senior engineers' heads and becomes reusable knowledge for humans and agents.
- Risk: These artifacts decay quickly unless managers make them part of everyday work, not a documentation side quest.
Structural Review Loop
Teams review AI-generated code for erosion, duplication, and changeability, not only correctness.
- Benefit: Managers stop confusing "the tests pass" with "the system improved."
- Risk: It slows the first merge, which means impatient teams will be tempted to skip it until the codebase starts fighting back.
These options work best as one operating model. Before the agent writes code, the team states the architectural intent. While the agent writes code, the prompt constrains the design space. After the agent writes code, humans inspect whether the change preserves future optionality. The manager's job is to make this loop normal, lightweight, and unavoidable.
The agent can produce code. The team must produce the architecture the agent is allowed to code within. Give the agent code tasks; give the team architecture responsibility.
AI Amplifies the Architecture Culture You Already Have
The downstream consequence is simple: manage architecture as team knowledge, or let AI turn weak architecture practice into visible decay.
Act now, and AI-assisted development becomes more than faster code generation. The team learns to state architectural intent before implementation begins. Developers make design constraints explicit. ADRs become practical decision memories. Reviewers inspect whether agent-generated changes preserve future changeability, not merely whether the current tests pass. The manager creates an environment where AI agents work inside a human-shaped architecture, instead of improvising structure one checkpoint at a time.
This changes the team's operating model. Architecture stops being a heroic activity performed by one senior person after the damage appears. It becomes a shared discipline that happens before, during, and after AI-assisted coding. Before coding, humans provide the missing evolutionary knowledge. During coding, the agent operates inside declared constraints. After coding, the team checks for structural erosion, duplication, and violated extension points. That is how managers convert AI from a slop generator into a useful implementation accelerator.
Do nothing, and the paper's warning becomes your team's daily reality. You will get slop all day long: code that passes today, rots tomorrow, and makes the next change harder. The backlog may move faster for a while, but the system will slowly become less changeable. Reviewers will become janitors. Senior engineers will spend their time cleaning up local shortcuts. Eventually, delivery slows, confidence drops, and someone will ask why AI made the codebase worse instead of better.
That is not a tool failure alone. It is a management failure. If you scale AI-assisted coding without scaling architecture discipline, you are not increasing engineering capacity. You are increasing the speed at which poorly organized executable knowledge enters the system.
AI will not save teams from weak architecture practice. It will expose them.
Next Step
Decide now whether your team will manage architecture as shared knowledge, then start with one rule: no AI-generated change is accepted unless the architectural intent, design constraint, and structural review are explicit.

Dimitar Bakardzhiev
Getting started