Skip to main content

exitzero

AI가 “끝났다”고 말해도, 검사를 통과하기 전에는 끝난 것이 아닙니다.

exitzero는 저장소의 정책을 실행하는 작은 개발 도구입니다. 같은 TOML 정책으로 로컬 CLI, Git 훅, CI를 검사하고 매번 JSON 실행 영수증을 남깁니다. 사용자는 하나의 명령을 쓰고, 내부는 작은 코어와 플러그인으로 나뉩니다.

An agent saying “done” is not evidence. Run the policy, check the exit code, and keep the receipt. This MVP checks Python code and agent configuration. Explicit command checks can run your existing tools for any language.

Try it without downloading dependencies

Python 3.11 or newer is required. Runtime and tests use only the standard library.

export PATH="$PWD/bin:$PATH"
mkdir /tmp/exitzero-demo
cd /tmp/exitzero-demo
exitzero init
exitzero check
exitzero lint-config
exitzero report --format json

init creates a starter TOML policy, a managed section in AGENTS.md, and ignore entries for local receipts and Python caches. In an empty repository it also creates a tiny Python sample. It preserves existing policy files. The starter policy checks syntax only: add project-specific checks before using it as a merge gate. A syntax pass is not a claim that your application works.

For a Python repository, init can write the common static checks and your existing test/review commands in one step. Each command is parsed into argv and later runs with shell=False; {python} means the Python interpreter running exitzero.

exitzero init --profile python \
  --source-root src --source-root tests \
  --allow-module numpy --allow-module pytest \
  --test-command '{python} -m pytest' \
  --review-command '{python} scripts/review_contract.py'

--source-root, --allow-module, and --review-command can be repeated. Quote literal arguments that contain punctuation; shell pipelines, redirects, and other control operators are rejected. init only records commands, so it does not execute them. Keep credentials out of command arguments because the policy stores the resulting argv. Existing policies are never overwritten, and generation options cannot be combined with init --sync. Without --profile python, init remains the syntax-only compatibility starter. Generated command checks fingerprint Python files for the receipt. If a test or review command depends on JSON, YAML, Markdown, or another non-Python input, edit that check's paths in the policy to include those files.

Run the included example, which exercises all four check types:

./bin/exitzero --root examples/sample check
./bin/exitzero --root examples/sample lint-config

For a conventional installation, use a virtual environment and python -m pip install .. Building uses setuptools; runtime has no third-party dependencies. If setuptools and wheel are already available, an offline editable install is python -m pip install --no-index --no-build-isolation --no-deps -e .. The checkout launcher above needs no build tools.

Put review requirements in the policy

version = 1
plugins = ["exitzero_verify", "exitzero_harness"]

[[checks]]
id = "syntax"
kind = "python.syntax"
paths = ["src/**/*.py", "tests/**/*.py"]

[[checks]]
id = "imports"
kind = "python.imports"
paths = ["src/**/*.py", "tests/**/*.py"]
[checks.options]
roots = ["src", "."]
allow_modules = []

[[checks]]
id = "test-quality"
kind = "python.test-quality"
paths = ["tests/test_*.py"]

[[checks]]
id = "review-contracts"
kind = "command"
paths = ["src/**/*.py", "tests/**/*.py"]
[checks.options]
argv = ["{python}", "-m", "unittest", "discover", "-s", "tests", "-v"]
timeout = 30

[harness]
config_files = []
rules = [{id = "error-text", value = "Tests assert the exact public error text."}]

After editing the policy, run exitzero init --sync. Only the generated section of AGENTS.md changes. Its fingerprint covers the complete parsed policy, so changing check options also creates detectable drift. Text outside the section stays yours. Harness rules are documentation and conflict detection, not semantic enforcement: express exact messages, types and result ordering in executable tests. See the sample.

Check What v1 detects
python.syntax Python that cannot be parsed
python.imports Unresolved modules and missing statically declared local module symbols
python.test-quality No test cases, empty tests, obvious constant-only assertions
command A configured test/lint command fails or exceeds its timeout
Harness lint Generated AGENTS drift, installed-hook drift, explicit JSON config shape errors, repeated/conflicting rule IDs

Import analysis does not execute imported code. It is intentionally conservative and does not prove arbitrary dynamic exports, package loading or third-party API signatures. allow_modules explicitly trusts listed external module names. Test-quality analysis detects obvious problems; run real tests as well. Natural language contradictions in arbitrary AGENTS prose or Cursor rule files are not understood by v1.

Commands and outcomes

exitzero init
exitzero init --sync
exitzero check --format json
exitzero lint-config --format json
exitzero hooks install --adapter cursor
exitzero hooks install --adapter pre-commit
exitzero hooks run --slot CI --format json
exitzero report --format json
exitzero plugin harness-eval   # Explicitly unavailable in v1: exit 2.

Global --root and --policy options go before the subcommand. check runs configuration linters and verification checks. lint-config never executes verification commands.

Exit code Meaning
0 All configured checks passed
1 A check found a violation
2 Invalid policy, missing plugin, execution error, or receipt could not be written

Every check, lint-config, and hook gate writes a unique JSON receipt under .exitzero/runs/, including failures and malformed policies. If storage fails, the command exits 2 and reports receipt: null; it cannot claim success. --format json prints the same machine-readable result. report reads the latest receipt; it does not run a fresh check. See receipt schema.

Receipts include check IDs, findings, exit code, policy hash, hashes of selected inputs, plugin names and timing. They do not contain source code, environment variables, hook input, command arguments or command output. Command output is discarded; rerun a failing command directly to debug it. Receipts identify the declared input selection, not every dependency of arbitrary commands. They are local evidence, not signed or tamper-proof attestations.

Local hooks and CI

See hook setup. Cursor uses a stop hook by default: failures request one follow-up repair turn. This is feedback, not a merge barrier. Git pre-commit and CI enforce exit codes. The generic hook command has the same 0/1/2 contract as check; Cursor translates results to its JSON protocol.

Run the repository's automated milestone runner:

python3 scripts/ci.py

It runs the repository gate, config lint, sample gate and ten pass/fail fixtures, and writes .exitzero/ci-results.json plus logs. The GitHub workflow runs this same script and uploads .exitzero/ evidence even on failure. Configure the CI job as a required branch check in your hosting service; this repository does not change branch protection settings.

The riskgate pilot applies the same gate to a pinned real repository. It checks a passing baseline and four independent faults, including an empty test that the upstream test runner still accepts. Its runner preserves the original checkout and records all gate receipts. The vecdiff pilot adds external NumPy dependencies and independent numeric review contracts. Both pilots use isolated source copies.

Trust and scope

Policies, selected plugins and command checks are trusted executable configuration. Review them before running an unfamiliar repository. Static checks and config lint make no network requests. Command checks can run arbitrary local programs; choose offline commands to keep the whole gate offline. This is not an execution sandbox or the future MCP allowlist gateway. Config files are read only when explicitly selected (and the installed Cursor file is fingerprinted); do not include credential files. Known credential-like paths and symlink targets are rejected. Path filtering is not a universal secret detector.

There is no cloud service, model hosting, model training, full agent evaluation, proxy gateway, PR publisher or automatic rollback in v1.

Structure and contributing

packages/core              policy, CLI, hook slots, plugin loader, receipts
packages/plugin-verify     verification rules and command checks
packages/plugin-harness    configuration lint; eval command stub
packages/plugin-mcp-gateway  v1.2 interface stub
packages/plugin-ledger       v1.3 interface stub
fixtures/                  ten positive and negative repository cases
examples/sample/           runnable error-text/type/order contract example

Read Plugin API, roadmap, and design references. No project code was copied from prior art. Run focused regression tests with python3 scripts/run_tests.py; run the complete local acceptance sequence with python3 scripts/ci.py. Verify a built package and real Git-hook behavior with the offline release runner. See release notes for the candidate scope. License: MIT.

Metadata

Release files for exitzero 0.1.0

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

Source distribution (sdist)

Source distribution for exitzero 0.1.0
File Size Uploaded Provenance Actions
exitzero-0.1.0.tar.gz 33.4 kB With provenance Details for exitzero-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 62.8 kB

Release files / exitzero-0.1.0.tar.gz

Download URL exitzero-0.1.0.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b1e96b32a5001a33719c064e0a7079b6b2be4089eac97c133bae7c0630e4ec27
BLAKE2b-256 checksum
How to use checksums
295488c43232bb9c442a3e04596fdf4ee565ac3f7bfa2cabedc33c7d92c177d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / exitzero-0.1.0-py3-none-any.whl

Download URL exitzero-0.1.0-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9659ddaa8ffa18cb86276cf62858df912fcef7e511326f888f146c04f0b3343c
BLAKE2b-256 checksum
How to use checksums
b636f09f3e08adf90ca067b6715996eefc35cc3e230ce968755a6b1dd3e47f60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for exitzero 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for exitzero-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

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