Expand description
repocert is a local-first library and CLI for repository contract
validation, certification, and protected-ref enforcement.
Repositories declare their contract in .repocert/config.toml, then use the
command-oriented APIs exposed here to:
- load and validate the contract
- run checks and fixer probes
- apply repo-declared fixers
- certify exact commits against the current contract fingerprint
- inspect certification state
- authorize protected ref updates
- install generated git hooks that enforce the contract locally
The crate primarily powers the repocert CLI, but its public modules are
available for embedding in other Rust tooling that wants the same contract
model and result types.
Modulesยง
- certification
- Certification storage and contract fingerprinting.
- certify
- Non-mutating certification of the current
HEADcommit. - check
- Check execution and fixer probe evaluation.
- config
- Contract discovery, loading, and structural validation.
- enforcement
- Protected ref authorization against stored certifications.
- fix
- Mutating fixer execution.
- hooks
- Generated hook installation and hook entrypoint types.
- local_
policy - Local checkout policy checks used by generated commit hooks.
- status
- Certification status inspection for commits and protected refs.