Sponsor Fix Review
Use this workflow when a sponsor sends a fix branch, patch, or PR after you reported a finding. The goal is to decide whether the patch addresses the root cause without introducing new issues.
Prepare the local repository
- Check out the sponsor fix branch locally.
- Confirm the branch and commit with Git.
- Open the repository in PastePrompt.
- Set the diff base to the commit, tag, or branch used for the original review.
- Set the diff head to the sponsor fix branch.
Example:
audit-base...sponsor-fix
Recommended context package
Build the bundle around the original finding and patch:
- Original issue: include a concise issue summary, root cause, affected function, and expected security property.
- Expected fix: describe what a correct fix should change.
- Git diff: include the diff between baseline and sponsor branch.
- Changed files: include full files for changed modules, helpers, tests, or config.
- Related dependencies: include interfaces, helpers, shared types, and tests needed to evaluate the fix.
- Review criteria: state what would count as fixed, partially fixed, or not fixed.
Recommended prompt structure
Original issue:
- Title:
- Root cause:
- Impact:
- Affected code:
Expected fix:
- What behavior should change:
- What invariant should now hold:
Git diff:
- Review the included base/head diff.
Changed files:
- Use full changed file context when needed.
Related dependencies:
- Use included imports, interfaces, tests, and helpers.
Review criteria:
- Determine whether the root cause is fixed.
- Identify regressions or new risks introduced by the patch.
- Do not report speculative issues outside the selected context.
- State what additional file or test is needed if context is insufficient.
Review steps
- Start with diff-only context.
- Add full changed files when the patch depends on surrounding code.
- Add tests that prove or attempt to prove the fix.
- Add dependencies only when they affect the root cause.
- Run the secret scanner.
- Export Markdown for your review notes.
- Validate the fix locally with the repository test harness.
What to verify
- The patch fixes the root cause, not only the symptom.
- The affected invariant now holds.
- The original exploit or failure scenario is blocked.
- The patch does not create a new authorization, accounting, data integrity, or integration issue.
- Regression tests cover the original issue.