---
type: Note
id: 648a53ad7ded
title: 'Code that validates itself: AI-generated assertions'
description: Only about 2.5% of open-source Java repositories use production assertions.
  LLMs can write them, adding the verification layer AI-written code needs.
tags:
- ai-native-sdlc
generated:
  by: seed-import/1.0
  at: '2026-10-17T19:25:45+00:00'
  body_hash: sha256:a0f61b07825900ab98bfef1c0076c93dc84a1b51ad0c1328e00f0fb6e85531db
sources:
- id: s1
  resource: /raw/20261017-192545-code-that-validates-itself-ai-generated.md
  title: 'Code that validates itself: AI-generated assertions'
kind: Essay
status: stable
stale_after: '2027-10-17T00:00:00Z'
classification: public
owner: human:muthu
canonical_essay: https://muthub.org/writing/ai-generated-assertions
verified:
  by: human:muthu
  at: '2026-10-18T02:01:22Z'
---

# Overview

Only about 2.5% of open-source Java repositories use production assertions. LLMs can write them, adding the verification layer AI-written code needs.[^s1]

# Read the original

The full note is on muthub.org: [Code that validates itself: AI-generated assertions](https://muthub.org/writing/ai-generated-assertions).

[^s1]: Code that validates itself: AI-generated assertions, muthub.org, 2025-05-13.
