Skip to content

Latest commit

 

History

History

README.md

CodeClone Docs

Deterministic structural review for Python codebases. One canonical analysis across CI, HTML reports, IDEs, and AI agents.

CodeClone is a structural review layer for Python focused on deterministic analysis, baseline-aware governance, and review surfaces for both humans and AI-assisted workflows.

This documentation site has two complementary layers:

  • Contracts Book — canonical behavioral contracts derived from code and locked tests
  • Deep Dives — architecture, CFG semantics, integrations, and operational rationale

!!! note "Licensing" CodeClone source code is licensed under MPL-2.0.

Documentation content under `docs/` and the published docs site are
licensed under MIT.

Start Here

New to CodeClone?

Understand the deterministic review model and governance philosophy.

Integrating into CI?

Set up baseline-aware gating and deterministic review flows.

Using IDEs or AI agents?

Understand the canonical review surfaces and MCP contract.

Reviewing reports?

Explore the canonical report model and rendered review surfaces.


Contracts Book

Contract-first documentation derived from code and locked tests.

The Contracts Book defines:

  • schemas and typed contracts
  • baseline and cache semantics
  • exit codes and CI behavior
  • determinism guarantees
  • trust and compatibility rules
  • review surface contracts

Core Contracts

Interfaces

System Properties

Quality Contracts


Deep Dives

Narrative documentation covering architecture, integrations, and operational usage.

Operational and legal


Reference Appendices


Local Preview

=== "Build the site"

```bash title="Validate the docs site"
uv run --with mkdocs --with mkdocs-material mkdocs build --strict
```

=== "Build the site and sample report"

```bash title="Generate the live sample report into the built site"
uv run --with mkdocs --with mkdocs-material mkdocs build --strict
uv run python scripts/build_docs_example_report.py --output-dir site/examples/report/live
```

!!! note "Generated output" site/ is generated output used for local preview and GitHub Pages publishing. It is not committed to git.

GitHub Pages publishing is handled by docs.yml via a custom Actions workflow.