patchwarden-evidence
v1.0.1Map Spec Kit tasks into a guarded PatchWarden Goal and export bounded, traceable evidence for an accepted lineage.
PatchWarden Evidence Pack for Spec Kit
This community extension adds optional Spec Kit hooks and commands for mapping approved Spec Kit tasks into PatchWarden and exporting a bounded Evidence Pack after an accepted implementation. It is independently maintained and is not an official Spec Kit feature or endorsement.
What it does
- Before implementation, it can create a guarded PatchWarden Goal and import the current Spec Kit tasks as subgoals.
- After implementation, it can guide an agent to export a bounded evidence pack for an accepted PatchWarden lineage.
- It exposes two commands:
/speckit.patchwarden-evidence.prepare-evidence/speckit.patchwarden-evidence.export-evidence <lineage_id>
The commands are prompts for an AI agent with an already configured PatchWarden MCP server. They do not install, start, or configure PatchWarden themselves.
Requirements
- Spec Kit with extension support (
>=0.1.0). - PatchWarden
>=1.5.1configured as an MCP server for the target workspace. - A completed, accepted PatchWarden lineage before evidence export.
Install
specify extension add patchwarden-evidence --from https://github.com/jiezeng2004-design/spec-kit-patchwarden/archive/refs/tags/v1.0.1.zip
For local development:
specify extension add --dev C:\path\to\spec-kit-patchwarden
Verify registration:
specify extension list
Usage
- Configure PatchWarden for the project and connect it to your AI client as an MCP server.
- Run
/speckit.patchwarden-evidence.prepare-evidencebefore implementation, or allow the optionalbefore_implementhook. - The prepare command calls only
create_goalandimport_speckit_tasks. It records Goal/Subgoal metadata and does not execute implementation work or create a lineage. - Run the normal Spec Kit implementation workflow through PatchWarden separately and keep the resulting
lineage_id. - After PatchWarden reports an accepted terminal state, run
/speckit.patchwarden-evidence.export-evidence <lineage_id>, or allow the optionalafter_implementhook. - Review the bounded files under
.patchwarden/evidence-packs/<lineage_id>/with the Spec Kit tasks and acceptance criteria.
Security and runtime scope
The prepare and export commands have separate, explicit tool scopes:
- Prepare:
create_goalandimport_speckit_tasksonly. These write bounded Goal/Subgoal metadata under PatchWarden's configured workspace. They do not start tasks, run commands, create a lineage, or claim verification. - Export:
get_task_lineageandexport_task_evidence_packonly. These inspect accepted bounded lineage state and write the local Evidence Pack.
The extension must not retrieve secrets, raw logs, full diffs, credential files, or out-of-workspace paths. It must not publish, tag, push, merge, deploy, or modify Spec Kit artifacts during export.
An Evidence Pack is supplementary review material. It does not mark a Spec Kit task accepted and does not replace reviewer judgment.
Development validation
specify extension add --dev C:\path\to\spec-kit-patchwarden
specify extension list
specify extension remove patchwarden-evidence
License
MIT. See LICENSE.
Stats
Version
Install
Using the Specify CLI
specify extension add patchwarden-evidence --from https://github.com/jiezeng2004-design/spec-kit-patchwarden/archive/refs/tags/v1.0.1.zip