gitvouch 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gitvouch-0.1.0/LICENSE +21 -0
- gitvouch-0.1.0/PKG-INFO +190 -0
- gitvouch-0.1.0/README.md +164 -0
- gitvouch-0.1.0/pyproject.toml +63 -0
- gitvouch-0.1.0/setup.cfg +4 -0
- gitvouch-0.1.0/src/gitvouch/__init__.py +4 -0
- gitvouch-0.1.0/src/gitvouch/cli.py +381 -0
- gitvouch-0.1.0/src/gitvouch/core.py +131 -0
- gitvouch-0.1.0/src/gitvouch/ops.py +730 -0
- gitvouch-0.1.0/src/gitvouch/schemas/__init__.py +1 -0
- gitvouch-0.1.0/src/gitvouch/schemas/config.schema.json +35 -0
- gitvouch-0.1.0/src/gitvouch/schemas/event.schema.json +200 -0
- gitvouch-0.1.0/src/gitvouch/schemas/evidence.schema.json +44 -0
- gitvouch-0.1.0/src/gitvouch/schemas/milestone.schema.json +21 -0
- gitvouch-0.1.0/src/gitvouch/schemas/project.schema.json +20 -0
- gitvouch-0.1.0/src/gitvouch/schemas/state.schema.json +31 -0
- gitvouch-0.1.0/src/gitvouch/schemas/task.schema.json +74 -0
- gitvouch-0.1.0/src/gitvouch/verifier.py +687 -0
- gitvouch-0.1.0/src/gitvouch.egg-info/PKG-INFO +190 -0
- gitvouch-0.1.0/src/gitvouch.egg-info/SOURCES.txt +23 -0
- gitvouch-0.1.0/src/gitvouch.egg-info/dependency_links.txt +1 -0
- gitvouch-0.1.0/src/gitvouch.egg-info/entry_points.txt +2 -0
- gitvouch-0.1.0/src/gitvouch.egg-info/requires.txt +1 -0
- gitvouch-0.1.0/src/gitvouch.egg-info/top_level.txt +1 -0
- gitvouch-0.1.0/tests/test_gitvouch.py +270 -0
gitvouch-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jake Zhang
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
gitvouch-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: gitvouch
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Zero-daemon, Git-native acceptance-criteria locking, evidence-gated verification, and auditable repo memory for AI coding agents.
|
|
5
|
+
Author: Jake Zhang
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/JacobYZ/gitvouch
|
|
8
|
+
Project-URL: Repository, https://github.com/JacobYZ/gitvouch
|
|
9
|
+
Project-URL: Issues, https://github.com/JacobYZ/gitvouch/issues
|
|
10
|
+
Keywords: ai-agents,coding-agents,claude-code,codex,agents-md,verification,git,json-schema,governance
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
20
|
+
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: jsonschema<5,>=4
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# gitvouch
|
|
28
|
+
|
|
29
|
+
**Stop AI coding agents from marking tasks "done" without proof.**
|
|
30
|
+
|
|
31
|
+
`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.
|
|
32
|
+
|
|
33
|
+
- **No local daemon, no hidden Git sync branch, no database, no SaaS dashboard, no LLM-as-judge.**
|
|
34
|
+
- **One runtime dependency (`jsonschema`).** Works cleanly inside every `git worktree` and CI runner.
|
|
35
|
+
- **Tamper-evident acceptance criteria:** transitioning a task to `ready` freezes an `acceptance_criteria_snapshot` into an append-only event file. If an agent quietly weakens a requirement later, `gitvouch check` fails closed.
|
|
36
|
+
- **Evidence-gated `verified`:** a task cannot enter `verified` unless every acceptance criterion has non-expired, applicable `pass` evidence with real provenance (`commit`, `command`, `exit_code`, `ci_job`, `artifact_sha256`).
|
|
37
|
+
- **Real `verification_debt`:** separates *implemented* work from *verified* work by replaying immutable events instead of trusting self-reported checkboxes.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Why This Exists
|
|
42
|
+
|
|
43
|
+
After months of running Codex CLI and Claude Code on real infrastructure-as-code repositories, two failure modes kept repeating:
|
|
44
|
+
|
|
45
|
+
1. **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.
|
|
46
|
+
2. **Silent criteria drift & stale memory:** an agent edits `TASKS.md` to fit what it actually built, or updates prose docs while machine-readable state silently goes stale.
|
|
47
|
+
|
|
48
|
+
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.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 60-Second Walkthrough
|
|
53
|
+
|
|
54
|
+
Requires **Python 3.11+**.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# 1. Initialize .gitvouch/ and add the governance block to AGENTS.md
|
|
58
|
+
uvx gitvouch init --profile infrastructure
|
|
59
|
+
|
|
60
|
+
# 2. Define a task with explicit acceptance criteria
|
|
61
|
+
uvx gitvouch task new \
|
|
62
|
+
--title "Add read-only drift supervision" \
|
|
63
|
+
--scope "Daily OpenTofu plan receipts + independent watchdog" \
|
|
64
|
+
--weight 3 \
|
|
65
|
+
--criterion "Unit tests cover missing-receipt and exit-2 alerts" \
|
|
66
|
+
--criterion "Ruff lint passes with zero warnings"
|
|
67
|
+
|
|
68
|
+
# 3. Freeze acceptance criteria & weight into an immutable event snapshot
|
|
69
|
+
uvx gitvouch task ready T-001
|
|
70
|
+
uvx gitvouch task start T-001
|
|
71
|
+
uvx gitvouch task implement T-001
|
|
72
|
+
|
|
73
|
+
# 4. Try to mark verified WITHOUT proof -> REFUSED!
|
|
74
|
+
uvx gitvouch task verify T-001
|
|
75
|
+
# error: Verification gate REFUSED T-001 -> verified. Missing valid passing evidence:
|
|
76
|
+
# - AC-1: Unit tests cover missing-receipt and exit-2 alerts (no evidence recorded)
|
|
77
|
+
# - AC-2: Ruff lint passes with zero warnings (no evidence recorded)
|
|
78
|
+
|
|
79
|
+
# 5. Capture real execution proof (records exit code, git HEAD, dirty flag, output SHA-256)
|
|
80
|
+
uvx gitvouch evidence run T-001 --criterion AC-1 --cmd "python3 -m unittest discover -s tests"
|
|
81
|
+
uvx gitvouch evidence run T-001 --criterion AC-2 --cmd "uvx ruff check ."
|
|
82
|
+
|
|
83
|
+
# 6. Now verification passes, and CI can replay the entire history offline
|
|
84
|
+
uvx gitvouch task verify T-001
|
|
85
|
+
uvx gitvouch status
|
|
86
|
+
uvx gitvouch check
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
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:
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
gitvouch check FAILED:
|
|
93
|
+
- Task T-001 acceptance criteria were modified after entering ready (tamper detected vs snapshot in EVT-002).
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Repository Layout
|
|
99
|
+
|
|
100
|
+
Everything lives inside `.gitvouch/` as plain, human-reviewable JSON and Markdown:
|
|
101
|
+
|
|
102
|
+
```text
|
|
103
|
+
.gitvouch/
|
|
104
|
+
├── config.json # Project contract, enabled layers, freshness threshold
|
|
105
|
+
├── control/
|
|
106
|
+
│ ├── project.json # Project metadata + milestone list
|
|
107
|
+
│ ├── milestones/M-001.json # Milestone membership & completion gate
|
|
108
|
+
│ ├── tasks/T-001.json # Current task state (must match event replay)
|
|
109
|
+
│ ├── events/T-001/20261204T120000Z--EVT-001.json # Append-only immutable lifecycle events
|
|
110
|
+
│ └── evidence/T-001/E-001.json # Bounded verification evidence + provenance
|
|
111
|
+
└── memory/
|
|
112
|
+
├── state_snapshot.json # Machine-readable durable facts + last_reviewed
|
|
113
|
+
├── current_state.md # Human-readable current facts (synced with last_reviewed)
|
|
114
|
+
├── decisions.md # Architecture / operational decisions (ADRs)
|
|
115
|
+
├── operation_log.md # Append-only chronology (`## YYYY-MM-DD`)
|
|
116
|
+
└── runbook.md # Repeatable operating procedures
|
|
117
|
+
AGENTS.md # Canonical agent entrypoint
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
You can enable both layers (`--mode full`, default) or adopt either layer independently (`--mode control` or `--mode memory`).
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Enforce in CI (GitHub Actions)
|
|
125
|
+
|
|
126
|
+
Drop four lines into `.github/workflows/ci.yml` to block PRs with tampered criteria, unverified claims, broken event replays, or out-of-sync memory:
|
|
127
|
+
|
|
128
|
+
```yaml
|
|
129
|
+
- uses: actions/checkout@v4
|
|
130
|
+
- uses: JacobYZ/gitvouch@v0.1.0
|
|
131
|
+
with:
|
|
132
|
+
strict-warnings: "false"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Agent Skill Integration
|
|
138
|
+
|
|
139
|
+
Copy [`skill/gitvouch/SKILL.md`](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.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## How `gitvouch` Compares
|
|
144
|
+
|
|
145
|
+
| Capability | `AGENTS.md` | `beads` (`bd`) | `spec-kit` | **`gitvouch`** |
|
|
146
|
+
| --- | --- | --- | --- | --- |
|
|
147
|
+
| Zero daemon / zero hidden sync branches | Yes | No (sync branch / DB) | Yes | **Yes** |
|
|
148
|
+
| Works out-of-the-box in Git worktrees | Yes | Needs workarounds | Yes | **Yes** |
|
|
149
|
+
| Immutable acceptance-criteria snapshot at `ready` | No | No | No | **Yes** |
|
|
150
|
+
| Evidence-gated `verified` with expiry & SHA-256 provenance | No | No | No | **Yes** |
|
|
151
|
+
| Deterministic `implemented` vs `verified` (`verification_debt`) | No | No | No | **Yes** |
|
|
152
|
+
| Durable operational memory with cross-file freshness sync | No | No | No | **Yes** |
|
|
153
|
+
|
|
154
|
+
### When NOT to Use `gitvouch`
|
|
155
|
+
|
|
156
|
+
Be honest about overhead:
|
|
157
|
+
- **Throwaway prototypes or 1-file scripts**: a Markdown checklist or GitHub Issue is faster.
|
|
158
|
+
- **Teams wanting a rich web UI / Kanban board**: `gitvouch` is deliberately a Git-native contract and CLI, not a Jira replacement.
|
|
159
|
+
- **Projects that want an LLM to judge whether code looks "good"**: `gitvouch` only performs deterministic, offline structural and provenance verification.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
## Core Commands
|
|
164
|
+
|
|
165
|
+
| Command | Purpose |
|
|
166
|
+
| --- | --- |
|
|
167
|
+
| `gitvouch init` | Initialize `.gitvouch/` (`--mode full\|control\|memory`) and update `AGENTS.md` |
|
|
168
|
+
| `gitvouch milestone add` | Create a new milestone and register it in `project.json` |
|
|
169
|
+
| `gitvouch task new` | Create a `proposed` task with acceptance criteria and initial `task_created` event |
|
|
170
|
+
| `gitvouch task ready <ID>` | Validate verified deps & freeze `acceptance_criteria_snapshot` |
|
|
171
|
+
| `gitvouch task start\|implement\|verifying <ID>` | Advance task lifecycle via immutable events |
|
|
172
|
+
| `gitvouch task verify <ID>` | Evidence-gated transition to `verified` (fails closed if any criterion lacks valid proof) |
|
|
173
|
+
| `gitvouch task block\|unblock <ID>` | Add/resolve blockers (active blockers prevent forward transitions) |
|
|
174
|
+
| `gitvouch evidence run <ID> --criterion AC-1 --cmd "..."` | Run real command and store exit code, git SHA, dirty status, and output SHA-256 |
|
|
175
|
+
| `gitvouch evidence add <ID> ...` | Record external CI/manual provenance evidence with optional `--expires-days` |
|
|
176
|
+
| `gitvouch memory review --note "..."` | Atomically refresh `last_reviewed` across snapshot, `current_state.md`, and `operation_log.md` |
|
|
177
|
+
| `gitvouch status [--json]` | Show `implemented %`, `verified %`, `verification_debt`, and task evidence coverage |
|
|
178
|
+
| `gitvouch check [--strict-warnings] [--json]` | Full offline schema, replay, DAG, evidence-gate, and memory consistency check |
|
|
179
|
+
|
|
180
|
+
## Development
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
python3 -m pip install -e .
|
|
184
|
+
python3 -m unittest discover -s tests -v
|
|
185
|
+
uvx ruff check src tests
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## License
|
|
189
|
+
|
|
190
|
+
[MIT](LICENSE)
|
gitvouch-0.1.0/README.md
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# gitvouch
|
|
2
|
+
|
|
3
|
+
**Stop AI coding agents from marking tasks "done" without proof.**
|
|
4
|
+
|
|
5
|
+
`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.
|
|
6
|
+
|
|
7
|
+
- **No local daemon, no hidden Git sync branch, no database, no SaaS dashboard, no LLM-as-judge.**
|
|
8
|
+
- **One runtime dependency (`jsonschema`).** Works cleanly inside every `git worktree` and CI runner.
|
|
9
|
+
- **Tamper-evident acceptance criteria:** transitioning a task to `ready` freezes an `acceptance_criteria_snapshot` into an append-only event file. If an agent quietly weakens a requirement later, `gitvouch check` fails closed.
|
|
10
|
+
- **Evidence-gated `verified`:** a task cannot enter `verified` unless every acceptance criterion has non-expired, applicable `pass` evidence with real provenance (`commit`, `command`, `exit_code`, `ci_job`, `artifact_sha256`).
|
|
11
|
+
- **Real `verification_debt`:** separates *implemented* work from *verified* work by replaying immutable events instead of trusting self-reported checkboxes.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Why This Exists
|
|
16
|
+
|
|
17
|
+
After months of running Codex CLI and Claude Code on real infrastructure-as-code repositories, two failure modes kept repeating:
|
|
18
|
+
|
|
19
|
+
1. **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.
|
|
20
|
+
2. **Silent criteria drift & stale memory:** an agent edits `TASKS.md` to fit what it actually built, or updates prose docs while machine-readable state silently goes stale.
|
|
21
|
+
|
|
22
|
+
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.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 60-Second Walkthrough
|
|
27
|
+
|
|
28
|
+
Requires **Python 3.11+**.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
# 1. Initialize .gitvouch/ and add the governance block to AGENTS.md
|
|
32
|
+
uvx gitvouch init --profile infrastructure
|
|
33
|
+
|
|
34
|
+
# 2. Define a task with explicit acceptance criteria
|
|
35
|
+
uvx gitvouch task new \
|
|
36
|
+
--title "Add read-only drift supervision" \
|
|
37
|
+
--scope "Daily OpenTofu plan receipts + independent watchdog" \
|
|
38
|
+
--weight 3 \
|
|
39
|
+
--criterion "Unit tests cover missing-receipt and exit-2 alerts" \
|
|
40
|
+
--criterion "Ruff lint passes with zero warnings"
|
|
41
|
+
|
|
42
|
+
# 3. Freeze acceptance criteria & weight into an immutable event snapshot
|
|
43
|
+
uvx gitvouch task ready T-001
|
|
44
|
+
uvx gitvouch task start T-001
|
|
45
|
+
uvx gitvouch task implement T-001
|
|
46
|
+
|
|
47
|
+
# 4. Try to mark verified WITHOUT proof -> REFUSED!
|
|
48
|
+
uvx gitvouch task verify T-001
|
|
49
|
+
# error: Verification gate REFUSED T-001 -> verified. Missing valid passing evidence:
|
|
50
|
+
# - AC-1: Unit tests cover missing-receipt and exit-2 alerts (no evidence recorded)
|
|
51
|
+
# - AC-2: Ruff lint passes with zero warnings (no evidence recorded)
|
|
52
|
+
|
|
53
|
+
# 5. Capture real execution proof (records exit code, git HEAD, dirty flag, output SHA-256)
|
|
54
|
+
uvx gitvouch evidence run T-001 --criterion AC-1 --cmd "python3 -m unittest discover -s tests"
|
|
55
|
+
uvx gitvouch evidence run T-001 --criterion AC-2 --cmd "uvx ruff check ."
|
|
56
|
+
|
|
57
|
+
# 6. Now verification passes, and CI can replay the entire history offline
|
|
58
|
+
uvx gitvouch task verify T-001
|
|
59
|
+
uvx gitvouch status
|
|
60
|
+
uvx gitvouch check
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
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:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
gitvouch check FAILED:
|
|
67
|
+
- Task T-001 acceptance criteria were modified after entering ready (tamper detected vs snapshot in EVT-002).
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Repository Layout
|
|
73
|
+
|
|
74
|
+
Everything lives inside `.gitvouch/` as plain, human-reviewable JSON and Markdown:
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
.gitvouch/
|
|
78
|
+
├── config.json # Project contract, enabled layers, freshness threshold
|
|
79
|
+
├── control/
|
|
80
|
+
│ ├── project.json # Project metadata + milestone list
|
|
81
|
+
│ ├── milestones/M-001.json # Milestone membership & completion gate
|
|
82
|
+
│ ├── tasks/T-001.json # Current task state (must match event replay)
|
|
83
|
+
│ ├── events/T-001/20261204T120000Z--EVT-001.json # Append-only immutable lifecycle events
|
|
84
|
+
│ └── evidence/T-001/E-001.json # Bounded verification evidence + provenance
|
|
85
|
+
└── memory/
|
|
86
|
+
├── state_snapshot.json # Machine-readable durable facts + last_reviewed
|
|
87
|
+
├── current_state.md # Human-readable current facts (synced with last_reviewed)
|
|
88
|
+
├── decisions.md # Architecture / operational decisions (ADRs)
|
|
89
|
+
├── operation_log.md # Append-only chronology (`## YYYY-MM-DD`)
|
|
90
|
+
└── runbook.md # Repeatable operating procedures
|
|
91
|
+
AGENTS.md # Canonical agent entrypoint
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
You can enable both layers (`--mode full`, default) or adopt either layer independently (`--mode control` or `--mode memory`).
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Enforce in CI (GitHub Actions)
|
|
99
|
+
|
|
100
|
+
Drop four lines into `.github/workflows/ci.yml` to block PRs with tampered criteria, unverified claims, broken event replays, or out-of-sync memory:
|
|
101
|
+
|
|
102
|
+
```yaml
|
|
103
|
+
- uses: actions/checkout@v4
|
|
104
|
+
- uses: JacobYZ/gitvouch@v0.1.0
|
|
105
|
+
with:
|
|
106
|
+
strict-warnings: "false"
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Agent Skill Integration
|
|
112
|
+
|
|
113
|
+
Copy [`skill/gitvouch/SKILL.md`](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.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## How `gitvouch` Compares
|
|
118
|
+
|
|
119
|
+
| Capability | `AGENTS.md` | `beads` (`bd`) | `spec-kit` | **`gitvouch`** |
|
|
120
|
+
| --- | --- | --- | --- | --- |
|
|
121
|
+
| Zero daemon / zero hidden sync branches | Yes | No (sync branch / DB) | Yes | **Yes** |
|
|
122
|
+
| Works out-of-the-box in Git worktrees | Yes | Needs workarounds | Yes | **Yes** |
|
|
123
|
+
| Immutable acceptance-criteria snapshot at `ready` | No | No | No | **Yes** |
|
|
124
|
+
| Evidence-gated `verified` with expiry & SHA-256 provenance | No | No | No | **Yes** |
|
|
125
|
+
| Deterministic `implemented` vs `verified` (`verification_debt`) | No | No | No | **Yes** |
|
|
126
|
+
| Durable operational memory with cross-file freshness sync | No | No | No | **Yes** |
|
|
127
|
+
|
|
128
|
+
### When NOT to Use `gitvouch`
|
|
129
|
+
|
|
130
|
+
Be honest about overhead:
|
|
131
|
+
- **Throwaway prototypes or 1-file scripts**: a Markdown checklist or GitHub Issue is faster.
|
|
132
|
+
- **Teams wanting a rich web UI / Kanban board**: `gitvouch` is deliberately a Git-native contract and CLI, not a Jira replacement.
|
|
133
|
+
- **Projects that want an LLM to judge whether code looks "good"**: `gitvouch` only performs deterministic, offline structural and provenance verification.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Core Commands
|
|
138
|
+
|
|
139
|
+
| Command | Purpose |
|
|
140
|
+
| --- | --- |
|
|
141
|
+
| `gitvouch init` | Initialize `.gitvouch/` (`--mode full\|control\|memory`) and update `AGENTS.md` |
|
|
142
|
+
| `gitvouch milestone add` | Create a new milestone and register it in `project.json` |
|
|
143
|
+
| `gitvouch task new` | Create a `proposed` task with acceptance criteria and initial `task_created` event |
|
|
144
|
+
| `gitvouch task ready <ID>` | Validate verified deps & freeze `acceptance_criteria_snapshot` |
|
|
145
|
+
| `gitvouch task start\|implement\|verifying <ID>` | Advance task lifecycle via immutable events |
|
|
146
|
+
| `gitvouch task verify <ID>` | Evidence-gated transition to `verified` (fails closed if any criterion lacks valid proof) |
|
|
147
|
+
| `gitvouch task block\|unblock <ID>` | Add/resolve blockers (active blockers prevent forward transitions) |
|
|
148
|
+
| `gitvouch evidence run <ID> --criterion AC-1 --cmd "..."` | Run real command and store exit code, git SHA, dirty status, and output SHA-256 |
|
|
149
|
+
| `gitvouch evidence add <ID> ...` | Record external CI/manual provenance evidence with optional `--expires-days` |
|
|
150
|
+
| `gitvouch memory review --note "..."` | Atomically refresh `last_reviewed` across snapshot, `current_state.md`, and `operation_log.md` |
|
|
151
|
+
| `gitvouch status [--json]` | Show `implemented %`, `verified %`, `verification_debt`, and task evidence coverage |
|
|
152
|
+
| `gitvouch check [--strict-warnings] [--json]` | Full offline schema, replay, DAG, evidence-gate, and memory consistency check |
|
|
153
|
+
|
|
154
|
+
## Development
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
python3 -m pip install -e .
|
|
158
|
+
python3 -m unittest discover -s tests -v
|
|
159
|
+
uvx ruff check src tests
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## License
|
|
163
|
+
|
|
164
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "gitvouch"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Zero-daemon, Git-native acceptance-criteria locking, evidence-gated verification, and auditable repo memory for AI coding agents."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.11"
|
|
13
|
+
authors = [
|
|
14
|
+
{ name = "Jake Zhang" },
|
|
15
|
+
]
|
|
16
|
+
keywords = [
|
|
17
|
+
"ai-agents",
|
|
18
|
+
"coding-agents",
|
|
19
|
+
"claude-code",
|
|
20
|
+
"codex",
|
|
21
|
+
"agents-md",
|
|
22
|
+
"verification",
|
|
23
|
+
"git",
|
|
24
|
+
"json-schema",
|
|
25
|
+
"governance",
|
|
26
|
+
]
|
|
27
|
+
classifiers = [
|
|
28
|
+
"Development Status :: 4 - Beta",
|
|
29
|
+
"Environment :: Console",
|
|
30
|
+
"Intended Audience :: Developers",
|
|
31
|
+
"Operating System :: OS Independent",
|
|
32
|
+
"Programming Language :: Python :: 3",
|
|
33
|
+
"Programming Language :: Python :: 3.11",
|
|
34
|
+
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Programming Language :: Python :: 3.13",
|
|
36
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
37
|
+
"Topic :: Software Development :: Version Control :: Git",
|
|
38
|
+
]
|
|
39
|
+
dependencies = [
|
|
40
|
+
"jsonschema>=4,<5",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[project.urls]
|
|
44
|
+
Homepage = "https://github.com/JacobYZ/gitvouch"
|
|
45
|
+
Repository = "https://github.com/JacobYZ/gitvouch"
|
|
46
|
+
Issues = "https://github.com/JacobYZ/gitvouch/issues"
|
|
47
|
+
|
|
48
|
+
[project.scripts]
|
|
49
|
+
gitvouch = "gitvouch.cli:main"
|
|
50
|
+
|
|
51
|
+
[tool.setuptools.packages.find]
|
|
52
|
+
where = ["src"]
|
|
53
|
+
|
|
54
|
+
[tool.setuptools.package-data]
|
|
55
|
+
gitvouch = ["schemas/*.json"]
|
|
56
|
+
|
|
57
|
+
[tool.ruff]
|
|
58
|
+
target-version = "py311"
|
|
59
|
+
line-length = 100
|
|
60
|
+
|
|
61
|
+
[tool.ruff.lint]
|
|
62
|
+
select = ["E", "F", "I", "UP", "B", "SIM"]
|
|
63
|
+
ignore = ["E501"]
|
gitvouch-0.1.0/setup.cfg
ADDED