Skip to content
Agentmart
Submit a tool

prove-patch

Use when a local security patch commit needs independent scoped and three-arm proof.

Skill by trailofbits

IndexedCC-BY-SA-4.0★ 7,783
Write a review

Chalk Labs

Need help deploying prove-patch?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/trailofbits-prove-patch

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when a local security patch commit needs independent scoped and three-arm proof.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/prove-patch

What's inside

Skill name
prove-patch
Description
Use when a local security patch commit needs independent scoped and three-arm proof.
License
CC-BY-SA-4.0
Instructions
81 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Prove Patch

Use the original baseline, final patch commit, declared `repair_scope`, and unchanged
reproduction package. Read the [record contract](../../references/records.md). Do not
edit the patch or validate an uncommitted tree. Return failures for a new attempt.
Before target commands, follow its [project guidance](../../references/records.md#project-guidance).

1. Review the scoped cases and the patch without the patcher's conclusion. Execute
   each planned input on clean baseline and patched trees with the same retained
   harness source and command. The harness must print exactly one
   `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.
2. Run relevant project checks on the patch and retain the same raw receipts. Use
   baseline comparison for behavior checks and to attribute failed project checks;
   a passing patched suite may omit a baseline run. Include focused tests, regression
   and security checks where relevant. Record specific unproven limits; an empty
   list leaves the result inconclusive.
3. Run the [three-arm helper](../../scripts/arms.py) with the proof-type recipe in
   the record contract, `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.
4. Write `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](../../scripts/records.py).
   Independently inspect the [native proof assessment](../../scripts/native_proof.py)
   and raw receipts before reporting a result. A complete proof has no findings or
   gaps. Return exact failures and receipt paths to the orchestrator.

[Prove record schema](../../schemas/prove.schema.json):
```json
{
  "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.

From trailofbits/skills, CC-BY-SA-4.0.

More from trailofbits/skills

Signals

Stars
7,783
Forks
671
Open issues
30
Last commit (this folder)
Oct 20, 2026 (14 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
CC-BY-SA-4.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from trailofbits

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get prove-patch running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying prove-patch?

CallGet help
Cite this page

prove-patch skill. Agent Mart. https://agentmart.dev/skills/trailofbits-prove-patch (last updated 2026-10-24)