Skip to content

CodeClone Contracts Book

This book is the contract-level documentation for CodeClone v2.x.

All guarantees here are derived from code and locked tests. If a statement is not enforced by code/tests, it is explicitly marked as non-contractual.

Contract rule

If this book and the current repository code diverge, code and locked tests win. Update the book after correcting the implementation or contract test.

How to read

  • Start with Terminology → Architecture map → Intro.
  • Then read the pipeline spine: Core pipeline → CFG → Report → HTML render → Baseline → Cache.
  • Change control (Structural Change Controller, Engineering Memory, Claim Guard) is the governance layer.
  • Everything else is supporting detail, invariants, and reference.

Table of Contents

Foundations

Pipeline and data

Contracts and config

Change control

Quality signals

System properties

MCP interface

Integrations

Appendix