Loading...
Loading...
Use when a known bug or falsifiable bug hypothesis in a local codebase needs a patch commit and reviewable proof report.
npx skill4agent add trailofbits/skills patching-bugsregression-huntguidance/<baseline-SHA>/regression-huntregression-huntfailure_typefinding.jsonfinding.reportedrun.jsonrepair_scope{
"schema_version": 1,
"title": "Upload path traversal",
"claim": "A parent path writes outside the upload directory.",
"affected_code": [{"path": "app.py", "start_line": 4, "end_line": 4}],
"invariant": "Uploads remain inside the upload directory.",
"poc": null,
"source": "user report",
"status": "hypothesis"
}{
"schema_version": 1,
"finding_id": "bug-1",
"status": "in_progress",
"steps": {
"intake": "done",
"reproduce": "pending",
"validate": "pending",
"patch": "pending",
"prove": "pending",
"regression": "pending",
"report": "pending"
},
"attempts": 0
}absentreproduce-bugreproduce/validate-bugnot_reproducedblockednot_confirmedinconclusiveuv run --no-project <script> check --before-repair <run-dir>run.attemptsimplement-patchimplement-patchpatch_commit: nullprove-patchprove-patchfinding.repair_scoperegression-huntbaseline..patch_commitregression/receipts/regression.jsonuv run --no-project <script> manifest <regression-step-dir>patch_commit{
"schema_version": 1,
"campaign_dir": "/tmp/regression-campaign",
"coverage": "COMPLETE",
"outcomes": []
}report-input.jsoninclude_pocreport.htmlmaintainer-report.htmlfinding.invariant--prepare-inputbaseline_checksfinding.jsonrun.json{
"schema_version": 1,
"bug": "An upload name escaped its directory. The write violated the path boundary.",
"fix_why": "The patch confines writes to the upload directory.",
"open_risks": [],
"include_poc": false
}uv run --no-project| Shortcut | Required action |
|---|---|
| The patcher already tested it. | Use a fresh prover and run all proof arms. |
| Regression-hunt is slow. | Run it; incomplete coverage is a concern, not a pass. |
| A missing receipt or failing check is close enough. | Treat evidence gaps as INCONCLUSIVE and trustworthy patched failures as failed repair. |
| The runtime PoC crashed, so the bug reproduced. | Require the exact |