Preflight
AI-Assisted Security Review • Deterministic Release Confidence

Preflight is a security assurance platform and deterministic release gate engineered for teams building and shipping AI-generated and AI-assisted software.
"AI can discover. Humans can approve. Preflight decides from deterministic evidence."
Preflight is built to answer one critical release question:
Are we ready to ship this exact code, backed by reproducible, tamper-proof evidence?
Quickstart •
Key Features •
Architecture •
Lifecycle Workflow •
MCP & Agent Integration •
Documentation
💡 Why Preflight?
Modern engineering teams increasingly rely on LLMs and autonomous coding agents to author code. However, delegating software release authority to probabilistic AI introduces unpredictable gates, hallucinated assurances, and unverified security risks.
Preflight bridges this gap by decoupling exploratory discovery from release authority:
| Dimension | Autonomous AI Agents | Traditional Static Scanners | Preflight |
|---|
| Exploration & Context | High (deep semantic reasoning) | Low (rigid pattern matching) | Best of both: AI-assisted deep investigation |
| Release Decision | Probabilistic (unreliable gate) | Deterministic (noisy / rigid) | Strictly Deterministic (based on immutable evidence) |
| Evidence Lineage | None (chat logs / transient diffs) | Local report files | Content-addressed Evidence Graph |
| Remediation | Autonomous, unsupervised edits | Manual developer patching | Human-governed proposals & verified patches |
| Safety Invariant | AI decides if code is safe | Tool flags errors | AI is structurally prohibited from granting release |
⚡ Quickstart
1. Instant Run via uvx or pipx (Zero Install)
Run a deterministic security scan against your repository right now without installing anything:
# Using uvx (recommended)
uvx --from before-deploy preflight scan .
# Or using pipx
pipx run --spec before-deploy preflight scan .
2. Package Installation
Install via PyPI using your favorite package manager:
# Using uv
uv add --dev before-deploy
# Using pip
pip install before-deploy
CLI alias note: The CLI is available under both preflight (recommended) and before-deploy (backwards-compatible alias).
3. GitHub Actions CI/CD Integration
Enforce a deterministic security gate in your deployment pipeline:
name: Preflight Security Gate
on:
pull_request:
push:
branches: [main, master]
jobs:
security-gate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Preflight
run: pip install before-deploy
- name: Run Deterministic Security Gate
run: |
preflight scan . \
--policy rules/strict-ci-policy.yaml \
--output-dir reports/security-gate
- name: Upload Security Findings (SARIF)
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: reports/security-gate/report.sarif
4. Pre-commit Hook
Add Preflight to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/haytamAroui/preflight
rev: v1.0.0
hooks:
- id: preflight
🎯 Key Features