Reference CLI for The Oracle Gate — a framework for testing AI-built code. Model-agnostic cross-model review + per-tier evidence checklist.
Project description
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 -e ".[dev]" # from this tool/ directory
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oracle_gate-0.1.0.tar.gz.
File metadata
- Download URL: oracle_gate-0.1.0.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c3d9234075d20c2dcb3fd1ef156f2edef8b85349ad2ba966b82298ae7e9c11c
|
|
| MD5 |
fb179bbb9450c2ebc949d1a8c0e2f132
|
|
| BLAKE2b-256 |
003d9e32ef929b85948f40d6f6ab04b3acf7616f3505e1f0740af8a3f1327d55
|
Provenance
The following attestation bundles were made for oracle_gate-0.1.0.tar.gz:
Publisher:
publish.yml on Jott2121/oracle-gate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oracle_gate-0.1.0.tar.gz -
Subject digest:
4c3d9234075d20c2dcb3fd1ef156f2edef8b85349ad2ba966b82298ae7e9c11c - Sigstore transparency entry: 2252559633
- Sigstore integration time:
-
Permalink:
Jott2121/oracle-gate@5c5acdb2ad4dc221f330f24bb9c8d5944350567d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Jott2121
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c5acdb2ad4dc221f330f24bb9c8d5944350567d -
Trigger Event:
release
-
Statement type:
File details
Details for the file oracle_gate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oracle_gate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c86dbc81e63765c5c1b0d1492fd1ec681d691044a8d64770720fdb76dd0660df
|
|
| MD5 |
130d34a72eefee6b8e594ed3861e7670
|
|
| BLAKE2b-256 |
00a7f30d5d31a354841ef39f94a0499e203df32e3412902e901344f41541b323
|
Provenance
The following attestation bundles were made for oracle_gate-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Jott2121/oracle-gate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oracle_gate-0.1.0-py3-none-any.whl -
Subject digest:
c86dbc81e63765c5c1b0d1492fd1ec681d691044a8d64770720fdb76dd0660df - Sigstore transparency entry: 2252559898
- Sigstore integration time:
-
Permalink:
Jott2121/oracle-gate@5c5acdb2ad4dc221f330f24bb9c8d5944350567d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Jott2121
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5c5acdb2ad4dc221f330f24bb9c8d5944350567d -
Trigger Event:
release
-
Statement type: