/patching-bugs:prove-patchfrom patching-bugs
Proves a local security patch by running scoped test cases on baseline and patched trees, executing a three-arm revert test, and validating receipts against a schema.
Ships in patching-bugs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the original baseline, final patch commit, declared repair_scope, and unchanged
reproduction package. Read the record contract. Do not
edit the patch or validate an uncommitted tree. Return failures for a new attempt.
Before target commands, follow its project guidance.
PATCH_CASE {"input": ..., "actual": ...} from the exercised input and observed
result, then print PATCH_REACHED as its final stdout line immediately before
the assertion. Representatives must fail on the
baseline and pass on the patch. Valid controls must pass on both. Keep the
baseline and patched stdout, stderr, exit status, elapsed time, command, and
harness source under receipts/. A timeout, setup failure, missing marker,
mismatched input, or ambiguous observation is an evidence gap. A trustworthy
patched failure is a finding. Never relabel a gap as a pass.reproduce.baseline_commit, and final patch_commit.
Require the baseline to fail, patch to pass, and complete baseline revert to
fail again. Require receipts/source.json to identify the pinned commits and
the reverted tree to equal the original baseline tree. Require the type's build
identity result. Retain all source-tree,
build, and execution receipts.prove.json and a final manifest covering it and every receipt. Run
uv run --no-project <script> manifest <prove-attempt-dir> and then
uv run --no-project <script> check <run-dir> with the validator.
Independently inspect the native proof assessment
and raw receipts before reporting a result. A complete proof has no findings or
gaps. Return exact failures and receipt paths to the orchestrator.{
"schema_version": 2,
"attempt": 1,
"failure_type": "runtime",
"baseline_commit": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"patch_commit": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"reverted": "pass",
"build_identity": "pass",
"hashes": {
"baseline": "1111111111111111111111111111111111111111111111111111111111111111",
"patched": "2222222222222222222222222222222222222222222222222222222222222222",
"reverted": "1111111111111111111111111111111111111111111111111111111111111111"
},
"reverted_hash_note": null,
"cases": [{
"check_id": "reported-input",
"argv": ["python", "receipts/case.py", "reported-input"],
"source": "receipts/case.py",
"runs": {
"baseline": {"exit_code": 1, "elapsed_ms": 15, "stdout": "receipts/case-base.stdout", "stderr": "receipts/case-base.stderr"},
"patched": {"exit_code": 0, "elapsed_ms": 14, "stdout": "receipts/case-patched.stdout", "stderr": "receipts/case-patched.stderr"}
}
}],
"project_checks": [{
"check_id": "focused-suite",
"kind": "suite",
"argv": ["pytest", "tests/test_upload.py"],
"baseline": null,
"patched": {"exit_code": 0, "elapsed_ms": 860, "stdout": "receipts/suite.stdout", "stderr": "receipts/suite.stderr"}
}],
"unproven": ["Inputs outside the declared boundary were not assessed."],
"agent": "prover-1"
}
For a bounded class, include at least two distinct failing representatives and a
valid control. The record must cover every planned case by unique check_id.
Use the same harness and command on both commits; do not reveal the side to the
harness or change expectations by side. Review the selected cases for relevance;
retained receipts establish only what those cases exercised.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub trailofbits/skills --plugin patching-bugs5 skills in this plugin
/implement-patchUse when a confirmed local bug needs an invariant-level fix, variant search, tests, and one local commit./patching-bugsUse when a known bug or falsifiable bug hypothesis in a local codebase needs a patch commit and reviewable proof report./reproduce-bugUse when a named runtime or compiler bug in a local repository needs independent reproduction./validate-bugUse when a bug PoC package needs an independent rerun and judgment before patching.2 plugins ship this exact skill · first indexed Oct 22, 2026
Other plugins' skills for the same job