# A security tool should earn its confidence: measuring realism-gate and priorart
Engineering, evaluation methodology, and the work behind two local-first security research tools — November 30, 2026.
A security tool can produce convincing results without demonstrating that its findings are correct.
An exploit PoC can pass its tests while failing to establish the vulnerability it claims to demonstrate. A duplicate detector can rank two findings as similar without identifying whether they share the same underlying bug.
These are not merely detection problems. They are measurement problems.
I build two tools to address them.
realism-gate examines exploit PoCs and identifies where their evidence falls short of their claims. priorart compares vulnerability findings against previous audit reports to surface potential duplicates before submission.
This development cycle focused on something more important than adding detection rules: building the infrastructure needed to measure whether these tools are actually reliable.
The first measurements are available. Human-labelled evaluation is underway, but no human-labelled performance results are available yet. That distinction matters, and it is central to how I approach this work.
## 1. What shipped
The latest development cycle delivered four realism-gate releases, one priorart release, agent integrations for both tools, and the evaluation infrastructure for the next research phase.
### realism-gate 1.5.0–1.5.3
All four releases were tagged on November 27, 2026.
1.5.0 — Binding model and precision floor
A binding model now connects the attacker to the exploit call, while a program model covers both Solidity and Solana.
The release also introduced a precision floor: a rule can only escalate to `warn` or fail a build after a fresh, labelled evaluation cell clears its pre-registered threshold.
No evaluation cell has cleared that threshold yet. Consequently, every rule currently ships at `note`.
Reports distinguish between the severity a rule raised and the severity at which it actually ships.
This is deliberate. Detection capability and demonstrated reliability are not interchangeable.
1.5.1 — Correct MCP transport and operational boundaries
The MCP server now uses the actual MCP stdio transport. Before this release, responses were framed using LSP-style transport, causing the MCP Inspector to time out after 15 seconds on `tools/list`.
The release also introduced three read-only tools:
- `dump_program`
- `list_rules`
- `explain_rule`
Operational safeguards include a configurable path root, a per-run timeout (120 seconds by default), and a 4 MiB output cap. Oversized output is refused rather than silently truncated.
1.5.2 and 1.5.3 — Release compatibility
Two subsequent patch releases addressed MCP Registry naming and GitHub Marketplace metadata requirements without changing detection behavior, flags, defaults, or report fields.
Additional integration work
A lightweight plugin for the Anthropic plugin directory is also present on `main`, but has not yet been released. It is CLI-only, exposes read-only commands, and includes a privacy policy stating that no data is collected, stored, or transmitted.
### priorart 0.2.3
Tagged November 27, 2026, this release focused on expanding the ingestion pipeline, improving candidate ranking, and making the tool available through standardized integrations.
Controlled data ingestion
`priorart fetch` is the only networked command. It uses HTTPS, fetches only explicitly supplied URLs, and does not crawl external sources.
A `--no-default-features` build contains no HTTP client at all.
HTML import now handles tables and links, improving the ingestion of structured audit reports.
P2 matching and ranking
The release includes:
- Code anchors.
- Structural candidate generation.
- A fixed-weight ranker.
- A calibrated alarm.
These components form the P2 matching pipeline.
MCP and CI integration
`priorart-mcp` provides eleven read-only tools, each executing one fixed `priorart` command line.
The server rejects unknown arguments and applies operational restrictions:
- Configurable path root.
- 120-second default timeout.
- 4 MiB output cap.
- 8 MiB frame cap.
A composite GitHub Action is also available. It runs in CI on Ubuntu, macOS, and Windows, verifying release archives against `SHA256SUMS` before execution.
Fuzzing and robustness
Fuzzing during this cycle uncovered an infinite loop and multibyte slicing panics in the HTML and URL processing code.
All identified issues have been fixed, with regression tests and fuzz seeds added.
The priorart benchmark was not rerun for this release. The `check` matcher remains unchanged from 0.1.3, and the P2 measurements remain development-only.
## 2. What the first measurements show
The evaluation work is split into two independent tracks. They address different problems and use different evaluation criteria.
### realism-gate: Round 1
One execution. Five corpora. No human labels.
Before any evaluation data was read, the Round 1 configuration was merged into `main` at:
`eval/rounds/round-1.json`
The frozen round file pins:
- The evaluation binary (realism-gate 1.5.1, including its Windows SHA-256 hash).
- The evaluation rubric.
- The pre-registration.
- The golden manifest.
- The hashes of every script that reads the evaluation data.
Subsequent modifications are recorded as dated, numbered amendments (A1, A2, A3).
The V1 slice of each of the five corpora was then executed once. Solana and Solidity results are kept separate rather than pooled.
| Corpus (V1) | Units | Readable | Flags | Flags on J/X units (to label) | Flags on negative controls |
|---|---:|---:|---:|---:|---:|
| solana-poc-v3 | 27 | 26/27 = 96.3% [81.7, 99.3] | 12 | 10 | 2 |
| solana-poc-v4 | 5 | 4/5 (count only) | 5 | 5 | 0 |
| solana-poc-v5 | 2 | 1/2 (count only) | 0 | 0 | 0 |
| solidity-poc-v1 | 111 | 99/111 = 89.2% [82.1, 93.7] | 238 | 111 | 127 |
| solidity-poc-v2 | 62 | 62/62 = 100% [94.2, 100] | 68 | 68 | n/a |
These are flag counts, not precision measurements.
A flag on a judged or exploit-by-construction unit is not a true positive until a human reviewer confirms it. Likewise, a flag on a negative-control unit is not a measured false positive until it has been evaluated.
The current evaluation therefore produces 194 flags for human review:
- 179 Solidity flags.
- 15 Solana flags.
The Solana corpora are particularly small. Even after labelling, most per-rule Solana evaluation cells are expected to remain below the minimum sample-size requirement for the precision floor.
V1 is now considered in-sample. V2 and FINAL remain sealed.
### priorart: V1 pair evaluation
Measured against contest judges, not human reviewers.
Six judged Code4rena contests were evaluated once. The swapped pairs and judge labels were pinned in the round file before execution.
The initial results:
| Measurement | Result |
|---|---:|
| Pooled recall@5 | 350/445 = 78.7% [74.6, 82.2] |
| False alarms at the shipped alarm | 2/104 = 1.9% [0.5, 6.7] |
| Alarm correctness | 43/48 = 89.6% [77.8, 95.5] |
These labels originate from the judges' duplicate groupings.
The confidence intervals do not account for clustering by contest. This limitation is important when interpreting pooled results across multiple contests.
These measurements establish a judge-labelled baseline. They are not human-labelled results.
The independent human evaluation will be reported alongside them, never pooled with them.
## 3. Building the measurement infrastructure
Most of the work in this cycle went into preparing the next evaluation phase.
The central principle is straightforward: a human label is only useful as evidence if the process used to obtain and interpret it is defined before the label arrives.
### Pre-registered labelling plan
The evaluation involves 30 unpaid, English-speaking labellers across three areas.
Solidity — 18 reviewers
- Nine batches.
- Two reviewers per batch.
- Every flag is independently reviewed by two people.
- Three shared anchor flags are reviewed by all 18 participants.
The Solidity batching plan was fixed and its hash recorded before any evaluation packet was distributed.
Solana/Rust — 4 reviewers
- Four reviewers.
- Each reviews all 15 flags.
priorart duplicate judging — 8 reviewers
- Four batches.
- Two reviewers per item.
- Three shared anchor items.
- Ninety-six items in total: 48 alarm firings and 48 seeded quiet controls.
### Blinded evaluation
Reviewers receive the finding, the relevant file, and the claim made by the rule.
They do not receive:
- The severity raised by the tool.
- The severity at which the rule ships.
- An associated score.
- Another reviewer's answer.
Row order is shuffled independently for each reviewer using a recorded seed.
The two reviewers assigned to a batch do not discuss their answers.
This is intended to reduce the influence of the tool's own output and other reviewers' judgments on the independent assessment.
### A written duplicate-judging rubric
The priorart evaluation uses an explicit definition of duplication:
- `yes` — Same root cause in the same code path.
- `no` — Same general area, but a different bug.
- `unclear` — Insufficient information to make a determination, accompanied by a one-line explanation.
Reviewers judge only from the two texts. They do not consult the published contest grouping.
The goal is to evaluate whether the tool's matching decisions correspond to an independently applied definition of duplication.
### A deterministic scorer
The priorart evaluation includes a dedicated scoring implementation:
`eval/dupbench/pairs-swap/score_judging.py`
It was merged on November 28, 2026.
The scorer enforces the following rules:
Strict input validation
Labels must be exactly `yes`, `no`, or `unclear`.
Any other value rejects the entire run. The scorer does not repair, normalize, or guess missing labels.
Inter-reviewer agreement
Cohen's kappa is calculated per batch on non-anchor rows.
A batch below 0.70 is considered inconclusive.
Shared anchors are evaluated separately using Krippendorff's alpha.
Eligibility for headline measurements
Only complete batches that clear the kappa threshold contribute to headline cells.
Cells containing more than 20% `unclear` labels are inconclusive.
Cells with fewer than five observations are reported as counts only.
Disagreements and adjudication
Items with conflicting reviewer judgments remain outside the evaluated sample size until a written adjudication exists.
Evaluation isolation
Any input path that appears to reference V2 or FINAL is rejected.
The scorer currently has 104 unit tests, all synthetic, passing in CI on `main`.
The objective is to make the scoring process deterministic and prevent post-hoc interpretation from changing the evaluation rules.
### Evaluation accountability
Amendment A3 for realism-gate, merged on November 28, records reviewer slots by ID only.
It explicitly records:
`recorded_after_labels: false`
No reviewer identities or contact details are stored in the public repositories.
Contributors will be named only after their work is complete and they have agreed to receive public credit.
## 4. What these results do not establish
It is important to separate what has been measured from what remains unproven.
At this stage:
- No held-out precision measurement exists for any realism-gate rule.
- Every realism-gate rule still ships at `note`.
- No human-labelled priorart performance result is available.
- The current priorart pair measurements use contest judges' duplicate groupings.
- V2 and FINAL have not been opened.
- No tuning has been performed on the sealed evaluation data.
The current numbers are preliminary measurements with clearly defined limitations. They should not be interpreted as proof of general detection accuracy.
The human evaluation is designed to provide an additional, independent perspective, not to retroactively validate claims that have already been made.
## 5. The next research phase
The first human-labelling packets were distributed on November 28.
At the time of writing, no completed labels have been returned or used.
The next steps are already defined:
1. Returned sheets will be processed through the pre-registered scorer.
2. Each eligible evaluation cell will be reported as k/n with a Wilson 95% confidence interval.
3. Cells that fail the agreement requirements will be marked inconclusive rather than silently discarded.
4. Human-labelled results will be presented alongside judge-labelled measurements, never pooled with them.
5. Contributors who complete the work and agree will receive public credit.
Once V1 labelling is complete, V2 will be evaluated next.
FINAL remains sealed until that stage is complete. Its results will determine which realism-gate rules have sufficient evidence to move beyond `note`.
## 6. Why this matters
The objective is not to maximize the number of findings, produce impressive benchmark scores, or make security tooling appear more confident than the evidence allows.
It is to establish which claims survive independent evaluation.
For realism-gate, that means determining which rules reliably identify weaknesses in exploit evidence and which have sufficient support to influence a submission or build.
For priorart, it means determining whether candidate rankings and duplicate alarms correspond to independently judged root-cause overlap.
The same principle applies to both tools: stronger claims require stronger evidence.
A detection rule should not become an enforcement mechanism simply because it exists. A benchmark should not become a performance claim simply because it produces a percentage.
The measurement process should determine the tool's confidence, not the other way around.
That is the foundation being built with realism-gate and priorart.
---
Research and engineering by KhomDev.
Sources — KhomDev/realism-gate (`main`): `CHANGELOG.md`; `eval/rounds/round-1.json` (amendments A1–A3); `eval/rounds/round-1-v1-counts.md` and `.json`; `eval/rounds/round-1-labellers.json`.
Sources — KhomDev/priorart (`main`): `CHANGELOG.md`; `eval/rounds/round-1-pairs.json`; `eval/dupbench/pairs-swap/JUDGING_RUBRIC.md`; `eval/dupbench/pairs-swap/score_judging.py` and its tests; `docs/mcp.md`; `docs/action.md`.
Releases: [realism-gate v1.5.0–v1.5.3](https://github.com/KhomDev/realism-gate/releases) · [priorart v0.2.3](https://github.com/KhomDev/priorart/releases)

