Skip to content
All posts

Can open-weight models achieve frontier security performance?

Antonio Viggiano

Antonio Viggiano

@aviggiano
Published on
· 18 min read

Summary

After evaluating Mythos 5.1 for smart contract security, we asked whether open-weight models could achieve the same results. Lower costs and fewer cyber refusals are important not only for smaller teams and projects that are resource-constrained, but also for corporations that need unrestricted access for incident response or other cybersecurity tasks. In addition, optimizing for cost-performance is useful for continuous scanning of applications under development or lower-value targets.

We evaluated leading open-weight models from DeepSeek, Moonshot AI, and Z.ai on a first target. Among them, DeepSeek V4.1 Flash 1017 had the best cost-performance with the generic prompt and default scoring weights. That motivated us to optimize a generic prompt to mimic the dynamic workflows we had seen perform well on Claude, raising its score from 11.56% to 85.51% in a workflow called Pareto, slightly above Mythos 5.2’s 84.92%, while using about 14.9 times less recorded model spend.

To understand whether this generalized to other projects, we tried a second target, a private codebase with no prior human security review or pre-existing ground truth. Given a rough USD 4,000 optimization budget, we improved Medium recall from 19.0% to 63.1%, with lower model spend and improved overall report precision, but still fell short of Mythos 5.1’s 100% recall on the seven adjudicated Medium issues in our reference catalog. We call this improved workflow Pareto v2, and it will ship as the default workflow of Ultrafuzz v0.2.

We concluded that even after sustained harness engineering, open-weight models did not reach frontier results in our tests, although hill-climbing greatly improved their cost-performance, which motivates the usage of both tools. We also describe the remaining gaps and next experiments.

Developing Pareto on Benchmark A

Benchmark A started with a 4,126-SLOC Solidity project that had undergone a manual security review by leading smart contract security researchers. That review provided the initial ground truth, which grew as additional findings were adjudicated. The evaluation catalog contains 54 issues: five Medium and 49 Low. Full matches earn one credit and partial matches earn half credit. With the selected weights, the score assigns 100 points per High-severity issue, 30 points per Medium-severity issue, and 1 per Low-severity issue. After the fifth review artifact, later reviews added only Low-severity issues to the catalog. Edit the scoring weights to update every weighted chart and score in the article.

From generic prompts to parallel reviewers

We evaluated DeepSeek V4.1 Flash, DeepSeek V4.1 Flash 1017, Moonshot AI’s Kimi K3 and Kimi K3.1 Pro, Z.ai’s GLM-5.3, Gemini 4 Argon, GPT-6 Sol Daybreak Blue (Ultra), Opus 5.5, Mythos 5.1, and the recently released Mythos 5.2. We later added GPT-6.2 Astra and a second, multi-agent GPT-6 Sol Daybreak Blue run, both through Codex at Ultra effort. Runs of GPT-6 Sol, GPT-6.1 Sol, GPT-6.2 Sol and GPT-6 Astra were stopped by OpenAI’s cybersecurity filter before finishing, so they have no score.

We used a shared generic prompt, roughly Perform a security review on this project and write your findings to report.md, and, where possible, the same harness. OpenAI models used Codex, Anthropic models used Claude Code, and all other models in the sweep used OpenCode. The standard request was maximum possible reasoning effort; lower-effort variants are labeled separately. Each harness retained its default orchestration framework, such as Ultra or ultracode, where applicable.

The 20x prompt gives 20 independent hunters the same security-review prompt and requests maximum possible reasoning effort from each. These are 20 hunters within one audit, not 20 separate runs. A lead agent then merges and deduplicates their findings into one report. In practice, we append this instruction to the generic prompt: Use 20 sub-agents at their maximum reasoning, each with the same prompt. Then deduplicate and aggregate results in a unified report. Each pair below compares one baseline run with one 20x run. In the Mythos 5.1 + DeepSeek 20x configuration shown in later figures, Mythos 5.1 acts only as the orchestrator, fanning out 20 generic DeepSeek prompts, so it adds no reasoning of its own.

The effect varied by model and harness. Some configurations gained substantial coverage; others added little for the extra model spend. Parallel hunters can explore different paths, but they also repeat one another, and their findings still have to survive aggregation into the final report.

Generic prompts and 20 parallel reviewers

Expand to zoom into the chart.

Generic prompts and 20 parallel reviewersWeighted coverage for 6 generic prompts and their 20-reviewer variants. The right panel shows bars for 20x spend divided by generic spend. Darker and lighter markers use each configuration’s original color and shape. All are single runs.Severity-weighted coverageAdditional model spend0%20%40%60%80%100%02468101214DeepSeek V4.1 Flash101711.6%54.3%11.8×$0.69 → $8.09DeepSeek V4.1 Flash1.5%28.1%9.3×$0.46 → $4.25Kimi K33.5%7.5%10×$8.16 → $81.65Kimi K3.1 Pro7.5%55.3%4.8×$19.91 → $94.67GLM-5.31.5%15.6%11×$3.15 → $34.75Opus 5.530.2%79.6%5.6×$49.92 → $277.1820x spend / generic spendDarker marker: generic prompt · lighter marker: 20x prompt. Colors and shapes identify model families.

Weights H / M / L: 100 / 30 / 1. Source: saved Benchmark A aggregates; 5 Medium and 49 Low issues. Each pair is one generic and one 20x run. Daybreak is omitted because its default Ultra setup already uses multiple agents.

Generic prompts and 20 parallel reviewers

100%

Weights H / M / L: 100 / 30 / 1. Source: saved Benchmark A aggregates; 5 Medium and 49 Low issues. Each pair is one generic and one 20x run. Daybreak is omitted because its default Ultra setup already uses multiple agents.

Figure 1. Baseline and 20x results on Benchmark A. DeepSeek V4.1 Flash 1017 is the open-weight model used in Pareto. These are descriptive comparisons of single runs. Coverage is recalculated using the selected High/Medium/Low weights; model spend is unchanged.

The Ultrafuzz v0.1 exhaustive audit profile was less cost-effective than Kimi K3 20x, as anticipated. It spent USD 677.43, compared with USD 81.65 for Kimi K3 20x, which achieved higher recall and F1-score at the same precision. Before triage, exhaustive recovered eight Low credits versus seven for the generic Kimi K3 prompt; its submitted report retained five, versus 15 for Kimi K3 20x. The charts use the submitted report.

Designing and evolving a Pareto workflow

The Ultrafuzz v0.1 exhaustive workflow showed that more compute did not directly translate into better detection metrics, so we designed a more cost-effective variant. In our runs, step-by-step workflows and repeated handoffs between agents did not perform well.

Our hypothesis is that, with recent advances in models’ ability to perform long-horizon tasks, message passing and repeated context re-ingestion can perform worse than one-shot prompts, where one top-level agent coordinates successive stages within a single session. Breaking multistage work into separate agents may have helped earlier generations of models, but may no longer be the best approach for current generations. In addition, we suspect that rigid, predefined hunt items do not generalize well to novel protocols, making specific hunting strategies detrimental to cost-performance.

We went back to the drawing board and simulated the dynamic Claude Code ultracode workflow used with Mythos 5.1 in a single top-level prompt with a few helper tools. This was the beginning of the Pareto workflow.

Beyond adding reviewers, we changed how reviewers searched, how they saved their work, and how the lead merged it.

The starting prompt used a generic review instruction and 20 subagents. Experiment A01 raised the output-token cap, prescribed a review procedure, requested incremental writes, and made the merge preserve the union of reviewer reports. Low credit rose from seven to 12, while Medium credit stayed at three. Experiment A07 made the lead merge reports sequentially from disk and reached four Medium credits. Experiment A10 combined those instructions with 60 reviewers, batches of 10, and a persistent progress file, reaching 4.5 Medium credits.

Prompt and workflow evolution

Expand to zoom into the chart.

Prompt and workflow evolutionFinal-report weighted coverage on the separate optimization catalog. Dashed connections show prompt ancestry; the hexagon marks the selected prompt. Experiment A06 did not improve final Medium credit and was discarded; it remains in the history as Experiment A07’s parent. Scores recalculate with the selected severity weights. Missing reports have no score, leading experiments are excluded, and the incomplete first repeat is omitted.Final-report weighted coverage0%20%40%60%80%100%Mythos 5.1: 67.1%58.1%Start: 97 points; 58.1%. 20 reviewersStarting prompt · $8.0961.1%Experiment A01: 102 points; 61.1%. Preserve outputsExperiment A01 · $11.1360.5%Experiment A02: 101 points; 60.5%. Experiment A02 · $10.4421.3%Experiment A03: 35.5 points; 21.3%. Experiment A03 · ≥ $17.5343.4%Experiment A04: 72.5 points; 43.4%. Experiment A04 · $8.7171.3%Experiment A05: 119 points; 71.3%. Experiment A05 · $22.7560.2%Experiment A06: 100.5 points; 60.2%. Second coverage passExperiment A06 · $12.4279.3%Experiment A07: 132.5 points; 79.3%. Sequential disk mergeExperiment A07 · $20.75No reportExperiment A08 · Unavailable70.1%Experiment A09: 117 points; 70.1%. Experiment A09 · $28.2988.9%SelectedExperiment A10: 148.5 points; 88.9%. 60 reviewers + progress fileExperiment A10 · ≥ $53.7780.8%Experiment A11: 135 points; 80.8%. Experiment A11 · $64.680.2%Experiment A12: 134 points; 80.2%. Experiment A12 · $21.59 · Excluded90.1%Repeat 2: 150.5 points; 90.1%. Repeat 2 · $30.9789.5%Repeat 3: 149.5 points; 89.5%. Repeat 3 · $32.88Optimization catalog: 167 possible pointsDashed line: prompt ancestry, not gains · hexagon: selected · hollow: discarded · cross: excluded

Weights H / M / L: 100 / 30 / 1. Final-report scores on five Medium and 17 Low issues; mostly provisional single runs, separate from the adjudicated benchmark. Final Medium credit reached four in Experiment A07 and 4.5 in Experiment A10. Experiment A06 remained at three, unchanged from Experiment A01; it was discarded but supplied Experiment A07’s parent prompt. Its disputed raw-output detection count is not evidence of a final-report gain. Dashed lines show ancestry; the hexagon marks the selected configuration. Full matches earn one credit and partial matches half. Experiment A08 has no report; Experiment A12 is excluded for leading instructions. The incomplete Repeat 1 is omitted here. Weights rescale scores without changing historical selection decisions. ≥ marks recorded cost lower bounds.

Prompt and workflow evolution

100%

Weights H / M / L: 100 / 30 / 1. Final-report scores on five Medium and 17 Low issues; mostly provisional single runs, separate from the adjudicated benchmark. Final Medium credit reached four in Experiment A07 and 4.5 in Experiment A10. Experiment A06 remained at three, unchanged from Experiment A01; it was discarded but supplied Experiment A07’s parent prompt. Its disputed raw-output detection count is not evidence of a final-report gain. Dashed lines show ancestry; the hexagon marks the selected configuration. Full matches earn one credit and partial matches half. Experiment A08 has no report; Experiment A12 is excluded for leading instructions. The incomplete Repeat 1 is omitted here. Weights rescale scores without changing historical selection decisions. ≥ marks recorded cost lower bounds.

Figure 2. Final-report weighted coverage for Experiments A01–A12 on the smaller optimization catalog (five Medium and 17 Low issues). Most scores are provisional single runs. They use a different catalog from Figures 3–4.

Other experiments tested these changes:

  • Divide the code into partitions for the reviewers.
  • Use Opus 5.5 as the lead agent.
  • Prescribe fewer review steps.
  • Use a different number of reviewers.

To select an experiment, we compared Medium credit first. When Medium credit was equal, we compared Low credit, then cost. We did not rank the experiments only by the total points in Figure 2. An experiment could be discarded as a basis for improving the workflow, but a later experiment could still reuse some of its instructions or learnings.

Experiment A10 won this stage and became Pareto. Repeats rerun that prompt unchanged. The comparison below uses the original selection run and two completed repeats. The appendix compares the prompts for Starting (20x), Pareto and Pareto v2.

Coverage and precision

The results below evaluate Pareto on Benchmark A. We later refined the workflow on Benchmark B into Pareto v2, then tested its post-review instructions on saved Benchmark A hunts to check whether the improvements carried back.

The results compare the three completed Pareto reports with one run each of Mythos 5.1 and Mythos 5.2. Pareto’s relative recall averaged 73.5%, compared with 60.2% for Mythos 5.1 and 71.3% for Mythos 5.2. Its severity-weighted coverage is 85.5%, versus 67.3% and 84.9%, respectively, at the selected weights. Precision is 26.4%, 71.6% and 49.3%; F1-scores are 38.8%, 65.4% and 58.3%. Error bars show one sample standard deviation. Pareto and Mythos 5.2 both earned 4.5 of five Medium credits; their small coverage difference comes from Low-severity issues and does not establish a reliable performance advantage.

Detection metrics across model configurations

Expand to zoom into the chart.

Detection metrics across model configurationsAll model configurations, ordered by selected severity-weighted coverage. Precision, relative recall and F1-score do not change with severity weights. Whiskers show one sample standard deviation where repeated runs exist.Precision0%50%100%26.449.359.561.271.665.741.395.858.939.131.546.968.87541.768.283.37543.866.741.727.330Relative recall0%50%100%73.571.351.969.460.242.638.921.330.623.130.615.710.227.827.827.820.416.713139.35.65.6F1-score0%50%100%38.858.355.465.165.451.740.134.840.229.13123.617.740.533.339.532.727.32021.715.29.29.4Weighted coverage0%50%100%85.584.979.677.167.355.354.342.230.228.115.611.610.17.57.57.55.54.53.53.52.51.51.5Ultrafuzz v0.2(DeepSeek V4.1 Flash1017)Mythos 5.2Opus 5.5 20xGPT-6.2 AstraMythos 5.1Kimi K3.1 Pro 20xDeepSeek V4.1 Flash1017 20xDaybreak 20xOpus 5.5DeepSeek V4.1 Flash20xGLM-5.3 20xDeepSeek V4.1 Flash1017Gemini 4 ArgonGPT-6 Sol DaybreakBlue (multi-agent)Kimi K3 20xKimi K3.1 ProDaybreakGemini 4 Argon LowKimi K3Mythos 5.1 + DeepSeek20xUltrafuzz v0.1(exhaustive, Kimi K3)DeepSeek V4.1 FlashGLM-5.3

Weights H / M / L: 100 / 30 / 1. Source: saved adjudicated Benchmark A aggregates. Rows are re-ranked by current weighted coverage. Ultrafuzz v0.2: three completed reports, including selection; other rows: one run. Error bars are one sample standard deviation, not confidence intervals.

Detection metrics across model configurations

100%

Weights H / M / L: 100 / 30 / 1. Source: saved adjudicated Benchmark A aggregates. Rows are re-ranked by current weighted coverage. Ultrafuzz v0.2: three completed reports, including selection; other rows: one run. Error bars are one sample standard deviation, not confidence intervals.

Figure 3. Detection metrics on the 54-issue catalog, ordered by severity-weighted coverage. Colors and marker shapes identify configurations consistently across figures. Ultrafuzz v0.2 (DeepSeek V4.1 Flash 1017) shows the mean of three report-complete runs; whiskers are one sample standard deviation.

Model spend and quality tradeoffs

The three-report Pareto mean is USD 39.20, compared with USD 883.19 for Mythos 5.1 and USD 582.96 for Mythos 5.2. That is about 22.5 and 14.9 times lower recorded model spend, respectively. The recently released GPT-6.2 Astra scored 77.1% for USD 23.68, which puts it on the cost frontier, but OpenAI’s cybersecurity filter stopped runs of four other GPT-6 configurations, so OpenAI results need further evaluation.

Run times also varied widely between configurations. The three Pareto runs took 10.1 to 13.4 hours of wall-clock time (12.1 hours on average), compared with 6.6 hours for Mythos 5.1 and 9.1 hours for Mythos 5.2. The OpenAI runs through Codex and the Gemini 4 Argon runs were the fastest, each finishing in under 45 minutes; GPT-6.2 Astra took 20 minutes. Single-prompt open-weight runs took about 2 to 7 hours, their 20x variants 5 to 17 hours, and the Ultrafuzz v0.1 exhaustive scan about 145 hours.

Recorded model spend and weighted coverage

Expand to zoom into the chart.

Recorded model spend and weighted coverageRecorded model spend on a logarithmic axis and severity-weighted coverage. A bold black step line marks the observed frontier. Each model keeps its original color and shape. Hover, focus or tap a point or legend entry for exact values. Dotted median boundaries and sample-standard-deviation whiskers describe the saved cohort.0%20%40%60%80%100%$0.1$1$10$100$1,000Mythos 5.1. Severity-weighted coverage: 67.3%. Recorded model spend: $883.19.Mythos 5.2. Severity-weighted coverage: 84.9%. Recorded model spend: $582.96.Opus 5.5. Severity-weighted coverage: 30.2%. Recorded model spend: $49.92.Opus 5.5 20x. Severity-weighted coverage: 79.6%. Recorded model spend: $277.18.Mythos 5.1 + DeepSeek 20x. Severity-weighted coverage: 3.5%. Recorded model spend: $167.6.Daybreak. Severity-weighted coverage: 5.5%. Recorded model spend: $9.58.Daybreak 20x. Severity-weighted coverage: 42.2%. Recorded model spend: $12.37.GPT-6 Sol Daybreak Blue (multi-agent). Severity-weighted coverage: 7.5%. Recorded model spend: $11.88.GPT-6.2 Astra. Severity-weighted coverage: 77.1%. Recorded model spend: $23.68.Kimi K3. Severity-weighted coverage: 3.5%. Recorded model spend: $8.16.DeepSeek V4.1 Flash. Severity-weighted coverage: 1.5%. Recorded model spend: $0.46.DeepSeek V4.1 Flash 20x. Severity-weighted coverage: 28.1%. Recorded model spend: $4.25.DeepSeek V4.1 Flash 1017. Severity-weighted coverage: 11.6%. Recorded model spend: $0.69.DeepSeek V4.1 Flash 1017 20x. Severity-weighted coverage: 54.3%. Recorded model spend: $8.09.Kimi K3 20x. Severity-weighted coverage: 7.5%. Recorded model spend: $81.65.Kimi K3.1 Pro. Severity-weighted coverage: 7.5%. Recorded model spend: $19.91.Kimi K3.1 Pro 20x. Severity-weighted coverage: 55.3%. Recorded model spend: $94.67.GLM-5.3. Severity-weighted coverage: 1.5%. Recorded model spend: $3.15.GLM-5.3 20x. Severity-weighted coverage: 15.6%. Recorded model spend: $34.75.Gemini 4 Argon. Severity-weighted coverage: 10.1%. Recorded model spend: $2.24.Gemini 4 Argon Low. Severity-weighted coverage: 4.5%. Recorded model spend: $3.89.Ultrafuzz v0.2 (DeepSeek V4.1 Flash 1017). Severity-weighted coverage: 85.5%. Recorded model spend: $39.2.Ultrafuzz v0.1 (exhaustive, Kimi K3). Severity-weighted coverage: 2.5%. Recorded model spend: $677.43.DeepSeek 1017DeepSeek Flash 20xDeepSeek 1017 20xUltrafuzz v0.2 (DeepSeek V4.1Flash 1017)Mythos 5.1Mythos 5.2Opus 5.5 20xRecorded model spend per audit (USD, logarithmic scale)Severity-weighted coverage

Lower cost · higher performanceHigher cost · lower performance

Hover, focus or tap a point or model name for details.

Black step: observed frontier. Dotted boundaries: cohort medians ($19.91; 11.6%). Hollow markers indicate cost bounds. Whiskers: ±1 sample standard deviation.

Weights H / M / L: 100 / 30 / 1. Source: saved Benchmark A aggregates. Model spend excludes search, evaluation, infrastructure and human review. The exhaustive entry is a historical scan on an earlier revision. The frontier follows saved cohort eligibility and excludes cost bounds.

Recorded model spend and weighted coverage

100%

Weights H / M / L: 100 / 30 / 1. Source: saved Benchmark A aggregates. Model spend excludes search, evaluation, infrastructure and human review. The exhaustive entry is a historical scan on an earlier revision. The frontier follows saved cohort eligibility and excludes cost bounds.

Figure 4. Points % (severity-weighted coverage), relative recall or F1-score against model spend on a logarithmic scale. The frontier and the shaded quadrants change with the selected metric. Hollow marks show cost lower bounds.

The marginal benefit of another review

The initial catalog contained four Medium and 17 Low issues. Across successive reviews, Low-severity defects continued to appear. By the fifth recorded AI review artifact, the catalog had reached five Medium and 43 Low issues; the following 19 artifacts added six Low issues and no Mediums. The curve below shows that cumulative growth, rather than the performance of each individual scan.

This suggests a declining marginal benefit from another review in this sequence: later additions were smaller, Low-severity defects, while Medium discovery had plateaued. It does not mean all bugs were found or predict what the next scan will find. No High issues were confirmed, so these results do not establish a High-severity plateau. Running the same evaluation on each target can help decide when to stop scanning.

How the issue catalog grew

Expand to zoom into the chart.

Total: 54 issuesHigh: 0 issuesMedium: 5 issuesLow: 49 issues

Hover, focus or tap an event to inspect its new issues and catalog total. Markers keep each model’s comparison-chart color and shape.

How the issue catalog grewUnfilled lines show total cumulative catalog points and each severity’s own contribution, followed by new points per recorded step. AI artifacts retain source artifact-availability order, with equal spacing. This is not scan-execution order, adjudication order or elapsed time. Private dates, links and artifact identifiers are withheld. Use the markers with keyboard, pointer or touch for exact values.Cumulative catalog pointsNo High issues in this catalog049.7599.5149.251995 Medium from event 5 onwardNew points per reviewInitial catalog excluded · separate scale01530Initial catalog, initial catalog: 137 points initially; 137 points cumulative. New issues: 0 High · 4 Medium · 17 Low. Catalog: 0 High · 4 Medium · 17 Low.137 pointsInitial0Daybreak, event 1: 7 points added; 144 points cumulative. New issues: 0 High · 0 Medium · 7 Low. Catalog: 0 High · 4 Medium · 24 Low.1Mythos 5.1, event 2: 18 points added; 162 points cumulative. New issues: 0 High · 0 Medium · 18 Low. Catalog: 0 High · 4 Medium · 42 Low.2Kimi K3, event 3: 0 points added; 162 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 4 Medium · 42 Low.3Ultrafuzz v0.1 (exhaustive, Kimi K3), event 4: 1 point added; 163 points cumulative. New issues: 0 High · 0 Medium · 1 Low. Catalog: 0 High · 4 Medium · 43 Low.4Daybreak 20x, event 5: 30 points added; 193 points cumulative. New issues: 0 High · 1 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.193 points5DeepSeek V4.1 Flash, event 6: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.6Kimi K3 20x, event 7: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.7GLM-5.3, event 8: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.8DeepSeek V4.1 Flash 20x, event 9: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.9DeepSeek V4.1 Flash 1017, event 10: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.10DeepSeek V4.1 Flash 1017 20x, event 11: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.11Mythos 5.1 + DeepSeek 20x, event 12: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.12Gemini 4 Argon, event 13: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.13GLM-5.3 20x, event 14: 0 points added; 193 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 43 Low.14Kimi K3.1 Pro 20x, event 15: 1 point added; 194 points cumulative. New issues: 0 High · 0 Medium · 1 Low. Catalog: 0 High · 5 Medium · 44 Low.15Kimi K3.1 Pro, event 16: 0 points added; 194 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 44 Low.16Gemini 4 Argon Low, event 17: 0 points added; 194 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 44 Low.17DeepSeek V4.1 Flash 1017 · Experiment 1 (archive), event 18: 1 point added; 195 points cumulative. New issues: 0 High · 0 Medium · 1 Low. Catalog: 0 High · 5 Medium · 45 Low.18Ultrafuzz v0.2 (DeepSeek V4.1 Flash 1017), event 19: 1 point added; 196 points cumulative. New issues: 0 High · 0 Medium · 1 Low. Catalog: 0 High · 5 Medium · 46 Low.19Opus 5.5, event 20: 0 points added; 196 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 46 Low.20Opus 5.5 20x, event 21: 0 points added; 196 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 46 Low.21Mythos 5.2, event 22: 2 points added; 198 points cumulative. New issues: 0 High · 0 Medium · 2 Low. Catalog: 0 High · 5 Medium · 48 Low.22GPT-6 Sol Daybreak Blue (multi-agent), event 23: 1 point added; 199 points cumulative. New issues: 0 High · 0 Medium · 1 Low. Catalog: 0 High · 5 Medium · 49 Low.23GPT-6.2 Astra, event 24: 0 points added; 199 points cumulative. New issues: 0 High · 0 Medium · 0 Low. Catalog: 0 High · 5 Medium · 49 Low.199 points24Recorded review event · 0 = initial catalog
GPT-6.2 AstraEvent 24
New: 0 points0 High · 0 Medium · 0 Low
Catalog: 199 points0 High · 5 Medium · 49 Low · 54 total issues

Weights H / M / L: 100 / 30 / 1. Distinct confirmed issues receive their full severity weight once, without partial-match discounts. Events follow artifact availability, not audit execution or elapsed time. This broader history includes retained archives and individual workflow artifacts, not cohort means. The initial catalog is a baseline.

How the issue catalog grew

100%

Weights H / M / L: 100 / 30 / 1. Distinct confirmed issues receive their full severity weight once, without partial-match discounts. Events follow artifact availability, not audit execution or elapsed time. This broader history includes retained archives and individual workflow artifacts, not cohort means. The initial catalog is a baseline.

Figure 5. Catalog growth across reviews. Each confirmed issue counts one time, at its full severity weight, with no partial credit. The sequence includes archival reports and retained reviewer output, which the submitted-report comparison does not include.

Transferring to Benchmark B

We then tested whether the coverage and cost advantage held on another target: Benchmark B, a private 5,821-SLOC Solidity codebase with no prior human security review.

Where the first transfer lost coverage

Benchmark B kept Experiment A10’s hunter instructions and multi-agent setup, but used a revised reporting pipeline. Before the transfer, we had tested batch and final merging, two independent verifiers per candidate, and scripted report assembly on saved Benchmark A hunter outputs. The aim was to improve precision while keeping recall about the same, by preserving findings through merging.

The first Benchmark B trials exposed a different bottleneck. Reviewers detected about four of seven known Medium issues per run, but the final reports earned only 1.33 credits on average: 19.0% relative recall. This was a significant drop in performance and fell short of our expectations.

Removing verification recovered more detections, but also produced much larger, less precise reports. This suggested that optimizing only for recall-driven points could quickly reduce precision. Those configurations failed the experiment’s precision requirement. The next step was to improve how reviewers searched and how their findings survived merging, verification and appeals.

Refining investigation and verification

An autonomous research agent proposed pipeline changes, while a separate scorer returned aggregate results without exposing the catalog. This autoresearch loop tested changes through both fresh audits and replays of saved reviewer outputs. The selected configuration changed the number of reviewers and their assignments, combining file-group reviews with call-path tracing, followed by merging, verification and appeals. A full audit searches the code again. A replay reuses the hunters’ saved reports and reruns the later stages, testing whether merging, verification and appeals preserve more of their findings.

Benchmark B: coverage across all development experiments

Expand to zoom into the chart.

Benchmark B: coverage across all development experimentsBenchmark B experiments on one launch-order axis, with circles for full audits, diamonds for replays, squares for unchanged repeats, and means with sample standard deviations. Baseline + Experiments B01–B17 · 18 configurations · 53 scored runs. Hover, focus or tap a configuration to read its runs.0%25%50%75%100%Mythos 5.1: 100% (one reference run)BaselineB01B02B03B04B05B06B07B08B09B10B11B12B13B14B15B16selectedB17repeatBaseline: full audit. Runs: 14.3%, 35.7%, 7.1%. Mean 19%, sample SD 14.9%, 3 runs.Experiment B01: frozen-hunt replay, below the precision requirement. Runs: 64.3%, 42.9%, 42.9%. Mean 50%, sample SD 12.4%, 3 runs.Experiment B02: frozen-hunt replay, below the precision requirement. Runs: 71.4%, 42.9%, 50%. Mean 54.8%, sample SD 14.9%, 3 runs.Experiment B03: full audit, below the precision requirement. Runs: 50%, 78.6%, 78.6%. Mean 69%, sample SD 16.5%, 3 runs.Experiment B04: full audit, below the precision requirement. Runs: 71.4%, 71.4%, 71.4%. Mean 71.4%, sample SD 0%, 3 runs.Experiment B05: full audit, below the precision requirement. Runs: 42.9%, 71.4%. Mean 57.1%, sample SD 20.2%, 2 runs.Experiment B06: frozen-hunt replay. Runs: 7.1%, 21.4%, 28.6%. Mean 19%, sample SD 10.9%, 3 runs.Experiment B07: frozen-hunt replay. Runs: 28.6%, 35.7%, 50%. Mean 38.1%, sample SD 10.9%, 3 runs.Experiment B08: full audit. Runs: 50%, 35.7%, 42.9%. Mean 42.9%, sample SD 7.1%, 3 runs.Experiment B09: frozen-hunt replay. Runs: 35.7%, 35.7%, 50%. Mean 40.5%, sample SD 8.2%, 3 runs.Experiment B10: frozen-hunt replay. Runs: 28.6%, 35.7%, 50%. Mean 38.1%, sample SD 10.9%, 3 runs.Experiment B11: frozen-hunt replay. Runs: 50%, 35.7%, 42.9%. Mean 42.9%, sample SD 7.1%, 3 runs.Experiment B12: full audit. Runs: 57.1%, 50%, 50%. Mean 52.4%, sample SD 4.1%, 3 runs.Experiment B13: full audit. Runs: 50%, 42.9%, 42.9%. Mean 45.2%, sample SD 4.1%, 3 runs.Experiment B14: frozen-hunt replay. Runs: 35.7%, 42.9%, 50%. Mean 42.9%, sample SD 7.1%, 3 runs.Experiment B15: full audit. Runs: 50%, 50%, 64.3%. Mean 54.8%, sample SD 8.2%, 3 runs.Experiment B16 (selected): full audit. Runs: 71.4%, 85.7%, 42.9%. Mean 66.7%, sample SD 21.8%, 3 runs.Experiment B17 (repeat): unchanged repeat. Runs: 57.1%, 71.4%, 50%. Mean 59.5%, sample SD 10.9%, 3 runs.Medium recallConfigurations in launch order
Full auditFrozen-hunt replayUnchanged repeatBelow precision requirementMean ± 1 sample SDMythos 5.1: one reference run

Hover, focus or tap a configuration to see its runs, mean and spread.

Source: saved Benchmark B runs, scored on the original seven Medium issues. Full matches earn one credit and partial matches half; duplicate detections add no credit. Full audits use new hunts; replays reuse the same three saved hunts. Means and sample standard deviations are calculated from the plotted runs.

Benchmark B: coverage across all development experiments

100%

Source: saved Benchmark B runs, scored on the original seven Medium issues. Full matches earn one credit and partial matches half; duplicate detections add no credit. Full audits use new hunts; replays reuse the same three saved hunts. Means and sample standard deviations are calculated from the plotted runs.

Figure 6. The Benchmark B workflow search: Baseline and Experiments B01–B17 in launch order. Experiment B17 repeats the selected B16 configuration. Each dot is one run. Whiskers show one sample standard deviation.

Across the three selection runs and three unchanged repeats, the selected workflow improved Medium recall from 19.0% to 63.1%, while reducing average model spend from USD 35.87 to USD 30.25. Selection runs averaged 66.7% recall and repeats 59.5%; no run recovered all seven Medium issues. Medium-only F1-score rose from 21.7% to 27.6%, although Medium-only precision fell from 26.4% to 17.7%; the precision improvement noted in the Summary was across all severities. Further reviews grew the confirmed catalog from 13 to 23 Low issues, while the seven Medium issues used for scoring stayed unchanged.

Benchmark B: Medium recall and model spend

Expand to zoom into the chart.

Benchmark B: Medium recall and model spendAll baseline, selection and repeat runs, plus the Mythos 5.1 reference. Cost increases to the right on a logarithmic axis. Higher recall is better. Hexagons show cohort means with one sample standard deviation. An arrow shows the observed change from the baseline mean to the selected mean. Hover, focus or tap a point to see recall and cost.0%25%50%75%100%$20$30$50$100$200$500+44.0 percentage points recall15.7% lower model spendBaseline · run 1. Medium recall: 14.3%. Recorded model spend: $34.7.Baseline · run 2. Medium recall: 35.7%. Recorded model spend: $34.36.Baseline · run 3. Medium recall: 7.1%. Recorded model spend: $38.54.Selected workflow · run 1. Medium recall: 71.4%. Recorded model spend: $33.15.Selected workflow · run 2. Medium recall: 85.7%. Recorded model spend: $33.07.Selected workflow · run 3. Medium recall: 42.9%. Recorded model spend: $28.49.Unchanged repeat · run 1. Medium recall: 57.1%. Recorded model spend: $30.97.Unchanged repeat · run 2. Medium recall: 71.4%. Recorded model spend: $26.85.Unchanged repeat · run 3. Medium recall: 50%. Recorded model spend: $28.98.Mythos 5.1 (one run). Medium recall: 100%. Recorded model spend: $523.37.Baseline mean (3 runs). Medium recall: 19%. Recorded model spend: $35.87.Selected workflow mean (6 runs). Medium recall: 63.1%. Recorded model spend: $30.25.Baseline: 19% · $35.87Selected workflow: 63.1% · $30.25Mythos 5.1: 100% · $523.37Medium recallRecorded model spend per audit (USD, logarithmic scale)
Baseline · 3 runsSelected workflow · 3 runsUnchanged repeat · 3 runsMythos 5.1 · 1 runMean ± 1 sample SD

Hover, focus or tap a point to see recall and cost.

The selected mean combines three selection runs and three unchanged repeats. Severity weights do not change recall.

Source: saved Benchmark B runs, scored on the original seven Medium issues. Full matches earn one credit; partial matches half. Mythos 5.1 is one run against a catalog seeded from its report; its 100% recall is conditional on that catalog. Costs cover full audits.

Benchmark B: Medium recall and model spend

100%

Source: saved Benchmark B runs, scored on the original seven Medium issues. Full matches earn one credit; partial matches half. Mythos 5.1 is one run against a catalog seeded from its report; its 100% recall is conditional on that catalog. Costs cover full audits.

Figure 7. Medium recall and model spend for three baseline runs, six selected-workflow runs and the Mythos 5.1 reference (star). The arrow shows the change between the cohort means: recall increased by 44.0 percentage points and model spend decreased by 15.7%.

Automating post-review optimization

Autoresearch searched over the audit workflow. The next stage narrowed the search to the instructions used after investigation, to test whether an optimizer could retain more useful reviewer output while the original hunts stayed fixed.

Fixed hunts, evolving instructions

GEPA (Genetic-Pareto) is a prompt optimizer that learns from feedback on previous runs. Its Python package takes starting prompts, training and validation examples, and an evaluator that returns scores and feedback. A reflection model reads execution traces to propose changes, which the optimizer tests and compares. It keeps candidates that perform well on different examples, so the search can build on more than one promising prompt.

DeepSeek V4.1 Flash 1017 ran the proposed merging, verification and appeal stages; Opus 5.5 proposed prompt edits and screened the results. Scripted report assembly stayed fixed.

We focused on Medium-and-higher recall. Since this catalog had no High-severity issues, that meant Medium recall. Low-severity findings did not count, because repeated scans can keep finding minor defects of little practical value. To keep recall from improving at the expense of precision, the score was reduced proportionally when the precision upper estimate fell below a threshold.

Training and validation results

Before optimization, we split the saved hunter reports into training and validation sets without using their scores. GEPA used detailed feedback from the training runs to propose prompt changes. It then tested promising changes on the validation set, using the same saved reports for every candidate.

Training feedback helped GEPA find better-performing instructions, and the best validation score rose from 45.2% to 63.1% as the search progressed. The selected instructions improved the score on every saved validation input; the final round produced no further gain. The winning changes focused on verification and appeals and became the final post-review instructions for Pareto v2. Because validation results helped select the winner, the gain shows progress within the optimization, not generalization. We then froze the winning instructions to test whether those improvements would transfer to the other benchmark.

The upper panel tracks the best validation score so far, while keeping every candidate’s score visible. The shaded band shows pointwise 95% intervals around the candidate means, calculated by resampling the saved validation inputs. These intervals do not adjust for using validation results to select the winner.

The lower panel shows individual training and validation replay scores with rolling averages. Its shaded bands show the middle 50% of recent scores, not confidence intervals. Both panels count completed replays.

GEPA: progress and variability during optimization

Tap the figure to enlarge it. The enlarged view zooms and scrolls.

Upper band: intervals for candidate means, not the best-so-far line; not selection-adjusted. Lower bands: middle 50% of recent replay scores, not confidence intervals. Windows overlap and reuse hunts. Replays reuse saved reports. Results on these reused inputs do not establish transfer to another target.

GEPA: progress and variability during optimization

100%

Upper band: intervals for candidate means, not the best-so-far line; not selection-adjusted. Lower bands: middle 50% of recent replay scores, not confidence intervals. Windows overlap and reuse hunts. Replays reuse saved reports. Results on these reused inputs do not establish transfer to another target.

Figure 8. Candidate means use the same validation inputs and appear when their evaluations are complete. The best-so-far line rises only when a candidate improves the score. Validation guided selection, so these results show optimization progress, not performance on a new target.

Optimization cost

The documented optimization spend was USD 4,135.46, including estimated GEPA judging and USD 3,093.83 in recorded model usage across both phases and the final transfer test. Priced GEPA replays averaged USD 6.43 each. The total excludes first-phase judging, reflection, infrastructure and unreported usage. The budget was approximate: we let the final optimization round finish instead of starting another, so spend slightly exceeded it.

Testing transfer back to Benchmark A

After improving the workflow on Benchmark B, we returned to Benchmark A to check how well the changes transferred. We compared GEPA’s starting and winning post-review instructions on the same saved hunter reports. This tested the later reporting stages without repeating the original hunt; it was not a direct comparison of the original Benchmark A winner with the full Pareto v2 workflow. Benchmark A was excluded from GEPA training and selection.

The winning instructions retained most of the recall, with similar estimated precision. Medium recall was unchanged in most paired replays, with the mean moving from 73.3% to 70.0%. The precision upper estimate moved from 49.7% to 50.6%. The changes learned on Benchmark B did not improve Benchmark A, but largely preserved its performance in the replay test.

Limitations and next steps

What the evidence can establish

These results cover two targets, with substantial optimization on both. Every Benchmark A configuration except Pareto has one run; Benchmark B experiments usually have three runs (Experiment B05 has two), with six for the selected configuration and its repeat. The reported cohorts include the runs whose benchmark feedback selected those configurations. The error bars describe observed variation. They do not establish general superiority or estimate reliability precisely.

The catalogs contain known, adjudicated issues and may grow or change after further review. Benchmark B’s catalog was seeded from the Mythos 5.1 reference report, so that comparison has to be read differently from Benchmark A’s. Its later experiment results rely on automated judging and remain subject to adjudication; precision upper estimates include plausible new claims, not only confirmed detections. Both currently lack High-severity examples, so the results do not measure performance on that severity class.

Contamination controls have limits. Agents had broad tool access, some local regression artifacts contained audit-related clues, and retained transcripts are incomplete for some runs. No retained pre-report evidence showed an external answer-key fetch, but that does not establish a fully blind benchmark. Prompt-leakage checks and held-out evaluations address related but different risks.

How the performance metric changes the conclusion

The ranking depends on what we measure. Pareto’s coverage result on Benchmark A does not imply a lead on precision or F1-score; several configurations, including Mythos 5.1, Mythos 5.2 and GPT-6.2 Astra, retain higher values on those metrics. High/Medium/Low weights also change how much each credited finding contributes to the score. Edit them below to recalculate weighted coverage, uncertainty, rankings and cost frontiers throughout the article.

Scoring weights

H / M / L: 100 / 30 / 1. Weighted charts updated.

The main catalog and the smaller optimization catalog keep their separate denominators. Reweighting does not change the findings, the judgments or the recorded model spend. Benchmark B’s Medium recall and GEPA’s precision-penalized validation score remain separate metrics.

The next hillclimb avenues

The completed sequence suggests three next experiments:

  • Broaden the training set. Evolve instructions across several codebases, then freeze the candidate before testing a codebase excluded from the entire development process. Compare aggregate feedback with more detailed feedback to measure the tradeoff between learning and benchmark dependence.
  • Invest in the hunt. Compare broader reviewer coverage and independent hunts with a shared merge-and-verify pass. The union of the three original selected Benchmark B reports covered 6.5 of seven Medium credits, or 92.9%. A merged, verified report has not yet reproduced that union, and its precision and cost remain untested.
  • Evaluate the complete workflow. Run fresh full audits with repeated launches. Measure recall, precision, completion and model spend together; report optimization and judging costs separately. Replay gains alone cannot establish the performance of a new full audit.

Autoresearch improved the full workflow on Benchmark B, and GEPA raised its best validation score from 45.2% to 63.1%. On Benchmark A, GEPA’s instructions preserved performance but did not improve it.

Appendix: prompt evolution

From the first prompt to the final workflow

Compare Starting (20x) → Pareto → Pareto v2. The first transition shows the winning prompt from Benchmark A; the second shows the later Benchmark B workflow with GEPA’s selected post-review instructions, as packaged in the reviewed portable skill. Added text is green; removed text is red.

Choose a transition. Green lines are added; red lines are removed. Open a role to read its complete diff.

Compare prompts
Task prompt+3 −1

Compare the complete task prompts. The Starting (20x) text includes the 20-subagent addition.

Perform a security review of this private repository {TARGET_REPOSITORY} at commit {PINNED_COMMIT}.
You MUST review this private repository only. Do not clone, fetch, browse or review any other repository or copy of this code, even if it looks like the same project: other copies contain different code. If you cannot access the private repository, stop and say so instead of reviewing something else.
Scope (paths in that repository):
{AUDIT_SCOPE}
Report every vulnerability and bug you find in the in-scope files, with its severity, location, root cause, impact and, where possible, a proof of concept. Write the report to report.md. Install required dependencies and tools for your security review.
Use 20 sub-agents at their maximum reasoning, each with the same prompt. Then deduplicate and aggregate results in a unified report.
Use 60 independent sub-agents (reviewer-01 to reviewer-60) at maximum reasoning, then verify, deduplicate and aggregate their findings in a unified report.
Aggregation procedure. Do not review the code yourself and do not build or test the project; your job is to merge. Merge the reviewers one at a time, in order, from their files on disk: for reviewer N, read {REVIEWER_OUTPUTS}/reviewer-N/report.md in full (in chunks if it is long), then re-read report.md from disk and update it before you open the next reviewer's file. For each of that reviewer's findings, either append it to report.md as a new finding, keeping the reviewer's title, severity, file:line, root cause, impact and trigger steps or PoC, or, if report.md already has a finding with the same root cause and the same code path, add the reviewer's name and any extra detail to that finding. Keep distinct root causes as separate findings even when they touch the same function or have similar impact. Never drop a finding because only one reviewer reported it, because its severity is low or because you are unsure; drop it only if the reviewer itself retracted it or another reviewer's PoC shows the described behaviour cannot happen, and list every dropped finding with a one-line reason in a final appendix. When reviewers disagree on severity keep the highest. Rely only on the files on disk, never on your memory of earlier reviewers, so a context reset cannot lose findings. After the last reviewer, check that every reviewer's file has been merged, then add a severity summary table at the top. Run the reviewers in batches of 10: launch a batch, wait for all of it to return, merge those reviewers' files into report.md as above, then launch the next batch. Keep a progress file {WORKSPACE}/merge-progress.md listing every reviewer that has been launched, returned and merged; update it after each step and re-read it before deciding what to do next, so that if your context is reset you resume from the file instead of from memory.
Coordinator / lead+3 −0

A separate role prompt was added at this stage. Starting (20x) asked hunters to use the task prompt; no separate role text is invented for that baseline.

You are the lead auditor for a 60-reviewer security review. Invoke each named reviewer reviewer-01 through reviewer-60 exactly once on its own instructions. Run no more than 10 reviewer tasks at once. After each reviewer returns, check that its {REVIEWER_OUTPUTS}/<name>/report.md exists and is non-empty; if it returned the report as text but the file is missing, write that text to the path verbatim. If a reviewer fails (a provider error, an output-limit stop or an empty result), wait 60 seconds and retry that same reviewer once. Do not launch recursive subagents. Then verify the reviewers' findings and write the unified report.md.
Aggregation procedure. Do not review the code yourself and do not build or test the project; your job is to merge. Merge the reviewers one at a time, in order, from their files on disk: for reviewer N, read {REVIEWER_OUTPUTS}/reviewer-N/report.md in full (in chunks if it is long), then re-read report.md from disk and update it before you open the next reviewer's file. For each of that reviewer's findings, either append it to report.md as a new finding, keeping the reviewer's title, severity, file:line, root cause, impact and trigger steps or PoC, or, if report.md already has a finding with the same root cause and the same code path, add the reviewer's name and any extra detail to that finding. Keep distinct root causes as separate findings even when they touch the same function or have similar impact. Never drop a finding because only one reviewer reported it, because its severity is low or because you are unsure; drop it only if the reviewer itself retracted it or another reviewer's PoC shows the described behaviour cannot happen, and list every dropped finding with a one-line reason in a final appendix. When reviewers disagree on severity keep the highest. Rely only on the files on disk, never on your memory of earlier reviewers, so a context reset cannot lose findings. After the last reviewer, check that every reviewer's file has been merged, then add a severity summary table at the top. Run the reviewers in batches of 10: launch a batch, wait for all of it to return, merge those reviewers' files into report.md as above, then launch the next batch. Keep a progress file {WORKSPACE}/merge-progress.md listing every reviewer that has been launched, returned and merged; update it after each step and re-read it before deciding what to do next, so that if your context is reset you resume from the file instead of from memory.
Hunter / reviewer+12 −0

A separate role prompt was added at this stage. Starting (20x) asked hunters to use the task prompt; no separate role text is invented for that baseline.

Perform a security review of this private repository {TARGET_REPOSITORY} at commit {PINNED_COMMIT}.
You MUST review this private repository only. Do not clone, fetch, browse or review any other repository or copy of this code, even if it looks like the same project: other copies contain different code. If you cannot access the private repository, stop and say so instead of reviewing something else.
Scope (paths in that repository):
{AUDIT_SCOPE}
Report every vulnerability and bug you find in the in-scope files, with its severity, location, root cause, impact and, where possible, a proof of concept. Write the report to report.md. Install required dependencies and tools for your security review.
Work only from the code and files in this workspace; do not search for, fetch or rely on any external audit reports, contest write-ups or recalled findings about this project. Workflow. (1) Read the repository README, NatSpec and code comments relevant to the in-scope files and write down what each external or public function promises its callers and users. (2) For each external or public entry point, trace the full call path through helpers, libraries and other in-scope contracts, and check every state change, stored value and token transfer against those promises and against every other entry point that reads or writes the same storage. (3) Build the project with forge and, for each candidate finding, try to confirm it with a Foundry test in your own uniquely named directory; if you cannot finish a test, still report the finding with your reasoning and mark it unconfirmed. (4) Append each finding to your report file as soon as you have it instead of waiting until the end, so nothing is lost if you are cut off. Report every finding you believe may be real at any severity, including ones you are unsure about (state your confidence), each with file:line, root cause, impact and trigger steps. (5) Coverage pass: when you think you are done, list every external or public function and every storage variable (including every storage layout documented in the repository README) in the in-scope files, and mark which ones you actually examined. Then do a second pass over everything you did not examine or examined only briefly, this time starting from the storage side: for each storage variable, find every function that writes it and every function that reads it, and check that every writer keeps it consistent with what every reader expects. Add new findings to your report as you go.
Execution instructions: Work from {WORKSPACE}. Do not delegate or read other reviewers' reports. Write your individual report to {REVIEWER_OUTPUTS}/reviewer-01/report.md instead of the shared report.md, update it as the review progresses, and use a uniquely named directory for any PoC files. Before you return, run `test -s {REVIEWER_OUTPUTS}/reviewer-01/report.md` and fix it if the check fails. Return the full report text to the lead as well. If your prior attempt failed, start a fresh review and replace the incomplete report.
Task prompt+0 −12

Pareto v2 puts project inputs in configuration and its rendered coordinator and hunter prompts. There is no separate task template, so the historical task text appears as removed here.

Perform a security review of this private repository {TARGET_REPOSITORY} at commit {PINNED_COMMIT}.
You MUST review this private repository only. Do not clone, fetch, browse or review any other repository or copy of this code, even if it looks like the same project: other copies contain different code. If you cannot access the private repository, stop and say so instead of reviewing something else.
Scope (paths in that repository):
{AUDIT_SCOPE}
Report every vulnerability and bug you find in the in-scope files, with its severity, location, root cause, impact and, where possible, a proof of concept. Write the report to report.md. Install required dependencies and tools for your security review.
Use 60 independent sub-agents (reviewer-01 to reviewer-60) at maximum reasoning, then verify, deduplicate and aggregate their findings in a unified report.
Aggregation procedure. Do not review the code yourself and do not build or test the project; your job is to merge. Merge the reviewers one at a time, in order, from their files on disk: for reviewer N, read {REVIEWER_OUTPUTS}/reviewer-N/report.md in full (in chunks if it is long), then re-read report.md from disk and update it before you open the next reviewer's file. For each of that reviewer's findings, either append it to report.md as a new finding, keeping the reviewer's title, severity, file:line, root cause, impact and trigger steps or PoC, or, if report.md already has a finding with the same root cause and the same code path, add the reviewer's name and any extra detail to that finding. Keep distinct root causes as separate findings even when they touch the same function or have similar impact. Never drop a finding because only one reviewer reported it, because its severity is low or because you are unsure; drop it only if the reviewer itself retracted it or another reviewer's PoC shows the described behaviour cannot happen, and list every dropped finding with a one-line reason in a final appendix. When reviewers disagree on severity keep the highest. Rely only on the files on disk, never on your memory of earlier reviewers, so a context reset cannot lose findings. After the last reviewer, check that every reviewer's file has been merged, then add a severity summary table at the top. Run the reviewers in batches of 10: launch a batch, wait for all of it to return, merge those reviewers' files into report.md as above, then launch the next batch. Keep a progress file {WORKSPACE}/merge-progress.md listing every reviewer that has been launched, returned and merged; update it after each step and re-read it before deciding what to do next, so that if your context is reset you resume from the file instead of from memory.
Coordinator / lead+85 −2

Compare the historical lead prompt with the complete Pareto v2 coordinator template.

You are the lead auditor for a 60-reviewer security review. Invoke each named reviewer reviewer-01 through reviewer-60 exactly once on its own instructions. Run no more than 10 reviewer tasks at once. After each reviewer returns, check that its {REVIEWER_OUTPUTS}/<name>/report.md exists and is non-empty; if it returned the report as text but the file is missing, write that text to the path verbatim. If a reviewer fails (a provider error, an output-limit stop or an empty result), wait 60 seconds and retry that same reviewer once. Do not launch recursive subagents. Then verify the reviewers' findings and write the unified report.md.
You are the lead auditor for a {NUMBER_OF_HUNTERS}-reviewer security review of {PROJECT}.
Review repository {REPOSITORY} at revision {REVISION}, in {WORKSPACE}.
Check that the supplied workspace matches the pinned revision before hunting. Use checkout metadata
or the trusted snapshot record. The renderer checks the revision's format, not the workspace contents.
The audit scope is:
{AUDIT_SCOPE}
Aggregation procedure. Do not review the code yourself and do not build or test the project; your job is to merge. Merge the reviewers one at a time, in order, from their files on disk: for reviewer N, read {REVIEWER_OUTPUTS}/reviewer-N/report.md in full (in chunks if it is long), then re-read report.md from disk and update it before you open the next reviewer's file. For each of that reviewer's findings, either append it to report.md as a new finding, keeping the reviewer's title, severity, file:line, root cause, impact and trigger steps or PoC, or, if report.md already has a finding with the same root cause and the same code path, add the reviewer's name and any extra detail to that finding. Keep distinct root causes as separate findings even when they touch the same function or have similar impact. Never drop a finding because only one reviewer reported it, because its severity is low or because you are unsure; drop it only if the reviewer itself retracted it or another reviewer's PoC shows the described behaviour cannot happen, and list every dropped finding with a one-line reason in a final appendix. When reviewers disagree on severity keep the highest. Rely only on the files on disk, never on your memory of earlier reviewers, so a context reset cannot lose findings. After the last reviewer, check that every reviewer's file has been merged, then add a severity summary table at the top. Run the reviewers in batches of 10: launch a batch, wait for all of it to return, merge those reviewers' files into report.md as above, then launch the next batch. Keep a progress file {WORKSPACE}/merge-progress.md listing every reviewer that has been launched, returned and merged; update it after each step and re-read it before deciding what to do next, so that if your context is reset you resume from the file instead of from memory.
Threat model:
{THREAT_MODEL}
Use the saved configuration at {CONFIG} and the run manifest at {MANIFEST}.
{RUNTIME_POLICY}
Prepare the hunter assignments yourself. The user does not need to partition the code.
Read the project documentation, Solidity source layout, inheritance, public/external entry points,
shared storage and contract dependencies. This prepares coverage assignments; do not give hunters a
list of suspected vulnerabilities to confirm. Keep the remaining work for hunting, merging,
verification and appeals.
Create complementary file groups and call-path groups. Group related files by responsibility,
storage, inheritance and dependencies. Give every in-scope source file one primary file group.
Balance groups by complexity and review effort, not by equal line counts. Call-path groups cover
important externally reachable workflows through their entry points, state changes and external
interactions, including relevant callbacks and failure or recovery paths. They intentionally overlap
file groups. Hunters may follow relevant calls and shared state beyond their primary group, within
the audit scope. Inspecting a dependency does not expand the reporting scope.
Save the assignments to {PLAN} before launching hunters. Use this JSON structure:
- revision: the configured revision; scope: the configured scope list.
- entry_points: the public/external entry-point inventory, with entries such as
"src/Pool.sol:Pool.deposit(uint256)".
- entry_point_inventory_complete: whether that inventory is complete; limitations: any gaps.
- file_groups: objects with id, files, purpose, dependencies, effort and hunters.
- entrypoint_groups: objects with id, entry_points, files, purpose, dependencies, effort and hunters.
Use workspace-relative file paths. Match every file in scope-inventory.json to exactly one file group,
and each inventoried entry point to at least one call-path group. Record a limitation if a complete
entry-point inventory cannot be established; retain file coverage instead of claiming complete
entry-point coverage. State structural responsibilities and intended behaviour, not presumed bugs.
Choose the group count and size to fit the project and configured hunter count. Use the configured
file-group and call-path repetition defaults unless the saved plan explicitly records an allocation
change. The hunter allocations must total {NUMBER_OF_HUNTERS}. Resolve nonexistent paths, empty
groups and unassigned files. Do not silently omit scope to fit the allocation. If a configuration
change is needed, record it in the configuration and prepare a new run directory before generating tasks.
Run {PREPARE_HUNT_COMMAND} to validate the plan and render the task prompts.
Read the task lists under {RENDER_DIR}. Invoke each named hunter from hunt-tasks.json on its own
rendered instructions. Do not launch recursive subagents. After each hunter returns, check that its
listed output exists and is non-empty. If it returned the report as text but the file is missing,
write that text to the path verbatim. If a hunter fails, wait {RETRY_DELAY_SECONDS} seconds and
retry that same hunter, up to {RETRY_COUNT} retries. Keep hunter reasoning and reports independent.
Run the stages below in order. Keep your own context small: do not read reviewer reports, candidate
lists or verdicts yourself; launch the named agents, run the commands and read their short output.
Each named agent runs once, with up to {RETRY_COUNT} retries after failure, waiting
{RETRY_DELAY_SECONDS} seconds between attempts. Run no more than {CONCURRENCY} tasks at once.
Record every step in {OUT}/merge-progress.md and re-read it before each step. Record missing outputs
after retries. Keep completed work and make any resulting coverage limits visible.
1. Merge. Hunters are batched in groups of {MERGE_BATCH_SIZE} in merge-tasks.json, with a shorter
final batch when needed. Launch each batch merger with its rendered task as soon as that batch's
reports exist. Its task lists the reports, candidate number range and output file. After the retry
limit, preserve a partial batch if some reports remain missing, and record which ones are missing;
do not invent their contents. When the batch merges finish, run {COVERAGE_COMMAND} and note
unmapped headings in the progress file. The coverage command checks heading mappings; it does not
prove all reports arrived or all code was reviewed. Launch merger-final on the rendered list of
actual batches. Do not silently skip a missing batch.
2. Verify. Run {SHARDS_COMMAND}, then {PREPARE_VERIFY_COMMAND}. Launch the tasks in
verify-tasks.json: {VERIFIERS_PER_SHARD} independent verifiers for each of
{NUMBER_OF_SHARDS} shards, within the concurrency limit. Each rendered verifier prompt contains
the shared review rules. Do not share one verifier's output or reasoning with another. Check
expected output files and assigned candidate verdicts. Retry missing or empty outputs within the
configured retry limit. Do not change or write verdicts yourself.
3. Appeal. Run {PRE_REPORT_COMMAND}. Use its status output to identify incomplete reviews; retry
missing work only within the remaining configured limit. Then run {PREPARE_APPEAL_COMMAND}.
Launch the tasks in appeal-tasks.json, with {APPEAL_REVIEWERS} reviewers assigned equal parts of
the rejected-candidate list. Each may restore up to {APPEAL_RESTORE_LIMIT} confirmed candidates.
Do not share appeal reviewers' outputs. Keep the original verifier outputs and all appeal outputs.
The assembly tool reads their expected locations from the manifest.
4. Assemble. Run {FINAL_REPORT_COMMAND}. A successful write means the report file exists; inspect
its completion status before saying the review is complete. List any missing or invalid expected
outputs and affected reviews. If work is still missing after the retry limit, return the partial
report and say the review is incomplete. Preserve all completed work. Do not label an unreviewed
candidate as a confirmed finding. Return the report path and completion status, then end.
Hunter / reviewer+11 −4

Compare the historical representative reviewer prompt with the shared Pareto v2 hunter template.

Perform a security review of this private repository {TARGET_REPOSITORY} at commit {PINNED_COMMIT}.
Perform a security review of {PROJECT}, repository {REPOSITORY} at commit {REVISION}.
You MUST review this private repository only. Do not clone, fetch, browse or review any other repository or copy of this code, even if it looks like the same project: other copies contain different code. If you cannot access the private repository, stop and say so instead of reviewing something else.
You MUST review this repository and revision only. Do not review another copy of the project: other copies can contain different code. If you cannot access the specified revision, stop and say so instead of reviewing something else.
Scope (paths in that repository):
{AUDIT_SCOPE}
Threat model:
{THREAT_MODEL}
Report every vulnerability and bug you find in the in-scope files, with its severity, location, root cause, impact and, where possible, a proof of concept. Write the report to report.md. Install required dependencies and tools for your security review.
Work only from the code and files in this workspace; do not search for, fetch or rely on any external audit reports, contest write-ups or recalled findings about this project. Workflow. (1) Read the repository README, NatSpec and code comments relevant to the in-scope files and write down what each external or public function promises its callers and users. (2) For each external or public entry point, trace the full call path through helpers, libraries and other in-scope contracts, and check every state change, stored value and token transfer against those promises and against every other entry point that reads or writes the same storage. (3) Build the project with forge and, for each candidate finding, try to confirm it with a Foundry test in your own uniquely named directory; if you cannot finish a test, still report the finding with your reasoning and mark it unconfirmed. (4) Append each finding to your report file as soon as you have it instead of waiting until the end, so nothing is lost if you are cut off. Report every finding you believe may be real at any severity, including ones you are unsure about (state your confidence), each with file:line, root cause, impact and trigger steps. (5) Coverage pass: when you think you are done, list every external or public function and every storage variable (including every storage layout documented in the repository README) in the in-scope files, and mark which ones you actually examined. Then do a second pass over everything you did not examine or examined only briefly, this time starting from the storage side: for each storage variable, find every function that writes it and every function that reads it, and check that every writer keeps it consistent with what every reader expects. Add new findings to your report as you go.
Severity. Rate each finding's impact and likelihood as Low, Medium or High and derive its severity from them: Low impact is Low at every likelihood; Medium impact is Low at Low likelihood and Medium otherwise; High impact is Medium at Low likelihood and High otherwise. Impact: High requires direct asset loss or compromise; Medium materially affects protocol operation, availability, accounting or value; Low covers limited defects with minor consequences. Likelihood: High means reliably reachable by an ordinary participant or naturally occurring in realistic use; Medium requires meaningful but plausible conditions; Low requires restrictive conditions or trusted participation. State the actors, permissions and conditions each finding needs. Use Informational for an observation without a demonstrated security consequence.
Execution instructions: Work from {WORKSPACE}. Do not delegate or read other reviewers' reports. Write your individual report to {REVIEWER_OUTPUTS}/reviewer-01/report.md instead of the shared report.md, update it as the review progresses, and use a uniquely named directory for any PoC files. Before you return, run `test -s {REVIEWER_OUTPUTS}/reviewer-01/report.md` and fix it if the check fails. Return the full report text to the lead as well. If your prior attempt failed, start a fresh review and replace the incomplete report.
Your assigned focus (other reviewers cover the rest; report anything else you notice too): {ASSIGNMENT}
{REFERENCE_POLICY} Workflow. (1) Read the repository README, NatSpec and code comments relevant to the in-scope files and write down what each external or public function promises its callers and users. (2) For each external or public entry point, trace the full call path through helpers, libraries and other in-scope contracts, and check every state change, stored value and token transfer against those promises and against every other entry point that reads or writes the same storage. (3) Build the project with {BUILD_COMMAND} and, for each candidate finding, try to confirm it with a Foundry test in your own uniquely named directory; if you cannot finish a test, still report the finding with your reasoning and mark it unconfirmed. If you build into your own cache or out directory, delete that directory when you finish, and keep your tests. (4) Append each finding to your report file as soon as you have it instead of waiting until the end, so nothing is lost if you are cut off. Report every finding you believe may be real at any severity, including ones you are unsure about (state your confidence), each with file:line, root cause, impact and trigger steps. (5) Coverage pass: when you think you are done, list every external or public function and every storage variable (including every storage layout documented in the repository README) in your assigned files, and mark which ones you actually examined. Then do a second pass over everything you did not examine or examined only briefly, this time starting from the storage side: for each storage variable, find every function that writes it and every function that reads it, and check that every writer keeps it consistent with what every reader expects. Add new findings to your report as you go.
Execution instructions: Work from {WORKSPACE}. Do not delegate or read other reviewers' reports. Write your individual report to {REPORT} instead of the shared report.md, update it as the review progresses, and use a uniquely named directory for any PoC files. Before you return, run {REPORT_CHECK_COMMAND} and fix it if the check fails. Return the full report text to the lead as well. If your prior attempt failed, start a fresh review and replace the incomplete report.
Batch merger+37 −0

This stage adds a separate role prompt; its complete text appears as additions.

You merge security-review reports written by independent reviewers into one candidate list. You do not
review the code and you do not build or test the project. Your task names the reviewer reports to merge and
your output file. Work only from those reports; do not search for, fetch or rely on any external audit
reports, contest write-ups or recalled findings about this project.
Read every listed report in full from disk, in chunks if it is long. Then build the candidate list:
1. One candidate per distinct (root cause, fix) pair. Two reviewer findings are the same candidate only if
they have the same root cause and the same fix. Sharing a function, a statement or a code path is not
enough: two different defects in one line are two candidates.
2. If one reviewer finding describes two or more root causes, split it into one candidate per root cause.
Never put a second mechanism into a detail line of another candidate.
3. Start each candidate from the most complete reviewer version: the one that names the exact expression,
lists every affected site, states the consequence and has a passing PoC. Add facts from other versions
only if they are about the same root cause, and list every reporting reviewer under Sources. Copy the
reviewers' text; never invent code, line numbers or expressions.
4. Keep the highest severity any reviewer gave; a later stage recalibrates it.
5. Drop nothing. After the candidates, add a section "## Dismissed by reviewers" listing every item a
reviewer put in notes, marked as not an issue, retracted or called intended, with the reviewer's reason.
6. End with a section "## Coverage" with one line for every level-3 or level-4 heading in every report you
merged: `reviewer-07 | <the heading text, copied exactly> | C-012`, or `NOT-A-FINDING` for headings such
as Summary, Notes or Coverage, or `DISMISSED`.
Number your candidates from the first number your task gives you.
Candidate format: one block per candidate, numbered in the order you write them:
### [C-012] <one line naming the mechanism: what is wrong, where, and what it causes>
- Severity: High | Medium | Low | Info
- Location: path/to/File.sol:120-140 (every affected site)
- Root cause: <the exact expression or missing check, quoted from the code>
- Impact: <who loses what, or which action fails, and under which conditions>
- Trigger / PoC: <steps; the path of a Foundry test and whether it passes>
- Fix: <the change that removes this root cause>
- Sources: <every reviewer finding that reports it, as reviewer-NN plus its heading id>
Write the whole list to your output file, in several appended parts if it is long. Then run
{COVERAGE_COMMAND} and fix
every unmapped heading it prints before you return. Return a one-paragraph summary, not the list.
Assignment: {ASSIGNMENT}
Output file: {REPORT}
Final merger+25 −0

This stage adds a separate role prompt; its complete text appears as additions.

You merge per-batch candidate lists into one candidate list, with the batch mergers' rules: one candidate
per distinct (root cause, fix) pair; never merge two root causes because they share code; split any
candidate that holds two root causes; start from the most complete version and union the Sources; keep the
highest severity; drop nothing; keep every "Dismissed by reviewers" item in one combined section; copy text
and never invent code. Work only from the batch files; do not search for, fetch or rely on any external
audit reports, contest write-ups or recalled findings about this project. Read each batch file in full from
disk before you write. Renumber the final
candidates C-001, C-002, ... and end with "## Coverage" lines mapping every batch candidate to its final
candidate, as `batch-3 | C-317 | C-041`.
Candidate format: one block per candidate, numbered in the order you write them:
### [C-012] <one line naming the mechanism: what is wrong, where, and what it causes>
- Severity: High | Medium | Low | Info
- Location: path/to/File.sol:120-140 (every affected site)
- Root cause: <the exact expression or missing check, quoted from the code>
- Impact: <who loses what, or which action fails, and under which conditions>
- Trigger / PoC: <steps; the path of a Foundry test and whether it passes>
- Fix: <the change that removes this root cause>
- Sources: <every reviewer finding that reports it, as reviewer-NN plus its heading id>
Write the result to {OUT}/merge/candidates.md, in several appended parts if it is long, and return a
one-paragraph summary.
If there are no candidates, write a line that says "No candidates." and retain the coverage and
dismissed-item sections. This distinguishes an empty result from a malformed candidate list.
Assignment: {ASSIGNMENT}
Output file: {REPORT}
Verifier+73 −0

This stage adds a separate role prompt; its complete text appears as additions.

You independently verify candidate security findings for the code at {WORKSPACE}, which also holds
the reviewers' Foundry tests under test/.
Judge each candidate on its own evidence in the code. Ignore the severity label that the candidate came with.
(1) Who pays: check the loss to every party, not only to the caller. If a shared pool, escrow, protocol fund or
another user pays for each repetition, replay or failed attempt, that is a loss even when the caller's own net
gain is small. Do not dismiss it because each transaction is capped, because the caller pays its own gas, or
because the per-use amount is small. Multiply the per-use cost by the number of uses possible under the protocol's limits. If nothing on-chain bounds that number, treat the total as unbounded.
(2) Documented design: a candidate is accepted design only if the documentation explicitly accepts the harmful
consequence. Documentation that only describes the mechanism is not enough.
(3) Preconditions: if the default or canonical configuration avoids the precondition, do not stop there. Search
the code for every function that can write the state that the precondition needs. For each one, check who can call it and whether its inputs are
validated on-chain. Check whether a function that forwards caller-supplied calldata, payloads or configuration without
checking their content can create the precondition. If a path available to an attacker under the threat model can create the precondition, the candidate is reachable. Before you rule a
precondition unreachable, name the function or functions you checked. If another candidate in your shard
describes the enabling step, judge the combined chain as well.
(4) Limited keys: If the threat model includes compromise of a scoped or limited key or signer, treat
compromise of that key as an untrusted capability, not as trusted participation. The question is whether the key
can cause more harm than its scope is meant to allow, for example by choosing unbound arguments or by obtaining wider permissions. If any trusted role signs content that a limited-key-controlled
component builds and the on-chain code does not bind or check that content, check whether that path lets the key exceed its intended scope.
(5) Supported configurations: if the code explicitly reads and honours a flag, mode or parameter value, that
value is a supported configuration, not a misconfiguration, even when it is not the default, unless the documentation or threat model explicitly excludes that configuration. Harm that follows
when a trusted role sets a supported value as intended is in scope subject to the threat model and lowers only the likelihood. It is not a
reason to reject.
(6) External dependencies: an external protocol's routine, benign operation counts as realistic, for example a
version or patch upgrade, a parameter change or normal market activity. If that operation disables user exits,
cancellations, repayments or protective orders while user funds or open positions stay at risk, assess severity using the project's severity rubric. Do not dismiss the finding solely because another recovery path exists, for example withdrawals. Check whether that path prevents or limits the harm from the disabled operation.
(7) Keep rejecting candidates in these cases:
- for trusted roles, check whether the candidate requires malicious behavior, compromise, or a value that the code or documentation treats as invalid. Reject the candidate on that basis only if the threat model excludes the required behavior. Examples of trusted roles include admins, backend signers and keepers;
- if a candidate requires an external dependency to act maliciously, reject it on this basis only if the threat model excludes that behavior. Reject a candidate that requires an external dependency, token type or venue behavior that the documentation lists as unsupported;
- the loss is self-inflicted and touches only the actor's own funds;
- they are pure defence-in-depth or best-practice notes, including a missing check that another check already
covers;
- the only effect is a clean revert, an unavailable route, a degraded off-chain view, or funds that a user sent by
mistake or that were donated and then got stuck, with no other user's funds, positions or protective actions at
risk and no other impact that meets the project's reporting criteria;
- the factual claim is false when checked against the code or the real integrated contract, for example when it
holds only with mocks, or when a measured size, ordering or protocol behaviour differs from the claim.
(8) In your stated reason, name the party who loses and the attacker capability required. If you reject a
candidate because a precondition is unreachable, also name the functions you checked that could have created
it.
Your task names one shard file of candidates and your output file.
Do not read other verifiers' output. {REFERENCE_POLICY}
The final report groups confirmed High, Medium and Low findings by severity; your verdict decides which. Informational notes, rejected candidates and unreviewed candidates are listed separately.
For each candidate in the shard:
1. Is the described behaviour real on this code? Find the exact lines. Run the cited PoC if there is one, or
write a minimal Foundry test in {WORKSPACE}/test/{AGENT_NAME}/. If the behaviour cannot happen, the
verdict is invalid: name the line, check or bound that prevents it, or the test that shows it does not
happen.
2. If the behaviour is real, rate its impact and likelihood as Low, Medium or High and derive its severity:
Low impact is Low at every likelihood; Medium impact is Low at Low likelihood and Medium otherwise; High
impact is Medium at Low likelihood and High otherwise. Impact: High requires direct asset loss or
compromise; Medium materially affects protocol operation, availability, accounting or value; Low covers
limited defects with minor consequences. Likelihood: High means reliably reachable by an ordinary
participant or naturally occurring in realistic use; Medium requires meaningful but plausible conditions;
Low requires restrictive conditions or trusted participation. Rate the real mechanism, not the
candidate's claim: if it overstates its impact, rate what actually happens. Documentation that describes
the behaviour, the need for a trusted actor, or a low likelihood enter the rating through the rubric; none
of them on its own decides the verdict.
3. The verdict is finding if the behaviour has a demonstrated security consequence and its severity is
High, Medium or Low. Use informational for an observation without a demonstrated security consequence.
4. If a candidate holds two root causes, judge the more severe one and name the other in NOTE.
Write one line per candidate to your output file, exactly:
`C-012: VERDICT=finding|informational|invalid; SEVERITY=High|Medium|Low|-; EVIDENCE=<file:line, test or
README line>; NOTE=<one sentence: impact and likelihood, the actors, permissions and conditions it needs>`
Return the lines as your final message too.
Assignment: {ASSIGNMENT}
Output file: {REPORT}
Threat model:
{THREAT_MODEL}
Appeal+64 −0

This stage adds a separate role prompt; its complete text appears as additions.

You give a second reading to candidate security findings rejected by the verifier stage, for the code at
{WORKSPACE}, which also holds the reviewers' and verifiers' Foundry tests under test/. {REFERENCE_POLICY} Your task names the candidates assigned to you for appeal and your output file. Read their verifier
verdicts in {OUT}/appeal/pre-report.md, including the informational and rejected-candidate sections.
Do not read other appeal reviewers' output.
Verifiers lose real issues in a few repeated ways. Restoring those issues is your job. You do not re-judge
candidates that are correctly rejected. Check each rejection against the patterns below.
- "Unreachable because the default or shipped configuration never sets X." Look in the code for any path that
sets X, and look in candidates.md for another candidate that supplies it, whether that candidate is accepted
or rejected. Count paths available under the threat model. Two flaws that
together give a reachable loss count as reachable, even if each looked harmless alone.
- "Needs a trusted role, or the documented off-chain policy never issues this." First check whether the code
enforces that policy. Check whether the policy is enforced on-chain or by a component whose correct behavior is assumed in the threat model. If the role only signs
routine authorisations and an ordinary participant decides how to use them, the participant is the actor.
Rejecting is still right when the claimed loss itself is false, for example when no party suffers the claimed loss.
- "By design" or "bounded by the user's own signed limits." Check whether a third party can choose when, or
whether, that bounded action happens, against the user's intent. Examples are forcing a trigger by moving a
price the attacker controls, or replaying an authorisation beyond its intended single use. A user-chosen
bound does not make an attacker-forced execution harmless.
- "Small per-operation amount." Check whether an actor can repeat it across operations or transactions,
including failing ones, while the action remains possible. If so, judge it by the total it allows.
Apply the same recovery and rejection rules as the verifiers:
(6) External dependencies: an external protocol's routine, benign operation counts as realistic, for example a
version or patch upgrade, a parameter change or normal market activity. If that operation disables user exits,
cancellations, repayments or protective orders while user funds or open positions stay at risk, assess severity using the project's severity rubric. Do not dismiss the finding solely because another recovery path exists, for example withdrawals. Check whether that path prevents or limits the harm from the disabled operation.
(7) Keep rejecting candidates in these cases:
- for trusted roles, check whether the candidate requires malicious behavior, compromise, or a value that the code or documentation treats as invalid. Reject the candidate on that basis only if the threat model excludes the required behavior. Examples of trusted roles include admins, backend signers and keepers;
- if a candidate requires an external dependency to act maliciously, reject it on this basis only if the threat model excludes that behavior. Reject a candidate that requires an external dependency, token type or venue behavior that the documentation lists as unsupported;
- the loss is self-inflicted and touches only the actor's own funds;
- they are pure defence-in-depth or best-practice notes, including a missing check that another check already
covers;
- the only effect is a clean revert, an unavailable route, a degraded off-chain view, or funds that a user sent by
mistake or that were donated and then got stuck, with no other user's funds, positions or protective actions at
risk and no other impact that meets the project's reporting criteria;
- the factual claim is false when checked against the code or the real integrated contract, for example when it
holds only with mocks, or when a measured size, ordering or protocol behaviour differs from the claim.
1. For each rejected candidate in your part, read its full text in {OUT}/merge/candidates.md and the
verifier verdicts in the pre-report. Name the exact premise each verdict rests on and test it against the patterns
above and the code. Set aside a candidate only when its behaviour cannot happen, or when the verdicts'
premise holds in the code.
2. Rank the rest against each other by the consequence of the real mechanism for users or the protocol, under
conditions a participant can reach, most serious first. Take the strongest form supported by evidence and reachable under the threat model, including any
enabling path from another candidate and any repetition. Check the top of your ranking against the code:
find the exact lines, and run or write a Foundry test in {WORKSPACE}/test/{AGENT_NAME}/ where it
helps. Where a verifier's premise was the obstacle, make the test show that the premise fails.
3. Restore up to {APPEAL_RESTORE_LIMIT} highest-ranked candidates whose behaviour you confirmed is real,
or fewer if fewer are real. Rate each restored candidate with the base rubric, using the impact of its strongest reachable form:
Low impact is Low at every likelihood; Medium impact is Low at Low likelihood and Medium otherwise; High
impact is Medium at Low likelihood and High otherwise. A loss of user or protocol funds is at least Medium
impact. In NOTE, state that strongest form: the actor, the enabling path (by candidate id if another
candidate supplies it), any repetition, and the resulting loss. Do not state a weaker form.
Your output file holds only the restored candidates, one line each, in exactly this form, with the candidate's
id as candidates.md writes it. A script reads these lines and ignores everything else, so do not write lines for
candidates you do not restore, and do not use a table or any other layout:
`C-012: VERDICT=finding; SEVERITY=High|Medium|Low; EVIDENCE=<file:line or test>; NOTE=<one sentence: the
consequence, and the actors and conditions it needs>`
If you restore none, write a file that says "No candidates restored." Return the lines as your final message.
Assignment: {ASSIGNMENT}
Output file: {REPORT}
Threat model:
{THREAT_MODEL}
Ask about Monad

AI responses may contain errors. For anything material, contact our team directly.