Repository navigation
bench(corpus-ab): #1111 fair A/B — results + manual validation gate (corpus tie, 33 confirmed defect classes) - #1116
Merged
Merged
Conversation
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.
…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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 validityvalidation/VERDICTS.md— per-finding verdicts with PoC evidencevalidation/ALL-FINDINGS.txt— the deduped 38-finding ledger that was scoredruns/{p1,p2,x1,x2}/— findings, method notes, cost/token/wall accountingruns/*-transcript/— discarded-attempt transcripts, preserved unscoredDesign
Two blinded arms × two independent runs each, same task file, same turn
budget, same pinned binary (
eb2f5689) for dynamic PoCs, same stdinlauncher (after the argv-propagation harness bug documented in
DEVIATIONS.md forced a re-run of P1):
rust-vulnspack served by a XERJ node (xerj codeavailable)Headline numbers
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)
.seg/.normskills (8/4-byte patches, boots green, dies on first query), the_seq_notamper → merge silently dropping 51 docs → 1, reciperev = --upload-pack …RCE, checksum-valid pack slug traversal, and anautoindex TLS MITM that captured the
ApiKeyheader..dvdecode errors swallowed byunwrap_or_default()→ correct results via brute fallback — a hardeningitem, not an abort).
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).