framework · experimental

Clause

Software keeps working long after people forget why it is built the way it is. AI makes that worse: it writes reasonable-looking changes faster than anyone can check them against the original design. Clause is my attempt to make the reasons a permanent, checkable part of the software: written down, linked to the code that carries them out and the tests that prove them, and checked on every change. AI does most of the writing; I decide what should exist and why.

What it isAn experimental framework
Built withItself
Used onA real-time robotics library
StatusIn active development

The loss of the why

Software rots by losing its reasons, not its code.

Over time, a codebase keeps running while nobody can say any more why each part is the way it is. A change looks reasonable on its own and quietly breaks an assumption made somewhere else. Then another. The system still works, the code still looks fine, and the design has started to come apart.

AI speeds this up. It can write plausible changes much faster than any person can check them against what the system was meant to do. Reading everything more carefully doesn't scale, and not having to read every line yourself is the reason to use AI in the first place.

From the Clause philosophy

This is software entropy: the gradual loss of the why, leaving only the what.

The idea

Make intent part of the project itself.

Every piece of logic should exist for a known reason, and every change should answer to that reason. Clause treats intent (what the system must do, and the promises each part makes) as part of the project itself, not as notes that drift away from it.

Anything a machine can check, a machine checks, every time. People and AI reviewers spend their judgment only where judgment is really needed. The person is not replaced; they move up, deciding what should exist and why, while the system keeps that decision intact as AI does the writing below.

Clause is deliberately modest about itself. It is not a code generator, not a replacement for review, and not a substitute for thinking. It does not make design easy; it makes drift catchable.

The goal

No logic exists without a known reason, and no change happens without being grounded in that reason.

Clause does not compile intent by replacing judgment. It compiles intent by preserving it.

A language for design

Between prose a machine can't follow and code that forgets why.

Prose specifications are readable, but a program can't follow them. Code is precise, but it records what was built, not why, or what it promised. So Clause has its own language for writing designs down. It reads like an ordinary document, but every important idea in it (a requirement, a rule that must always hold, a decision, a place where outside input must be checked) is a named piece that a program can find and follow. Each piece is linked to what it serves and to what depends on it, all the way down to the code that carries it out and the tests that prove it. It turns a design from a description into something the software is held to.

01

Ask the design questions

What breaks if I change this rule? Which promises have no test yet? What has to be built first?

02

Tests that mean something

The design asks for its tests, and a test only counts if it would fail when the code is wrong.

03

Change with known reach

When a design changes under finished code, everything built on it is flagged at once, not months later.

04

Decide once, hold everywhere

A way of building things is chosen once, and every part that uses it is held to it.

05

Safety where it matters

Places where outside input enters declare what must be tested, and count only when those tests ran.

06

Honest gaps

Something can be left for later, but only openly, with a reason and a date to come back to it.

Built with itself

The hardest test of a method is the method itself.

Clause is designed, built and checked under its own rules. A method for keeping complex software honest has to survive being used on something complex, and Clause is the most demanding project it could be tried on: every weakness shows up there first.

A frozen, trusted copy of Clause checks the copy being developed, so a change to Clause can never approve itself. A new version becomes the trusted one only after it lands, passes review, and I approve it.

When the process fails, the failure is written down, and often becomes a rule. Once, a design passed two reviews and then turned out to have runaway cost on real data. Since then, every design has to state its time and memory cost on real inputs. The method doesn't just build software; it records its own mistakes and corrects itself, under human direction.

Supervised, not autonomous

I direct the work, rule on real choices and approve every change that lands. Every ruling is recorded, and the AI agents cite those rulings instead of re-arguing them.

Used on real robotics software

In parallel, I have been using Clause on a real-time robotics library in C++ and CUDA, running on both CPU and GPU: 3-D geometry, collision detection, the kinematics of robot arms, and motion planning. Its design is written in the Clause language, and its code and tests are tied to that design. This is exactly the kind of software where design drift is expensive. That work is paused for now, while the core of Clause moves forward.

How the work is done

Intent is written down at each step, not left in chat history.
01

Intent

What the system is meant to do, and why.

02

Design

The parts, the rules, and how they relate.

03

Promises

What each piece of code commits to.

04

Code

Each piece points back to the promise it keeps.

05

Evidence

Tests and reviews that show each promise is kept.

AI agents write the designs, the code and the tests, each in a defined role. Every step is then checked twice: by automatic checks, which catch anything with a definite answer, and by an independent reviewer, which judges what a machine can't decide, such as whether a change really does what the design intended.

The reviewer is always a different AI, from a different company, than the one that wrote the work. And nothing gets built until its design has been reviewed and cleared.

Each agent is handed exactly the context it needs: the promises of the piece it is working on and what the pieces around it promise, not a pile of files to search through. That context is worked out from how the design is connected, not guessed.

Who does what
AI authors
Write designs, code and tests
Automatic checks
Catch anything with a definite answer
AI reviewer
A different company's model; judges intent
Manager agent
Plans the work and gathers the evidence
Me
Decides what should exist and approves what lands

Where it stands, and where it's going

The design language, its tooling, the automatic checks and the way each agent's context is gathered are built and in daily use, with a test suite of about 12,000 tests (October 2026). Clause's own self-check is held to a simple rule: no new problems. It is not yet a clean slate, and it doesn't pretend to be.

What is being built now is the kernel: a program that will run the write-and-check loop itself, so that the discipline is enforced by the system rather than kept by habit.

The longer aim is software where the reasons survive: one person directing far more software than they could ever read line by line, with AI doing most of the writing and every change staying answerable to what it was meant to do. That is a direction, not yet a result.

At a glance
Stage
Experimental, in active development
In daily use
Language, tooling, checks, context
Being built
The kernel
Availability
Private; not released

Interested in the details? Get in touch on LinkedIn ↗