Skip to content

solidity-auditor: Make it discover prior audits and calibrate severity#27

Open
0xumarkhatab wants to merge 1 commit into
pashov:mainfrom
0xumarkhatab:main
Open

solidity-auditor: Make it discover prior audits and calibrate severity#27
0xumarkhatab wants to merge 1 commit into
pashov:mainfrom
0xumarkhatab:main

Conversation

@0xumarkhatab
Copy link
Copy Markdown

Summary

Makes solidity-auditor aware of prior audit reports so it doesn't
re-elevate already-adjudicated issues at fresh-finding severity.

Changes

  • Turn 1 — find audit reports under audits/, reports/,
    findings/, security/; extract title + severity + status into
    {bundle_dir}/prior-audits.md. Falls back if pdftotext is missing.
  • Turn 4 — calibrate each finding against prior-audits.md:
    Fixed → REJECT (or [regression-of:...] if not on current branch);
    Acknowledged/Mitigated/Open → downgrade one level + [also-flagged-by:...];
    trust-assumption → demote to LEAD/NOTE.

Why

Prior auditor adjudication is strong Bayesian evidence of bounded
severity; re-scoring it as novel is a known false-positive pattern.
Conversely, a stale "Fixed" label that no longer holds is itself a
finding worth flagging.

Compatibility

No-op when audits or pdftotext are absent. No agent-bundle changes.

  Turn 1 finds existing audit PDFs/MDs and extracts findings into
  prior-audits.md. Turn 4 cross-references each finding: REJECT if Fixed
  and present on main/master/dev (else tag as regression); downgrade one
  level if Acknowledged/Mitigated/Open; demote to LEAD if covered by a
  documented trust assumption. No-op if no audits or no pdftotext.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant