Open-source guardrails for AI-assisted development. Three small gates, plus an optional umbrella that runs them together, work as a pre-commit hook on your machine and as a GitHub Action on every pull request, and answer three questions about a change before it lands: what did it add, what did it leak, and was it what you asked for.
The umbrella is conductor (Marketplace · npm). It runs the three gates below, plus gitleaks and osv-scanner if you install them, from one policy file, and writes one SARIF log. It is optional; each gate runs on its own.
| Gate | Question it answers | Install |
|---|---|---|
| dep-guard | Is this new dependency a typosquat, a hallucinated name, a tampered lockfile entry, or an install script? | Marketplace · npm |
| vault-guard | Is there a credential in this diff? | Marketplace · npm |
| intent-guard | Does this change stay inside the intent contract that was frozen for it? | Marketplace · npm |
See it run: conductor-proof keeps six pull requests open, one planted problem each, with an ordinary gitleaks and osv-scanner job beside conductor. The checks on each pull request are the evidence.
npm install -g @vaultcompass/conductor @vaultcompass/dep-guard @vaultcompass/vault-guard @vaultcompass/intent-guard
conductor init --dry-run # prints every file it would write, writes nothing
conductor init --hook # writes .guardrails.yaml and one pre-commit hookThe hook runs every enabled gate on each commit and, when the commit is clean, prints one summary line, plus one status line per gate on stderr. Each gate can also be installed and run on its own.
name: guardrails
on: [pull_request, push]
permissions:
contents: read
security-events: write
jobs:
gates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install gitleaks and osv-scanner
run: |
set -euo pipefail
bin="$RUNNER_TEMP/external-gates"
mkdir -p "$bin"
cd "$RUNNER_TEMP"
curl -sSLO https://github.com/gitleaks/gitleaks/releases/download/v8.30.1/gitleaks_8.30.1_linux_x64.tar.gz
echo "551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb gitleaks_8.30.1_linux_x64.tar.gz" | sha256sum -c -
tar -xzf gitleaks_8.30.1_linux_x64.tar.gz -C "$bin" gitleaks
curl -sSL -o "$bin/osv-scanner" https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_amd64
echo "ca69b3d3cd08f889a49dc0a383122f71cc528b83803671df5fd874d97485b108 $bin/osv-scanner" | sha256sum -c -
chmod +x "$bin/osv-scanner"
echo "$bin" >> "$GITHUB_PATH"
- uses: vaultcompasshq/conductor@9a41d094d1a1bfe479d2795e0b24f2ea56865637 # v0.19.1
- uses: github/codeql-action/upload-sarif@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1
if: always()
with:
sarif_file: conductor.sarifOne pin for the four npm packages, not four. The action tag decides which
version of each is installed, and those defaults are the versions that tag
was tested with, so there is no version input to set here. Setting a
version input creates a second pin that Dependabot cannot see: it moves
the tag and leaves the input untouched, and the two drift apart silently.
The install step above is separate. It is required when the policy enables the secrets-history and vulnerabilities gates, and it pins gitleaks and osv-scanner by version and checksum rather than by the action tag.
The Action installs those versions outside the repository it is judging. On a pull request, every gate reads its rules from the base branch, so a change cannot turn off the check that exists to catch it. Findings land in the pull request's code scanning tab through SARIF.
AI coding assistants are fast and confident, and they make three kinds of mistake that a reviewer skimming a large diff will miss: they add packages that do not exist or are not the one you meant, they paste credentials into files that get committed, and they drift from the task you gave them. Each gate is narrow on purpose, fast enough to sit in a pre-commit hook, works offline by default, and installs with one command.
Built and maintained by Vault & Compass LLC.
Security reports: [email protected]. See each repository's SECURITY.md.