oracle-gate (CLI)
The reference implementation of The Oracle Gate — a framework for testing AI-built code. This tool does the parts a machine can do honestly, and refuses to fake the parts it can't.
What it does today
oracle-gate review <file>— the cross-model review gate (G5). Sends an artifact to a model for adversarial review. Model-agnostic: pick any provider; adding a model is one small adapter. Framework-faithful: pass--builder-lineageand it warns if your reviewer shares the builder's lineage (which would defeat the point).oracle-gate checklist --tier N— emits the per-tier evidence-package skeleton: which gates apply, which the tool can check, and which require human sign-off. Human-judgment gates (requirements, accountability, evals) are never auto-passed — they render as "evidence required."oracle-gate schema— the machine-readable gate/profile schema (JSON), so other tools can build against the framework.oracle-gate evidence --tier N— a fillable TOML evidence-package template for a tier.oracle-gate conformance <evidence.toml> [--repo PATH]— checks a filled evidence package against the profile it claims. It enforces three rising tiers of rigor — none of which attests the software is correct: (1) completeness — a machine gate marked "met" must attach a report; a human gate must name an approver + artifact + date; anything short needs a valid time-boxed waiver; (2) declared floor — metric gates (coverage, mutation score) must declare avaluethat meets the profile floor, so a bad-score report no longer reads as conformant; (3) version binding — the package must carry acommit_sha(an ancestor ofHEADin--repo, default cwd), agenerated_at, and asha256per attached artifact that matches the file on disk, so stale or borrowed evidence can't pass. Whether the declared numbers are true, and whether the code is correct, stay a human's job. Exit: 0 = pass, 1 = fail, 2 = error (CI-friendly).oracle-gate providers/oracle-gate ping— list model backends / check auth.
Deterministic scanner gates (running mutation testing, SCA/dependency checks, secret scanning behind
an oracle-gate check command) are a planned later phase.
Install
pip install oracle-gate
Requires Python 3.11+. The core is stdlib-only; oracle-gate check shells out to
mutmut and pytest-cov, so install oracle-gate[check] if you want that command.
For development, from this tool/ directory:
pip install -e ".[dev]"
Keys (for the review gate)
Store a provider key at ~/.config/oracle-gate/<provider>.key (chmod 600) or set its env var
(OPENAI_API_KEY, ANTHROPIC_API_KEY).
oracle-gate ping --provider openai
oracle-gate review my-notes.md --provider openai --builder-lineage anthropic
oracle-gate checklist --tier 3 > EVIDENCE.md
Guardrail: review sends the artifact to an external model. Non-sensitive artifacts only —
never route sensitive, controlled, or proprietary data to an unapproved commercial model.
Dogfooding
This tool is tested with the framework it implements: its pure decision logic is mutation-tested and mutation-clean (see MUTATION.md — 411 killed; every pass/fail branch has no surviving killable mutant; residual survivors are documented prose/equivalents). Its checklist and evidence templates are pinned with golden-approval tests, and the version-binding IO is covered by a live git integration test. It passes its own G2 gate.
License
MIT (the code). The framework prose is CC BY 4.0. See the repository root.
Metadata
Release files for oracle-gate 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| oracle_gate-0.1.1.tar.gz | 50.8 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oracle_gate-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.4 kB
Release files / oracle_gate-0.1.1.tar.gz
| Download URL | oracle_gate-0.1.1.tar.gz |
|---|---|
| Size | 50.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b17e928e874f4ab91b713af5702a8020fa6415739685e0792f4cb55b375cf22b
|
|
BLAKE2b-256 checksum How to use checksums |
dff62fc349fdb314c9e38900a9af246f484bbe070779e7099b95aeca136db664
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 25, 2026.
Transparency logRelease files / oracle_gate-0.1.1-py3-none-any.whl
| Download URL | oracle_gate-0.1.1-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62610ccf89c74d9c008eb20cdc47eafb1a44bf8d88dbfa08f3b99f15eaa0057b
|
|
BLAKE2b-256 checksum How to use checksums |
7e96d7bac3091f9b9981c72c69282cea98f41112e872e0b7ce54a9a18e42995b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 25, 2026.
Transparency logSecurity for oracle-gate 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for oracle_gate-0.1.1.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 Jul 25, 2026.
Transparency logA 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.