Complete AI Training
Sign inGet my AI kit

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

AI agent for software developers

Audit Finding Fix Verification Agent

Prove each audit fix works and breaks nothing else, with evidence for the auditors

Audit Finding Fix Verification Agent: what goes in, what the agent does and what you get

What it does

After an audit, the team patches 15 findings in a week, and some patches do not fix the issue or break something else. For each finding, this agent reads the original report and the fix diff. It writes a test that reproduces the finding and confirms that the test fails on the old code. Then it runs the same test on the fixed code and checks that it passes. It runs the full regression suite and compares gas, size and behavior with the previous version. If a fix fails, it returns it to the developer with the test as proof. When all pass, it drafts the response to the auditors, listing each finding and its evidence. The developer approves the response. Edge case: a fix removes the test's entry point, so the agent checks for a different route to the same bug.

How it works

Follow the arrows from top to bottom. The orange dashed arrow is the loop: when a check fails, the agent goes back and tries again.

Start and resultWhat it doesA check on its own workWaits for your OKGoes back and retries
Yes, continueYes, continueApprovedNoNo 1 STARTS WHEN Fixes pushed for audit findings 2 USES A TOOL Read each finding and its fix diff 3 DOES Write a reproduction test for each finding 4 USES A TOOL Run the test on the original code 5 CHECKS THE RESULT Does the test fail on the original code? If not: rewrite the test to reproduce the finding asdescribed. Back to step 3. 6 USES A TOOL Run the test on the fixed code 7 CHECKS THE RESULT Does it pass on the fixed code? If not: return the fix to the developer with the failingtest. Back to step 3. 8 USES A TOOL Run the regression suite and compare gas andbehavior 9 DOES Draft the finding-by-finding response with evidence 10 YOU APPROVE Developer approves the response to the auditors 11 RESULT Verification report and auditor response
Read the steps as a list
  1. Fixes pushed for audit findings
  2. Read each finding and its fix diff
  3. Write a reproduction test for each finding
  4. Run the test on the original code
  5. Does the test fail on the original code?If not: rewrite the test to reproduce the finding as described. Back to step 3.
  6. Run the test on the fixed code
  7. Does it pass on the fixed code?If not: return the fix to the developer with the failing test. Back to step 3.
  8. Run the regression suite and compare gas and behavior
  9. Draft the finding-by-finding response with evidence
  10. Developer approves the response to the auditorsThe agent waits here for your OK.
  11. Verification report and auditor response

How it decides

It accepts a fix only when its reproduction test fails before and passes after, and the regression suite shows no unexplained changes.

  • Require a failing-before and passing-after test for each finding
  • Flag any gas increase over 5% or change in storage layout
  • Try alternative routes to the same bug when the fix removes an entry point
  • Return any fix that changes unrelated behavior

Make it yours

Every agent is a starting point. You choose these settings for your own situation.

  • Gas change limit (default 5%)
  • Test framework
  • Response format for auditors
  • Findings in scope
  • Who reviews interface changes

What keeps you in control

It always asks you first

  • Developer approves the response to auditors
  • Security lead approves a fix that changes an interface

Hard limits

  • Never mark a finding fixed without a test result
  • Never deploy anything to a live network

It stops when

  • Done: every finding has a verified fix and evidence
  • Stop: a finding cannot be reproduced and needs the auditor

Set it up

We guide you through the set-up, step by step

Members get the full set-up guide for this agent. No technical skills needed: you copy, paste and upload.

10 minto set it up in your AI
5 AIsChatGPT, Claude, Copilot, Gemini, Grok
  • One set of instructions to paste into your AI, with the clicks for ChatGPT, Claude, Microsoft 365 Copilot, Gemini and Grok
  • The agent then walks you through connecting your own data, one source at a time
  • A downloadable copy with the flow chart, the rules and the full guide
Get access to this agent

An example run

What happensAn audit listed 11 findings. For finding 4, an unchecked fee setter, the test failed on the original code but also failed on the fix because the new role check blocked the owner too, so the second check failed. The developer corrected the role. The regression suite then showed gas up 7% on deposit, which the agent flagged. After both passed, the developer approved the response.

More agents for software developers