Metadata-Version: 2.4
Name: notari
Version: 0.5.5
Summary: Scan Git changes for credential patterns and sensitive paths, with optional signed change boundaries.
Project-URL: Homepage, https://github.com/manumarri-sudo/notari
Project-URL: Documentation, https://github.com/manumarri-sudo/notari#readme
Project-URL: Source, https://github.com/manumarri-sudo/notari
Project-URL: Changelog, https://github.com/manumarri-sudo/notari/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/manumarri-sudo/notari/issues
Author: Manu Marri
License-Expression: MIT
License-File: LICENSE
License-File: NOTICE
Keywords: agent-governance,ai-agents,audit,change-control,ci-cd,claude-code,code-review,cursor,human-in-the-loop,security
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Monitoring
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: cryptography>=50.0.2
Requires-Dist: pydantic>=2.7
Requires-Dist: pyobjc-framework-localauthentication<13,>=12.0; sys_platform == 'darwin'
Requires-Dist: rich>=13.7
Requires-Dist: typer>=0.26.8
Provides-Extra: all
Requires-Dist: asyncpg>=0.31.0; extra == 'all'
Requires-Dist: keyring>=25.7.0; extra == 'all'
Requires-Dist: opentelemetry-api<2,>=1.27; extra == 'all'
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.27; extra == 'all'
Requires-Dist: opentelemetry-sdk<2,>=1.27; extra == 'all'
Requires-Dist: pyobjc-framework-localauthentication<13,>=12.0; (sys_platform == 'darwin') and extra == 'all'
Requires-Dist: weasyprint>=62; extra == 'all'
Provides-Extra: dev
Requires-Dist: hypothesis>=6.155.7; extra == 'dev'
Requires-Dist: mypy>=2.1.0; extra == 'dev'
Requires-Dist: pip-audit>=2.10.1; extra == 'dev'
Requires-Dist: pyright>=1.1.411; extra == 'dev'
Requires-Dist: pytest-asyncio>=1.4.0; extra == 'dev'
Requires-Dist: pytest-benchmark>=5.2.3; extra == 'dev'
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev'
Requires-Dist: pytest>=9.1.1; extra == 'dev'
Requires-Dist: ruff==0.15.20; extra == 'dev'
Requires-Dist: syrupy>=5.3.4; extra == 'dev'
Provides-Extra: keyring
Requires-Dist: keyring>=25.7.0; extra == 'keyring'
Provides-Extra: otel
Requires-Dist: opentelemetry-api<2,>=1.27; extra == 'otel'
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2,>=1.27; extra == 'otel'
Requires-Dist: opentelemetry-sdk<2,>=1.27; extra == 'otel'
Provides-Extra: pdf
Requires-Dist: weasyprint>=62; extra == 'pdf'
Provides-Extra: postgres
Requires-Dist: asyncpg>=0.31.0; extra == 'postgres'
Provides-Extra: touchid
Requires-Dist: pyobjc-framework-localauthentication<13,>=12.0; (sys_platform == 'darwin') and extra == 'touchid'
Description-Content-Type: text/markdown

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/manumarri-sudo/notari/main/docs/assets/notari-mark-dark.svg">
  <img src="https://raw.githubusercontent.com/manumarri-sudo/notari/main/docs/assets/notari-mark.svg" alt="" width="38">
</picture>

# Notari

Notari is an open-source alpha for reviewing committed Git changes. Its scan
flags workflow edits, checks for 26 vendor-format secret patterns, and calls out
files that deserve a closer look. An optional signed boundary checks which paths
a human approved for a task.

[![PyPI](https://img.shields.io/pypi/v/notari.svg)](https://pypi.org/project/notari/)
[![CI](https://github.com/manumarri-sudo/notari/actions/workflows/ci.yml/badge.svg)](https://github.com/manumarri-sudo/notari/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

## Try the scan

Install [uv](https://docs.astral.sh/uv/getting-started/installation/) on macOS
or Linux. Run this from a Git branch with a committed change and substitute the
branch it targets if that branch is named something other than `main`.

```bash
uvx notari scan --base main --no-passport
```

| Result | What it means | Exit |
| --- | --- | --- |
| PASS | The scan found no matching checks to flag. | 0 |
| NEEDS_REVIEW | A change needs inspection, such as a lockfile, test, or low-confidence credential pattern. | 0 |
| BLOCK | The scan found a blocking change or could not complete its coverage. | 1 |
| Error | The command could not produce a verdict. | 2 |

The scan compares commits. Commit the changes you want included. Omit
`--no-passport` to save the unsigned JSON and Markdown evidence in `.notari/`.
Run `notari explain` to see the findings and suggested fixes.

## Add it to GitHub

Copy the [scan workflow](docs/scan-workflow.yml) into
`.github/workflows/notari-scan.yml` on your default branch. It fetches the
candidate commit for inspection and posts `notari/scan` to the PR head.
Follow the [GitHub setup in the quickstart](docs/QUICKSTART.md#github-actions)
to verify the status and set it as required. Repositories with GitHub Actions
event restrictions may need a workflow-specific policy.

## Signed change control

Run `notari init` to generate keys, sign an initial perimeter, and write a
workflow. Use `notari guard` to set the standing boundaries, `notari begin`
to sign a task and its allowed paths, and `notari verify --strict` with the
trusted approver key to check a change. A configured gate signing key signs the
resulting Change Passport. A reviewer can use `notari verify-passport` with
the trusted gate public key and the expected PR head to verify that evidence.
The [signed quickstart](docs/QUICKSTART.md#install) walks through this setup.

## Local hooks and audit

The optional Claude Code and Cursor hooks inspect supported tool requests
before execution. They can ask for approval or block a request and record the
decision. Use `notari doctor` to check your setup, `notari audit show` to inspect
recorded decisions, and `notari audit verify` to check the local audit chain.
The CLI sends no telemetry by default.

The [security model](docs/SECURITY-MODEL.md) describes the rule coverage, key
placement and local-hook limits. A scan PASS describes the checks applied to
the Git change. Human review remains necessary for the behavior of the code.
Keep private keys separate from an agent's working environment.

## Releases and security

The package is available on [PyPI](https://pypi.org/project/notari/) through
Trusted Publishing. GitHub builds publish provenance attestations. The
[security policy](SECURITY.md) explains how to report a vulnerability privately,
and the [changelog](CHANGELOG.md) records fixes and limitations.

See [contributing](CONTRIBUTING.md) for development and [testing](docs/TESTING.md)
for verification. The code is available under the [MIT license](LICENSE).
