The 4 Laws of Probabilistic Software
Four foundational laws governing the behavior, economics, and maintenance of AI-generated code. Law 1: AI code is probabilistic, not deterministic. Law 2: Complexity scales non-linearly with AI assistance. Law 3: The verification cost of AI code exceeds the generation cost. Law 4: AI-generated code accumulates debt faster than human-written code. These laws, coined in Built In, form the baseline for managing modern, AI-augmented engineering teams.
“We have automated the typing, but we have not automated the thinking.”
The industry is treating AI-generated code as a free lunch, assuming that faster code generation strictly equates to higher productivity. The 4 Laws establish that the physics of software engineering have changed. Because the code is probabilistic, it introduces subtle, compounding errors that require massive human oversight. Ignoring these laws leads directly to the subprime code crisis, where systems become unmaintainable due to the sheer volume of unverified, machine-generated complexity.
Richard Ewing’s Research Thesis
Embrace AI generation, but govern it with ruthless, deterministic verification.
Why This Specification Exists
Engineering teams are blindly accepting AI-generated code and accumulating massive technical debt.
Treating AI tools as standard IDE autocomplete features.
No fundamental principles defining the unique economic and structural reality of probabilistic code.
Four laws that clarify the necessary operational shift for AI-augmented teams.
What Changes If You Believe This?
Processes shift focus from writing code to reading, reviewing, and testing code.
Accounts for the verification tax when forecasting engineering bandwidth.
Adjusts release expectations acknowledging the verification bottleneck.
Implements stricter scanning on AI-generated pull requests.
Recommended Action by Role
Increase time allocated for code reviews to account for Law 3.
Latest Publications & Research Activity
Why Your CFO Hates Your Agile Transformation
The Innovation Tax Audit: Is Your R&D Actually Just OpEx?
In the Vibe Coding Era, What Does a Software Engineer Even Do?
Frequently Asked Questions
Q:Why does AI code accumulate debt faster?
AI often generates verbose, locally-optimized code that lacks systemic architectural awareness, leading to fragmentation and duplicate logic over time.
Q:What does probabilistic mean in this context?
It means the same prompt can yield different code on different days, removing the predictable, mechanical certainty traditional engineers rely upon.
Inspectable Evidence Ledger
Classified evidence items supporting, extending, or refining this canonical research specification.
Recommended Citation
Ewing, R. (2026). "The 4 Laws of Probabilistic Software." Richard Ewing Research Canon. Available at: https://www.richardewing.io/concepts/four-laws-probabilistic-software
@article{ewing_four_laws_probabilistic_software,
author = {Ewing, Richard},
title = {The 4 Laws of Probabilistic Software},
journal = {Richard Ewing Research Canon},
year = {2026},
url = {https://www.richardewing.io/concepts/four-laws-probabilistic-software}
}