docpact 0.1.0

Deterministic documentation governance CLI for AI-assisted software teams.
Documentation

docpact

docpact is a Rust-first standalone CLI for diff-driven AI documentation drift checks.

It is meant to be installed as a CLI and used in local workflows and CI.

Current distribution status:

  • not published to crates.io yet
  • usable today via cargo run or cargo install --path .
  • intended future distribution: published crate and release binaries

Quick Start

Install from source for now:

cargo install --path .

Create .docpact/config.yaml in the target repository, then run:

docpact validate-config --root /path/to/repo
docpact validate-config --root /path/to/repo --strict
docpact lint --root /path/to/repo --files src/api/client.ts,README.md

For a full setup guide, start with ../docs/README.md.

Document Map

The new project also standardizes on one reserved config entrypoint:

  • .docpact/config.yaml

Current State

This repository currently contains a working Phase 1 core:

  • changed-path collection from explicit files or git diff sources
  • workspace/repo impact-rule loading
  • trigger-to-required-doc matching
  • key Markdown and YAML metadata checks
  • warning vs blocking exit behavior
  • text and JSON-capable reporting surfaces

It is not yet the full planned product. Higher-order drift detection, autofix, richer config validation, an official GitHub Action wrapper, and published package distribution remain future work.