Skip to main content

A lightweight local CLI acceptance gate for AI-generated engineering work

Project description

prove-it-ai-gate

Don't trust agent output. Accept evidence.

CI Python License

A lightweight local CLI acceptance gate for AI-generated engineering work. Checks agent transcripts, evidence folders, workspace state, and validation outputs before accepting AI-generated work.

Warning: This tool checks evidence quality, not absolute correctness. It is not a substitute for human review on high-risk changes.

Project Status

prove-it-ai-gate is currently an early beta.

Stable core:

  • transcript-check
  • workspace-check
  • evidence-check
  • accept

Experimental:

  • reuse-scan
  • capture
  • wiki upload
  • evidence cleanup/archive

Use the stable core for local dogfooding. Treat experimental features as evolving APIs.

Installation

pip install prove-it-ai-gate

Or from source:

git clone https://github.com/hrishikesh-thakre/prove-it-ai-gate.git
cd prove-it-ai-gate
pip install .

Requires Python 3.9+.

Quick Start

ai-gate init
ai-gate transcript-check --transcript transcript.jsonl
ai-gate workspace-check --repo ./my-project
ai-gate evidence-check --evidence ./evidence --task-type audit

# Full acceptance gate
ai-gate accept \
  --repo ./my-project \
  --evidence ./evidence \
  --transcript transcript.jsonl \
  --task-type audit

# Scan a knowledge wiki before starting work (experimental)
ai-gate reuse-scan --brief brief.md --local-wiki ./wiki-exports

# Capture reusable learnings after acceptance (experimental)
ai-gate capture --evidence ./evidence --output ./learnings

Decision States

Decision Meaning
ACCEPT Required evidence exists and checks passed
ACCEPT_WITH_CONDITIONS Mostly acceptable, but follow-ups remain
REJECT Evidence proves a failure or unacceptable risk
BLOCKED Required evidence is missing or invalid

Built-in Checks

Check What it catches
transcript_truncation_check Agent used truncated tool output without replacement evidence
workspace_hygiene_check Agent modified target repo during read-only task, scratch files in repo
evidence_folder_schema_check Missing, empty, or placeholder evidence files
confidence_claim_check Unsupported high-confidence claims, heuristic overclaim
scope_completeness_check Bare "Complete" claims without scoped corpus definition
heuristic_extraction_check Filename/keyword matching claimed as full coverage
closeout_transcript_crosscheck Closeout claims "no changes" but transcript shows write events
evidence_inventory_integrity Inflated inventory counts vs transcript tool outputs
evidence_validation_integrity Test/lint output mismatch with closeout claims
evidence_depth Shallow/minimal evidence stubs
git_status_authenticity Fabricated git status not matching transcript

Dogfood

Run automated dogfood cases to verify the gate catches known failure patterns:

python scripts/run_dogfood.py

See dogfood/dogfood_report.md for results and examples/dogfood/ for test case fixtures.

Policy Packs

Three built-in policies in prove_it_ai_gate/policies/:

Policy Use Case
read_only_audit.yml Audits, reviews, listings, evaluations
code_change.yml Code modifications with tests and validation
corpus_audit.yml Full-corpus scans with extraction artifacts

Evidence Folder Contract

Every agent task should produce:

evidence/
  brief.md, plan.md, commands.jsonl, changed_files.txt
  closeout.md, risks.md
  validation/test_output.txt, lint_output.txt, typecheck_output.txt, audit_guard.txt
  artifacts/inventory.json, extracted_findings.json
  workspace/git_status_before.txt, git_status_after.txt, diff_summary.patch
  transcript.jsonl

See docs/evidence-folder-contract.md for requirements by task type.

Docs

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prove_it_ai_gate-0.3.2.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prove_it_ai_gate-0.3.2-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file prove_it_ai_gate-0.3.2.tar.gz.

File metadata

  • Download URL: prove_it_ai_gate-0.3.2.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for prove_it_ai_gate-0.3.2.tar.gz
Algorithm Hash digest
SHA256 b33c07a18ef8b7000a703bb61a807d518268b41627ed3c9b58288d17796430a6
MD5 f8f179b59c5cfeee351eff2c05c7d1d9
BLAKE2b-256 c6261241f99a6058f09d936954feec430ecac9d6d418280773a98188e0515ad4

See more details on using hashes here.

Provenance

The following attestation bundles were made for prove_it_ai_gate-0.3.2.tar.gz:

Publisher: release.yml on hrishikesh-thakre/prove-it-ai-gate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prove_it_ai_gate-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for prove_it_ai_gate-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df54569e620b614e8380e195497a85f3cc946223e3a13b1fe91acb077cee30d6
MD5 7fa67fab2ed4dc9d95fea3c8a18c745b
BLAKE2b-256 fbbe4cda2acc980395fc17f78980e53bc6d42fca3b2dd8198324b3061e5c318e

See more details on using hashes here.

Provenance

The following attestation bundles were made for prove_it_ai_gate-0.3.2-py3-none-any.whl:

Publisher: release.yml on hrishikesh-thakre/prove-it-ai-gate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page