Skip to main content

Pluvy

A read-only engineering policy gate for Python, Go, Java, JavaScript/JSX and TypeScript/TSX. No run mode modifies, stashes, stages, restores, deletes or rewrites source files, and no run mode changes Git configuration. The shared policy is in Engineering standards.

Install

Python 3.12 or newer is required. Install the published command line with uv tool install pluvy or python -m pip install pluvy, then run pluvy --help.

Run

Develop from this checkout, then activate the created environment:

python -m pip install --no-cache-dir uv==0.8.22
uv sync --locked --group dev
. .venv/bin/activate

The repository development checks are listed in AGENTS.md and run in the engineering workflow.

Run from any directory:

pluvy --root /path/to/project --all
pluvy --root /path/to/project --base BASE_COMMIT --format json
pluvy --root /path/to/project --staged

--all reads all selected working files including Git-ignored ones. --base compares a commit to the working tree including untracked sources. --staged reads changed index blobs and the index policy, never unstaged contents. Git modes require the repository root.

Build the image from this checkout:

docker build -t pluvy:0.1.0 .

Run a one-line full audit from a target repository containing .pluvy/pluvy.json:

docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/workspace:ro" pluvy:0.1.0 pluvy --all

The image installs the locked runtime dependencies and Git. It does not contain a target policy or development tools. The mount is read-only, and the calling user's UID/GID preserve Git ownership checks. --base and --staged need the complete Git metadata mounted too.

Policy

Every target repository owns and commits its .pluvy/pluvy.json policy. Copy the example policy to that path and adapt it; paths inside the policy are relative to the repository root.

include and exclude control global file selection. All checkers are enabled by default, so specify enabled only when disabling one.

Exit codes: 0 pass or warnings only for the reported scope, 1 error findings, 2 configuration, encoding, filesystem or Git failure.

Repeated conditional field copies are checked in every supported language through structure.guarded_projection; it defaults to three distinct destination fields in one local cluster.

See Checker configuration for all options, defaults, language coverage and third-party usage boundaries.

Language and rule plugins

All languages share one tree-sitter context. Language plugins own identity, suffixes and grammar interpretation; application composition owns required coverage and rule selection. Rules implement RuleBundle, consume TreeContext and declare RuleRequirements. See Plugin architecture, with per-checker Java scope and limits covered by checker configuration.

Integration

Agent review rules can own review guidelines and invoke a configured ACP agent. Findings are submitted incrementally through registered MCP tools, with explicit completion and small acknowledgements. See Agent review.

Any CI system that can run this image integrates with the same commands, and this repository runs the same engineering checks in GitHub Actions; see the engineering workflow.

To run the gate image in a container, see the Run section above.

A pre-commit hook may run uv run --no-sync pluvy --staged after the policy is committed. Install hooks explicitly; this tool never changes Git configuration.

Documentation

Engineering standards is the shared policy. For installation, configuration, daily runs, finding triage and per-task gating, start with Getting started.

Metadata

Release files for pluvy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pluvy 0.0.1
File Size Uploaded Provenance Actions
pluvy-0.0.1.tar.gz 290.8 kB Without provenance Details for pluvy-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pluvy 0.0.1
File Interpreter ABI Platform Actions
pluvy-0.0.1-py3-none-any.whl Python 3 none any Details for pluvy-0.0.1-py3-none-any.whl

Total release size: 461.4 kB

Release files / pluvy-0.0.1.tar.gz

Download URL pluvy-0.0.1.tar.gz
Size 290.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0f22655dfa2969b1a10abd0dad5131ab912fece5e10516b16da1bca21080f503
BLAKE2b-256 checksum
How to use checksums
21833d06299480d533748531467a40ab61ee49f46e862011f6792eda7f5b4123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pluvy-0.0.1-py3-none-any.whl

Download URL pluvy-0.0.1-py3-none-any.whl
Size 170.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7e6cf301c30c11d3e7f059b101b3f7ce02d7589d000a457c40d0ca6b30fb5ef
BLAKE2b-256 checksum
How to use checksums
51d6f772faee1bed8b38c90efb594300e76c669cb93480d86df928b0c198eebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for pluvy 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page