gitvouch
Stop AI coding agents from marking tasks "done" without proof.
gitvouch is a zero-daemon, Git-native CLI and GitHub Action for locking acceptance criteria, enforcing evidence-gated task verification, and maintaining auditable repository memory across Claude Code, Codex CLI, Cursor, and human sessions.
- No local daemon, no hidden Git sync branch, no database, no SaaS dashboard, no LLM-as-judge.
- One runtime dependency (
jsonschema). Works cleanly inside everygit worktreeand CI runner. - Tamper-evident acceptance criteria: transitioning a task to
readyfreezes anacceptance_criteria_snapshotinto an append-only event file. If an agent quietly weakens a requirement later,gitvouch checkfails closed. - Evidence-gated
verified: a task cannot enterverifiedunless every acceptance criterion has non-expired, applicablepassevidence with real provenance (commit,command,exit_code,ci_job,artifact_sha256). - Real
verification_debt: separates implemented work from verified work by replaying immutable events instead of trusting self-reported checkboxes.
Why This Exists
After months of running Codex CLI and Claude Code on real infrastructure-as-code repositories, two failure modes kept repeating:
- The self-closing loop: an agent implements a change, skips or partially runs checks, and marks the task
done, gaslighting the next session into building on broken assumptions. - Silent criteria drift & stale memory: an agent edits
TASKS.mdto fit what it actually built, or updates prose docs while machine-readable state silently goes stale.
Markdown checklists don't enforce invariants. Heavy issue trackers with background sync daemons break across Git worktrees. gitvouch puts a thin, deterministic Draft 2020-12 JSON Schema + event-replay contract directly in .gitvouch/, verifiable offline in milliseconds.
60-Second Walkthrough
Requires Python 3.11+.
# 1. Initialize .gitvouch/ and add the governance block to AGENTS.md
uvx gitvouch init --profile infrastructure
# 2. Define a task with explicit acceptance criteria
uvx gitvouch task new \
--title "Add read-only drift supervision" \
--scope "Daily OpenTofu plan receipts + independent watchdog" \
--weight 3 \
--criterion "Unit tests cover missing-receipt and exit-2 alerts" \
--criterion "Ruff lint passes with zero warnings"
# 3. Freeze acceptance criteria & weight into an immutable event snapshot
uvx gitvouch task ready T-001
uvx gitvouch task start T-001
uvx gitvouch task implement T-001
# 4. Try to mark verified WITHOUT proof -> REFUSED!
uvx gitvouch task verify T-001
# error: Verification gate REFUSED T-001 -> verified. Missing valid passing evidence:
# - AC-1: Unit tests cover missing-receipt and exit-2 alerts (no evidence recorded)
# - AC-2: Ruff lint passes with zero warnings (no evidence recorded)
# 5. Capture real execution proof (records exit code, git HEAD, dirty flag, output SHA-256)
uvx gitvouch evidence run T-001 --criterion AC-1 --cmd "python3 -m unittest discover -s tests"
uvx gitvouch evidence run T-001 --criterion AC-2 --cmd "uvx ruff check ."
# 6. Now verification passes, and CI can replay the entire history offline
uvx gitvouch task verify T-001
uvx gitvouch status
uvx gitvouch check
If anyone (human or agent) later edits .gitvouch/control/tasks/T-001.json to weaken AC-1 or forge state: "verified" without valid events/evidence:
gitvouch check FAILED:
- Task T-001 acceptance criteria were modified after entering ready (tamper detected vs snapshot in EVT-002).
Repository Layout
Everything lives inside .gitvouch/ as plain, human-reviewable JSON and Markdown:
.gitvouch/
├── config.json # Project contract, enabled layers, freshness threshold
├── control/
│ ├── project.json # Project metadata + milestone list
│ ├── milestones/M-001.json # Milestone membership & completion gate
│ ├── tasks/T-001.json # Current task state (must match event replay)
│ ├── events/T-001/20261204T120000Z--EVT-001.json # Append-only immutable lifecycle events
│ └── evidence/T-001/E-001.json # Bounded verification evidence + provenance
└── memory/
├── state_snapshot.json # Machine-readable durable facts + last_reviewed
├── current_state.md # Human-readable current facts (synced with last_reviewed)
├── decisions.md # Architecture / operational decisions (ADRs)
├── operation_log.md # Append-only chronology (`## YYYY-MM-DD`)
└── runbook.md # Repeatable operating procedures
AGENTS.md # Canonical agent entrypoint
You can enable both layers (--mode full, default) or adopt either layer independently (--mode control or --mode memory).
Enforce in CI (GitHub Actions)
Drop four lines into .github/workflows/ci.yml to block PRs with tampered criteria, unverified claims, broken event replays, or out-of-sync memory:
- uses: actions/checkout@v4
- uses: JacobYZ/gitvouch@v0.1.0
with:
strict-warnings: "false"
Agent Skill Integration
Copy skill/gitvouch/SKILL.md into your Claude Code, Codex CLI, Cursor, or Antigravity skills directory so agents automatically follow the startup, evidence-capture, and check loop.
How gitvouch Compares
| Capability | AGENTS.md |
beads (bd) |
spec-kit |
gitvouch |
|---|---|---|---|---|
| Zero daemon / zero hidden sync branches | Yes | No (sync branch / DB) | Yes | Yes |
| Works out-of-the-box in Git worktrees | Yes | Needs workarounds | Yes | Yes |
Immutable acceptance-criteria snapshot at ready |
No | No | No | Yes |
Evidence-gated verified with expiry & SHA-256 provenance |
No | No | No | Yes |
Deterministic implemented vs verified (verification_debt) |
No | No | No | Yes |
| Durable operational memory with cross-file freshness sync | No | No | No | Yes |
When NOT to Use gitvouch
Be honest about overhead:
- Throwaway prototypes or 1-file scripts: a Markdown checklist or GitHub Issue is faster.
- Teams wanting a rich web UI / Kanban board:
gitvouchis deliberately a Git-native contract and CLI, not a Jira replacement. - Projects that want an LLM to judge whether code looks "good":
gitvouchonly performs deterministic, offline structural and provenance verification.
Core Commands
| Command | Purpose |
|---|---|
gitvouch init |
Initialize .gitvouch/ (--mode full|control|memory) and update AGENTS.md |
gitvouch milestone add |
Create a new milestone and register it in project.json |
gitvouch task new |
Create a proposed task with acceptance criteria and initial task_created event |
gitvouch task ready <ID> |
Validate verified deps & freeze acceptance_criteria_snapshot |
gitvouch task start|implement|verifying <ID> |
Advance task lifecycle via immutable events |
gitvouch task verify <ID> |
Evidence-gated transition to verified (fails closed if any criterion lacks valid proof) |
gitvouch task block|unblock <ID> |
Add/resolve blockers (active blockers prevent forward transitions) |
gitvouch evidence run <ID> --criterion AC-1 --cmd "..." |
Run real command and store exit code, git SHA, dirty status, and output SHA-256 |
gitvouch evidence add <ID> ... |
Record external CI/manual provenance evidence with optional --expires-days |
gitvouch memory review --note "..." |
Atomically refresh last_reviewed across snapshot, current_state.md, and operation_log.md |
gitvouch status [--json] |
Show implemented %, verified %, verification_debt, and task evidence coverage |
gitvouch check [--strict-warnings] [--json] |
Full offline schema, replay, DAG, evidence-gate, and memory consistency check |
Development
python3 -m pip install -e .
python3 -m unittest discover -s tests -v
uvx ruff check src tests
License
Metadata
Release files for gitvouch 0.1.0
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 | Actions |
|---|---|---|---|---|
| gitvouch-0.1.0.tar.gz | 31.0 kB | With provenance | Details for gitvouch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitvouch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gitvouch-0.1.0-py3-none-any.whl |
Total release size: 60.6 kB
Release files / gitvouch-0.1.0.tar.gz
| Download URL | gitvouch-0.1.0.tar.gz |
|---|---|
| Size | 31.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90a795e254921c063747a0768fa51c406db5110f5af3ebb4339438f932e72d2f
|
|
BLAKE2b-256 checksum How to use checksums |
f9dca5d1813913ef4521db8028c8cf68c5259955f4cff17a3f67547a11e3c4b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 4, 2026.
Transparency logRelease files / gitvouch-0.1.0-py3-none-any.whl
| Download URL | gitvouch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93ec4af6a552fb600bc2d5724865316ddb196a376451e16ab854fe414d958cb0
|
|
BLAKE2b-256 checksum How to use checksums |
9aa39d17ccb6acf5c70db63d340695fff91c0646d1d3940de798a5fbae9429a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 4, 2026.
Transparency logSecurity for gitvouch 0.1.0
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
Both files in this release have been uploaded with provenance metadata.
Attestation for gitvouch-0.1.0.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 Dec 4, 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.