Evaluation methodology and results
Every number on this page is copied from a file committed in the repository, and each table links to its source. We ran no new measurements to write this page. If a number is not in a linked file, it is not here.
Corpus
Section titled “Corpus”The corpus lives in eval/corpus/. Every row is hand-authored for ANANZI (provenance ananzi-authored-2026-11). We do not copy samples from vendor model cards or demos, and we do not download third-party datasets.
| Split | Rows | SHA-256 |
|---|---|---|
dev |
35 | f61be445fc49386c2c04c5fb8b2b255178449cec9674789c854ed135c30c1dd3 |
test |
74 | 4aa224ebffcd3cc53a8498317467682b95952cad20e6d9e9793ed67e5f91e1f3 |
Source: manifest.json. Total 109 rows.
- Labels.
benign(72 rows),prompt_injection(30),jailbreak(7). Jailbreak is a separate label, reported separately, and excluded from injection recall and from the benign false-positive rate. - Injection families.
direct10,indirect10,encoded5,adversarial5. Direct is an instruction override in the user channel; indirect is hostile text inside retrieved or tool text; encoded hides the payload (for example Base64); adversarial uses delimiter, role-play or typo tricks in plain text. - Sources.
user_prompt,retrieved_document,tool_output,tool_description. Per-source counts are in the per-source rows of the first report. - Language. 105 rows are English; 4 are multilingual.
- Rules. Every row has an
id,label,family,source,language,tagsandcontent(at most 16,384 bytes). Coverage minima are enforced by theden-eval-corpustests, and thedevshare must stay between 25% and 35%.devchooses the operating point; the originaltestsplit is the regression suite. - Retrieved-document holdout. A separate input of 48 matched fictional English document pairs (a clean version and one with one inserted harmless instruction), SHA-256
d817a6cca80a0bf354290df39cb8bb524a019b392b0a952a38394806eb7ff754. Source:retrieved-documents-v1.jsonland the report. - Integrity. CI fails if a corpus file or a committed result drifts from its recorded checksum (
check-drift.py,drift-baseline.json). It runs no model, so it cannot see a model regression that has not been re-run and committed.
Metrics
Section titled “Metrics”Scores are raw logits. A row is flagged when the injection logit is at least the benign logit. The rule was fixed before scoring (ADR 0036). There is no tuned threshold.
- Recall is flagged injection rows over injection rows.
- False positives are flagged benign rows over benign rows.
- Jailbreaks flagged are reported on their own.
- Latency is warm, one request in flight, batch size one, and covers tokenization and inference only: not HTTP, database or network. p50 and p95 are nearest-rank percentiles.
- Holdout request-level outcomes carry 95% Wilson intervals. For chunked requests, a request is flagged if any chunk flags.
Hardware and runtime
Section titled “Hardware and runtime”All runtime figures come from one local stand-in, not from a hosted environment:
- OrbStack Linux container on an Apple M2 (
aarch64), capped at--cpus=2 --memory=3g --memory-swap=3g. - ONNX Runtime 1.31.0 through the Rust adapter, CPU only, two intra-op threads, one inter-op thread, 512-token cap including special tokens.
- Railway runs
x86_64hardware, which was not measured. Latency does not transfer one-for-one.
Sources: CPU container report and ADR 0035.
Results
Section titled “Results”Detection quality: two FP32 candidates
Section titled “Detection quality: two FP32 candidates”Identical on the first run and the CPU-only rerun (0 flagged-row flips in 109 rows). Source: 2026-11-24-cpu-container.md, per-source rows in 2026-11-23-fp32-cpu.md.
| Model | Split | False positives / benign | Detected / injection | Jailbreaks flagged |
|---|---|---|---|---|
| Protect AI deberta-v3-base v2 | dev | 2/23 (8.7%) | 9/10 (90.0%) | 2/2 |
| Protect AI deberta-v3-base v2 | test | 6/49 (12.2%) | 20/20 (100.0%) | 4/5 |
| Horizon prompt-injection-guard-small | dev | 1/23 (4.3%) | 10/10 (100.0%) | 2/2 |
| Horizon prompt-injection-guard-small | test | 3/49 (6.1%) | 20/20 (100.0%) | 5/5 |
The test split holds only four retrieved-document injection rows, so one miss moves that source’s recall by 25 points. These rates describe this corpus at this operating point.
Horizon FP32 and INT8 on the retrieved-document holdout
Section titled “Horizon FP32 and INT8 on the retrieved-document holdout”Source: 2026-11-25-retrieved-holdout.md. 48 injected and 48 clean requests per mode.
| Checkpoint | Input | Injection recall (95% interval) | False flags | p50 / p95 |
|---|---|---|---|---|
| Horizon FP32 | whole | 39/48 (81.2%, 68.1%–89.8%) | 0/48 | 48 / 441 ms |
| Horizon FP32 | chunked | 37/48 (77.1%, 63.5%–86.7%) | 0/48 | 54 / 463 ms |
| Horizon INT8 | whole | 29/48 (60.4%, 46.3%–73.0%) | 0/48 | 27 / 200 ms |
| Horizon INT8 | chunked | 34/48 (70.8%, 56.8%–81.8%) | 0/48 | 31 / 193 ms |
Both whole-document variants missed the two insertions that sit entirely outside the 512-token context. Chunking recovered them but cost 232 inference calls instead of 96.
Runtime across twelve repeated runs
Section titled “Runtime across twelve repeated runs”Twelve runs per checkpoint, ten passes each (1,090 requests per run). Source: 2026-11-25-bar-variance.md and ADR 0038.
| Metric | Horizon FP32 median (min–max) | Horizon INT8 median (min–max) |
|---|---|---|
| Warm p50 (ms) | 31.0 (27.0–40.6) | 15.9 (13.3–23.0) |
| Warm p95 (ms) | 94.2 (60.6–335.0) | 51.8 (26.1–187.7) |
| Throughput (req/s) | 21.9 (11.9–27.5) | 40.3 (20.0–57.2) |
| Cold first result (s) | 8.4 (5.6–11.3) | 2.2 (1.7–6.2) |
| Peak RSS (GB) | 1.141 | 0.474 |
Latency, throughput and cold start were very noisy on this host (FP32 p95 varied 5.5x across runs). Recall and false-positive counts were identical in all 24 runs: recall 30 of 30 for both checkpoints, false positives 1 / 3 / 3 / 0 (FP32) and 1 / 2 / 2 / 0 (INT8) for dev, test, test documents and test prompts. p99 is reported in the source file but not used as a bar, because its spread exceeded 2x.
Latency target
Section titled “Latency target”The published latency target for prompt_injection is p50 at most 100 ms and p95 at most 500 ms, warm, one request in flight, on the container basis above (ADR 0039). It is a target, not an SLA, and it is unmeasured at the full 512 tokens.
The launch bars come from the candidates themselves (the better measured checkpoint, with margin). Passing proves parity with Horizon on this corpus and nothing more (ADR 0036, ADR 0038). The INT8 file is a local derivative and quality on other hosts is unchecked (INT8 comparison).
Models in the evaluation set
Section titled “Models in the evaluation set”For these models side by side, see the model comparison.
| Model | Licence | Status here |
|---|---|---|
protectai/deberta-v3-base-prompt-injection-v2 |
Apache-2.0 | Scored above. Not served. |
Horizon-Labs/prompt-injection-guard-small |
Apache-2.0 | Scored above (FP32 and a local INT8 derivative). Not served. |
meta-llama/Llama-Prompt-Guard-2-22M |
Llama 4 Community License | Research only. Exported locally and checked for tokenizer and logit parity (ADR 0044, dossier). No scores are committed, so none appear here. It is not served and is not cleared for serving. |
sdmlai/cyber-jev |
CC-BY-NC-4.0 | Unmeasured. Not served. |
Built with Llama. Pinned revisions and licence reads are in models/candidates.md. No weights, ONNX files or upstream tokenizer files are committed or distributed by ANANZI.
Limits
Section titled “Limits”- The corpus is small (109 rows, 30 injections) and authored by us. Four retrieved-document positives give a coarse recall estimate.
- Everything is English apart from 4 rows. Partner traffic and multilingual coverage are not established.
- One host, one day,
aarch64. Hostedx86_64validation has not been done. - The bars are regression gates, not accuracy claims. They catch a large regression and nothing finer.
- No price is derived from, or published with, these figures.
Reproduce
Section titled “Reproduce”The scripts need the pinned weights on a machine that is authorised to hold them (ADR 0027). CI never runs a model.
# Integrity of the corpus and committed results (no model needed)python3 eval/check-drift.py
# Quality and runtime in a 2 vCPU / 3 GiB container (the 2026-11-24 report)eval/benchmarks/run-container.sh "$HOME/.herdr/models/spike" ./out
# Ten passes per run, repeated, then summarise (the 2026-11-25 variance report)ANANZI_REPEATS=10 eval/benchmarks/run-container.sh "$HOME/.herdr/models/spike" ./out-1 2 3g "$HOME/.herdr/models/spike-int8"python3 eval/benchmarks/summarize-runs.py --repeats 10 ./out-1 ./out-2 ./out-3 ./out-4 ./out-5
# Retrieved-document holdoutANANZI_RETRIEVED_HOLDOUT=1 eval/benchmarks/run-container.sh \ "$HOME/.herdr/models/spike" /tmp/den-retrieved-holdout 2 3g \ "$HOME/.herdr/models/spike-int8"Raw logits, with no submitted text, are committed beside each report in eval/benchmarks/.