kerbtap — CLI (v0)
Two jobs. kerbtap init installs the scaffold into a repository; kerbtap generate
points at a repository, collects governance evidence from its own systems, and emits the
six-component AI SDLC Evidence Pack.
The pack is evidence reviewed and packaged from named systems —
not tamper-proof, immutable, or audit-grade, and never sold as such. That honesty rule is
enforced in code (kerbtap/honesty.py): every generated component is scanned before it is
written, and the build fails loudly if a barred integrity term leaks in.
Install / run
No third-party runtime dependencies (standard library only). Python 3.11+.
pipx install kerbtap
kerbtap generate /path/to/repo -o /tmp/evidence-pack
The wheel carries the scaffold, so kerbtap init needs no configuration. --source is
only for installing from a checkout of the kerbtap repository.
From a checkout:
cd tool
pip install -e . # on an externally-managed Python (e.g. Homebrew) this
# fails; use: pipx install --editable .
kerbtap init — install the scaffold into a repository
cd /path/to/your-repo
kerbtap init
One command, no TODO markers left behind. It:
- copies the scaffold, preferring the hardened gate variants from kerbtap's own
.claude/where they exist —starter/ships a review guard in"ask"mode, which is silently auto-approved whenskipAutoPermissionPromptis set, so installing that copy installs a gate that does not gate; - derives the bypass env prefix from the repo directory name (
carbonLedger→CARBONLEDGER_REVIEWED,CARBONLEDGER_DOC_REVIEWED, …) and renames every occurrence across the hooks,settings.json, andCLAUDE.md; - detects which surfaces the repo actually has — docs, Python code — and points each gate at those;
- drops gates whose surface is absent rather than leaving them wired at defaults, and prints what it dropped. A gate pointed at nothing reads as coverage; so does a silent omission;
- creates
docs/sources-ledger.md, which the fact-claim gate reads; - runs the installed gate tests and fails the install if any fail.
| Flag | Effect |
|---|---|
--prefix NAME |
Override the derived bypass prefix. |
--source PATH |
kerbtap checkout to install from (default: the scaffold bundled in the wheel, or the checkout an editable install runs from). |
--force |
Overwrite an existing .claude/. |
--no-tests |
Skip the post-install gate-test run. |
Default output directory for generate is <repo>/evidence-pack/. Use -o to write
elsewhere (e.g. /tmp) so you do not dirty the assessed repo's working tree.
What it collects
| Source system | How | Required? |
|---|---|---|
git (git log) |
full commit history, merge/branch structure, per-commit signals | yes |
GitHub (gh) |
pull-request records and review evidence | optional (degrades to git-only) |
| governance signals | the review hook, scaffold config, reviewer agent, decision log, dogfood log | detected, cited |
Per-commit signals parsed from commit bodies: recorded adversarial-review evidence
(Adversarial review + PASS), ticket refs, and how each change landed
(merge-PR / squash-PR / direct-to-main).
The six components
report.md, manifest.json, control-map.md, exception-log.md,
remediation-plan.md, executive-summary.md — see the spec for each component's contract.
Layout
kerbtap/
init.py # scaffold install: surface detection, prefix renaming, gate selection
honesty.py # the claim string, barred-terms list, assert_clean guard
model.py # typed dataclasses (manifest schema, no signature field)
assemble.py # collected evidence -> EvidenceBundle with per-change records
cli.py / __main__.py
collect/ # git.py, github.py, governance.py
build/ # one module per component + common.py; __init__ runs honesty guard
data/
control_clauses.json # static control-clause lookup table (data, not code)
tests/ # git-signal parsing, control-map lookup, honesty
Tests
cd tool
python -m pytest
Metadata
Release files for kerbtap 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kerbtap-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for kerbtap-0.5.0-py3-none-any.whl |
Release files / kerbtap-0.5.0-py3-none-any.whl
| Download URL | kerbtap-0.5.0-py3-none-any.whl |
|---|---|
| Size | 313.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d2f1c874bae266d12fe58086e43df0e8765738ffb9cd1e95f81e4a66a366765
|
|
BLAKE2b-256 checksum How to use checksums |
6a47a672fa48eded923760563265cac9201cb1ea2e66e888df9480b4fe4ff887
|
| 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 Nov 26, 2026.
Transparency logSecurity for kerbtap 0.5.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
1 file in this release has been uploaded with provenance metadata.
Attestation for kerbtap-0.5.0-py3-none-any.whl
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 Nov 26, 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.