BUCKYVERSE

THEORY.md Guide

Version: 2026-06-15
Status: Current
Review Trigger: Major conceptual change, subsystem extraction, product pivot, or quarterly review.


Preserving Conceptual Integrity in AI-Native Systems

Inspired by Peter Naur's concept of Programming as Theory Building and adapted for AI-assisted software development.

The purpose of a THEORY.md document is not to explain the implementation.

Its purpose is to preserve the theory of the system:

THEORY.md is intended for:

As software becomes increasingly AI-assisted, implementation becomes easier to change.

Conceptual integrity becomes harder to preserve.

THEORY.md exists to protect that integrity.


Core Principle

The Theory Is The Asset

Code is not the theory.

Architecture is not the theory.

Documentation is not the theory.

The theory is the shared understanding that allows those artifacts to exist.

THEORY.md exists to preserve that understanding.

If the implementation is rewritten completely, the theory should largely survive.

If the implementation survives but the theory is lost, the system may continue to function while slowly becoming something else.

The goal of THEORY.md is to preserve conceptual continuity across time.


What THEORY.md Is

A THEORY document captures:

It answers:

What kind of thing is this?

and

Why is it this kind of thing instead of another?

and

What must remain true for it to continue being that thing?


What THEORY.md Is Not

THEORY.md is not:

Those artifacts explain the current system.

THEORY.md explains the enduring system.

A useful test:

If the implementation were completely replaced, would this section still be useful?

If not, it probably does not belong in THEORY.md.


Recommended Structure


1. Identity

Purpose

Describe what the system fundamentally is.

This should be short, direct, and conceptual.

Questions

Example

Workbench is an orchestration environment for AI-assisted software development.


2. Why It Exists

Purpose

Describe the tension, failure, opportunity, or change that made the project necessary.

This section explains:

why the project needed to exist at all.

Questions


3. Core Theory

Purpose

Describe the beliefs embodied by the system.

This is the conceptual heart of the project.

Questions

Examples

This section should feel philosophical.

It should explain how the system sees the world.


4. Relationship To The World

Purpose

Explain the real-world activity being modeled, supported, or augmented.

Software does not exist in isolation.

Every system exists in relationship to people, organizations, workflows, or operational realities.

Questions


5. Central Metaphors

Purpose

Describe the metaphors, language, and mental models that organize the project.

Metaphors are not cosmetic.

They shape:

Questions


6. Theories Considered

Purpose

Document important alternative theories that were seriously considered and intentionally not adopted.

This section preserves one of the most valuable forms of knowledge that is often lost over time:

not what was built,
but what could have been built.

Many artifacts preserve decisions.

Few preserve the conceptual alternatives that were seriously evaluated.

As teams change and AI agents generate new ideas, previously rejected approaches often reappear because the reasoning behind their rejection has been forgotten.

This section exists to preserve that reasoning.

The goal is not to prove alternative theories were wrong.

The goal is to explain:

Questions

Example Format

Alternative Theory:

Tasks are the primary unit of work.

Advantages:

Why Not Chosen:

The system treats intent as the primary unit because tasks are transient while outcomes persist across changing execution strategies.

What Would Change Our Mind:

If execution became highly stable and organizational priorities rarely changed, task-centric coordination might become preferable.


Alternative Theory:

Signing systems should own their signing keys.

Advantages:

Why Not Chosen:

The project treats trust generation and key custody as separate concerns. Combining them weakens security boundaries and obscures distinct responsibilities.

What Would Change Our Mind:

A deployment environment with hardware-backed key isolation and extremely constrained operational scope might justify combining these concerns.


Constitutional Layer (Theory Preservation)

The Constitutional Layer exists to protect the theory of the system.

It is not a policy manual.

It is not a governance framework.

It is not a compliance checklist.

It is not a collection of arbitrary rules.

Instead, it serves a specific purpose:

to preserve the conceptual integrity of the system as it evolves.

The earlier sections describe:

The Constitutional Layer translates those ideas into durable constraints that help future humans and AI agents recognize:

The purpose of these constraints is not to restrict creativity.

The purpose is to prevent conceptual drift.

Every successful system experiences pressure to expand:

Many additions appear reasonable in isolation.

Over time, however, they can blur the identity of the system until it becomes difficult to answer:

What kind of thing is this?

The Constitutional Layer exists to make those pressures visible.

A healthy constitutional statement should always be traceable back to the theory.

Example:

Theory:

Signing and key custody are separate concerns.

Constitutional Constraint:

This system shall not permanently store signing keys.

The constitutional rule is not arbitrary.

It exists because it protects the theory.

If a constitutional statement cannot be traced back to the theory, it probably does not belong in THEORY.md.

The theory is primary.

The constitution serves the theory.

A useful mental model is:

Theory explains why.

Constitution preserves what.

Architecture determines how.

Implementation delivers it.


7. Responsibilities

Purpose

Define what responsibilities belong to this system.

Questions

Responsibilities should reinforce the theory.


8. Boundaries

Purpose

Define what responsibilities do not belong here.

Boundaries are often more important than responsibilities.

Many systems decay because they absorb neighboring concerns until their identity becomes unclear.

Questions

A strong theory is often easiest to understand through what it refuses to become.


9. Operational Invariants

Purpose

Define truths that must remain true regardless of implementation.

These are conceptual constraints rather than technical constraints.

Questions

Examples


10. Natural Extensions

Purpose

Describe what kinds of growth reinforce the theory.

This helps future maintainers and AI agents understand:

what belongs here.

Questions

Natural extensions should make the system more itself.


11. Theory Violations

Purpose

Describe changes that may work technically but damage conceptual integrity.

This is one of the most important sections.

Questions

Examples


12. Signals Of Health

Purpose

Describe indicators that the theory remains alive.

Questions

Examples


Theory Evolution

Theory is not immutable.

A healthy project may evolve its theory as understanding deepens.

Theory changes should be:

When theory changes, architecture may change.

When architecture changes, theory should not automatically change.

A major theory change may indicate:


Review Questions

Whenever major changes are proposed, ask:


Final Principle

A healthy project is not merely:

A healthy project retains:

a coherent theory of itself.

THEORY.md exists to preserve that coherence across:

The ultimate goal is not preserving code.

The goal is preserving understanding.