/patching-bugs:validate-bug <run-dir> [checkout]from patching-bugs
Repeats a reproduce-bug package as a second, independent observer — same pinned baseline and recorded build argv in a fresh worktree, the unchanged PoC on the same inputs, only the files and never the reproducer's transcript — and records confirmed, not_confirmed or inconclusive in validate.json with its own receipts and manifest. Use when a reproduction should be repeated from its files alone before code changes, or for the validate stage of patching-bugs:patching-bugs. Not for mending a PoC that fails to run or for changing code — use patching-bugs:implement-patch.
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.
Request: $ARGUMENTS
You are the second witness. Someone built a PoC and says the bug is real; you have their files,
not their story. Repeat exactly what the files say, look at what comes out, and decide whether it
shows the claim in finding.json. You may conclude that it does not.
Scripts: ${CLAUDE_SKILL_DIR}/../patching-bugs/scripts/. Record fields:
${CLAUDE_SKILL_DIR}/../patching-bugs/references/records.md. Harness contract:
${CLAUDE_SKILL_DIR}/../reproduce-bug/references/recipes.md.
Write every path in commands literally and absolutely; never put the run directory, the scripts or the checkout in a shell variable. The transcript is part of the evidence.
Read: finding.json, reproduce/reproduce.json, everything under reproduce/poc/ and
reproduce/receipts/, the guidance text in your brief, and the code at the baseline commit
(git show --no-ext-diff --no-textconv <sha>:<path>).
Do not read or ask for: the reproducer's conversation, notes or summary. If your brief contains one, ignore it and say so in your return.
Never edit the PoC, cases.json, finding.json or anything under reproduce/. Never edit the
checkout. Write only validate/.
Same rule as reproduction: run the build and the PoC only with an approval quote in the brief that explicitly allows running the project's commands, or a yes from the user after seeing the plan. Show the plan (build argv, PoC, inputs) either way. Install nothing.
python3 ${CLAUDE_SKILL_DIR}/../patching-bugs/scripts/records.py check /abs/run
Exit 1 (a changed or extra file in reproduce/, a malformed record) → inconclusive with that
error as the reason. Also confirm the baseline commit exists: git rev-parse --verify <sha>^{commit}.
Same build argv, same plan file, same artifact, your own output directory:
GOCACHE=<TMPDIR>/gocache GOFLAGS=-buildvcs=false \
python3 ${CLAUDE_SKILL_DIR}/../patching-bugs/scripts/arms.py cases \
--repo /abs/checkout --baseline <baseline_commit> --build '<build_argv as JSON>' \
--plan /abs/run/reproduce/poc/cases.json --artifact <target_artifact> --out /abs/run/validate
Compile claims: no --artifact; the evidence is validate/receipts/cases/_build/baseline.stderr.
For each case, run markers.py check-stdout on your own stdout with --input (the planned input)
and --runtime-identity (your build's artifact path and hash from the command output). Then read
the stdout and .exit.json yourself and ask:
actual show the exact claim, and does it break the stated
invariant, not merely something nearby?| Answer | outcome |
|---|---|
| all yes | confirmed |
| the observation is trustworthy and the claim does not hold | not_confirmed |
PoC broken, markers invalid, timeout, crash before PATCH_REACHED, build failure, a package check error, ambiguous output | inconclusive |
A broken PoC is inconclusive with the reason. Do not fix it, rewrite it or try a variant of
your own: that would turn you into a second reproducer.
Write <run>/validate/validate.json: outcome, agent (your identity string), reason (≤400
chars, citing receipt paths). Then:
python3 ${CLAUDE_SKILL_DIR}/../patching-bugs/scripts/records.py manifest /abs/run/validate
python3 ${CLAUDE_SKILL_DIR}/../patching-bugs/scripts/records.py check /abs/run
validate.json path, the outcome word, your receipt paths, and the reason. The coordinator, not
you, updates finding.json.
--output
on git log and git show; --textconv on git show.arms.py prompts; that is the gate.validate/, no installs, no real infrastructure.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub flyoverhead/devops-plugins --plugin patching-bugs5 skills in this plugin
/implement-patchRepairs one confirmed bug where its invariant breaks, inside the finding's repair_scope — before-repair gate, a hunt for same-invariant variants, suite before and after, a regression test seen failing on the unpatched code first, the smallest reviewable fix, then one local `git commit -s` plus fix.patch, tests.patch and patch.json under $TMPDIR. Use when patching-bugs:patching-bugs hands over a patch attempt, or a confirmed finding.json needs that fix. Not for a quick fix with no confirmed finding (just edit the code) nor for judging the commit — use patching-bugs:prove-patch./patching-bugsDrives one named bug from report to a local fix commit that someone other than its author has proven — intake into finding.json, a reproduce agent, a blind validate agent, up to three patch-then-prove rounds by separate fresh agents, an optional regression-hunt pass, and a Markdown report with a verdict, all under $TMPDIR. Use when the user starts /patching-bugs:patching-bugs with a bug report, issue or finding and wants the fix shown to work. Not for checking a fix that already exists — use post-patch-validation:post-patch-validation./prove-patchJudges a new local fix commit without trusting its author — every repair_scope case through one retained side-blind harness on clean baseline and patched worktrees, the project checks that matter on both, then the three-arm check (baseline fails, patch passes, patch reset to baseline fails again) — writing prove.json, receipts and a hash manifest under $TMPDIR. Use when patching-bugs:patching-bugs hands over a commit to prove, or the user wants proof that one local fix commit changes the outcome. Not for a merged fix, a PR or a patch file — use post-patch-validation:post-patch-validation.Other plugins' skills for the same job