8000 bench(corpus-ab): #1111 fair A/B — results + manual validation gate (corpus tie, 33 confirmed defect classes) by xerj-org · Pull Request #1116 · xerj-org/xerj · GitHub
[go: up one dir, main page]

Skip to content

bench(corpus-ab): #1111 fair A/B — results + manual validation gate (corpus tie, 33 confirmed defect classes) - #1116

Merged
xerj-org merged 4 commits into
mainfrom
bench/corpus-ab-2026-10
Oct 3, 2026
Merged

xerj-org merged 4 commits into
mainfrom
bench/corpus-ab-2026-10

Conversation

@xerj-org
@xerj-org xerj-org commented Oct 1, 2026
Copy link
Copy Markdown
Owner

What this is

The #1111 pre-rc.81 deliverable: the fair A/B measurement of whether
corpus + XERJ gives a security-review agent an edge on the project's own
Rust code
, plus the manual validation gate over every filed finding.
Protocol was frozen and committed before any run (9e613a2); SHA pinned
post-merge (c504958); every deviation is timestamped in DEVIATIONS.md.

  • RESULTS.md — the comparison, the tie call, threats to validity
  • validation/VERDICTS.md — per-finding verdicts with PoC evidence
  • validation/ALL-FINDINGS.txt — the deduped 38-finding ledger that was scored
  • runs/{p1,p2,x1,x2}/ — findings, method notes, cost/token/wall accounting
  • runs/*-transcript/ — discarded-attempt transcripts, preserved unscored

Design

Two blinded arms × two independent runs each, same task file, same turn
budget, same pinned binary (eb2f5689) for dynamic PoCs, same stdin
launcher (after the argv-propagation harness bug documented in
DEVIATIONS.md forced a re-run of P1):

arm setup
P (plain) full repo checkout, no corpus tooling
X (corpus) repo + rust-vulns pack served by a XERJ node (xerj code available)

Headline numbers

P X
findings filed 20 18
confirmed exploitable (dynamic) 13 16
downgraded / false positives 3 / 1 (its only CRITICAL) 0 / 0
cost $65.72 $70.55
cost per confirmed-exploitable $5.06 $4.41
wall 99.7 min 89.8 min

Tie on the central question, published as such: no confirmed finding in
either X run traces to corpus-assisted discovery (x1 made one unused sweep
query; x2 never invoked xerj code). X's precision edge is method variance
(dynamic re-verification of everything), not a corpus effect — and that
discipline is portable to any arm, which is the actual lesson.

Complementarity: 38 findings → 33 confirmed defect classes, only 2 found
by both arms. Solo recall 52%/55% of the union.

Validation gate highlights (all against scratch nodes on the pinned binary)

  • 29 findings dynamically confirmed, incl. persistent poison-pill .seg/
    .norms kills (8/4-byte patches, boots green, dies on first query), the
    _seq_no tamper → merge silently dropping 51 docs → 1, recipe
    rev = --upload-pack … RCE, checksum-valid pack slug traversal, and an
    autoindex TLS MITM that captured the ApiKey header.
  • 3 downgraded with root cause (e.g. .dv decode errors swallowed by
    unwrap_or_default() → correct results via brute fallback — a hardening
    item, not an abort).
  • 1 refuted: the P arm's only CRITICAL (wildcard snapshot restore) — the
    authz guard fires on all four key shapes attempted.

Disposition

#1111 closes as measured (tie); #1110 Part A re-tests the corpus question on
a second pack (CISA KEV) where retrieval should actually pay. No public
"agents find more vulns with XERJ" claim is supportable from this run.

The confirmed-defect inventory itself goes to the security backlog as
follow-up issues (not this PR — this PR is measurement + evidence only).

Pre-registration for the corpus-pack validation A/B (issue #1111, user
directive 2026-10-01). protocol.md freezes: research question with
pre-stated hypothesis (arm X >= arm P on confirmed findings at
equal-or-lower token cost; tie/loss published as such), the
attack-facing-surface subject, the two arms (P = plain agent; X = same
agent + local node holding the rust-vulns pack + the audited tree
autoindexed; NO peer-engine reference corpora, to avoid confounding with
the separately measured reference-coding claim), run order P1 X1 P2 X2
with the node stopped during P runs, the findings.json deliverable
contract, metrics, the per-finding manual validation gate (PoC or
labeled logic-proof; confirmed-exploitable / confirmed-low /
not-reproducible / false-positive; provenance tags on arm-X-only
findings), and threats to validity stated up front.

TASK-P.md / TASK-X.md are the verbatim per-arm task files (identical
except the environment paragraph; <ID> substituted per run). Arm-X setup
itself already surfaced and fixed a consumer-path defect (PR #1113: the
pack's osv half silently junked — 1,230 of 1,963 records accepted as
success), evidence the harness does what #1110/#1111 exist to do.

Force-added past the blanket *.md ignore, same as benchmarks/ask-plan
before it. No agent has run at commit time.
Both arms clone /workspace and check out this SHA, so the reviewed tree
is exactly the tree the prebuilt binary at /tmp/xtarget-1093/release/xerj
was compiled from (fbfc736 via merge eb2f568): the JSONL fat-first-line
fix (#1113) is in the tree AND in the binary.
…rpus tie published

The four scored runs (P1/P2 plain vs X1/X2 corpus+XERJ, identical task file,
pinned SHA eb2f568, stdin launcher, per-run cost/token accounting) are in,
plus the full manual validation gate over all 38 filed findings.

Headline (RESULTS.md): X filed 18 findings — 16 dynamically confirmed
exploitable, 0 false positives; P filed 20 — 13 dynamic, 1 false positive
(its only CRITICAL claim, wildcard snapshot r
8000
estore: the authz guard fires
on all four key shapes tried), 3 downgraded. But no confirmed finding in
either X run traces to corpus-assisted discovery (x1: one unused 23-dep
sweep; x2: zero `xerj code` invocations), so the central #1111 question
closes as a TIE, published as such per the honest-claims directive. The
measured X advantage is method variance (verify-everything-dynamically),
which is portable to any arm and is the actual lesson of the run.

Second result worth keeping: the arms are near-disjoint. 38 findings dedupe
to 33 confirmed defect classes; only 2 classes were found by both arms.
Solo recall is 52% (P) and 55% (X) of the union — run two independent
reviewers, expect half again what one finds.

Validation gate (validation/VERDICTS.md): every finding re-driven against
scratch nodes booted from the pinned binary — 29 dynamically confirmed
(including persistent poison-pill .seg/.norms kills, the 51-docs-to-1
_seq_no silent merge drop, recipe rev --upload-pack RCE, checksum-valid
pack slug traversal, autoindex TLS MITM with captured ApiKey), 3 downgraded
with root cause (.dv decode errors are swallowed by unwrap_or_default →
brute fallback; hdr loop capped by the 30s search deadline), 1 refuted.
Raw PoC evidence lines quoted per verdict.

Artifacts: runs/{p1,p2,x1,x2}/{findings.json,method.md,runmeta.json,
usage.raw.json}; discarded-attempt transcripts preserved unscored per
DEVIATIONS.md; validation/ALL-FINDINGS.txt is the deduped finding ledger
the gate scored against.

Disposition: #1111 measured → tie; #1110 Part A re-tests the corpus
question on a second pack (CISA KEV) where retrieval should actually pay.
No public claim of agent advantage from this run.
…dation

Answers "can we scale rust-vulns to improve the #1111 result": yes, with the
shape/surface/size diagnosis fixed in that order — recorded for the next
blogpost in CORPUS-X100.md, with pre-registered re-test predictions P1-P5
committed BEFORE any re-run (same discipline as #1111).

Baseline autopsy off the gen-1 pack (measured, not asserted): 1,963 advisory
prose records; only 14% contain any code; affected_functions 13% populated,
names only; 995 seeds carry a GitHub fix-commit + semver range; and — the
surprise — 50% of records are post-2025 (716 from 2026), so an un-memorized
stratum already existed and was still never queried. The tie's causes rank:
surface (0 invocations) > shape (prose can't match code-shaped queries) >
size/memorization (half-wrong hypothesis).

Scale arithmetic, measured on a 4-seed live sample (zeptoclaw, fuel-vm,
ml-dsa via RustCrypto monorepo partial-clone, hubuum_client): 9.8 vulnerable
functions + 3.8 trigger tests per advisory seed. Honest consequence, stated
plainly: advisory-backed scaling caps at ~x8 (~16k records) because the world
has ~2k Rust advisories; the x100 (~196k) requires stratum S3 — mined
hardening commits from top-2,000 crate histories — which is provisional by
construction and tagged as such, with per-record licence fields.

Sample miner + seeds + raw output committed under corpus-x100/ so every
number in the doc is reproducible. One end-to-end walkthrough captured
(GHSA-5wp8-q9mx-8jxw): advisory -> validate_command() at fix^ -> diff ->
before/after regression-test pair (the before-test asserts the WRONG
behaviour; the after-test cites the GHSA id) — the trigger pair is the
record type a reviewer actually needs. Known regex-extraction miss recorded
(fuel-vm: no fn-attributable code in the fix) -> tree-sitter + whole-file
fallback in the production harvester.
@cla-bot cla-bot Bot added the cla-signed label Oct 1, 2026
@xerj-org
xerj-org merged commit 7fbd881 into main Oct 3, 2026
41 of 42 checks passed
neoneye pushed a commit to agent-memory-atlas-archive/xerj-org--xerj that referenced this pull request Oct 4, 2026
Version bump rc.80 -> rc.81 (17 workspace crates in Cargo.lock). CHANGELOG
section cites every window PR: xerj-org#1106 xerj-org#1107 xerj-org#1112 xerj-org#1113 xerj-org#1114 xerj-org#1115 xerj-org#1116
xerj-org#1117 xerj-org#1119 xerj-org#1123 xerj-org#1124. ROADMAP rolled: shortlist re-verified live at cut
(four open xerj-org#1091 xerj-org#1092 xerj-org#1094 xerj-org#1100; xerj-org#1093 closed by xerj-org#1112 inside the
window and moves to the CHANGELOG). Landing stamp sweep RC.80 -> RC.81 in
54 files — footer stamps only; historical prose ('since rc.80', 'rc.80
closed that', PR xerj-org#1082 claims in llms.txt/llms-full.txt and the S3/alerting
answers pages) deliberately left at rc.80.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0