
What happened
Writing on Zenn, the author proposed reviewing AI-generated code by contract (Design by Contract, defining preconditions, postconditions, invariants) verified with property-based tests like Hypothesis, shrinking human review from hundreds of lines to a few.
Why it matters
Humans can then focus on whether the contract itself matches business rules rather than on the implementation, and the author notes this approach is a practical way to avoid attention fatigue from reading every line equally.
What to watch
The author says this only works where contracts can express intent; authorization, payments, and deletion should still be read line by line and mutation testing is needed to catch weak tests.
WHO IT HITSSoftware engineers and engineering managers at teams using AI code generation will likely see review checklists and pull-request templates change, with pure functions handled by contracts and tests while authorization, payment, and data-deletion changes still get full human reads.
Summaries like this, in your inbox every morning.
The article builds its argument on a simple observation: as AI generates more code, the time humans can spend reading it runs out first. Rather than reading everything at the same density, the author proposes separating what can be mechanically enforced — types, tests, static analysis — from what cannot. The key move is putting the human on the contract, not on the implementation. In the example, a discount function's preconditions, postconditions, and invariants are written as a docstring before the AI fills in the body, and property-based tests generate inputs to try to break those promises.
The author is careful about limits. The proposal assumes stable specifications, a functioning CI test setup, and code that isn't dominated by side effects. In a comparison table, pure functions and data mapping are described as easy to express in contracts, external API integration only partly so, and authorization, payments, and deletion as hard to express and therefore requiring line-by-line reading. The author notes that gaps in authorization are a major risk in the OWASP Top 10, and that passing tests does not mean authorization is correct — often such tests were never written.
To keep weak tests from undermining the whole scheme, the author points to mutation testing, which deliberately breaks code to see whether tests fail, and suggests limiting it to important modules. On effort, the author is explicit: this is not about working less. Writing contracts is a different burden from reading implementations, and the total may just move rather than shrink. The real test is whether a team can articulate, for each area, who decides something belongs in the 'can't be protected' layer.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
AWS says four customer-facing professionals with no engineering backgrounds spent six weeks building WealthWis…

A Zenn author described a single Claude Docs artifact — a 'task ledger' of in-progress and under-consideration…

From 2026-10-06 the author ran 21 tasks through a loop where dots posts request files, a watcher launches Clau…

Guided by the developer, Claude Code launched ALPHA FORGE's Celery workers and beat at 17:44 on September 25;…

System76's COSMIC desktop now requires contributors to declare: "I have not included any LLM (also known as AI…

The author built a Python pipeline using cairosvg that extracts SVG from LLM replies, statically checks format…
